diff --git a/CHANGES b/CHANGES index 8da9b97..84d655e 100644 --- a/CHANGES +++ b/CHANGES @@ -1,11 +1,14 @@ --- $MawkId: CHANGES,v 1.78 2009/12/16 01:03:10 tom Exp $ +-- $MawkId: CHANGES,v 1.79 2009/12/16 09:35:17 tom Exp $ Changes by Thomas E Dickey -20091215 +20091216 + bump version to 1.3.4 - + add check for floating-point underflow exceptions + + add configure check for functions used for pipe/system calls, e.g., + for MinGW where these are absent. + + + add runtime check for floating-point underflow exceptions + fix an old 1.3.3 bug in re_split(), which did not check properly for the end of buffer; this broke on Tru64. diff --git a/MANIFEST b/MANIFEST index 5dc81ca..beccd96 100644 --- a/MANIFEST +++ b/MANIFEST @@ -1,4 +1,4 @@ -MANIFEST for mawk, version t20091213d +MANIFEST for mawk, version t20091213e -------------------------------------------------------------------------------- MANIFEST this file ACKNOWLEDGMENT acknowledgements diff --git a/bi_funct.c b/bi_funct.c index d4ba4d6..b6a1bd3 100644 --- a/bi_funct.c +++ b/bi_funct.c @@ -10,7 +10,7 @@ the GNU General Public License, version 2, 1991. ********************************************/ /* - * $MawkId: bi_funct.c,v 1.20 2009/12/13 19:26:02 Jonathan.Nieder Exp $ + * $MawkId: bi_funct.c,v 1.21 2009/12/16 09:54:37 tom Exp $ * @Log: bi_funct.c,v @ * Revision 1.9 1996/01/14 17:16:11 mike * flush_all_output() before system() @@ -664,11 +664,10 @@ bi_fflush(CELL * sp) return sp; } -#ifdef HAVE_REAL_PIPES - CELL * -bi_system(CELL * sp) +bi_system(CELL * sp GCC_UNUSED) { +#ifdef HAVE_REAL_PIPES int pid; unsigned ret_val; @@ -699,15 +698,7 @@ bi_system(CELL * sp) sp->type = C_DOUBLE; sp->dval = (double) ret_val; return sp; -} - -#endif /* HAVE_REAL_PIPES */ - -#ifdef MSDOS - -CELL * -bi_system(CELL * sp) -{ +#elif defined(MSDOS) int retval; if (sp->type < C_STRING) @@ -717,9 +708,10 @@ bi_system(CELL * sp) sp->type = C_DOUBLE; sp->dval = (double) retval; return sp; -} - +#else + return 0; #endif +} /* getline() */ diff --git a/config_h.in b/config_h.in index a86a371..2066971 100644 --- a/config_h.in +++ b/config_h.in @@ -1,5 +1,5 @@ /* - * $MawkId: config_h.in,v 1.10 2009/12/15 01:40:42 tom Exp $ + * $MawkId: config_h.in,v 1.11 2009/12/16 09:39:07 tom Exp $ * vile:cmode * template for config.h */ @@ -12,10 +12,14 @@ #undef GCC_SCANF #undef GCC_SCANFLIKE #undef GCC_UNUSED +#undef HAVE_FORK +#undef HAVE_PIPE #undef HAVE_REAL_PIPES #undef HAVE_SIGACTION #undef HAVE_SIGINFO_H #undef HAVE_STRTOD_OVF_BUG +#undef HAVE_SYS_WAIT_H +#undef HAVE_WAIT #undef LOCALE #undef MAX__INT #undef MAX__LONG diff --git a/configure b/configure index a641eca..56be440 100755 --- a/configure +++ b/configure @@ -2523,11 +2523,63 @@ fi echo "$as_me:2523: result: $with_builtin_regex" >&5 echo "${ECHO_T}$with_builtin_regex" >&6 +if test "x${with_builtin_regex}" = xno; then + +echo "$as_me:2528: checking for regex.h" >&5 +echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 +if test "${ac_cv_header_regex_h+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line 2534 "configure" +#include "confdefs.h" +#include +_ACEOF +if { (eval echo "$as_me:2538: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:2544: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + ac_cv_header_regex_h=yes +else + echo "$as_me: failed program was:" >&5 + cat conftest.$ac_ext >&5 + ac_cv_header_regex_h=no +fi +rm -f conftest.err conftest.$ac_ext +fi +echo "$as_me:2563: result: $ac_cv_header_regex_h" >&5 +echo "${ECHO_T}$ac_cv_header_regex_h" >&6 +if test $ac_cv_header_regex_h = yes; then + cf_have_regex_h=yes +else + cf_have_regex_h=no +fi + + if test "$cf_have_regex_h" != yes ; then + { { echo "$as_me:2572: error: could not find regex.h" >&5 +echo "$as_me: error: could not find regex.h" >&2;} + { (exit 1); exit 1; }; } + fi +fi + for ac_prog in 'bison -y' byacc do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -echo "$as_me:2530: checking for $ac_word" >&5 +echo "$as_me:2582: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_YACC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -2542,7 +2594,7 @@ for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. $as_executable_p "$ac_dir/$ac_word" || continue ac_cv_prog_YACC="$ac_prog" -echo "$as_me:2545: found $ac_dir/$ac_word" >&5 +echo "$as_me:2597: found $ac_dir/$ac_word" >&5 break done @@ -2550,10 +2602,10 @@ fi fi YACC=$ac_cv_prog_YACC if test -n "$YACC"; then - echo "$as_me:2553: result: $YACC" >&5 + echo "$as_me:2605: result: $YACC" >&5 echo "${ECHO_T}$YACC" >&6 else - echo "$as_me:2556: result: no" >&5 + echo "$as_me:2608: result: no" >&5 echo "${ECHO_T}no" >&6 fi @@ -2561,7 +2613,7 @@ fi done test -n "$YACC" || YACC="yacc" -echo "$as_me:2564: checking for ${CC-cc} option to accept ANSI C" >&5 +echo "$as_me:2616: checking for ${CC-cc} option to accept ANSI C" >&5 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6 if test "${cf_cv_ansi_cc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -2655,7 +2707,7 @@ if test -n "$cf_new_extra_cppflags" ; then fi cat >conftest.$ac_ext <<_ACEOF -#line 2658 "configure" +#line 2710 "configure" #include "confdefs.h" #ifndef CC_HAS_PROTOS @@ -2676,16 +2728,16 @@ main () } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:2679: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:2731: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:2682: \$? = $ac_status" >&5 + echo "$as_me:2734: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:2685: \"$ac_try\"") >&5 + { (eval echo "$as_me:2737: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:2688: \$? = $ac_status" >&5 + echo "$as_me:2740: \$? = $ac_status" >&5 (exit $ac_status); }; }; then cf_cv_ansi_cc="$cf_arg"; break else @@ -2698,7 +2750,7 @@ CFLAGS="$cf_save_CFLAGS" CPPFLAGS="$cf_save_CPPFLAGS" fi -echo "$as_me:2701: result: $cf_cv_ansi_cc" >&5 +echo "$as_me:2753: result: $cf_cv_ansi_cc" >&5 echo "${ECHO_T}$cf_cv_ansi_cc" >&6 if test "$cf_cv_ansi_cc" != "no"; then @@ -2781,7 +2833,7 @@ fi fi if test "$cf_cv_ansi_cc" = "no"; then - { { echo "$as_me:2784: error: Your compiler does not appear to recognize prototypes. + { { echo "$as_me:2836: error: Your compiler does not appear to recognize prototypes. You have the following choices: a. adjust your compiler options b. get an up-to-date compiler @@ -2794,7 +2846,7 @@ You have the following choices: { (exit 1); exit 1; }; } fi -echo "$as_me:2797: checking if $CC -U and -D options work together" >&5 +echo "$as_me:2849: checking if $CC -U and -D options work together" >&5 echo $ECHO_N "checking if $CC -U and -D options work together... $ECHO_C" >&6 if test "${cf_cv_cc_u_d_options+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -2803,7 +2855,7 @@ else cf_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="-UU_D_OPTIONS -DU_D_OPTIONS -DD_U_OPTIONS -UD_U_OPTIONS" cat >conftest.$ac_ext <<_ACEOF -#line 2806 "configure" +#line 2858 "configure" #include "confdefs.h" int @@ -2822,16 +2874,16 @@ make a defined-error } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:2825: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:2877: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:2828: \$? = $ac_status" >&5 + echo "$as_me:2880: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:2831: \"$ac_try\"") >&5 + { (eval echo "$as_me:2883: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:2834: \$? = $ac_status" >&5 + echo "$as_me:2886: \$? = $ac_status" >&5 (exit $ac_status); }; }; then cf_cv_cc_u_d_options=yes @@ -2845,7 +2897,7 @@ rm -f conftest.$ac_objext conftest.$ac_ext CPPFLAGS="$cf_save_CPPFLAGS" fi -echo "$as_me:2848: result: $cf_cv_cc_u_d_options" >&5 +echo "$as_me:2900: result: $cf_cv_cc_u_d_options" >&5 echo "${ECHO_T}$cf_cv_cc_u_d_options" >&6 cf_XOPEN_SOURCE=500 @@ -2874,14 +2926,14 @@ irix[56].*) #(vi ;; linux*|gnu*|mint*|k*bsd*-gnu) #(vi -echo "$as_me:2877: checking if we must define _GNU_SOURCE" >&5 +echo "$as_me:2929: checking if we must define _GNU_SOURCE" >&5 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6 if test "${cf_cv_gnu_source+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 2884 "configure" +#line 2936 "configure" #include "confdefs.h" #include int @@ -2896,16 +2948,16 @@ make an error } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:2899: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:2951: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:2902: \$? = $ac_status" >&5 + echo "$as_me:2954: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:2905: \"$ac_try\"") >&5 + { (eval echo "$as_me:2957: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:2908: \$? = $ac_status" >&5 + echo "$as_me:2960: \$? = $ac_status" >&5 (exit $ac_status); }; }; then cf_cv_gnu_source=no else @@ -2914,7 +2966,7 @@ cat conftest.$ac_ext >&5 cf_save="$CPPFLAGS" CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" cat >conftest.$ac_ext <<_ACEOF -#line 2917 "configure" +#line 2969 "configure" #include "confdefs.h" #include int @@ -2929,16 +2981,16 @@ make an error } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:2932: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:2984: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:2935: \$? = $ac_status" >&5 + echo "$as_me:2987: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:2938: \"$ac_try\"") >&5 + { (eval echo "$as_me:2990: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:2941: \$? = $ac_status" >&5 + echo "$as_me:2993: \$? = $ac_status" >&5 (exit $ac_status); }; }; then cf_cv_gnu_source=no else @@ -2953,7 +3005,7 @@ fi rm -f conftest.$ac_objext conftest.$ac_ext fi -echo "$as_me:2956: result: $cf_cv_gnu_source" >&5 +echo "$as_me:3008: result: $cf_cv_gnu_source" >&5 echo "${ECHO_T}$cf_cv_gnu_source" >&6 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" @@ -2980,14 +3032,14 @@ solaris*) #(vi CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__" ;; *) - echo "$as_me:2983: checking if we should define _XOPEN_SOURCE" >&5 + echo "$as_me:3035: checking if we should define _XOPEN_SOURCE" >&5 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6 if test "${cf_cv_xopen_source+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 2990 "configure" +#line 3042 "configure" #include "confdefs.h" #include int @@ -3002,16 +3054,16 @@ make an error } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:3005: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:3057: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:3008: \$? = $ac_status" >&5 + echo "$as_me:3060: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:3011: \"$ac_try\"") >&5 + { (eval echo "$as_me:3063: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:3014: \$? = $ac_status" >&5 + echo "$as_me:3066: \$? = $ac_status" >&5 (exit $ac_status); }; }; then cf_cv_xopen_source=no else @@ -3020,7 +3072,7 @@ cat conftest.$ac_ext >&5 cf_save="$CPPFLAGS" CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" cat >conftest.$ac_ext <<_ACEOF -#line 3023 "configure" +#line 3075 "configure" #include "confdefs.h" #include int @@ -3035,16 +3087,16 @@ make an error } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:3038: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:3090: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:3041: \$? = $ac_status" >&5 + echo "$as_me:3093: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:3044: \"$ac_try\"") >&5 + { (eval echo "$as_me:3096: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:3047: \$? = $ac_status" >&5 + echo "$as_me:3099: \$? = $ac_status" >&5 (exit $ac_status); }; }; then cf_cv_xopen_source=no else @@ -3059,7 +3111,7 @@ fi rm -f conftest.$ac_objext conftest.$ac_ext fi -echo "$as_me:3062: result: $cf_cv_xopen_source" >&5 +echo "$as_me:3114: result: $cf_cv_xopen_source" >&5 echo "${ECHO_T}$cf_cv_xopen_source" >&6 if test "$cf_cv_xopen_source" != no ; then @@ -3093,16 +3145,16 @@ cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \ sed -e 's/-[UD]_POSIX_C_SOURCE\(=[^ ]*\)\?[ ]/ /g' \ -e 's/-[UD]_POSIX_C_SOURCE\(=[^ ]*\)\?$//g'` -echo "$as_me:3096: checking if we should define _POSIX_C_SOURCE" >&5 +echo "$as_me:3148: checking if we should define _POSIX_C_SOURCE" >&5 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6 if test "${cf_cv_posix_c_source+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else -echo "${as_me-configure}:3102: testing if the symbol is already defined go no further ..." 1>&5 +echo "${as_me-configure}:3154: testing if the symbol is already defined go no further ..." 1>&5 cat >conftest.$ac_ext <<_ACEOF -#line 3105 "configure" +#line 3157 "configure" #include "confdefs.h" #include int @@ -3117,16 +3169,16 @@ make an error } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:3120: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:3172: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:3123: \$? = $ac_status" >&5 + echo "$as_me:3175: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:3126: \"$ac_try\"") >&5 + { (eval echo "$as_me:3178: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:3129: \$? = $ac_status" >&5 + echo "$as_me:3181: \$? = $ac_status" >&5 (exit $ac_status); }; }; then cf_cv_posix_c_source=no else @@ -3147,7 +3199,7 @@ cf_want_posix_source=no esac if test "$cf_want_posix_source" = yes ; then cat >conftest.$ac_ext <<_ACEOF -#line 3150 "configure" +#line 3202 "configure" #include "confdefs.h" #include int @@ -3162,16 +3214,16 @@ make an error } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:3165: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:3217: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:3168: \$? = $ac_status" >&5 + echo "$as_me:3220: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:3171: \"$ac_try\"") >&5 + { (eval echo "$as_me:3223: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:3174: \$? = $ac_status" >&5 + echo "$as_me:3226: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else @@ -3182,15 +3234,15 @@ fi rm -f conftest.$ac_objext conftest.$ac_ext fi -echo "${as_me-configure}:3185: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5 +echo "${as_me-configure}:3237: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5 CFLAGS="$cf_trim_CFLAGS" CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source" -echo "${as_me-configure}:3190: testing if the second compile does not leave our definition intact error ..." 1>&5 +echo "${as_me-configure}:3242: testing if the second compile does not leave our definition intact error ..." 1>&5 cat >conftest.$ac_ext <<_ACEOF -#line 3193 "configure" +#line 3245 "configure" #include "confdefs.h" #include int @@ -3205,16 +3257,16 @@ make an error } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:3208: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:3260: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:3211: \$? = $ac_status" >&5 + echo "$as_me:3263: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:3214: \"$ac_try\"") >&5 + { (eval echo "$as_me:3266: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:3217: \$? = $ac_status" >&5 + echo "$as_me:3269: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else @@ -3230,7 +3282,7 @@ fi rm -f conftest.$ac_objext conftest.$ac_ext fi -echo "$as_me:3233: result: $cf_cv_posix_c_source" >&5 +echo "$as_me:3285: result: $cf_cv_posix_c_source" >&5 echo "${ECHO_T}$cf_cv_posix_c_source" >&6 if test "$cf_cv_posix_c_source" != no ; then @@ -3253,23 +3305,23 @@ if test "${cf_cv_size_t_SIZE_T_STDDEF_H+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - echo "$as_me:3256: checking for stddef.h" >&5 + echo "$as_me:3308: checking for stddef.h" >&5 echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6 if test "${ac_cv_header_stddef_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 3262 "configure" +#line 3314 "configure" #include "confdefs.h" #include _ACEOF -if { (eval echo "$as_me:3266: \"$ac_cpp conftest.$ac_ext\"") >&5 +if { (eval echo "$as_me:3318: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? egrep -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - echo "$as_me:3272: \$? = $ac_status" >&5 + echo "$as_me:3324: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag @@ -3288,21 +3340,21 @@ else fi rm -f conftest.err conftest.$ac_ext fi -echo "$as_me:3291: result: $ac_cv_header_stddef_h" >&5 +echo "$as_me:3343: result: $ac_cv_header_stddef_h" >&5 echo "${ECHO_T}$ac_cv_header_stddef_h" >&6 if test $ac_cv_header_stddef_h = yes; then cf_mawk_check_size=ok fi if test "x$cf_mawk_check_size" = xok ; then - echo "$as_me:3298: checking if size_t is declared in stddef.h" >&5 + echo "$as_me:3350: checking if size_t is declared in stddef.h" >&5 echo $ECHO_N "checking if size_t is declared in stddef.h... $ECHO_C" >&6 if test "${cf_cv_size_t_SIZE_T_STDDEF_H+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 3305 "configure" +#line 3357 "configure" #include "confdefs.h" #include int @@ -3314,16 +3366,16 @@ size_t *n } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:3317: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:3369: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:3320: \$? = $ac_status" >&5 + echo "$as_me:3372: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:3323: \"$ac_try\"") >&5 + { (eval echo "$as_me:3375: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:3326: \$? = $ac_status" >&5 + echo "$as_me:3378: \$? = $ac_status" >&5 (exit $ac_status); }; }; then cf_cv_size_t_SIZE_T_STDDEF_H=yes else @@ -3333,7 +3385,7 @@ cf_cv_size_t_SIZE_T_STDDEF_H=no fi rm -f conftest.$ac_objext conftest.$ac_ext fi -echo "$as_me:3336: result: $cf_cv_size_t_SIZE_T_STDDEF_H" >&5 +echo "$as_me:3388: result: $cf_cv_size_t_SIZE_T_STDDEF_H" >&5 echo "${ECHO_T}$cf_cv_size_t_SIZE_T_STDDEF_H" >&6 fi @@ -3354,23 +3406,23 @@ if test "${cf_cv_size_t_SIZE_T_TYPES_H+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - echo "$as_me:3357: checking for sys/types.h" >&5 + echo "$as_me:3409: checking for sys/types.h" >&5 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6 if test "${ac_cv_header_sys_types_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 3363 "configure" +#line 3415 "configure" #include "confdefs.h" #include _ACEOF -if { (eval echo "$as_me:3367: \"$ac_cpp conftest.$ac_ext\"") >&5 +if { (eval echo "$as_me:3419: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? egrep -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - echo "$as_me:3373: \$? = $ac_status" >&5 + echo "$as_me:3425: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag @@ -3389,21 +3441,21 @@ else fi rm -f conftest.err conftest.$ac_ext fi -echo "$as_me:3392: result: $ac_cv_header_sys_types_h" >&5 +echo "$as_me:3444: result: $ac_cv_header_sys_types_h" >&5 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6 if test $ac_cv_header_sys_types_h = yes; then cf_mawk_check_size=ok fi if test "x$cf_mawk_check_size" = xok ; then - echo "$as_me:3399: checking if size_t is declared in sys/types.h" >&5 + echo "$as_me:3451: checking if size_t is declared in sys/types.h" >&5 echo $ECHO_N "checking if size_t is declared in sys/types.h... $ECHO_C" >&6 if test "${cf_cv_size_t_SIZE_T_TYPES_H+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 3406 "configure" +#line 3458 "configure" #include "confdefs.h" #include int @@ -3415,16 +3467,16 @@ size_t *n } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:3418: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:3470: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:3421: \$? = $ac_status" >&5 + echo "$as_me:3473: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:3424: \"$ac_try\"") >&5 + { (eval echo "$as_me:3476: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:3427: \$? = $ac_status" >&5 + echo "$as_me:3479: \$? = $ac_status" >&5 (exit $ac_status); }; }; then cf_cv_size_t_SIZE_T_TYPES_H=yes else @@ -3434,7 +3486,7 @@ cf_cv_size_t_SIZE_T_TYPES_H=no fi rm -f conftest.$ac_objext conftest.$ac_ext fi -echo "$as_me:3437: result: $cf_cv_size_t_SIZE_T_TYPES_H" >&5 +echo "$as_me:3489: result: $cf_cv_size_t_SIZE_T_TYPES_H" >&5 echo "${ECHO_T}$cf_cv_size_t_SIZE_T_TYPES_H" >&6 fi @@ -3449,14 +3501,14 @@ EOF fi fi -echo "$as_me:3452: checking for setlocale()" >&5 +echo "$as_me:3504: checking for setlocale()" >&5 echo $ECHO_N "checking for setlocale()... $ECHO_C" >&6 if test "${cf_cv_locale+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 3459 "configure" +#line 3511 "configure" #include "confdefs.h" #include int @@ -3468,16 +3520,16 @@ setlocale(LC_ALL, "") } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:3471: \"$ac_link\"") >&5 +if { (eval echo "$as_me:3523: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:3474: \$? = $ac_status" >&5 + echo "$as_me:3526: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:3477: \"$ac_try\"") >&5 + { (eval echo "$as_me:3529: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:3480: \$? = $ac_status" >&5 + echo "$as_me:3532: \$? = $ac_status" >&5 (exit $ac_status); }; }; then cf_cv_locale=yes else @@ -3489,21 +3541,21 @@ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext fi -echo "$as_me:3492: result: $cf_cv_locale" >&5 +echo "$as_me:3544: result: $cf_cv_locale" >&5 echo "${ECHO_T}$cf_cv_locale" >&6 test $cf_cv_locale = yes && { cat >>confdefs.h <<\EOF #define LOCALE 1 EOF } -echo "$as_me:3499: checking if external environ is declared" >&5 +echo "$as_me:3551: checking if external environ is declared" >&5 echo $ECHO_N "checking if external environ is declared... $ECHO_C" >&6 if test "${cf_cv_dcl_environ+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 3506 "configure" +#line 3558 "configure" #include "confdefs.h" #ifdef HAVE_STDLIB_H @@ -3519,16 +3571,16 @@ int x = (int) environ } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:3522: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:3574: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:3525: \$? = $ac_status" >&5 + echo "$as_me:3577: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:3528: \"$ac_try\"") >&5 + { (eval echo "$as_me:3580: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:3531: \$? = $ac_status" >&5 + echo "$as_me:3583: \$? = $ac_status" >&5 (exit $ac_status); }; }; then cf_cv_dcl_environ=yes else @@ -3539,7 +3591,7 @@ fi rm -f conftest.$ac_objext conftest.$ac_ext fi -echo "$as_me:3542: result: $cf_cv_dcl_environ" >&5 +echo "$as_me:3594: result: $cf_cv_dcl_environ" >&5 echo "${ECHO_T}$cf_cv_dcl_environ" >&6 if test "$cf_cv_dcl_environ" = no ; then @@ -3554,14 +3606,14 @@ fi # It's possible (for near-UNIX clones) that the data doesn't exist -echo "$as_me:3557: checking if external environ exists" >&5 +echo "$as_me:3609: checking if external environ exists" >&5 echo $ECHO_N "checking if external environ exists... $ECHO_C" >&6 if test "${cf_cv_have_environ+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 3564 "configure" +#line 3616 "configure" #include "confdefs.h" #undef environ @@ -3576,16 +3628,16 @@ environ = 2 } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:3579: \"$ac_link\"") >&5 +if { (eval echo "$as_me:3631: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:3582: \$? = $ac_status" >&5 + echo "$as_me:3634: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:3585: \"$ac_try\"") >&5 + { (eval echo "$as_me:3637: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:3588: \$? = $ac_status" >&5 + echo "$as_me:3640: \$? = $ac_status" >&5 (exit $ac_status); }; }; then cf_cv_have_environ=yes else @@ -3596,7 +3648,7 @@ fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext fi -echo "$as_me:3599: result: $cf_cv_have_environ" >&5 +echo "$as_me:3651: result: $cf_cv_have_environ" >&5 echo "${ECHO_T}$cf_cv_have_environ" >&6 if test "$cf_cv_have_environ" = yes ; then @@ -3609,359 +3661,16 @@ EOF fi -cat >>confdefs.h <<\EOF -#define HAVE_REAL_PIPES 1 -EOF - -for cf_func in fcntl.h errno.h math.h time.h stdarg.h stdlib.h string.h -do - - as_ac_Header=`echo "ac_cv_header_${cf_func}" | $as_tr_sh` -echo "$as_me:3620: checking for ${cf_func}" >&5 -echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6 -if eval "test \"\${$as_ac_Header+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 3626 "configure" -#include "confdefs.h" -#include <${cf_func}> -_ACEOF -if { (eval echo "$as_me:3630: \"$ac_cpp conftest.$ac_ext\"") >&5 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 - ac_status=$? - egrep -v '^ *\+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:3636: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null; then - if test -s conftest.err; then - ac_cpp_err=$ac_c_preproc_warn_flag - else - ac_cpp_err= - fi -else - ac_cpp_err=yes -fi -if test -z "$ac_cpp_err"; then - eval "$as_ac_Header=yes" -else - echo "$as_me: failed program was:" >&5 - cat conftest.$ac_ext >&5 - eval "$as_ac_Header=no" -fi -rm -f conftest.err conftest.$ac_ext -fi -echo "$as_me:3655: result: `eval echo '${'$as_ac_Header'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 -if test `eval echo '${'$as_ac_Header'}'` = yes; then - : -else - -cf_check_header=`echo "NO_${cf_func}" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` - - cat >>confdefs.h <<\EOF -#define $cf_check_header 1 -EOF - -fi - -done - -for cf_func in memcpy strchr strerror vfprintf strtod fmod matherr -do - - as_ac_var=`echo "ac_cv_func_${cf_func}" | $as_tr_sh` -echo "$as_me:3675: checking for ${cf_func}" >&5 -echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6 -if eval "test \"\${$as_ac_var+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 3681 "configure" -#include "confdefs.h" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char ${cf_func} (); below. */ -#include -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char ${cf_func} (); -char (*f) (); - -int -main () -{ -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_${cf_func}) || defined (__stub___${cf_func}) -choke me -#else -f = ${cf_func}; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:3712: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:3715: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:3718: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:3721: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -eval "$as_ac_var=no" -fi -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -fi -echo "$as_me:3731: result: `eval echo '${'$as_ac_var'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 -if test `eval echo '${'$as_ac_var'}'` = yes; then - : -else - -cf_check_func=`echo "NO_${cf_func}" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` - - cat >>confdefs.h <&5 -echo $ECHO_N "checking for limits.h... $ECHO_C" >&6 -if test "${ac_cv_header_limits_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 3753 "configure" -#include "confdefs.h" -#include -_ACEOF -if { (eval echo "$as_me:3757: \"$ac_cpp conftest.$ac_ext\"") >&5 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 - ac_status=$? - egrep -v '^ *\+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:3763: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null; then - if test -s conftest.err; then - ac_cpp_err=$ac_c_preproc_warn_flag - else - ac_cpp_err= - fi -else - ac_cpp_err=yes -fi -if test -z "$ac_cpp_err"; then - ac_cv_header_limits_h=yes -else - echo "$as_me: failed program was:" >&5 - cat conftest.$ac_ext >&5 - ac_cv_header_limits_h=no -fi -rm -f conftest.err conftest.$ac_ext -fi -echo "$as_me:3782: result: $ac_cv_header_limits_h" >&5 -echo "${ECHO_T}$ac_cv_header_limits_h" >&6 -if test $ac_cv_header_limits_h = yes; then - cf_limits_h=yes -fi - -if test "$cf_limits_h" = yes ; then : -else -echo "$as_me:3790: checking for values.h" >&5 -echo $ECHO_N "checking for values.h... $ECHO_C" >&6 -if test "${ac_cv_header_values_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 3796 "configure" -#include "confdefs.h" -#include -_ACEOF -if { (eval echo "$as_me:3800: \"$ac_cpp conftest.$ac_ext\"") >&5 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 - ac_status=$? - egrep -v '^ *\+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:3806: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null; then - if test -s conftest.err; then - ac_cpp_err=$ac_c_preproc_warn_flag - else - ac_cpp_err= - fi -else - ac_cpp_err=yes -fi -if test -z "$ac_cpp_err"; then - ac_cv_header_values_h=yes -else - echo "$as_me: failed program was:" >&5 - cat conftest.$ac_ext >&5 - ac_cv_header_values_h=no -fi -rm -f conftest.err conftest.$ac_ext -fi -echo "$as_me:3825: result: $ac_cv_header_values_h" >&5 -echo "${ECHO_T}$ac_cv_header_values_h" >&6 -if test $ac_cv_header_values_h = yes; then - cf_values_h=yes -fi - - if test "$cf_values_h" = yes ; then - if test "$cross_compiling" = yes; then - { { echo "$as_me:3833: error: cannot run test program while cross compiling" >&5 -echo "$as_me: error: cannot run test program while cross compiling" >&2;} - { (exit 1); exit 1; }; } -else - cat >conftest.$ac_ext <<_ACEOF -#line 3838 "configure" -#include "confdefs.h" -#include -#include -int main() -{ FILE *out = fopen("conftest.out", "w") ; - unsigned max_uint = 0; - if ( ! out ) exit(1) ; - fprintf(out, "MAX__INT 0x%x\n", MAXINT) ; - fprintf(out, "MAX__LONG 0x%lx\n", MAXLONG) ; -#ifdef MAXUINT - max_uint = MAXUINT; /* not likely (SunOS/Solaris lacks it) */ -#else - max_uint = MAXINT; - max_uint <<= 1; - max_uint |= 1; -#endif - fprintf(out, "MAX__UINT 0x%lx\n", max_uint) ; - exit(0) ; return(0) ; -} - -_ACEOF -rm -f conftest$ac_exeext -if { (eval echo "$as_me:3861: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:3864: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (eval echo "$as_me:3866: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:3869: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - cf_maxint_set=yes -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -{ { echo "$as_me:3876: error: C program to compute maxint and maxlong failed. -Please send bug report to dickey@invisible-island.net." >&5 -echo "$as_me: error: C program to compute maxint and maxlong failed. -Please send bug report to dickey@invisible-island.net." >&2;} - { (exit 1); exit 1; }; } -fi -rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi - fi -if test "x$cf_maxint_set" != xyes ; then -# compute it -- assumes two's complement -if test "$cross_compiling" = yes; then - { { echo "$as_me:3888: error: cannot run test program while cross compiling" >&5 -echo "$as_me: error: cannot run test program while cross compiling" >&2;} - { (exit 1); exit 1; }; } -else - cat >conftest.$ac_ext <<_ACEOF -#line 3893 "configure" -#include "confdefs.h" -#include -int main() -{ int y ; unsigned yu; long yy ; - FILE *out ; - - if ( !(out = fopen("conftest.out","w")) ) exit(1) ; - /* find max int and max long */ - y = 0x1000 ; - while ( y > 0 ) { yu = y; y *= 2 ; } - fprintf(out,"MAX__INT 0x%x\n", y-1) ; - - yu = yu - 1; - yu <<= 1; - yu |= 1; - fprintf(out,"MAX__UINT 0x%x\n", y-1) ; - - yy = 0x1000 ; - while ( yy > 0 ) yy *= 2 ; - fprintf(out,"MAX__LONG 0x%lx\n", yy-1) ; - exit(0) ; - return 0 ; - } -_ACEOF -rm -f conftest$ac_exeext -if { (eval echo "$as_me:3919: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:3922: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (eval echo "$as_me:3924: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:3927: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - : -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -{ { echo "$as_me:3934: error: C program to compute maxint and maxlong failed. -Please send bug report to dickey@invisible-island.net." >&5 -echo "$as_me: error: C program to compute maxint and maxlong failed. -Please send bug report to dickey@invisible-island.net." >&2;} - { (exit 1); exit 1; }; } -fi -rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi -fi -cat conftest.out | while true -do - read name value - test -z "$name" && break - cat >>confdefs.h <&5 +echo "$as_me:3667: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 if eval "test \"\${$as_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 3964 "configure" +#line 3673 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. */ @@ -3992,16 +3701,16 @@ f = $ac_func; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:3995: \"$ac_link\"") >&5 +if { (eval echo "$as_me:3704: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:3998: \$? = $ac_status" >&5 + echo "$as_me:3707: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:4001: \"$ac_try\"") >&5 + { (eval echo "$as_me:3710: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:4004: \$? = $ac_status" >&5 + echo "$as_me:3713: \$? = $ac_status" >&5 (exit $ac_status); }; }; then eval "$as_ac_var=yes" else @@ -4011,7 +3720,7 @@ eval "$as_ac_var=no" fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext fi -echo "$as_me:4014: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "$as_me:3723: result: `eval echo '${'$as_ac_var'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <>confdefs.h <<\EOF +#define HAVE_REAL_PIPES 1 +EOF -for ac_header in siginfo.h +for ac_header in sys/wait.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -echo "$as_me:4029: checking for $ac_header" >&5 +echo "$as_me:3743: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 if eval "test \"\${$as_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 4035 "configure" +#line 3749 "configure" #include "confdefs.h" #include <$ac_header> _ACEOF -if { (eval echo "$as_me:4039: \"$ac_cpp conftest.$ac_ext\"") >&5 +if { (eval echo "$as_me:3753: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? egrep -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - echo "$as_me:4045: \$? = $ac_status" >&5 + echo "$as_me:3759: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag @@ -4061,7 +3775,465 @@ else fi rm -f conftest.err conftest.$ac_ext fi -echo "$as_me:4064: result: `eval echo '${'$as_ac_Header'}'`" >&5 +echo "$as_me:3778: result: `eval echo '${'$as_ac_Header'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 +if test `eval echo '${'$as_ac_Header'}'` = yes; then + cat >>confdefs.h <&5 +echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6 +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line 3798 "configure" +#include "confdefs.h" +#include <${cf_func}> +_ACEOF +if { (eval echo "$as_me:3802: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:3808: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + eval "$as_ac_Header=yes" +else + echo "$as_me: failed program was:" >&5 + cat conftest.$ac_ext >&5 + eval "$as_ac_Header=no" +fi +rm -f conftest.err conftest.$ac_ext +fi +echo "$as_me:3827: result: `eval echo '${'$as_ac_Header'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 +if test `eval echo '${'$as_ac_Header'}'` = yes; then + : +else + +cf_check_header=`echo "NO_${cf_func}" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` + + cat >>confdefs.h <<\EOF +#define $cf_check_header 1 +EOF + +fi + +done + +for cf_func in memcpy strchr strerror vfprintf strtod fmod matherr +do + + as_ac_var=`echo "ac_cv_func_${cf_func}" | $as_tr_sh` +echo "$as_me:3847: checking for ${cf_func}" >&5 +echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6 +if eval "test \"\${$as_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line 3853 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char ${cf_func} (); below. */ +#include +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char ${cf_func} (); +char (*f) (); + +int +main () +{ +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_${cf_func}) || defined (__stub___${cf_func}) +choke me +#else +f = ${cf_func}; +#endif + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:3884: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:3887: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:3890: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:3893: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "$as_ac_var=yes" +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +eval "$as_ac_var=no" +fi +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:3903: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 +if test `eval echo '${'$as_ac_var'}'` = yes; then + : +else + +cf_check_func=`echo "NO_${cf_func}" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` + + cat >>confdefs.h <&5 +echo $ECHO_N "checking for limits.h... $ECHO_C" >&6 +if test "${ac_cv_header_limits_h+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line 3925 "configure" +#include "confdefs.h" +#include +_ACEOF +if { (eval echo "$as_me:3929: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:3935: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + ac_cv_header_limits_h=yes +else + echo "$as_me: failed program was:" >&5 + cat conftest.$ac_ext >&5 + ac_cv_header_limits_h=no +fi +rm -f conftest.err conftest.$ac_ext +fi +echo "$as_me:3954: result: $ac_cv_header_limits_h" >&5 +echo "${ECHO_T}$ac_cv_header_limits_h" >&6 +if test $ac_cv_header_limits_h = yes; then + cf_limits_h=yes +fi + +if test "$cf_limits_h" = yes ; then : +else +echo "$as_me:3962: checking for values.h" >&5 +echo $ECHO_N "checking for values.h... $ECHO_C" >&6 +if test "${ac_cv_header_values_h+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line 3968 "configure" +#include "confdefs.h" +#include +_ACEOF +if { (eval echo "$as_me:3972: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:3978: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + ac_cv_header_values_h=yes +else + echo "$as_me: failed program was:" >&5 + cat conftest.$ac_ext >&5 + ac_cv_header_values_h=no +fi +rm -f conftest.err conftest.$ac_ext +fi +echo "$as_me:3997: result: $ac_cv_header_values_h" >&5 +echo "${ECHO_T}$ac_cv_header_values_h" >&6 +if test $ac_cv_header_values_h = yes; then + cf_values_h=yes +fi + + if test "$cf_values_h" = yes ; then + if test "$cross_compiling" = yes; then + { { echo "$as_me:4005: error: cannot run test program while cross compiling" >&5 +echo "$as_me: error: cannot run test program while cross compiling" >&2;} + { (exit 1); exit 1; }; } +else + cat >conftest.$ac_ext <<_ACEOF +#line 4010 "configure" +#include "confdefs.h" +#include +#include +int main() +{ FILE *out = fopen("conftest.out", "w") ; + unsigned max_uint = 0; + if ( ! out ) exit(1) ; + fprintf(out, "MAX__INT 0x%x\n", MAXINT) ; + fprintf(out, "MAX__LONG 0x%lx\n", MAXLONG) ; +#ifdef MAXUINT + max_uint = MAXUINT; /* not likely (SunOS/Solaris lacks it) */ +#else + max_uint = MAXINT; + max_uint <<= 1; + max_uint |= 1; +#endif + fprintf(out, "MAX__UINT 0x%lx\n", max_uint) ; + exit(0) ; return(0) ; +} + +_ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:4033: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:4036: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:4038: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:4041: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + cf_maxint_set=yes +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +{ { echo "$as_me:4048: error: C program to compute maxint and maxlong failed. +Please send bug report to dickey@invisible-island.net." >&5 +echo "$as_me: error: C program to compute maxint and maxlong failed. +Please send bug report to dickey@invisible-island.net." >&2;} + { (exit 1); exit 1; }; } +fi +rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +fi + fi +if test "x$cf_maxint_set" != xyes ; then +# compute it -- assumes two's complement +if test "$cross_compiling" = yes; then + { { echo "$as_me:4060: error: cannot run test program while cross compiling" >&5 +echo "$as_me: error: cannot run test program while cross compiling" >&2;} + { (exit 1); exit 1; }; } +else + cat >conftest.$ac_ext <<_ACEOF +#line 4065 "configure" +#include "confdefs.h" +#include +int main() +{ int y ; unsigned yu; long yy ; + FILE *out ; + + if ( !(out = fopen("conftest.out","w")) ) exit(1) ; + /* find max int and max long */ + y = 0x1000 ; + while ( y > 0 ) { yu = y; y *= 2 ; } + fprintf(out,"MAX__INT 0x%x\n", y-1) ; + + yu = yu - 1; + yu <<= 1; + yu |= 1; + fprintf(out,"MAX__UINT 0x%x\n", y-1) ; + + yy = 0x1000 ; + while ( yy > 0 ) yy *= 2 ; + fprintf(out,"MAX__LONG 0x%lx\n", yy-1) ; + exit(0) ; + return 0 ; + } +_ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:4091: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:4094: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:4096: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:4099: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + : +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +{ { echo "$as_me:4106: error: C program to compute maxint and maxlong failed. +Please send bug report to dickey@invisible-island.net." >&5 +echo "$as_me: error: C program to compute maxint and maxlong failed. +Please send bug report to dickey@invisible-island.net." >&2;} + { (exit 1); exit 1; }; } +fi +rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +fi +fi +cat conftest.out | while true +do + read name value + test -z "$name" && break + cat >>confdefs.h <&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$as_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line 4136 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. */ +#include +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func (); +char (*f) (); + +int +main () +{ +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +f = $ac_func; +#endif + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:4167: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:4170: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:4173: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:4176: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "$as_ac_var=yes" +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +eval "$as_ac_var=no" +fi +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:4186: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line 4207 "configure" +#include "confdefs.h" +#include <$ac_header> +_ACEOF +if { (eval echo "$as_me:4211: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:4217: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + eval "$as_ac_Header=yes" +else + echo "$as_me: failed program was:" >&5 + cat conftest.$ac_ext >&5 + eval "$as_ac_Header=no" +fi +rm -f conftest.err conftest.$ac_ext +fi +echo "$as_me:4236: result: `eval echo '${'$as_ac_Header'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <&5 +echo "$as_me:4248: checking if we should use siginfo" >&5 echo $ECHO_N "checking if we should use siginfo... $ECHO_C" >&6 if test "${cf_cv_use_sv_siginfo+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -4086,16 +4258,16 @@ else fi fi -echo "$as_me:4089: result: $cf_cv_use_sv_siginfo" >&5 +echo "$as_me:4261: result: $cf_cv_use_sv_siginfo" >&5 echo "${ECHO_T}$cf_cv_use_sv_siginfo" >&6 -echo "$as_me:4092: checking return type of signal handlers" >&5 +echo "$as_me:4264: checking return type of signal handlers" >&5 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 if test "${ac_cv_type_signal+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 4098 "configure" +#line 4270 "configure" #include "confdefs.h" #include #include @@ -4117,16 +4289,16 @@ int i; } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:4120: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:4292: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:4123: \$? = $ac_status" >&5 + echo "$as_me:4295: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:4126: \"$ac_try\"") >&5 + { (eval echo "$as_me:4298: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:4129: \$? = $ac_status" >&5 + echo "$as_me:4301: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_type_signal=void else @@ -4136,7 +4308,7 @@ ac_cv_type_signal=int fi rm -f conftest.$ac_objext conftest.$ac_ext fi -echo "$as_me:4139: result: $ac_cv_type_signal" >&5 +echo "$as_me:4311: result: $ac_cv_type_signal" >&5 echo "${ECHO_T}$ac_cv_type_signal" >&6 cat >>confdefs.h <&5 + echo "$as_me:4345: checking for sigvec" >&5 echo $ECHO_N "checking for sigvec... $ECHO_C" >&6 if test "${ac_cv_func_sigvec+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 4179 "configure" +#line 4351 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char sigvec (); below. */ @@ -4207,16 +4379,16 @@ f = sigvec; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:4210: \"$ac_link\"") >&5 +if { (eval echo "$as_me:4382: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:4213: \$? = $ac_status" >&5 + echo "$as_me:4385: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:4216: \"$ac_try\"") >&5 + { (eval echo "$as_me:4388: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:4219: \$? = $ac_status" >&5 + echo "$as_me:4391: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_sigvec=yes else @@ -4226,7 +4398,7 @@ ac_cv_func_sigvec=no fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext fi -echo "$as_me:4229: result: $ac_cv_func_sigvec" >&5 +echo "$as_me:4401: result: $ac_cv_func_sigvec" >&5 echo "${ECHO_T}$ac_cv_func_sigvec" >&6 if test $ac_cv_func_sigvec = yes; then sigvec=1 @@ -4245,23 +4417,23 @@ fi ;; 1|2|4) # bad news have to turn off traps # only know how to do this on systemV and solaris -echo "$as_me:4248: checking for ieeefp.h" >&5 +echo "$as_me:4420: checking for ieeefp.h" >&5 echo $ECHO_N "checking for ieeefp.h... $ECHO_C" >&6 if test "${ac_cv_header_ieeefp_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 4254 "configure" +#line 4426 "configure" #include "confdefs.h" #include _ACEOF -if { (eval echo "$as_me:4258: \"$ac_cpp conftest.$ac_ext\"") >&5 +if { (eval echo "$as_me:4430: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? egrep -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - echo "$as_me:4264: \$? = $ac_status" >&5 + echo "$as_me:4436: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag @@ -4280,19 +4452,19 @@ else fi rm -f conftest.err conftest.$ac_ext fi -echo "$as_me:4283: result: $ac_cv_header_ieeefp_h" >&5 +echo "$as_me:4455: result: $ac_cv_header_ieeefp_h" >&5 echo "${ECHO_T}$ac_cv_header_ieeefp_h" >&6 if test $ac_cv_header_ieeefp_h = yes; then ieeefp_h=1 fi -echo "$as_me:4289: checking for fpsetmask" >&5 +echo "$as_me:4461: checking for fpsetmask" >&5 echo $ECHO_N "checking for fpsetmask... $ECHO_C" >&6 if test "${ac_cv_func_fpsetmask+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 4295 "configure" +#line 4467 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char fpsetmask (); below. */ @@ -4323,16 +4495,16 @@ f = fpsetmask; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:4326: \"$ac_link\"") >&5 +if { (eval echo "$as_me:4498: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:4329: \$? = $ac_status" >&5 + echo "$as_me:4501: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:4332: \"$ac_try\"") >&5 + { (eval echo "$as_me:4504: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:4335: \$? = $ac_status" >&5 + echo "$as_me:4507: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_fpsetmask=yes else @@ -4342,7 +4514,7 @@ ac_cv_func_fpsetmask=no fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext fi -echo "$as_me:4345: result: $ac_cv_func_fpsetmask" >&5 +echo "$as_me:4517: result: $ac_cv_func_fpsetmask" >&5 echo "${ECHO_T}$ac_cv_func_fpsetmask" >&6 if test $ac_cv_func_fpsetmask = yes; then fpsetmask=1 @@ -4363,13 +4535,13 @@ EOF if test "x$cf_cv_use_sv_siginfo" = "xno" then - echo "$as_me:4366: checking for sigvec" >&5 + echo "$as_me:4538: checking for sigvec" >&5 echo $ECHO_N "checking for sigvec... $ECHO_C" >&6 if test "${ac_cv_func_sigvec+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 4372 "configure" +#line 4544 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char sigvec (); below. */ @@ -4400,16 +4572,16 @@ f = sigvec; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:4403: \"$ac_link\"") >&5 +if { (eval echo "$as_me:4575: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:4406: \$? = $ac_status" >&5 + echo "$as_me:4578: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:4409: \"$ac_try\"") >&5 + { (eval echo "$as_me:4581: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:4412: \$? = $ac_status" >&5 + echo "$as_me:4584: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_sigvec=yes else @@ -4419,7 +4591,7 @@ ac_cv_func_sigvec=no fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext fi -echo "$as_me:4422: result: $ac_cv_func_sigvec" >&5 +echo "$as_me:4594: result: $ac_cv_func_sigvec" >&5 echo "${ECHO_T}$ac_cv_func_sigvec" >&6 if test $ac_cv_func_sigvec = yes; then sigvec=1 @@ -4437,7 +4609,7 @@ EOF fi # look for strtod overflow bug -echo "$as_me:4440: checking strtod bug on overflow" >&5 +echo "$as_me:4612: checking strtod bug on overflow" >&5 echo $ECHO_N "checking strtod bug on overflow... $ECHO_C" >&6 rm -f fpe_check$ac_exeext @@ -4446,10 +4618,10 @@ $CC $CFLAGS $cf_FPE_DEFS -DUSE_IEEEFP_H -o fpe_check $srcdir/fpe_check.c $MATHLI # FPE_CHECK 3:check_strtod_ovf if ./fpe_check phoney_arg phoney_arg 2>/dev/null then - echo "$as_me:4449: result: no bug" >&5 + echo "$as_me:4621: result: no bug" >&5 echo "${ECHO_T}no bug" >&6 else - echo "$as_me:4452: result: buggy -- will use work around" >&5 + echo "$as_me:4624: result: buggy -- will use work around" >&5 echo "${ECHO_T}buggy -- will use work around" >&6 cat >>confdefs.h <&5 + echo "$as_me:4640: checking for sigvec" >&5 echo $ECHO_N "checking for sigvec... $ECHO_C" >&6 if test "${ac_cv_func_sigvec+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 4474 "configure" +#line 4646 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char sigvec (); below. */ @@ -4502,16 +4674,16 @@ f = sigvec; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:4505: \"$ac_link\"") >&5 +if { (eval echo "$as_me:4677: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:4508: \$? = $ac_status" >&5 + echo "$as_me:4680: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:4511: \"$ac_try\"") >&5 + { (eval echo "$as_me:4683: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:4514: \$? = $ac_status" >&5 + echo "$as_me:4686: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_sigvec=yes else @@ -4521,7 +4693,7 @@ ac_cv_func_sigvec=no fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext fi -echo "$as_me:4524: result: $ac_cv_func_sigvec" >&5 +echo "$as_me:4696: result: $ac_cv_func_sigvec" >&5 echo "${ECHO_T}$ac_cv_func_sigvec" >&6 if test $ac_cv_func_sigvec = yes; then sigvec=1 @@ -4662,7 +4834,7 @@ DEFS=-DHAVE_CONFIG_H : ${CONFIG_STATUS=./config.status} ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" -{ echo "$as_me:4665: creating $CONFIG_STATUS" >&5 +{ echo "$as_me:4837: creating $CONFIG_STATUS" >&5 echo "$as_me: creating $CONFIG_STATUS" >&6;} cat >$CONFIG_STATUS <<_ACEOF #! $SHELL @@ -4835,7 +5007,7 @@ cat >>$CONFIG_STATUS <<\EOF echo "$ac_cs_version"; exit 0 ;; --he | --h) # Conflict between --help and --header - { { echo "$as_me:4838: error: ambiguous option: $1 + { { echo "$as_me:5010: error: ambiguous option: $1 Try \`$0 --help' for more information." >&5 echo "$as_me: error: ambiguous option: $1 Try \`$0 --help' for more information." >&2;} @@ -4854,7 +5026,7 @@ Try \`$0 --help' for more information." >&2;} ac_need_defaults=false;; # This is an error. - -*) { { echo "$as_me:4857: error: unrecognized option: $1 + -*) { { echo "$as_me:5029: error: unrecognized option: $1 Try \`$0 --help' for more information." >&5 echo "$as_me: error: unrecognized option: $1 Try \`$0 --help' for more information." >&2;} @@ -4891,7 +5063,7 @@ do # Handling of arguments. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config_h.in" ;; - *) { { echo "$as_me:4894: error: invalid argument: $ac_config_target" >&5 + *) { { echo "$as_me:5066: error: invalid argument: $ac_config_target" >&5 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} { (exit 1); exit 1; }; };; esac @@ -5115,7 +5287,7 @@ done; } esac if test x"$ac_file" != x-; then - { echo "$as_me:5118: creating $ac_file" >&5 + { echo "$as_me:5290: creating $ac_file" >&5 echo "$as_me: creating $ac_file" >&6;} rm -f "$ac_file" fi @@ -5133,7 +5305,7 @@ echo "$as_me: creating $ac_file" >&6;} -) echo $tmp/stdin ;; [\\/$]*) # Absolute (can't be DOS-style, as IFS=:) - test -f "$f" || { { echo "$as_me:5136: error: cannot find input file: $f" >&5 + test -f "$f" || { { echo "$as_me:5308: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } echo $f;; @@ -5146,7 +5318,7 @@ echo "$as_me: error: cannot find input file: $f" >&2;} echo $srcdir/$f else # /dev/null tree - { { echo "$as_me:5149: error: cannot find input file: $f" >&5 + { { echo "$as_me:5321: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } fi;; @@ -5212,7 +5384,7 @@ for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue * ) ac_file_in=$ac_file.in ;; esac - test x"$ac_file" != x- && { echo "$as_me:5215: creating $ac_file" >&5 + test x"$ac_file" != x- && { echo "$as_me:5387: creating $ac_file" >&5 echo "$as_me: creating $ac_file" >&6;} # First look for the input files in the build tree, otherwise in the @@ -5223,7 +5395,7 @@ echo "$as_me: creating $ac_file" >&6;} -) echo $tmp/stdin ;; [\\/$]*) # Absolute (can't be DOS-style, as IFS=:) - test -f "$f" || { { echo "$as_me:5226: error: cannot find input file: $f" >&5 + test -f "$f" || { { echo "$as_me:5398: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } echo $f;; @@ -5236,7 +5408,7 @@ echo "$as_me: error: cannot find input file: $f" >&2;} echo $srcdir/$f else # /dev/null tree - { { echo "$as_me:5239: error: cannot find input file: $f" >&5 + { { echo "$as_me:5411: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } fi;; @@ -5354,7 +5526,7 @@ cat >>$CONFIG_STATUS <<\EOF rm -f $tmp/in if test x"$ac_file" != x-; then if cmp -s $ac_file $tmp/config.h 2>/dev/null; then - { echo "$as_me:5357: $ac_file is unchanged" >&5 + { echo "$as_me:5529: $ac_file is unchanged" >&5 echo "$as_me: $ac_file is unchanged" >&6;} else ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ diff --git a/configure.in b/configure.in index 7254c22..ca783a6 100644 --- a/configure.in +++ b/configure.in @@ -1,4 +1,4 @@ -dnl $MawkId: configure.in,v 1.26 2009/12/16 00:23:15 tom Exp $ +dnl $MawkId: configure.in,v 1.28 2009/12/16 10:16:46 tom Exp $ dnl configure.in for mawk dnl dnl @Log: configure.in,v @ @@ -58,6 +58,13 @@ if test "x${with_builtin_regex}" != xno; then fi AC_MSG_RESULT($with_builtin_regex) +if test "x${with_builtin_regex}" = xno; then + AC_CHECK_HEADER(regex.h,cf_have_regex_h=yes,cf_have_regex_h=no) + if test "$cf_have_regex_h" != yes ; then + AC_MSG_ERROR(could not find regex.h) + fi +fi + AC_PROG_YACC CF_ANSI_CC_REQD CF_XOPEN_SOURCE @@ -65,7 +72,15 @@ CF_XOPEN_SOURCE CF_MAWK_FIND_SIZE_T CF_LOCALE CF_CHECK_ENVIRON(environ) + +AC_CHECK_FUNCS(fork pipe wait) +test "$ac_cv_func_fork" = yes && \ +test "$ac_cv_func_pipe" = yes && \ +test "$ac_cv_func_wait" = yes && \ AC_DEFINE(HAVE_REAL_PIPES) + +AC_CHECK_HEADERS(sys/wait.h) + CF_MAWK_CHECK_HEADERS(fcntl.h errno.h math.h time.h stdarg.h stdlib.h string.h) CF_MAWK_CHECK_FUNCS(memcpy strchr strerror vfprintf strtod fmod matherr) CF_MAWK_FIND_MAX_INT diff --git a/files.c b/files.c index 2ddeb88..8728b6d 100644 --- a/files.c +++ b/files.c @@ -10,7 +10,7 @@ the GNU General Public License, version 2, 1991. ********************************************/ /* - * $MawkId: files.c,v 1.10 2009/12/14 01:17:34 tom Exp $ + * $MawkId: files.c,v 1.11 2009/12/16 09:42:53 tom Exp $ * @Log: files.c,v @ * Revision 1.9 1996/01/14 17:14:10 mike * flush_all_output() @@ -64,9 +64,12 @@ the GNU General Public License, version 2, 1991. #include "init.h" #include -#include #include +#ifdef HAVE_SYS_WAIT_H +#include +#endif + #ifdef V7 #include /* defines FIOCLEX */ #endif diff --git a/init.c b/init.c index ffda893..5351e80 100644 --- a/init.c +++ b/init.c @@ -10,7 +10,7 @@ the GNU General Public License, version 2, 1991. ********************************************/ /* - * $MawkId: init.c,v 1.14 2009/12/15 01:50:45 tom Exp $ + * $MawkId: init.c,v 1.15 2009/12/16 09:54:23 tom Exp $ * @Log: init.c,v @ * Revision 1.11 1995/08/20 17:35:21 mike * include for MSC, needed for environ decl @@ -354,9 +354,11 @@ set_ARGV(int argc, char **argv, int i) #ifdef DECL_ENVIRON #ifndef MSDOS_MSC /* MSC declares it near */ +#ifndef environ extern char **environ; #endif #endif +#endif void load_environ(ARRAY ENV) diff --git a/patchlev.h b/patchlev.h index 9b0e1ee..8e63867 100644 --- a/patchlev.h +++ b/patchlev.h @@ -1,6 +1,6 @@ /* - * $MawkId: patchlev.h,v 1.13 2009/12/15 11:44:27 tom Exp $ + * $MawkId: patchlev.h,v 1.14 2009/12/16 09:35:25 tom Exp $ */ #define PATCHLEVEL 3 #define PATCH_STRING ".4" -#define DATE_STRING "20091215" +#define DATE_STRING "20091216" diff --git a/scan.c b/scan.c index 290fc6c..6418743 100644 --- a/scan.c +++ b/scan.c @@ -10,7 +10,7 @@ the GNU General Public License, version 2, 1991. ********************************************/ /* - * $MawkId: scan.c,v 1.13 2009/12/14 01:09:18 tom Exp $ + * $MawkId: scan.c,v 1.14 2009/12/16 09:57:25 tom Exp $ * @Log: scan.c,v @ * Revision 1.8 1996/07/28 21:47:05 mike * gnuish patch @@ -733,6 +733,7 @@ collect_decimal(int c, int *flag) { register UChar *p = (UChar *) string_buff + 1; UChar *endp; + char *temp; double d; *flag = 0; @@ -786,7 +787,8 @@ collect_decimal(int c, int *flag) } errno = 0; /* check for overflow/underflow */ - d = strtod(string_buff, (char **) &endp); + d = strtod(string_buff, &temp); + endp = (UChar *) temp; #ifndef STRTOD_UNDERFLOW_ON_ZERO_BUG if (errno)