X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=buildconf.sh;h=2788acd17eb4ceee713d802dac225f78dcf6355e;hb=eea2caea1263bed0aae268f72d985cbb1822ac30;hp=071751ebd1fb809673d4d510f1f8b31f8cd95551;hpb=bd71f8812ca0f38438733efc89ecce1f49dae9e7;p=yazpp-moved-to-github.git diff --git a/buildconf.sh b/buildconf.sh index 071751e..2788acd 100755 --- a/buildconf.sh +++ b/buildconf.sh @@ -1,14 +1,67 @@ #!/bin/sh -# $Id: buildconf.sh,v 1.6 2001-03-26 14:43:49 adam Exp $ -dir=`aclocal --print-ac-dir` -if [ -f $dir/yaz.m4 ]; then - aclocal || exit 1 -else - aclocal -I . || exit 1 -fi -libtoolize --force >/dev/null 2>&1 || exit 2 -automake -a >/dev/null 2>&1 || exit 3 -autoconf || exit 4 +# $Id: buildconf.sh,v 1.11 2005-05-17 20:34:28 adam Exp $ +set -x +aclocal -I . +libtoolize --automake --force +automake --add-missing +automake --add-missing +autoconf +set - if [ -f config.cache ]; then rm config.cache fi + +enable_configure=false +enable_help=true +sh_flags="" +conf_flags="" +case $1 in + -d) + sh_flags="-g -Wall" + enable_configure=true + enable_help=false + shift + ;; + -c) + sh_flags="" + enable_configure=true + enable_help=false + shift + ;; +esac + +if $enable_configure; then + if test -n "$sh_flags"; then + CFLAGS="$sh_flags" CXXFLAGS="$sh_flags" ./configure $* + else + ./configure $* + fi +fi +if $enable_help; then + cat <