Skip to content

Instantly share code, notes, and snippets.

@dreiss
Created November 20, 2008 02:42
Show Gist options
  • Save dreiss/26906 to your computer and use it in GitHub Desktop.
Save dreiss/26906 to your computer and use it in GitHub Desktop.
#!/bin/sh
set -e
libtoolize --automake
aclocal
autoconf
touch NEWS README AUTHORS ChangeLog
automake --add-missing
AC_PREREQ(2.59)
AC_INIT(hello, [1.0])
AM_INIT_AUTOMAKE([1.9 foreign])
AC_PROG_CC
AC_PROG_LIBTOOL
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
#include <stdio.h>
int main(int argc, char *argv[]) {
printf("Hello, World!\n");
return 0;
}
bin_PROGRAMS = hello
hello_SOURCES = hello.c
#hello_LDADD = @LEXLIB@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment