annotate configure.ac @ 1149:15767031950c

AC_USE_SYSTEM_EXTENSIONS replaces the need for hacky #defines at starts of C files
author Adam Chlipala <adamc@hcoop.net>
date Sat, 06 Feb 2010 13:46:17 -0500
parents a48966743c37
children 7a17588edbff
rev   line source
adamc@1132 1 AC_INIT([urweb], [1.0])
adamc@1149 2 AC_USE_SYSTEM_EXTENSIONS
adamc@1148 3 AM_INIT_AUTOMAKE([-Wall -Werror foreign no-define])
adamc@1132 4 AC_PROG_CC()
adamc@1132 5 AC_PROG_LIBTOOL()
adamc@1141 6 AC_CONFIG_MACRO_DIR([m4])
adamc@378 7
adamc@429 8 if test [$prefix = "NONE"]; then
adamc@429 9 prefix=/usr/local
adamc@429 10 fi
adamc@429 11
adamc@378 12 if test [-z $BIN]; then
adamc@429 13 BIN=$prefix/bin
adamc@378 14 fi
adamc@378 15
adamc@378 16 if test [-z $LIB]; then
adamc@429 17 LIB=$prefix/lib/urweb
adamc@378 18 fi
adamc@378 19
adamc@378 20 if test [-z $INCLUDE]; then
adamc@429 21 INCLUDE=$prefix/include/urweb
adamc@378 22 fi
adamc@378 23
adamc@378 24 if test [-z $SITELISP]; then
adamc@429 25 SITELISP=$prefix/share/emacs/site-lisp/urweb-mode
adamc@378 26 fi
adamc@378 27
adamc@378 28 AC_SUBST(BIN)
adamc@378 29 AC_SUBST(LIB)
adamc@378 30 AC_SUBST(INCLUDE)
adamc@378 31 AC_SUBST(SITELISP)
adamc@435 32 AC_SUBST(GCCARGS)
adamc@378 33
adamc@1132 34 AC_CONFIG_FILES([
adamc@1132 35 Makefile
adamc@1132 36 src/c/Makefile
adamc@1132 37 src/config.sml
adamc@1132 38 ])
adamc@378 39
adamc@378 40 AC_OUTPUT()
adamc@378 41
adamc@378 42 cat <<EOF
adamc@378 43
adamc@378 44 Ur/Web configuration:
adamc@378 45 bin directory: BIN $BIN
adamc@378 46 lib directory: LIB $LIB
adamc@378 47 include directory: INCLUDE $INCLUDE
adamc@378 48 site-lisp directory: SITELISP $SITELISP
adamc@435 49 Extra GCC args: GCCARGS $GCCARGS
adamc@378 50 EOF