--- parser3/configure 2012/06/14 20:31:17 1.145 +++ parser3/configure 2012/06/14 21:11:21 1.146 @@ -872,9 +872,10 @@ Optional Features: --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors + --disable-version-update to disable version update with host information --disable-safe-mode to enable reading and executing files belonging to group+user other then effective - --disable-execs to disable any execs + --disable-execs to disable any execs (file::exec, file::cgi, unix mail:send) --disable-stringstream to disable stringstream usage. when disabled table.save use more memory but it's safer on freebsd 4.x @@ -895,11 +896,11 @@ Optional Packages: --with-pathlink=LKEY put dynamic libraries paths to binary using linker key (-R, -rpath-link) --with-sjlj-exceptions enable simple 'throw' from dynamic library - --with-gc=D D is the directory where + --with-gc=D D is the directory where Boehm garbage collecting library is installed - --with-pcre=D D is the directory where + --with-pcre=D D is the directory where PCRE library is installed - --with-xml=D D is the directory where + --with-xml=D D is the directory where Gnome XML libraries are installed --with-glib-config=FILE FILE is glib library configuration file (search for glib*-config) @@ -910,7 +911,7 @@ Optional Packages: \"--with-sendmail=COMMAND\" forces this command to send mail. example: \"--with-sendmail=/usr/sbin/sendmail -t\" (makes parser ignore user-defined sendmail commands) - --with-apache=FILE is the full path for APXS + --with-apache=FILE FILE is the full path for APXS builds apache DSO module using apxs --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use both] @@ -1882,19 +1883,6 @@ host_os=`echo $ac_cv_host | sed 's/^\([^ -PARSER_VERSION="$VERSION (compiled on $host)" -echo "/* automatically generated by configure */" > $srcdir/src/include/pa_version.h.new -echo "/* edit configure.in to change version number */" >> $srcdir/src/include/pa_version.h.new -echo "#define PARSER_VERSION \"$PARSER_VERSION\"" >> $srcdir/src/include/pa_version.h.new -cmp $srcdir/src/include/pa_version.h.new $srcdir/src/include/pa_version.h >/dev/null 2>&1 -if test $? -ne 0 ; then - mv $srcdir/src/include/pa_version.h.new $srcdir/src/include/pa_version.h - { echo "$as_me:$LINENO: WARNING: Updated $srcdir/src/include/pa_version.h" >&5 -echo "$as_me: WARNING: Updated $srcdir/src/include/pa_version.h" >&2;} -else - rm -f $srcdir/src/include/pa_version.h.new -fi - case $host_os in *cygwin* ) @@ -3721,6 +3709,32 @@ _ACEOF fi; +# Check whether --enable-version-update or --disable-version-update was given. +if test "${enable_version_update+set}" = set; then + enableval="$enable_version_update" + + VERSION_UPDATE=$enableval + + +fi; + +if test "$VERSION_UPDATE" != "no"; then + PARSER_VERSION="$VERSION (compiled on $host)" + echo "/* automatically generated by configure */" > $srcdir/src/include/pa_version.h.new + echo "/* edit configure.in to change version number */" >> $srcdir/src/include/pa_version.h.new + echo "#define PARSER_VERSION \"$PARSER_VERSION\"" >> $srcdir/src/include/pa_version.h.new + cmp $srcdir/src/include/pa_version.h.new $srcdir/src/include/pa_version.h >/dev/null 2>&1 + if test $? -ne 0 ; then + mv $srcdir/src/include/pa_version.h.new $srcdir/src/include/pa_version.h + echo "updated $srcdir/src/include/pa_version.h" + else + rm -f $srcdir/src/include/pa_version.h.new + fi +else + echo "skipped $srcdir/src/include/pa_version.h update" +fi + + # Check whether --enable-safe-mode or --disable-safe-mode was given. if test "${enable_safe_mode+set}" = set; then enableval="$enable_safe_mode"