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