X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=buildconf.sh;h=2788acd17eb4ceee713d802dac225f78dcf6355e;hb=eea2caea1263bed0aae268f72d985cbb1822ac30;hp=165b93e342e675b4789d08e259501e8597ea2c43;hpb=03a58bebb2575313e5fb1709f2105541caaed237;p=yazpp-moved-to-github.git diff --git a/buildconf.sh b/buildconf.sh index 165b93e..2788acd 100755 --- a/buildconf.sh +++ b/buildconf.sh @@ -1,15 +1,67 @@ #!/bin/sh -# $Id: buildconf.sh,v 1.9 2002-09-10 12:00:20 adam Exp $ +# $Id: buildconf.sh,v 1.11 2005-05-17 20:34:28 adam Exp $ set -x -dir=`aclocal --print-ac-dir` -if [ -f $dir/yaz.m4 ]; then - aclocal -else - aclocal -I . -fi -libtoolize --force -automake -a +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 <