--- parser3/configure 2002/02/05 14:57:51 1.3 +++ parser3/configure 2002/02/08 10:20:08 1.6 @@ -792,19 +792,19 @@ fi -P3S=`pwd` +P3S=`cd $srcdir ; pwd` PARSER_VERSION=$VERSION -echo "/* automatically generated by configure */" > src/include/pa_version.h.new -echo "/* edit configure.in to change version number */" >> src/include/pa_version.h.new -echo "#define PARSER_VERSION \"$PARSER_VERSION\"" >> src/include/pa_version.h.new -cmp src/include/pa_version.h.new src/include/pa_version.h >/dev/null 2>&1 +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 - rm -f src/include/pa_version.h && mv src/include/pa_version.h.new src/include/pa_version.h && \ - echo 'Updated src/include/pa_version.h' + rm -f $srcdir/src/include/pa_version.h && 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 src/include/pa_version.h.new + rm -f $srcdir/src/include/pa_version.h.new fi # Find a good install program. We prefer a C program (faster), @@ -2689,17 +2689,18 @@ round \ sign \ flock \ _locking \ +fcntl \ lockf \ getrusage do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:2698: checking for $ac_func" >&5 +echo "configure:2699: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -2754,12 +2755,12 @@ done for ac_func in qsort do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:2758: checking for $ac_func" >&5 +echo "configure:2759: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -2813,12 +2814,12 @@ done for ac_func in select do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:2817: checking for $ac_func" >&5 +echo "configure:2818: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -2871,9 +2872,9 @@ done echo $ac_n "checking whether compiler supports pragma pack""... $ac_c" 1>&6 -echo "configure:2875: checking whether compiler supports pragma pack" >&5 +echo "configure:2876: checking whether compiler supports pragma pack" >&5 cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* echo "$ac_t""yes" 1>&6 @@ -2906,9 +2907,9 @@ fi rm -f conftest* echo $ac_n "checking for set_new_handler""... $ac_c" 1>&6 -echo "configure:2910: checking for set_new_handler" >&5 +echo "configure:2911: checking for set_new_handler" >&5 cat > conftest.$ac_ext < @@ -2920,7 +2921,7 @@ std::set_new_handler(failed_new); ; return 0; } EOF -if { (eval echo configure:2924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* echo "$ac_t""yes" 1>&6 @@ -2942,7 +2943,7 @@ rm -f conftest* APACHE_LIBS=$LIBS echo $ac_n "checking for __builtin_new in -lstdc++""... $ac_c" 1>&6 -echo "configure:2946: checking for __builtin_new in -lstdc++" >&5 +echo "configure:2947: checking for __builtin_new in -lstdc++" >&5 ac_lib_var=`echo stdc++'_'__builtin_new | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -2950,7 +2951,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lstdc++ $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -2979,7 +2980,7 @@ LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 - APACHE_LIBS="$APACHE_LIBS -lstdc++" + APACHE_LIBS="$APACHE_LIBS -lstdc++ -lm" else echo "$ac_t""no" 1>&6 @@ -2990,8 +2991,11 @@ fi # expand apostrophed +e_prefix=$prefix +test "x$e_prefix" = xNONE && e_prefix=$ac_default_prefix + e_sysconfdir=$sysconfdir -test "$e_sysconfdir" = "\${prefix}/etc" && e_sysconfdir="${prefix}/etc" +test "$e_sysconfdir" = "\${prefix}/etc" && e_sysconfdir="${e_prefix}/etc" rootconfigdir=$e_sysconfdir @@ -3122,7 +3126,7 @@ done ac_given_srcdir=$srcdir ac_given_INSTALL="$INSTALL" -trap 'rm -fr `echo "Makefile src/Makefile src/libltdl/Makefile src/types/Makefile src/classes/Makefile src/classes/gd/Makefile src/main/Makefile src/pcre/Makefile src/targets/Makefile src/targets/cgi/pa_config_paths.h src/targets/cgi/Makefile src/targets/apache13/Makefile src/targets/apache13/p3runConfigure etc/parser3.charsets/Makefile etc/parser3.conf etc/Makefile src/include/pa_config_auto.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 +trap 'rm -fr `echo "Makefile src/Makefile src/libltdl/Makefile src/types/Makefile src/classes/Makefile src/classes/gd/Makefile src/classes/smtp/Makefile src/include/Makefile src/main/Makefile src/sql/Makefile src/patches/Makefile src/pcre/Makefile src/targets/Makefile src/targets/cgi/pa_config_paths.h src/targets/cgi/Makefile src/targets/apache13/Makefile src/targets/apache13/p3runConfigure src/targets/isapi/Makefile etc/parser3.charsets/Makefile etc/parser3.conf etc/Makefile src/include/pa_config_auto.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 EOF cat >> $CONFIG_STATUS <> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then