New test for log changes
[yaz-moved-to-github.git] / buildconf.sh
index 6dbd1fb..3817a7a 100755 (executable)
@@ -6,6 +6,7 @@ autoconf=autoconf
 libtoolize=libtoolize
 autoheader=autoheader
 
+test -d autom4te.cache && rm -r autom4te.cache
 test -d config || mkdir config
 if [ -d .git ]; then
     git submodule init
@@ -66,6 +67,13 @@ case $1 in
        enable_help=false
        shift
        ;;
+    -D)
+       sh_cflags="-g -Wall -Werror -Wdeclaration-after-statement"
+       sh_cxxflags="-g -Wall -Werror"
+       enable_configure=true
+       enable_help=false
+       shift
+       ;;
     -c)
        sh_cflags=""
        sh_cxxflags=""
@@ -127,7 +135,7 @@ EOF
     if [ "`uname -s`" = FreeBSD ]; then
         cat <<EOF
 When building from a Git, you need these FreeBSD Ports:
-  pkg_add -r autoconf262 automake110 libtool bison tcl84 \\
+  pkg_add -r autoconf268 automake111 libtool bison tcl84 \\
              docbook-xsl libxml2 libxslt
   pkg_add -r icu4
 EOF