From 6c45c95ca8d10a201b5748dfab2fd7cf34742d02 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Thu, 21 Nov 2002 19:03:04 +0000 Subject: 2002-11-21 Havoc Pennington * acconfig.h: get rid of this * autogen.sh (run_configure): add --no-configure option * configure.in: remove AC_ARG_PROGRAM to make autoconf complain less. add AC_PREREQ. add AC_DEFINE third arg. --- autogen.sh | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) (limited to 'autogen.sh') diff --git a/autogen.sh b/autogen.sh index 3b74d828..a3923bbc 100755 --- a/autogen.sh +++ b/autogen.sh @@ -56,7 +56,7 @@ libtoolize --copy --force echo $ACLOCAL $ACLOCAL_FLAGS $ACLOCAL $ACLOCAL_FLAGS -# optionally feature autoheader +## optionally feature autoheader (autoheader --version) < /dev/null > /dev/null 2>&1 && autoheader $AUTOMAKE -a $am_opt @@ -64,7 +64,23 @@ autoconf || echo "autoconf failed - version 2.5x is probably required" cd $ORIGDIR -$srcdir/configure --enable-maintainer-mode "$@" +run_configure=true +for arg in $*; do + case $arg in + --no-configure) + run_configure=false + ;; + *) + ;; + esac +done + +if $run_configure; then + $srcdir/configure --enable-maintainer-mode "$@" + echo + echo "Now type 'make' to compile $PROJECT." +else + echo + echo "Now run 'configure' and 'make' to compile $PROJECT." +fi -echo -echo "Now type 'make' to compile $PROJECT." -- cgit