3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.4
5 # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 # Initialize some variables set by options.
16 # The variables have the same names as the options, with
17 # dashes changed to underlines.
19 cache_file=./config.cache
28 program_transform_name=s,x,x,
37 # Initialize some other variables.
44 # If the previous option needs an argument, assign it.
45 if test -n "$ac_prev"; then
46 eval "$ac_prev=\$ac_option"
52 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
56 # Accept the important Cygnus configure options, so we can diagnose typos.
60 -build | --build | --buil | --bui | --bu | --b)
62 -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
65 -cache-file | --cache-file | --cache-fil | --cache-fi \
66 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
68 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
69 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
70 cache_file="$ac_optarg" ;;
72 -disable-* | --disable-*)
73 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
74 # Reject names that are not valid shell variable names.
75 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
76 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
78 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
79 eval "enable_${ac_feature}=no" ;;
81 -enable-* | --enable-*)
82 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
83 # Reject names that are not valid shell variable names.
84 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
85 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
87 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
92 eval "enable_${ac_feature}='$ac_optarg'" ;;
94 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
95 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
96 | --exec | --exe | --ex)
97 ac_prev=exec_prefix ;;
98 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
99 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
100 | --exec=* | --exe=* | --ex=*)
101 exec_prefix="$ac_optarg" ;;
103 -gas | --gas | --ga | --g)
104 # Obsolete; use --with-gas.
107 -help | --help | --hel | --he)
108 # Omit some internal or obsolete options to make the list less imposing.
109 # This message is too long to be a string in the A/UX 3.1 sh.
111 Usage: configure [options] [host]
112 Options: [defaults in brackets after descriptions]
114 --cache-file=FILE cache test results in FILE
115 --help print this message
116 --no-create do not create output files
117 --quiet, --silent do not print \`checking...' messages
118 --version print the version of autoconf that created configure
119 Directory and file names:
120 --prefix=PREFIX install architecture-independent files in PREFIX
122 --exec-prefix=PREFIX install architecture-dependent files in PREFIX
124 --srcdir=DIR find the sources in DIR [configure dir or ..]
125 --program-prefix=PREFIX prepend PREFIX to installed program names
126 --program-suffix=SUFFIX append SUFFIX to installed program names
127 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
129 --build=BUILD configure for building on BUILD [BUILD=HOST]
130 --host=HOST configure for HOST [guessed]
131 --target=TARGET configure for TARGET [TARGET=HOST]
132 Features and packages:
133 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
134 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
135 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
136 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
137 --x-includes=DIR X include files are in DIR
138 --x-libraries=DIR X library files are in DIR
139 --enable and --with options recognized:$ac_help
143 -host | --host | --hos | --ho)
145 -host=* | --host=* | --hos=* | --ho=*)
149 # Obsolete; use --without-fp.
152 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
156 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
157 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
160 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
162 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
163 prefix="$ac_optarg" ;;
165 -program-prefix | --program-prefix | --program-prefi | --program-pref \
166 | --program-pre | --program-pr | --program-p)
167 ac_prev=program_prefix ;;
168 -program-prefix=* | --program-prefix=* | --program-prefi=* \
169 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
170 program_prefix="$ac_optarg" ;;
172 -program-suffix | --program-suffix | --program-suffi | --program-suff \
173 | --program-suf | --program-su | --program-s)
174 ac_prev=program_suffix ;;
175 -program-suffix=* | --program-suffix=* | --program-suffi=* \
176 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
177 program_suffix="$ac_optarg" ;;
179 -program-transform-name | --program-transform-name \
180 | --program-transform-nam | --program-transform-na \
181 | --program-transform-n | --program-transform- \
182 | --program-transform | --program-transfor \
183 | --program-transfo | --program-transf \
184 | --program-trans | --program-tran \
185 | --progr-tra | --program-tr | --program-t)
186 ac_prev=program_transform_name ;;
187 -program-transform-name=* | --program-transform-name=* \
188 | --program-transform-nam=* | --program-transform-na=* \
189 | --program-transform-n=* | --program-transform-=* \
190 | --program-transform=* | --program-transfor=* \
191 | --program-transfo=* | --program-transf=* \
192 | --program-trans=* | --program-tran=* \
193 | --progr-tra=* | --program-tr=* | --program-t=*)
194 program_transform_name="$ac_optarg" ;;
196 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
197 | -silent | --silent | --silen | --sile | --sil)
200 -site | --site | --sit)
202 -site=* | --site=* | --sit=*)
205 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
207 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
208 srcdir="$ac_optarg" ;;
210 -target | --target | --targe | --targ | --tar | --ta | --t)
212 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
213 target="$ac_optarg" ;;
215 -v | -verbose | --verbose | --verbos | --verbo | --verb)
218 -version | --version | --versio | --versi | --vers)
219 echo "configure generated by autoconf version 2.4"
223 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
224 # Reject names that are not valid shell variable names.
225 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
226 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
228 ac_package=`echo $ac_package| sed 's/-/_/g'`
233 eval "with_${ac_package}='$ac_optarg'" ;;
235 -without-* | --without-*)
236 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
237 # Reject names that are not valid shell variable names.
238 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
239 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
241 ac_package=`echo $ac_package| sed 's/-/_/g'`
242 eval "with_${ac_package}=no" ;;
245 # Obsolete; use --with-x.
248 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
249 | --x-incl | --x-inc | --x-in | --x-i)
250 ac_prev=x_includes ;;
251 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
252 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
253 x_includes="$ac_optarg" ;;
255 -x-libraries | --x-libraries | --x-librarie | --x-librari \
256 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
257 ac_prev=x_libraries ;;
258 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
259 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
260 x_libraries="$ac_optarg" ;;
262 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
266 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
267 echo "configure: warning: $ac_option: invalid host type" 1>&2
269 if test "x$nonopt" != xNONE; then
270 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
278 if test -n "$ac_prev"; then
279 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
282 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
284 # File descriptor usage:
287 # 2 errors and warnings
288 # 3 some systems may open it to /dev/tty
289 # 4 used on the Kubota Titan
290 # 6 checking for... messages and results
291 # 5 compiler messages saved in config.log
292 if test "$silent" = yes; then
300 This file contains any messages produced by compilers while
301 running configure, to aid debugging if configure makes a mistake.
304 # Strip out --no-create and --no-recursion so they do not pile up.
305 # Also quote any args containing shell metacharacters.
310 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
311 | --no-cr | --no-c) ;;
312 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
313 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
314 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
315 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
316 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
321 # Only set LANG and LC_ALL to C if already set.
322 # These must not be set unconditionally because not all systems understand
323 # e.g. LANG=C (notably SCO).
324 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
325 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
327 # confdefs.h avoids OS command line length limits that DEFS can exceed.
328 rm -rf conftest* confdefs.h
329 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
332 # A filename unique to this package, relative to the directory that
333 # configure is in, which we can look for to find out if srcdir is correct.
334 ac_unique_file=mawk.h
336 # Find the source files, if location was not specified.
337 if test -z "$srcdir"; then
338 ac_srcdir_defaulted=yes
339 # Try the directory containing this script, then its parent.
341 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
342 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
344 if test ! -r $srcdir/$ac_unique_file; then
348 ac_srcdir_defaulted=no
350 if test ! -r $srcdir/$ac_unique_file; then
351 if test "$ac_srcdir_defaulted" = yes; then
352 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
354 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
357 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
359 # Prefer explicitly selected file to automatically selected ones.
360 if test -z "$CONFIG_SITE"; then
361 if test "x$prefix" != xNONE; then
362 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
364 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
367 for ac_site_file in $CONFIG_SITE; do
368 if test -r "$ac_site_file"; then
369 echo "loading site script $ac_site_file"
374 if test -r "$cache_file"; then
375 echo "loading cache $cache_file"
378 echo "creating cache $cache_file"
383 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
384 ac_cpp='$CPP $CPPFLAGS'
385 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
386 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
388 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
389 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
390 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
397 ac_n= ac_c='\c' ac_t=
407 cat < /dev/null > defines.out
408 test -f config.user && . ./config.user
409 test "${BINDIR+set}" = set || BINDIR="/usr/local/bin"
411 test "${MANDIR+set}" = set || MANDIR="/usr/local/man/man1"
413 test "${MANEXT+set}" = set || MANEXT="1"
415 echo "$USER_DEFINES" >> defines.out
416 # Extract the first word of "gcc", so it can be a program name with args.
417 set dummy gcc; ac_word=$2
418 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
419 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
420 echo $ac_n "(cached) $ac_c" 1>&6
422 if test -n "$CC"; then
423 ac_cv_prog_CC="$CC" # Let the user override the test.
425 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
426 for ac_dir in $PATH; do
427 test -z "$ac_dir" && ac_dir=.
428 if test -f $ac_dir/$ac_word; then
434 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
438 if test -n "$CC"; then
439 echo "$ac_t""$CC" 1>&6
441 echo "$ac_t""no" 1>&6
444 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
445 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
446 echo $ac_n "(cached) $ac_c" 1>&6
448 cat > conftest.c <<EOF
453 if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
459 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
462 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
463 # On Suns, sometimes $CPP names a directory.
464 if test -n "$CPP" && test -d "$CPP"; then
467 if test -z "$CPP"; then
468 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
469 echo $ac_n "(cached) $ac_c" 1>&6
471 # This must be in double quotes, not single quotes, because CPP may get
472 # substituted into the Makefile and "${CC-cc}" will confuse make.
474 # On the NeXT, cc -E runs the code through the compiler's parser,
475 # not just through cpp.
476 cat > conftest.$ac_ext <<EOF
477 #line 478 "configure"
478 #include "confdefs.h"
482 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
483 ac_err=`grep -v '^ *+' conftest.out`
484 if test -z "$ac_err"; then
489 CPP="${CC-cc} -E -traditional-cpp"
490 cat > conftest.$ac_ext <<EOF
491 #line 492 "configure"
492 #include "confdefs.h"
496 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
497 ac_err=`grep -v '^ *+' conftest.out`
498 if test -z "$ac_err"; then
508 ac_cv_prog_CPP="$CPP"
510 CPP="$ac_cv_prog_CPP"
512 ac_cv_prog_CPP="$CPP"
514 echo "$ac_t""$CPP" 1>&6
516 test "${CFLAGS+set}" = set || CFLAGS="-O"
519 if test "${MATHLIB+set}" != set ; then
520 echo $ac_n "checking for -lm""... $ac_c" 1>&6
521 if eval "test \"`echo '$''{'ac_cv_lib_m'+set}'`\" = set"; then
522 echo $ac_n "(cached) $ac_c" 1>&6
526 cat > conftest.$ac_ext <<EOF
527 #line 528 "configure"
528 #include "confdefs.h"
530 int main() { return 0; }
536 CFLAGS="-fno-builtin $CFLAGS"
537 if eval $ac_link; then
539 eval "ac_cv_lib_m=yes"
542 eval "ac_cv_lib_m=no"
549 if eval "test \"`echo '$ac_cv_lib_'m`\" = yes"; then
550 echo "$ac_t""yes" 1>&6
551 MATHLIB=-lm ; LIBS="$LIBS -lm"
553 echo "$ac_t""no" 1>&6
554 # maybe don't need separate math library
555 echo $ac_n "checking for log""... $ac_c" 1>&6
556 if eval "test \"`echo '$''{'ac_cv_func_log'+set}'`\" = set"; then
557 echo $ac_n "(cached) $ac_c" 1>&6
559 cat > conftest.$ac_ext <<EOF
560 #line 558 "configure"
561 #include "confdefs.h"
562 /* System header to define __stub macros and hopefully few prototypes,
563 which can conflict with char log(); below. */
565 /* Override any gcc2 internal prototype to avoid an error. */
568 int main() { return 0; }
571 /* The GNU C library defines this for functions which it implements
572 to always fail with ENOSYS. Some functions are actually named
573 something starting with __ and the normal name is an alias. */
574 #if defined (__stub_log) || defined (__stub___log)
582 if eval $ac_link; then
584 eval "ac_cv_func_log=yes"
587 eval "ac_cv_func_log=no"
592 if eval "test \"`echo '$ac_cv_func_'log`\" = yes"; then
593 echo "$ac_t""yes" 1>&6
596 echo "$ac_t""no" 1>&6
599 if test "$log$" = yes
601 MATHLIB='' # evidently don't need one
603 { echo "configure: error: Cannot find a math library. You need to set MATHLIB in config.user" 1>&2; exit 1; }
608 for ac_prog in byacc bison yacc
610 # Extract the first word of "$ac_prog", so it can be a program name with args.
611 set dummy $ac_prog; ac_word=$2
612 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
613 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
614 echo $ac_n "(cached) $ac_c" 1>&6
616 if test -n "$YACC"; then
617 ac_cv_prog_YACC="$YACC" # Let the user override the test.
619 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
620 for ac_dir in $PATH; do
621 test -z "$ac_dir" && ac_dir=.
622 if test -f $ac_dir/$ac_word; then
623 ac_cv_prog_YACC="$ac_prog"
630 YACC="$ac_cv_prog_YACC"
631 if test -n "$YACC"; then
632 echo "$ac_t""$YACC" 1>&6
634 echo "$ac_t""no" 1>&6
637 test -n "$YACC" && break
640 test "$YACC" = bison && YACC='bison -y'
641 echo $ac_n "checking compiler supports void*""... $ac_c" 1>&6
642 cat > conftest.$ac_ext <<EOF
643 #line 641 "configure"
644 #include "confdefs.h"
647 int main() { return 0; }
649 cp = (char*)(void*)(int*)foo() ;
652 if eval $ac_compile; then
661 echo "$ac_t""$void_star" 1>&6
662 test "$void_star" = no && echo X 'NO_VOID_STAR' '1' >> defines.out
663 echo $ac_n "checking compiler groks prototypes""... $ac_c" 1>&6
664 cat > conftest.$ac_ext <<EOF
665 #line 663 "configure"
666 #include "confdefs.h"
668 int main() { return 0; }
673 if eval $ac_compile; then
682 echo "$ac_t""$protos" 1>&6
683 test "$protos" = no && echo X 'NO_PROTOS' '1' >> defines.out
684 echo $ac_n "checking for working const""... $ac_c" 1>&6
685 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
686 echo $ac_n "(cached) $ac_c" 1>&6
688 cat > conftest.$ac_ext <<EOF
689 #line 687 "configure"
690 #include "confdefs.h"
692 int main() { return 0; }
695 /* Ultrix mips cc rejects this. */
696 typedef int charset[2]; const charset x;
697 /* SunOS 4.1.1 cc rejects this. */
698 char const *const *ccp;
700 /* NEC SVR4.0.2 mips cc rejects this. */
701 struct point {int x, y;};
702 static struct point const zero;
703 /* AIX XL C 1.02.0.0 rejects this.
704 It does not let you subtract one const X* pointer from another in an arm
705 of an if-expression whose if-part is not a constant expression */
706 const char *g = "string";
707 ccp = &g + (g ? g-g : 0);
708 /* HPUX 7.0 cc rejects these. */
711 ccp = (char const *const *) p;
712 { /* SCO 3.2v4 cc rejects this. */
714 char const *s = 0 ? (char *) 0 : (char const *) 0;
718 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
720 const int *foo = &x[0];
723 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
724 typedef const int *iptr;
728 { /* AIX XL C 1.02.0.0 rejects this saying
729 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
730 struct s { int j; const int *ap[3]; };
731 struct s *b; b->j = 5;
733 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
739 if eval $ac_compile; then
749 echo "$ac_t""$ac_cv_c_const" 1>&6
750 if test $ac_cv_c_const = no; then
751 cat >> confdefs.h <<\EOF
757 test "$ac_cv_c_const" = no && echo X 'const' '' >> defines.out
759 if test "$size_t_defed" != 1 ; then
760 ac_safe=`echo "stddef.h" | tr './\055' '___'`
761 echo $ac_n "checking for stddef.h""... $ac_c" 1>&6
762 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
763 echo $ac_n "(cached) $ac_c" 1>&6
765 cat > conftest.$ac_ext <<EOF
766 #line 764 "configure"
767 #include "confdefs.h"
770 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
771 ac_err=`grep -v '^ *+' conftest.out`
772 if test -z "$ac_err"; then
774 eval "ac_cv_header_$ac_safe=yes"
778 eval "ac_cv_header_$ac_safe=no"
782 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
783 echo "$ac_t""yes" 1>&6
786 echo "$ac_t""no" 1>&6
789 if test "$size_t_header" = ok ; then
790 cat > conftest.$ac_ext <<EOF
791 #line 789 "configure"
792 #include "confdefs.h"
795 int main() { return 0; }
801 if eval $ac_compile; then
804 echo X 'SIZE_T_STDDEF_H' '1' >> defines.out
805 echo getting size_t from '<stddef.h>'
811 if test "$size_t_defed" != 1 ; then
812 ac_safe=`echo "sys/types.h" | tr './\055' '___'`
813 echo $ac_n "checking for sys/types.h""... $ac_c" 1>&6
814 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
815 echo $ac_n "(cached) $ac_c" 1>&6
817 cat > conftest.$ac_ext <<EOF
818 #line 816 "configure"
819 #include "confdefs.h"
820 #include <sys/types.h>
822 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
823 ac_err=`grep -v '^ *+' conftest.out`
824 if test -z "$ac_err"; then
826 eval "ac_cv_header_$ac_safe=yes"
830 eval "ac_cv_header_$ac_safe=no"
834 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
835 echo "$ac_t""yes" 1>&6
838 echo "$ac_t""no" 1>&6
841 if test "$size_t_header" = ok ; then
842 cat > conftest.$ac_ext <<EOF
843 #line 841 "configure"
844 #include "confdefs.h"
846 #include <sys/types.h>
847 int main() { return 0; }
853 if eval $ac_compile; then
856 echo X 'SIZE_T_TYPES_H' '1' >> defines.out
857 echo getting size_t from '<sys/types.h>'
862 ac_safe=`echo "fcntl.h" | tr './\055' '___'`
863 echo $ac_n "checking for fcntl.h""... $ac_c" 1>&6
864 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
865 echo $ac_n "(cached) $ac_c" 1>&6
867 cat > conftest.$ac_ext <<EOF
868 #line 866 "configure"
869 #include "confdefs.h"
872 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
873 ac_err=`grep -v '^ *+' conftest.out`
874 if test -z "$ac_err"; then
876 eval "ac_cv_header_$ac_safe=yes"
880 eval "ac_cv_header_$ac_safe=no"
884 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
885 echo "$ac_t""yes" 1>&6
888 echo "$ac_t""no" 1>&6
889 cat >> confdefs.h <<\EOF
893 echo X 'NO_FCNTL_H' '1' >> defines.out
896 ac_safe=`echo "errno.h" | tr './\055' '___'`
897 echo $ac_n "checking for errno.h""... $ac_c" 1>&6
898 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
899 echo $ac_n "(cached) $ac_c" 1>&6
901 cat > conftest.$ac_ext <<EOF
902 #line 900 "configure"
903 #include "confdefs.h"
906 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
907 ac_err=`grep -v '^ *+' conftest.out`
908 if test -z "$ac_err"; then
910 eval "ac_cv_header_$ac_safe=yes"
914 eval "ac_cv_header_$ac_safe=no"
918 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
919 echo "$ac_t""yes" 1>&6
922 echo "$ac_t""no" 1>&6
923 cat >> confdefs.h <<\EOF
927 echo X 'NO_ERRNO_H' '1' >> defines.out
930 ac_safe=`echo "time.h" | tr './\055' '___'`
931 echo $ac_n "checking for time.h""... $ac_c" 1>&6
932 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
933 echo $ac_n "(cached) $ac_c" 1>&6
935 cat > conftest.$ac_ext <<EOF
936 #line 934 "configure"
937 #include "confdefs.h"
940 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
941 ac_err=`grep -v '^ *+' conftest.out`
942 if test -z "$ac_err"; then
944 eval "ac_cv_header_$ac_safe=yes"
948 eval "ac_cv_header_$ac_safe=no"
952 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
953 echo "$ac_t""yes" 1>&6
956 echo "$ac_t""no" 1>&6
957 cat >> confdefs.h <<\EOF
961 echo X 'NO_TIME_H' '1' >> defines.out
964 ac_safe=`echo "stdarg.h" | tr './\055' '___'`
965 echo $ac_n "checking for stdarg.h""... $ac_c" 1>&6
966 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
967 echo $ac_n "(cached) $ac_c" 1>&6
969 cat > conftest.$ac_ext <<EOF
970 #line 968 "configure"
971 #include "confdefs.h"
974 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
975 ac_err=`grep -v '^ *+' conftest.out`
976 if test -z "$ac_err"; then
978 eval "ac_cv_header_$ac_safe=yes"
982 eval "ac_cv_header_$ac_safe=no"
986 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
987 echo "$ac_t""yes" 1>&6
990 echo "$ac_t""no" 1>&6
991 cat >> confdefs.h <<\EOF
992 #define NO_STDARG_H 1
995 echo X 'NO_STDARG_H' '1' >> defines.out
998 echo $ac_n "checking for memcpy""... $ac_c" 1>&6
999 if eval "test \"`echo '$''{'ac_cv_func_memcpy'+set}'`\" = set"; then
1000 echo $ac_n "(cached) $ac_c" 1>&6
1002 cat > conftest.$ac_ext <<EOF
1003 #line 1001 "configure"
1004 #include "confdefs.h"
1005 /* System header to define __stub macros and hopefully few prototypes,
1006 which can conflict with char memcpy(); below. */
1008 /* Override any gcc2 internal prototype to avoid an error. */
1011 int main() { return 0; }
1014 /* The GNU C library defines this for functions which it implements
1015 to always fail with ENOSYS. Some functions are actually named
1016 something starting with __ and the normal name is an alias. */
1017 #if defined (__stub_memcpy) || defined (__stub___memcpy)
1025 if eval $ac_link; then
1027 eval "ac_cv_func_memcpy=yes"
1030 eval "ac_cv_func_memcpy=no"
1035 if eval "test \"`echo '$ac_cv_func_'memcpy`\" = yes"; then
1036 echo "$ac_t""yes" 1>&6
1039 echo "$ac_t""no" 1>&6
1040 cat >> confdefs.h <<\EOF
1044 echo X 'NO_MEMCPY' '1' >> defines.out
1047 echo $ac_n "checking for strchr""... $ac_c" 1>&6
1048 if eval "test \"`echo '$''{'ac_cv_func_strchr'+set}'`\" = set"; then
1049 echo $ac_n "(cached) $ac_c" 1>&6
1051 cat > conftest.$ac_ext <<EOF
1052 #line 1050 "configure"
1053 #include "confdefs.h"
1054 /* System header to define __stub macros and hopefully few prototypes,
1055 which can conflict with char strchr(); below. */
1057 /* Override any gcc2 internal prototype to avoid an error. */
1060 int main() { return 0; }
1063 /* The GNU C library defines this for functions which it implements
1064 to always fail with ENOSYS. Some functions are actually named
1065 something starting with __ and the normal name is an alias. */
1066 #if defined (__stub_strchr) || defined (__stub___strchr)
1074 if eval $ac_link; then
1076 eval "ac_cv_func_strchr=yes"
1079 eval "ac_cv_func_strchr=no"
1084 if eval "test \"`echo '$ac_cv_func_'strchr`\" = yes"; then
1085 echo "$ac_t""yes" 1>&6
1088 echo "$ac_t""no" 1>&6
1089 cat >> confdefs.h <<\EOF
1093 echo X 'NO_STRCHR' '1' >> defines.out
1096 echo $ac_n "checking for strerror""... $ac_c" 1>&6
1097 if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
1098 echo $ac_n "(cached) $ac_c" 1>&6
1100 cat > conftest.$ac_ext <<EOF
1101 #line 1099 "configure"
1102 #include "confdefs.h"
1103 /* System header to define __stub macros and hopefully few prototypes,
1104 which can conflict with char strerror(); below. */
1106 /* Override any gcc2 internal prototype to avoid an error. */
1109 int main() { return 0; }
1112 /* The GNU C library defines this for functions which it implements
1113 to always fail with ENOSYS. Some functions are actually named
1114 something starting with __ and the normal name is an alias. */
1115 #if defined (__stub_strerror) || defined (__stub___strerror)
1123 if eval $ac_link; then
1125 eval "ac_cv_func_strerror=yes"
1128 eval "ac_cv_func_strerror=no"
1133 if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then
1134 echo "$ac_t""yes" 1>&6
1137 echo "$ac_t""no" 1>&6
1138 cat >> confdefs.h <<\EOF
1139 #define NO_STRERROR 1
1142 echo X 'NO_STRERROR' '1' >> defines.out
1145 echo $ac_n "checking for vfprintf""... $ac_c" 1>&6
1146 if eval "test \"`echo '$''{'ac_cv_func_vfprintf'+set}'`\" = set"; then
1147 echo $ac_n "(cached) $ac_c" 1>&6
1149 cat > conftest.$ac_ext <<EOF
1150 #line 1148 "configure"
1151 #include "confdefs.h"
1152 /* System header to define __stub macros and hopefully few prototypes,
1153 which can conflict with char vfprintf(); below. */
1155 /* Override any gcc2 internal prototype to avoid an error. */
1158 int main() { return 0; }
1161 /* The GNU C library defines this for functions which it implements
1162 to always fail with ENOSYS. Some functions are actually named
1163 something starting with __ and the normal name is an alias. */
1164 #if defined (__stub_vfprintf) || defined (__stub___vfprintf)
1172 if eval $ac_link; then
1174 eval "ac_cv_func_vfprintf=yes"
1177 eval "ac_cv_func_vfprintf=no"
1182 if eval "test \"`echo '$ac_cv_func_'vfprintf`\" = yes"; then
1183 echo "$ac_t""yes" 1>&6
1186 echo "$ac_t""no" 1>&6
1187 cat >> confdefs.h <<\EOF
1188 #define NO_VFPRINTF 1
1191 echo X 'NO_VFPRINTF' '1' >> defines.out
1194 echo $ac_n "checking for strtod""... $ac_c" 1>&6
1195 if eval "test \"`echo '$''{'ac_cv_func_strtod'+set}'`\" = set"; then
1196 echo $ac_n "(cached) $ac_c" 1>&6
1198 cat > conftest.$ac_ext <<EOF
1199 #line 1197 "configure"
1200 #include "confdefs.h"
1201 /* System header to define __stub macros and hopefully few prototypes,
1202 which can conflict with char strtod(); below. */
1204 /* Override any gcc2 internal prototype to avoid an error. */
1207 int main() { return 0; }
1210 /* The GNU C library defines this for functions which it implements
1211 to always fail with ENOSYS. Some functions are actually named
1212 something starting with __ and the normal name is an alias. */
1213 #if defined (__stub_strtod) || defined (__stub___strtod)
1221 if eval $ac_link; then
1223 eval "ac_cv_func_strtod=yes"
1226 eval "ac_cv_func_strtod=no"
1231 if eval "test \"`echo '$ac_cv_func_'strtod`\" = yes"; then
1232 echo "$ac_t""yes" 1>&6
1235 echo "$ac_t""no" 1>&6
1236 cat >> confdefs.h <<\EOF
1240 echo X 'NO_STRTOD' '1' >> defines.out
1243 echo $ac_n "checking for fmod""... $ac_c" 1>&6
1244 if eval "test \"`echo '$''{'ac_cv_func_fmod'+set}'`\" = set"; then
1245 echo $ac_n "(cached) $ac_c" 1>&6
1247 cat > conftest.$ac_ext <<EOF
1248 #line 1246 "configure"
1249 #include "confdefs.h"
1250 /* System header to define __stub macros and hopefully few prototypes,
1251 which can conflict with char fmod(); below. */
1253 /* Override any gcc2 internal prototype to avoid an error. */
1256 int main() { return 0; }
1259 /* The GNU C library defines this for functions which it implements
1260 to always fail with ENOSYS. Some functions are actually named
1261 something starting with __ and the normal name is an alias. */
1262 #if defined (__stub_fmod) || defined (__stub___fmod)
1270 if eval $ac_link; then
1272 eval "ac_cv_func_fmod=yes"
1275 eval "ac_cv_func_fmod=no"
1280 if eval "test \"`echo '$ac_cv_func_'fmod`\" = yes"; then
1281 echo "$ac_t""yes" 1>&6
1284 echo "$ac_t""no" 1>&6
1285 cat >> confdefs.h <<\EOF
1289 echo X 'NO_FMOD' '1' >> defines.out
1292 echo $ac_n "checking for matherr""... $ac_c" 1>&6
1293 if eval "test \"`echo '$''{'ac_cv_func_matherr'+set}'`\" = set"; then
1294 echo $ac_n "(cached) $ac_c" 1>&6
1296 cat > conftest.$ac_ext <<EOF
1297 #line 1295 "configure"
1298 #include "confdefs.h"
1299 /* System header to define __stub macros and hopefully few prototypes,
1300 which can conflict with char matherr(); below. */
1302 /* Override any gcc2 internal prototype to avoid an error. */
1305 int main() { return 0; }
1308 /* The GNU C library defines this for functions which it implements
1309 to always fail with ENOSYS. Some functions are actually named
1310 something starting with __ and the normal name is an alias. */
1311 #if defined (__stub_matherr) || defined (__stub___matherr)
1319 if eval $ac_link; then
1321 eval "ac_cv_func_matherr=yes"
1324 eval "ac_cv_func_matherr=no"
1329 if eval "test \"`echo '$ac_cv_func_'matherr`\" = yes"; then
1330 echo "$ac_t""yes" 1>&6
1333 echo "$ac_t""no" 1>&6
1334 cat >> confdefs.h <<\EOF
1335 #define NO_MATHERR 1
1338 echo X 'NO_MATHERR' '1' >> defines.out
1341 cat > conftest.$ac_ext <<EOF
1342 #line 1340 "configure"
1343 #include "confdefs.h"
1346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1347 egrep "[^v]fprintf" >/dev/null 2>&1; then
1351 cat >> confdefs.h <<\EOF
1352 #define NO_FPRINTF_IN_STDIO 1
1355 echo X 'NO_FPRINTF_IN_STDIO' '1' >> defines.out
1359 cat > conftest.$ac_ext <<EOF
1360 #line 1358 "configure"
1361 #include "confdefs.h"
1364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1365 egrep "[^v]sprintf" >/dev/null 2>&1; then
1369 cat >> confdefs.h <<\EOF
1370 #define NO_SPRINTF_IN_STDIO 1
1373 echo X 'NO_SPRINTF_IN_STDIO' '1' >> defines.out
1377 ac_safe=`echo "limits.h" | tr './\055' '___'`
1378 echo $ac_n "checking for limits.h""... $ac_c" 1>&6
1379 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1380 echo $ac_n "(cached) $ac_c" 1>&6
1382 cat > conftest.$ac_ext <<EOF
1383 #line 1381 "configure"
1384 #include "confdefs.h"
1387 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1388 ac_err=`grep -v '^ *+' conftest.out`
1389 if test -z "$ac_err"; then
1391 eval "ac_cv_header_$ac_safe=yes"
1395 eval "ac_cv_header_$ac_safe=no"
1399 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1400 echo "$ac_t""yes" 1>&6
1403 echo "$ac_t""no" 1>&6
1406 if test "$limits_h" = yes ; then :
1408 ac_safe=`echo "values.h" | tr './\055' '___'`
1409 echo $ac_n "checking for values.h""... $ac_c" 1>&6
1410 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1411 echo $ac_n "(cached) $ac_c" 1>&6
1413 cat > conftest.$ac_ext <<EOF
1414 #line 1412 "configure"
1415 #include "confdefs.h"
1418 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1419 ac_err=`grep -v '^ *+' conftest.out`
1420 if test -z "$ac_err"; then
1422 eval "ac_cv_header_$ac_safe=yes"
1426 eval "ac_cv_header_$ac_safe=no"
1430 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1431 echo "$ac_t""yes" 1>&6
1434 echo "$ac_t""no" 1>&6
1437 if test "$values_h" = yes ; then
1438 # If we cannot run a trivial program, we must be cross compiling.
1439 echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
1440 if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
1441 echo $ac_n "(cached) $ac_c" 1>&6
1443 if test "$cross_compiling" = yes; then
1446 cat > conftest.$ac_ext <<EOF
1447 #line 1445 "configure"
1448 #include "confdefs.h"
1452 if test -s conftest && (./conftest; exit) 2>/dev/null; then
1460 cross_compiling=$ac_cv_c_cross
1461 echo "$ac_t""$ac_cv_c_cross" 1>&6
1463 if test "$cross_compiling" = yes; then
1464 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1466 cat > conftest.$ac_ext <<EOF
1467 #line 1465 "configure"
1468 #include "confdefs.h"
1472 { FILE *out = fopen("maxint.out", "w") ;
1473 if ( ! out ) exit(1) ;
1474 fprintf(out, "X MAX__INT 0x%x\n", MAXINT) ;
1475 fprintf(out, "X MAX__LONG 0x%lx\n", MAXLONG) ;
1476 exit(0) ; return(0) ;
1481 if test -s conftest && (./conftest; exit) 2>/dev/null; then
1484 { echo "configure: error: C program to compute maxint and maxlong failed.
1485 Please send bug report to brennan@whidbey.com." 1>&2; exit 1; }
1490 if test "$maxint_set" != 1 ; then
1491 # compute it -- assumes two's complement
1492 if test "$cross_compiling" = yes; then
1493 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1495 cat > conftest.$ac_ext <<EOF
1496 #line 1494 "configure"
1497 #include "confdefs.h"
1503 if ( !(out = fopen("maxint.out","w")) ) exit(1) ;
1504 /* find max int and max long */
1506 while ( y > 0 ) y *= 2 ;
1507 fprintf(out,"X MAX__INT 0x%x\n", y-1) ;
1509 while ( yy > 0 ) yy *= 2 ;
1510 fprintf(out,"X MAX__LONG 0x%lx\n", yy-1) ;
1516 if test -s conftest && (./conftest; exit) 2>/dev/null; then
1519 { echo "configure: error: C program to compute maxint and maxlong failed.
1520 Please send bug report to brennan@whidbey.com." 1>&2; exit 1; }
1525 cat maxint.out >> defines.out ; rm -f maxint.out
1527 if echo "$USER_DEFINES" | grep FPE_TRAPS_ON >/dev/null
1528 then echo skipping fpe tests based on '$'USER_DEFINES
1530 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1531 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1532 echo $ac_n "(cached) $ac_c" 1>&6
1534 cat > conftest.$ac_ext <<EOF
1535 #line 1533 "configure"
1536 #include "confdefs.h"
1537 #include <sys/types.h>
1545 void (*signal ()) ();
1546 int main() { return 0; }
1551 if eval $ac_compile; then
1553 ac_cv_type_signal=void
1556 ac_cv_type_signal=int
1561 echo "$ac_t""$ac_cv_type_signal" 1>&6
1562 cat >> confdefs.h <<EOF
1563 #define RETSIGTYPE $ac_cv_type_signal
1568 echo checking handling of floating point exceptions
1570 $CC $CFLAGS -DRETSIGTYPE=$ac_cv_type_signal -o fpe_check fpe_check.c $MATHLIB
1571 if test -f fpe_check ; then
1572 ./fpe_check 2>/dev/null
1575 echo fpe_check.c failed to compile 1>&2
1580 0) ;; # good news do nothing
1581 3) # reasonably good news
1582 cat >> confdefs.h <<\EOF
1583 #define FPE_TRAPS_ON 1
1586 echo X 'FPE_TRAPS_ON' '1' >> defines.out
1587 echo $ac_n "checking for sigaction""... $ac_c" 1>&6
1588 if eval "test \"`echo '$''{'ac_cv_func_sigaction'+set}'`\" = set"; then
1589 echo $ac_n "(cached) $ac_c" 1>&6
1591 cat > conftest.$ac_ext <<EOF
1592 #line 1590 "configure"
1593 #include "confdefs.h"
1594 /* System header to define __stub macros and hopefully few prototypes,
1595 which can conflict with char sigaction(); below. */
1597 /* Override any gcc2 internal prototype to avoid an error. */
1600 int main() { return 0; }
1603 /* The GNU C library defines this for functions which it implements
1604 to always fail with ENOSYS. Some functions are actually named
1605 something starting with __ and the normal name is an alias. */
1606 #if defined (__stub_sigaction) || defined (__stub___sigaction)
1614 if eval $ac_link; then
1616 eval "ac_cv_func_sigaction=yes"
1619 eval "ac_cv_func_sigaction=no"
1624 if eval "test \"`echo '$ac_cv_func_'sigaction`\" = yes"; then
1625 echo "$ac_t""yes" 1>&6
1628 echo "$ac_t""no" 1>&6
1631 ac_safe=`echo "siginfo.h" | tr './\055' '___'`
1632 echo $ac_n "checking for siginfo.h""... $ac_c" 1>&6
1633 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1634 echo $ac_n "(cached) $ac_c" 1>&6
1636 cat > conftest.$ac_ext <<EOF
1637 #line 1635 "configure"
1638 #include "confdefs.h"
1639 #include <siginfo.h>
1641 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1642 ac_err=`grep -v '^ *+' conftest.out`
1643 if test -z "$ac_err"; then
1645 eval "ac_cv_header_$ac_safe=yes"
1649 eval "ac_cv_header_$ac_safe=no"
1653 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1654 echo "$ac_t""yes" 1>&6
1657 echo "$ac_t""no" 1>&6
1660 if test "$sigaction" = 1 && test "$siginfo_h" = 1 ; then
1661 cat >> confdefs.h <<\EOF
1662 #define SV_SIGINFO 1
1665 echo X 'SV_SIGINFO' '1' >> defines.out
1667 echo $ac_n "checking for sigvec""... $ac_c" 1>&6
1668 if eval "test \"`echo '$''{'ac_cv_func_sigvec'+set}'`\" = set"; then
1669 echo $ac_n "(cached) $ac_c" 1>&6
1671 cat > conftest.$ac_ext <<EOF
1672 #line 1670 "configure"
1673 #include "confdefs.h"
1674 /* System header to define __stub macros and hopefully few prototypes,
1675 which can conflict with char sigvec(); below. */
1677 /* Override any gcc2 internal prototype to avoid an error. */
1680 int main() { return 0; }
1683 /* The GNU C library defines this for functions which it implements
1684 to always fail with ENOSYS. Some functions are actually named
1685 something starting with __ and the normal name is an alias. */
1686 #if defined (__stub_sigvec) || defined (__stub___sigvec)
1694 if eval $ac_link; then
1696 eval "ac_cv_func_sigvec=yes"
1699 eval "ac_cv_func_sigvec=no"
1704 if eval "test \"`echo '$ac_cv_func_'sigvec`\" = yes"; then
1705 echo "$ac_t""yes" 1>&6
1708 echo "$ac_t""no" 1>&6
1711 if test "$sigvec" = 1 && ./fpe_check phoney_arg >> defines.out ; then :
1712 else cat >> confdefs.h <<\EOF
1713 #define NOINFO_SIGFPE 1
1716 echo X 'NOINFO_SIGFPE' '1' >> defines.out
1720 1|2|4) # bad news have to turn off traps
1721 # only know how to do this on systemV and solaris
1722 ac_safe=`echo "ieeefp.h" | tr './\055' '___'`
1723 echo $ac_n "checking for ieeefp.h""... $ac_c" 1>&6
1724 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1725 echo $ac_n "(cached) $ac_c" 1>&6
1727 cat > conftest.$ac_ext <<EOF
1728 #line 1726 "configure"
1729 #include "confdefs.h"
1732 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1733 ac_err=`grep -v '^ *+' conftest.out`
1734 if test -z "$ac_err"; then
1736 eval "ac_cv_header_$ac_safe=yes"
1740 eval "ac_cv_header_$ac_safe=no"
1744 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1745 echo "$ac_t""yes" 1>&6
1748 echo "$ac_t""no" 1>&6
1751 echo $ac_n "checking for fpsetmask""... $ac_c" 1>&6
1752 if eval "test \"`echo '$''{'ac_cv_func_fpsetmask'+set}'`\" = set"; then
1753 echo $ac_n "(cached) $ac_c" 1>&6
1755 cat > conftest.$ac_ext <<EOF
1756 #line 1754 "configure"
1757 #include "confdefs.h"
1758 /* System header to define __stub macros and hopefully few prototypes,
1759 which can conflict with char fpsetmask(); below. */
1761 /* Override any gcc2 internal prototype to avoid an error. */
1764 int main() { return 0; }
1767 /* The GNU C library defines this for functions which it implements
1768 to always fail with ENOSYS. Some functions are actually named
1769 something starting with __ and the normal name is an alias. */
1770 #if defined (__stub_fpsetmask) || defined (__stub___fpsetmask)
1778 if eval $ac_link; then
1780 eval "ac_cv_func_fpsetmask=yes"
1783 eval "ac_cv_func_fpsetmask=no"
1788 if eval "test \"`echo '$ac_cv_func_'fpsetmask`\" = yes"; then
1789 echo "$ac_t""yes" 1>&6
1792 echo "$ac_t""no" 1>&6
1795 if test "$ieeefp_h" = 1 && test "$fpsetmask" = 1 ; then
1796 cat >> confdefs.h <<\EOF
1797 #define FPE_TRAPS_ON 1
1800 echo X 'FPE_TRAPS_ON' '1' >> defines.out
1801 cat >> confdefs.h <<\EOF
1802 #define USE_IEEEFP_H 1
1805 echo X 'USE_IEEEFP_H' '1' >> defines.out
1806 echo X 'TURN_ON_FPE_TRAPS()' 'fpsetmask(fpgetmask()|FP_X_DZ|FP_X_OFL)' >> defines.out
1807 echo $ac_n "checking for sigaction""... $ac_c" 1>&6
1808 if eval "test \"`echo '$''{'ac_cv_func_sigaction'+set}'`\" = set"; then
1809 echo $ac_n "(cached) $ac_c" 1>&6
1811 cat > conftest.$ac_ext <<EOF
1812 #line 1810 "configure"
1813 #include "confdefs.h"
1814 /* System header to define __stub macros and hopefully few prototypes,
1815 which can conflict with char sigaction(); below. */
1817 /* Override any gcc2 internal prototype to avoid an error. */
1820 int main() { return 0; }
1823 /* The GNU C library defines this for functions which it implements
1824 to always fail with ENOSYS. Some functions are actually named
1825 something starting with __ and the normal name is an alias. */
1826 #if defined (__stub_sigaction) || defined (__stub___sigaction)
1834 if eval $ac_link; then
1836 eval "ac_cv_func_sigaction=yes"
1839 eval "ac_cv_func_sigaction=no"
1844 if eval "test \"`echo '$ac_cv_func_'sigaction`\" = yes"; then
1845 echo "$ac_t""yes" 1>&6
1848 echo "$ac_t""no" 1>&6
1851 ac_safe=`echo "siginfo.h" | tr './\055' '___'`
1852 echo $ac_n "checking for siginfo.h""... $ac_c" 1>&6
1853 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1854 echo $ac_n "(cached) $ac_c" 1>&6
1856 cat > conftest.$ac_ext <<EOF
1857 #line 1855 "configure"
1858 #include "confdefs.h"
1859 #include <siginfo.h>
1861 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1862 ac_err=`grep -v '^ *+' conftest.out`
1863 if test -z "$ac_err"; then
1865 eval "ac_cv_header_$ac_safe=yes"
1869 eval "ac_cv_header_$ac_safe=no"
1873 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1874 echo "$ac_t""yes" 1>&6
1877 echo "$ac_t""no" 1>&6
1880 if test "$sigaction" = 1 && test "$siginfo_h" = 1 ; then
1881 cat >> confdefs.h <<\EOF
1882 #define SV_SIGINFO 1
1885 echo X 'SV_SIGINFO' '1' >> defines.out
1887 echo $ac_n "checking for sigvec""... $ac_c" 1>&6
1888 if eval "test \"`echo '$''{'ac_cv_func_sigvec'+set}'`\" = set"; then
1889 echo $ac_n "(cached) $ac_c" 1>&6
1891 cat > conftest.$ac_ext <<EOF
1892 #line 1890 "configure"
1893 #include "confdefs.h"
1894 /* System header to define __stub macros and hopefully few prototypes,
1895 which can conflict with char sigvec(); below. */
1897 /* Override any gcc2 internal prototype to avoid an error. */
1900 int main() { return 0; }
1903 /* The GNU C library defines this for functions which it implements
1904 to always fail with ENOSYS. Some functions are actually named
1905 something starting with __ and the normal name is an alias. */
1906 #if defined (__stub_sigvec) || defined (__stub___sigvec)
1914 if eval $ac_link; then
1916 eval "ac_cv_func_sigvec=yes"
1919 eval "ac_cv_func_sigvec=no"
1924 if eval "test \"`echo '$ac_cv_func_'sigvec`\" = yes"; then
1925 echo "$ac_t""yes" 1>&6
1928 echo "$ac_t""no" 1>&6
1931 if test "$sigvec" = 1 && ./fpe_check phoney_arg >> defines.out ; then :
1932 else cat >> confdefs.h <<\EOF
1933 #define NOINFO_SIGFPE 1
1936 echo X 'NOINFO_SIGFPE' '1' >> defines.out
1939 # look for strtod overflow bug
1940 echo $ac_n "checking strtod bug on overflow""... $ac_c" 1>&6
1942 $CC $CFLAGS -DRETSIGTYPE=$ac_cv_type_signal -DUSE_IEEEFP_H \
1943 -o fpe_check fpe_check.c $MATHLIB
1944 if ./fpe_check phoney_arg phoney_arg 2>/dev/null
1946 echo "$ac_t""no bug" 1>&6
1948 echo "$ac_t""buggy -- will use work around" 1>&6
1949 echo X 'HAVE_STRTOD_OVF_BUG' '1' >> defines.out
1953 if test $status != 4 ; then
1954 cat >> confdefs.h <<\EOF
1955 #define FPE_TRAPS_ON 1
1958 echo X 'FPE_TRAPS_ON' '1' >> defines.out
1959 echo $ac_n "checking for sigaction""... $ac_c" 1>&6
1960 if eval "test \"`echo '$''{'ac_cv_func_sigaction'+set}'`\" = set"; then
1961 echo $ac_n "(cached) $ac_c" 1>&6
1963 cat > conftest.$ac_ext <<EOF
1964 #line 1962 "configure"
1965 #include "confdefs.h"
1966 /* System header to define __stub macros and hopefully few prototypes,
1967 which can conflict with char sigaction(); below. */
1969 /* Override any gcc2 internal prototype to avoid an error. */
1972 int main() { return 0; }
1975 /* The GNU C library defines this for functions which it implements
1976 to always fail with ENOSYS. Some functions are actually named
1977 something starting with __ and the normal name is an alias. */
1978 #if defined (__stub_sigaction) || defined (__stub___sigaction)
1986 if eval $ac_link; then
1988 eval "ac_cv_func_sigaction=yes"
1991 eval "ac_cv_func_sigaction=no"
1996 if eval "test \"`echo '$ac_cv_func_'sigaction`\" = yes"; then
1997 echo "$ac_t""yes" 1>&6
2000 echo "$ac_t""no" 1>&6
2003 ac_safe=`echo "siginfo.h" | tr './\055' '___'`
2004 echo $ac_n "checking for siginfo.h""... $ac_c" 1>&6
2005 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2006 echo $ac_n "(cached) $ac_c" 1>&6
2008 cat > conftest.$ac_ext <<EOF
2009 #line 2007 "configure"
2010 #include "confdefs.h"
2011 #include <siginfo.h>
2013 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2014 ac_err=`grep -v '^ *+' conftest.out`
2015 if test -z "$ac_err"; then
2017 eval "ac_cv_header_$ac_safe=yes"
2021 eval "ac_cv_header_$ac_safe=no"
2025 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2026 echo "$ac_t""yes" 1>&6
2029 echo "$ac_t""no" 1>&6
2032 if test "$sigaction" = 1 && test "$siginfo_h" = 1 ; then
2033 cat >> confdefs.h <<\EOF
2034 #define SV_SIGINFO 1
2037 echo X 'SV_SIGINFO' '1' >> defines.out
2039 echo $ac_n "checking for sigvec""... $ac_c" 1>&6
2040 if eval "test \"`echo '$''{'ac_cv_func_sigvec'+set}'`\" = set"; then
2041 echo $ac_n "(cached) $ac_c" 1>&6
2043 cat > conftest.$ac_ext <<EOF
2044 #line 2042 "configure"
2045 #include "confdefs.h"
2046 /* System header to define __stub macros and hopefully few prototypes,
2047 which can conflict with char sigvec(); below. */
2049 /* Override any gcc2 internal prototype to avoid an error. */
2052 int main() { return 0; }
2055 /* The GNU C library defines this for functions which it implements
2056 to always fail with ENOSYS. Some functions are actually named
2057 something starting with __ and the normal name is an alias. */
2058 #if defined (__stub_sigvec) || defined (__stub___sigvec)
2066 if eval $ac_link; then
2068 eval "ac_cv_func_sigvec=yes"
2071 eval "ac_cv_func_sigvec=no"
2076 if eval "test \"`echo '$ac_cv_func_'sigvec`\" = yes"; then
2077 echo "$ac_t""yes" 1>&6
2080 echo "$ac_t""no" 1>&6
2083 if test "$sigvec" = 1 && ./fpe_check phoney_arg >> defines.out ; then :
2084 else cat >> confdefs.h <<\EOF
2085 #define NOINFO_SIGFPE 1
2088 echo X 'NOINFO_SIGFPE' '1' >> defines.out
2096 Warning: Your system defaults generate floating point exception
2097 on divide by zero but not on overflow. You need to
2098 #define TURN_ON_FPE_TRAPS() to handle overflow.
2099 Please report this so I can fix this script to do it automatically.
2104 Warning: Your system defaults generate floating point exception
2105 on overflow but not on divide by zero. You need to
2106 #define TURN_ON_FPE_TRAPS() to handle divide by zero.
2107 Please report this so I can fix this script to do it automatically.
2112 Warning: Your system defaults do not generate floating point
2113 exceptions, but your math library does not support this behavior.
2115 #define TURN_ON_FPE_TRAPS() to use fp exceptions for consistency.
2116 Please report this so I can fix this script to do it automatically.
2120 echo brennan@whidbey.com
2121 echo You can continue with the build and the resulting mawk will be
2122 echo useable, but getting FPE_TRAPS_ON correct eventually is best.
2125 *) # some sort of disaster
2127 The program `fpe_check' compiled from fpe_check.c seems to have
2128 unexpectly blown up. Please report this to brennan@whidbey.com.
2133 rm -f fpe_check # whew!!
2139 /* config.h -- generated by configure */
2144 sed 's/^X/#define/' defines.out
2147 #define HAVE_REAL_PIPES 1
2148 #endif /* CONFIG_H */
2153 cat > confcache <<\EOF
2154 # This file is a shell script that caches the results of configure
2155 # tests run on this system so they can be shared between configure
2156 # scripts and configure runs. It is not useful on other systems.
2157 # If it contains results you don't want to keep, you may remove or edit it.
2159 # By default, configure uses ./config.cache as the cache file,
2160 # creating it if it does not exist already. You can give configure
2161 # the --cache-file=FILE option to use a different cache file; that is
2162 # what configure does when it calls configure scripts in
2163 # subdirectories, so they share the cache.
2164 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2165 # config.status only pays attention to the cache file if you give it the
2166 # --recheck option to rerun configure.
2169 # Ultrix sh set writes to stderr and can't be redirected directly,
2170 # and sets the high bit in the cache file unless we assign to the vars.
2172 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
2174 if cmp -s $cache_file confcache; then
2177 if test -w $cache_file; then
2178 echo "updating cache $cache_file"
2179 cat confcache > $cache_file
2181 echo "not updating unwritable cache $cache_file"
2186 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2188 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2189 # Let make expand exec_prefix.
2190 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2192 # Any assignment to VPATH causes Sun make to only execute
2193 # the first set of double-colon rules, so remove it if not needed.
2194 # If there is a colon in the path, we need to keep it.
2195 if test "x$srcdir" = x.; then
2196 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2199 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2201 # Transform confdefs.h into DEFS.
2202 # Protect against shell expansion while executing Makefile rules.
2203 # Protect against Makefile macro expansion.
2204 cat > conftest.defs <<\EOF
2205 s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g
2206 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2211 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2215 # Without the "./", some shells look in PATH for config.status.
2216 : ${CONFIG_STATUS=./config.status}
2218 echo creating $CONFIG_STATUS
2219 rm -f $CONFIG_STATUS
2220 cat > $CONFIG_STATUS <<EOF
2222 # Generated automatically by configure.
2223 # Run this file to recreate the current configuration.
2224 # This directory was configured as follows,
2225 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2227 # $0 $ac_configure_args
2229 # Compiler output produced by configure, useful for debugging
2230 # configure, is in ./config.log if it exists.
2232 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2235 case "\$ac_option" in
2236 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2237 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2238 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2239 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2240 echo "$CONFIG_STATUS generated by autoconf version 2.4"
2242 -help | --help | --hel | --he | --h)
2243 echo "\$ac_cs_usage"; exit 0 ;;
2244 *) echo "\$ac_cs_usage"; exit 1 ;;
2248 ac_given_srcdir=$srcdir
2250 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2252 # Protect against being on the right side of a sed subst in config.status.
2253 sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
2254 s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
2257 s%@CFLAGS@%$CFLAGS%g
2258 s%@CPPFLAGS@%$CPPFLAGS%g
2259 s%@CXXFLAGS@%$CXXFLAGS%g
2261 s%@LDFLAGS@%$LDFLAGS%g
2263 s%@exec_prefix@%$exec_prefix%g
2264 s%@prefix@%$prefix%g
2265 s%@program_transform_name@%$program_transform_name%g
2266 s%@BINDIR@%$BINDIR%g
2267 s%@MANDIR@%$MANDIR%g
2268 s%@MANEXT@%$MANEXT%g
2271 s%@MATHLIB@%$MATHLIB%g
2276 cat >> $CONFIG_STATUS <<EOF
2278 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2280 cat >> $CONFIG_STATUS <<\EOF
2281 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2282 # Support "outfile[:infile]", defaulting infile="outfile.in".
2284 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
2285 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2286 *) ac_file_in="${ac_file}.in" ;;
2289 # Adjust relative srcdir, etc. for subdirectories.
2291 # Remove last slash and all that follows it. Not all systems have dirname.
2292 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2293 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2294 # The file is in a subdirectory.
2295 test ! -d "$ac_dir" && mkdir "$ac_dir"
2296 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2297 # A "../" for each directory in $ac_dir_suffix.
2298 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2300 ac_dir_suffix= ac_dots=
2303 case "$ac_given_srcdir" in
2305 if test -z "$ac_dots"; then top_srcdir=.
2306 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2307 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2309 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2310 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2313 echo creating "$ac_file"
2315 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2317 *Makefile*) ac_comsub="1i\\
2318 # $configure_input" ;;
2322 s%@configure_input@%$configure_input%g
2323 s%@srcdir@%$srcdir%g
2324 s%@top_srcdir@%$top_srcdir%g
2325 " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
2333 chmod +x $CONFIG_STATUS
2334 rm -fr confdefs* $ac_clean_files
2335 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1