2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # 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.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
273 ac_unique_file="xboard.c"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LEX LEXLIB LEX_OUTPUT_ROOT RSH NROFF NROFFFLAGS AWKPATH PERLPATH XAW_LIBS EGREP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os SET_MAKE MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB PRE_XMULIB POST_XMULIB CONF_CFLAGS CONF_LDFLAGS ZIPPY_O ZIPPY_H PRODUCT VERSION PATCHLEVEL LIBOBJS LTLIBOBJS'
314 # Initialize some variables set by options.
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name=s,x,x,
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
429 -help | --help | --hel | --he | -h)
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 # Obsolete; use --without-fp.
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
559 -site=* | --site=* | --sit=*)
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 -version | --version | --versio | --versi | --vers | -V)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
608 # Obsolete; use --with-x.
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
774 # Report the --help message.
776 if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
780 \`configure' configures this package to adapt to many kinds of systems.
782 Usage: $0 [OPTION]... [VAR=VALUE]...
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
787 Defaults for the options are specified in brackets.
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
814 For better control, use the options below.
816 Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
834 --x-includes=DIR X include files are in DIR
835 --x-libraries=DIR X library files are in DIR
838 --build=BUILD configure for building on BUILD [guessed]
839 --host=HOST cross-compile to build programs to run on HOST [BUILD]
843 if test -n "$ac_init_help"; then
848 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
849 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
850 --disable-nls do not use Native Language Support
851 --disable-rpath do not hardcode runtime library paths
852 --enable-xpm libXpm will be used if found (default)
853 --disable-xpm libXpm will not be used
854 --enable-ptys force use of pseudo-ttys with child processes
855 --disable-ptys force use of pipes with child processes
856 --enable-zippy support interfacing a chess program to ICS (default)
857 --disable-zippy do not support interfacing a chess program to ICS
858 --enable-sigint sending SIGINT (^C) wakes up GNU Chess (default)
859 --disable-sigint typing a command wakes up GNU Chess
862 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
863 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
864 --with-Xaw3d use Xaw3d instead of Xaw
865 --with-x use the X Window System
866 --with-gnu-ld assume the C compiler uses GNU ld default=no
867 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
868 --without-libiconv-prefix don't search for libiconv in includedir and libdir
869 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
870 --without-libintl-prefix don't search for libintl in includedir and libdir
872 Some influential environment variables:
873 CC C compiler command
874 CFLAGS C compiler flags
875 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
876 nonstandard directory <lib dir>
877 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
878 headers in a nonstandard directory <include dir>
881 Use these variables to override the choices made by `configure' or to help
882 it to find libraries and programs with nonstandard names/locations.
887 if test "$ac_init_help" = "recursive"; then
888 # If there are subdirs, report their specific --help.
890 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
891 test -d $ac_dir || continue
894 if test "$ac_dir" != .; then
895 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
896 # A "../" for each directory in $ac_dir_suffix.
897 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
899 ac_dir_suffix= ac_top_builddir=
903 .) # No --srcdir option. We are building in place.
905 if test -z "$ac_top_builddir"; then
908 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
910 [\\/]* | ?:[\\/]* ) # Absolute path.
911 ac_srcdir=$srcdir$ac_dir_suffix;
912 ac_top_srcdir=$srcdir ;;
914 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
915 ac_top_srcdir=$ac_top_builddir$srcdir ;;
917 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
919 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
920 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
921 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
922 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
925 # Check for guested configure; otherwise get Cygnus style configure.
926 if test -f $ac_srcdir/configure.gnu; then
928 $SHELL $ac_srcdir/configure.gnu --help=recursive
929 elif test -f $ac_srcdir/configure; then
931 $SHELL $ac_srcdir/configure --help=recursive
932 elif test -f $ac_srcdir/configure.ac ||
933 test -f $ac_srcdir/configure.in; then
937 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
943 test -n "$ac_init_help" && exit 0
944 if $ac_init_version; then
947 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
948 Free Software Foundation, Inc.
949 This configure script is free software; the Free Software Foundation
950 gives unlimited permission to copy, distribute and modify it.
956 This file contains any messages produced by compilers while
957 running configure, to aid debugging if configure makes a mistake.
959 It was created by $as_me, which was
960 generated by GNU Autoconf 2.57. Invocation command line was
971 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
972 uname -m = `(uname -m) 2>/dev/null || echo unknown`
973 uname -r = `(uname -r) 2>/dev/null || echo unknown`
974 uname -s = `(uname -s) 2>/dev/null || echo unknown`
975 uname -v = `(uname -v) 2>/dev/null || echo unknown`
977 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
978 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
980 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
981 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
982 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
983 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
984 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
985 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
986 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
994 test -z "$as_dir" && as_dir=.
1010 # Keep a trace of the command line.
1011 # Strip out --no-create and --no-recursion so they do not pile up.
1012 # Strip out --silent because we don't want to record it for future runs.
1013 # Also quote any args containing shell meta-characters.
1014 # Make two passes to allow for proper duplicate-argument suppression.
1019 ac_must_keep_next=false
1025 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1026 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1027 | -silent | --silent | --silen | --sile | --sil)
1029 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1030 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1033 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1035 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1036 if test $ac_must_keep_next = true; then
1037 ac_must_keep_next=false # Got value, back to normal.
1040 *=* | --config-cache | -C | -disable-* | --disable-* \
1041 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1042 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1043 | -with-* | --with-* | -without-* | --without-* | --x)
1044 case "$ac_configure_args0 " in
1045 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1048 -* ) ac_must_keep_next=true ;;
1051 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1052 # Get rid of the leading space.
1058 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1059 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1061 # When interrupted or exit'd, cleanup temporary files, and complete
1062 # config.log. We remove comments because anyway the quotes in there
1063 # would cause problems or look ugly.
1064 # WARNING: Be sure not to use single quotes in there, as some shells,
1065 # such as our DU 5.0 friend, will then `close' the trap.
1066 trap 'exit_status=$?
1067 # Save into config.log some information that might help in debugging.
1072 ## ---------------- ##
1073 ## Cache variables. ##
1074 ## ---------------- ##
1077 # The following way of writing the cache mishandles newlines in values,
1080 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1083 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1084 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1088 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1095 ## ----------------- ##
1096 ## Output variables. ##
1097 ## ----------------- ##
1100 for ac_var in $ac_subst_vars
1102 eval ac_val=$`echo $ac_var`
1103 echo "$ac_var='"'"'$ac_val'"'"'"
1107 if test -n "$ac_subst_files"; then
1114 for ac_var in $ac_subst_files
1116 eval ac_val=$`echo $ac_var`
1117 echo "$ac_var='"'"'$ac_val'"'"'"
1122 if test -s confdefs.h; then
1129 sed "/^$/d" confdefs.h | sort
1132 test "$ac_signal" != 0 &&
1133 echo "$as_me: caught signal $ac_signal"
1134 echo "$as_me: exit $exit_status"
1136 rm -f core core.* *.core &&
1137 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1140 for ac_signal in 1 2 13 15; do
1141 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1145 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1146 rm -rf conftest* confdefs.h
1147 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1150 # Predefined preprocessor variables.
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_NAME "$PACKAGE_NAME"
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1167 cat >>confdefs.h <<_ACEOF
1168 #define PACKAGE_STRING "$PACKAGE_STRING"
1172 cat >>confdefs.h <<_ACEOF
1173 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1177 # Let the site file select an alternate cache file if it wants to.
1178 # Prefer explicitly selected file to automatically selected ones.
1179 if test -z "$CONFIG_SITE"; then
1180 if test "x$prefix" != xNONE; then
1181 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1183 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1186 for ac_site_file in $CONFIG_SITE; do
1187 if test -r "$ac_site_file"; then
1188 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1189 echo "$as_me: loading site script $ac_site_file" >&6;}
1190 sed 's/^/| /' "$ac_site_file" >&5
1195 if test -r "$cache_file"; then
1196 # Some versions of bash will fail to source /dev/null (special
1197 # files actually), so we avoid doing that.
1198 if test -f "$cache_file"; then
1199 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1200 echo "$as_me: loading cache $cache_file" >&6;}
1202 [\\/]* | ?:[\\/]* ) . $cache_file;;
1203 *) . ./$cache_file;;
1207 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1208 echo "$as_me: creating cache $cache_file" >&6;}
1212 # Check that the precious variables saved in the cache have kept the same
1214 ac_cache_corrupted=false
1215 for ac_var in `(set) 2>&1 |
1216 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1217 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1218 eval ac_new_set=\$ac_env_${ac_var}_set
1219 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1220 eval ac_new_val="\$ac_env_${ac_var}_value"
1221 case $ac_old_set,$ac_new_set in
1223 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1224 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1225 ac_cache_corrupted=: ;;
1227 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1228 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1229 ac_cache_corrupted=: ;;
1232 if test "x$ac_old_val" != "x$ac_new_val"; then
1233 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1234 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1235 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1236 echo "$as_me: former value: $ac_old_val" >&2;}
1237 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1238 echo "$as_me: current value: $ac_new_val" >&2;}
1239 ac_cache_corrupted=:
1242 # Pass precious variables to config.status.
1243 if test "$ac_new_set" = set; then
1245 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1246 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1247 *) ac_arg=$ac_var=$ac_new_val ;;
1249 case " $ac_configure_args " in
1250 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1251 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1255 if $ac_cache_corrupted; then
1256 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1257 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1258 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1259 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1260 { (exit 1); exit 1; }; }
1264 ac_cpp='$CPP $CPPFLAGS'
1265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1287 ac_config_headers="$ac_config_headers config.h"
1294 if test -z "$CFLAGS" ; then
1298 ac_cpp='$CPP $CPPFLAGS'
1299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1302 if test -n "$ac_tool_prefix"; then
1303 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1304 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1305 echo "$as_me:$LINENO: checking for $ac_word" >&5
1306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1307 if test "${ac_cv_prog_CC+set}" = set; then
1308 echo $ECHO_N "(cached) $ECHO_C" >&6
1310 if test -n "$CC"; then
1311 ac_cv_prog_CC="$CC" # Let the user override the test.
1313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1317 test -z "$as_dir" && as_dir=.
1318 for ac_exec_ext in '' $ac_executable_extensions; do
1319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1320 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1330 if test -n "$CC"; then
1331 echo "$as_me:$LINENO: result: $CC" >&5
1332 echo "${ECHO_T}$CC" >&6
1334 echo "$as_me:$LINENO: result: no" >&5
1335 echo "${ECHO_T}no" >&6
1339 if test -z "$ac_cv_prog_CC"; then
1341 # Extract the first word of "gcc", so it can be a program name with args.
1342 set dummy gcc; ac_word=$2
1343 echo "$as_me:$LINENO: checking for $ac_word" >&5
1344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1345 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1346 echo $ECHO_N "(cached) $ECHO_C" >&6
1348 if test -n "$ac_ct_CC"; then
1349 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1355 test -z "$as_dir" && as_dir=.
1356 for ac_exec_ext in '' $ac_executable_extensions; do
1357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1358 ac_cv_prog_ac_ct_CC="gcc"
1359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1367 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1368 if test -n "$ac_ct_CC"; then
1369 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1370 echo "${ECHO_T}$ac_ct_CC" >&6
1372 echo "$as_me:$LINENO: result: no" >&5
1373 echo "${ECHO_T}no" >&6
1381 if test -z "$CC"; then
1382 if test -n "$ac_tool_prefix"; then
1383 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1384 set dummy ${ac_tool_prefix}cc; ac_word=$2
1385 echo "$as_me:$LINENO: checking for $ac_word" >&5
1386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1387 if test "${ac_cv_prog_CC+set}" = set; then
1388 echo $ECHO_N "(cached) $ECHO_C" >&6
1390 if test -n "$CC"; then
1391 ac_cv_prog_CC="$CC" # Let the user override the test.
1393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1397 test -z "$as_dir" && as_dir=.
1398 for ac_exec_ext in '' $ac_executable_extensions; do
1399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1400 ac_cv_prog_CC="${ac_tool_prefix}cc"
1401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1410 if test -n "$CC"; then
1411 echo "$as_me:$LINENO: result: $CC" >&5
1412 echo "${ECHO_T}$CC" >&6
1414 echo "$as_me:$LINENO: result: no" >&5
1415 echo "${ECHO_T}no" >&6
1419 if test -z "$ac_cv_prog_CC"; then
1421 # Extract the first word of "cc", so it can be a program name with args.
1422 set dummy cc; ac_word=$2
1423 echo "$as_me:$LINENO: checking for $ac_word" >&5
1424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1425 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1426 echo $ECHO_N "(cached) $ECHO_C" >&6
1428 if test -n "$ac_ct_CC"; then
1429 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1435 test -z "$as_dir" && as_dir=.
1436 for ac_exec_ext in '' $ac_executable_extensions; do
1437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1438 ac_cv_prog_ac_ct_CC="cc"
1439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1447 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1448 if test -n "$ac_ct_CC"; then
1449 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1450 echo "${ECHO_T}$ac_ct_CC" >&6
1452 echo "$as_me:$LINENO: result: no" >&5
1453 echo "${ECHO_T}no" >&6
1462 if test -z "$CC"; then
1463 # Extract the first word of "cc", so it can be a program name with args.
1464 set dummy cc; ac_word=$2
1465 echo "$as_me:$LINENO: checking for $ac_word" >&5
1466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1467 if test "${ac_cv_prog_CC+set}" = set; then
1468 echo $ECHO_N "(cached) $ECHO_C" >&6
1470 if test -n "$CC"; then
1471 ac_cv_prog_CC="$CC" # Let the user override the test.
1474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1478 test -z "$as_dir" && as_dir=.
1479 for ac_exec_ext in '' $ac_executable_extensions; do
1480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1481 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1482 ac_prog_rejected=yes
1486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1492 if test $ac_prog_rejected = yes; then
1493 # We found a bogon in the path, so make sure we never use it.
1494 set dummy $ac_cv_prog_CC
1496 if test $# != 0; then
1497 # We chose a different compiler from the bogus one.
1498 # However, it has the same basename, so the bogon will be chosen
1499 # first if we set CC to just the basename; use the full file name.
1501 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1507 if test -n "$CC"; then
1508 echo "$as_me:$LINENO: result: $CC" >&5
1509 echo "${ECHO_T}$CC" >&6
1511 echo "$as_me:$LINENO: result: no" >&5
1512 echo "${ECHO_T}no" >&6
1516 if test -z "$CC"; then
1517 if test -n "$ac_tool_prefix"; then
1520 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1521 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1522 echo "$as_me:$LINENO: checking for $ac_word" >&5
1523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1524 if test "${ac_cv_prog_CC+set}" = set; then
1525 echo $ECHO_N "(cached) $ECHO_C" >&6
1527 if test -n "$CC"; then
1528 ac_cv_prog_CC="$CC" # Let the user override the test.
1530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1534 test -z "$as_dir" && as_dir=.
1535 for ac_exec_ext in '' $ac_executable_extensions; do
1536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1537 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1547 if test -n "$CC"; then
1548 echo "$as_me:$LINENO: result: $CC" >&5
1549 echo "${ECHO_T}$CC" >&6
1551 echo "$as_me:$LINENO: result: no" >&5
1552 echo "${ECHO_T}no" >&6
1555 test -n "$CC" && break
1558 if test -z "$CC"; then
1562 # Extract the first word of "$ac_prog", so it can be a program name with args.
1563 set dummy $ac_prog; ac_word=$2
1564 echo "$as_me:$LINENO: checking for $ac_word" >&5
1565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1566 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1567 echo $ECHO_N "(cached) $ECHO_C" >&6
1569 if test -n "$ac_ct_CC"; then
1570 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1576 test -z "$as_dir" && as_dir=.
1577 for ac_exec_ext in '' $ac_executable_extensions; do
1578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1579 ac_cv_prog_ac_ct_CC="$ac_prog"
1580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1588 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1589 if test -n "$ac_ct_CC"; then
1590 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1591 echo "${ECHO_T}$ac_ct_CC" >&6
1593 echo "$as_me:$LINENO: result: no" >&5
1594 echo "${ECHO_T}no" >&6
1597 test -n "$ac_ct_CC" && break
1606 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1607 See \`config.log' for more details." >&5
1608 echo "$as_me: error: no acceptable C compiler found in \$PATH
1609 See \`config.log' for more details." >&2;}
1610 { (exit 1); exit 1; }; }
1612 # Provide some information about the compiler.
1613 echo "$as_me:$LINENO:" \
1614 "checking for C compiler version" >&5
1615 ac_compiler=`set X $ac_compile; echo $2`
1616 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1617 (eval $ac_compiler --version </dev/null >&5) 2>&5
1619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1620 (exit $ac_status); }
1621 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1622 (eval $ac_compiler -v </dev/null >&5) 2>&5
1624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1625 (exit $ac_status); }
1626 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1627 (eval $ac_compiler -V </dev/null >&5) 2>&5
1629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1630 (exit $ac_status); }
1632 cat >conftest.$ac_ext <<_ACEOF
1633 #line $LINENO "configure"
1636 cat confdefs.h >>conftest.$ac_ext
1637 cat >>conftest.$ac_ext <<_ACEOF
1638 /* end confdefs.h. */
1648 ac_clean_files_save=$ac_clean_files
1649 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1650 # Try to create an executable without -o first, disregard a.out.
1651 # It will help us diagnose broken compilers, and finding out an intuition
1653 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1654 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1655 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1656 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1657 (eval $ac_link_default) 2>&5
1659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1660 (exit $ac_status); }; then
1661 # Find the output, starting from the most likely. This scheme is
1662 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1665 # Be careful to initialize this variable, since it used to be cached.
1666 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1668 # b.out is created by i960 compilers.
1669 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1671 test -f "$ac_file" || continue
1673 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1676 # This is the source file.
1679 # We found the default executable, but exeext='' is most
1683 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1684 # FIXME: I believe we export ac_cv_exeext for Libtool,
1685 # but it would be cool to find out if it's true. Does anybody
1686 # maintain Libtool? --akim.
1694 echo "$as_me: failed program was:" >&5
1695 sed 's/^/| /' conftest.$ac_ext >&5
1697 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1698 See \`config.log' for more details." >&5
1699 echo "$as_me: error: C compiler cannot create executables
1700 See \`config.log' for more details." >&2;}
1701 { (exit 77); exit 77; }; }
1704 ac_exeext=$ac_cv_exeext
1705 echo "$as_me:$LINENO: result: $ac_file" >&5
1706 echo "${ECHO_T}$ac_file" >&6
1708 # Check the compiler produces executables we can run. If not, either
1709 # the compiler is broken, or we cross compile.
1710 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1711 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1712 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1713 # If not cross compiling, check that we can run a simple program.
1714 if test "$cross_compiling" != yes; then
1715 if { ac_try='./$ac_file'
1716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1720 (exit $ac_status); }; }; then
1723 if test "$cross_compiling" = maybe; then
1726 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1727 If you meant to cross compile, use \`--host'.
1728 See \`config.log' for more details." >&5
1729 echo "$as_me: error: cannot run C compiled programs.
1730 If you meant to cross compile, use \`--host'.
1731 See \`config.log' for more details." >&2;}
1732 { (exit 1); exit 1; }; }
1736 echo "$as_me:$LINENO: result: yes" >&5
1737 echo "${ECHO_T}yes" >&6
1739 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1740 ac_clean_files=$ac_clean_files_save
1741 # Check the compiler produces executables we can run. If not, either
1742 # the compiler is broken, or we cross compile.
1743 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1744 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1745 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1746 echo "${ECHO_T}$cross_compiling" >&6
1748 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1749 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1751 (eval $ac_link) 2>&5
1753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1754 (exit $ac_status); }; then
1755 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1756 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1757 # work properly (i.e., refer to `conftest.exe'), while it won't with
1759 for ac_file in conftest.exe conftest conftest.*; do
1760 test -f "$ac_file" || continue
1762 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1763 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1770 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1771 See \`config.log' for more details." >&5
1772 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1773 See \`config.log' for more details." >&2;}
1774 { (exit 1); exit 1; }; }
1777 rm -f conftest$ac_cv_exeext
1778 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1779 echo "${ECHO_T}$ac_cv_exeext" >&6
1781 rm -f conftest.$ac_ext
1782 EXEEXT=$ac_cv_exeext
1784 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1785 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1786 if test "${ac_cv_objext+set}" = set; then
1787 echo $ECHO_N "(cached) $ECHO_C" >&6
1789 cat >conftest.$ac_ext <<_ACEOF
1790 #line $LINENO "configure"
1793 cat confdefs.h >>conftest.$ac_ext
1794 cat >>conftest.$ac_ext <<_ACEOF
1795 /* end confdefs.h. */
1805 rm -f conftest.o conftest.obj
1806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1807 (eval $ac_compile) 2>&5
1809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1810 (exit $ac_status); }; then
1811 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1813 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1814 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1819 echo "$as_me: failed program was:" >&5
1820 sed 's/^/| /' conftest.$ac_ext >&5
1822 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1823 See \`config.log' for more details." >&5
1824 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1825 See \`config.log' for more details." >&2;}
1826 { (exit 1); exit 1; }; }
1829 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1831 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1832 echo "${ECHO_T}$ac_cv_objext" >&6
1833 OBJEXT=$ac_cv_objext
1835 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1836 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1837 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1838 echo $ECHO_N "(cached) $ECHO_C" >&6
1840 cat >conftest.$ac_ext <<_ACEOF
1841 #line $LINENO "configure"
1844 cat confdefs.h >>conftest.$ac_ext
1845 cat >>conftest.$ac_ext <<_ACEOF
1846 /* end confdefs.h. */
1859 rm -f conftest.$ac_objext
1860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1861 (eval $ac_compile) 2>&5
1863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1864 (exit $ac_status); } &&
1865 { ac_try='test -s conftest.$ac_objext'
1866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1870 (exit $ac_status); }; }; then
1873 echo "$as_me: failed program was:" >&5
1874 sed 's/^/| /' conftest.$ac_ext >&5
1878 rm -f conftest.$ac_objext conftest.$ac_ext
1879 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1882 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1883 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1884 GCC=`test $ac_compiler_gnu = yes && echo yes`
1885 ac_test_CFLAGS=${CFLAGS+set}
1886 ac_save_CFLAGS=$CFLAGS
1888 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1889 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1890 if test "${ac_cv_prog_cc_g+set}" = set; then
1891 echo $ECHO_N "(cached) $ECHO_C" >&6
1893 cat >conftest.$ac_ext <<_ACEOF
1894 #line $LINENO "configure"
1897 cat confdefs.h >>conftest.$ac_ext
1898 cat >>conftest.$ac_ext <<_ACEOF
1899 /* end confdefs.h. */
1909 rm -f conftest.$ac_objext
1910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1911 (eval $ac_compile) 2>&5
1913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1914 (exit $ac_status); } &&
1915 { ac_try='test -s conftest.$ac_objext'
1916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1920 (exit $ac_status); }; }; then
1923 echo "$as_me: failed program was:" >&5
1924 sed 's/^/| /' conftest.$ac_ext >&5
1928 rm -f conftest.$ac_objext conftest.$ac_ext
1930 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1931 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1932 if test "$ac_test_CFLAGS" = set; then
1933 CFLAGS=$ac_save_CFLAGS
1934 elif test $ac_cv_prog_cc_g = yes; then
1935 if test "$GCC" = yes; then
1941 if test "$GCC" = yes; then
1947 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1948 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1949 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1950 echo $ECHO_N "(cached) $ECHO_C" >&6
1952 ac_cv_prog_cc_stdc=no
1954 cat >conftest.$ac_ext <<_ACEOF
1955 #line $LINENO "configure"
1958 cat confdefs.h >>conftest.$ac_ext
1959 cat >>conftest.$ac_ext <<_ACEOF
1960 /* end confdefs.h. */
1963 #include <sys/types.h>
1964 #include <sys/stat.h>
1965 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1966 struct buf { int x; };
1967 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1968 static char *e (p, i)
1974 static char *f (char * (*g) (char **, int), char **p, ...)
1979 s = g (p, va_arg (v,int));
1983 int test (int i, double x);
1984 struct s1 {int (*f) (int a);};
1985 struct s2 {int (*f) (double a);};
1986 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1992 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1997 # Don't try gcc -ansi; that turns off useful extensions and
1998 # breaks some systems' header files.
1999 # AIX -qlanglvl=ansi
2000 # Ultrix and OSF/1 -std1
2001 # HP-UX 10.20 and later -Ae
2002 # HP-UX older versions -Aa -D_HPUX_SOURCE
2003 # SVR4 -Xc -D__EXTENSIONS__
2004 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2006 CC="$ac_save_CC $ac_arg"
2007 rm -f conftest.$ac_objext
2008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2009 (eval $ac_compile) 2>&5
2011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2012 (exit $ac_status); } &&
2013 { ac_try='test -s conftest.$ac_objext'
2014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2018 (exit $ac_status); }; }; then
2019 ac_cv_prog_cc_stdc=$ac_arg
2022 echo "$as_me: failed program was:" >&5
2023 sed 's/^/| /' conftest.$ac_ext >&5
2026 rm -f conftest.$ac_objext
2028 rm -f conftest.$ac_ext conftest.$ac_objext
2033 case "x$ac_cv_prog_cc_stdc" in
2035 echo "$as_me:$LINENO: result: none needed" >&5
2036 echo "${ECHO_T}none needed" >&6 ;;
2038 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2039 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2040 CC="$CC $ac_cv_prog_cc_stdc" ;;
2043 # Some people use a C++ compiler to compile C. Since we use `exit',
2044 # in C++ we need to declare it. In case someone uses the same compiler
2045 # for both compiling C and C++ we need to have the C++ compiler decide
2046 # the declaration of exit, since it's the most demanding environment.
2047 cat >conftest.$ac_ext <<_ACEOF
2052 rm -f conftest.$ac_objext
2053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2054 (eval $ac_compile) 2>&5
2056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057 (exit $ac_status); } &&
2058 { ac_try='test -s conftest.$ac_objext'
2059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063 (exit $ac_status); }; }; then
2064 for ac_declaration in \
2066 '#include <stdlib.h>' \
2067 'extern "C" void std::exit (int) throw (); using std::exit;' \
2068 'extern "C" void std::exit (int); using std::exit;' \
2069 'extern "C" void exit (int) throw ();' \
2070 'extern "C" void exit (int);' \
2073 cat >conftest.$ac_ext <<_ACEOF
2074 #line $LINENO "configure"
2077 cat confdefs.h >>conftest.$ac_ext
2078 cat >>conftest.$ac_ext <<_ACEOF
2079 /* end confdefs.h. */
2090 rm -f conftest.$ac_objext
2091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2092 (eval $ac_compile) 2>&5
2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095 (exit $ac_status); } &&
2096 { ac_try='test -s conftest.$ac_objext'
2097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101 (exit $ac_status); }; }; then
2104 echo "$as_me: failed program was:" >&5
2105 sed 's/^/| /' conftest.$ac_ext >&5
2109 rm -f conftest.$ac_objext conftest.$ac_ext
2110 cat >conftest.$ac_ext <<_ACEOF
2111 #line $LINENO "configure"
2114 cat confdefs.h >>conftest.$ac_ext
2115 cat >>conftest.$ac_ext <<_ACEOF
2116 /* end confdefs.h. */
2126 rm -f conftest.$ac_objext
2127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2128 (eval $ac_compile) 2>&5
2130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131 (exit $ac_status); } &&
2132 { ac_try='test -s conftest.$ac_objext'
2133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137 (exit $ac_status); }; }; then
2140 echo "$as_me: failed program was:" >&5
2141 sed 's/^/| /' conftest.$ac_ext >&5
2144 rm -f conftest.$ac_objext conftest.$ac_ext
2147 if test -n "$ac_declaration"; then
2148 echo '#ifdef __cplusplus' >>confdefs.h
2149 echo $ac_declaration >>confdefs.h
2150 echo '#endif' >>confdefs.h
2154 echo "$as_me: failed program was:" >&5
2155 sed 's/^/| /' conftest.$ac_ext >&5
2158 rm -f conftest.$ac_objext conftest.$ac_ext
2160 ac_cpp='$CPP $CPPFLAGS'
2161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2166 ac_cpp='$CPP $CPPFLAGS'
2167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2170 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2171 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2172 # On Suns, sometimes $CPP names a directory.
2173 if test -n "$CPP" && test -d "$CPP"; then
2176 if test -z "$CPP"; then
2177 if test "${ac_cv_prog_CPP+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2180 # Double quotes because CPP needs to be expanded
2181 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2184 for ac_c_preproc_warn_flag in '' yes
2186 # Use a header file that comes with gcc, so configuring glibc
2187 # with a fresh cross-compiler works.
2188 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2189 # <limits.h> exists even on freestanding compilers.
2190 # On the NeXT, cc -E runs the code through the compiler's parser,
2191 # not just through cpp. "Syntax error" is here to catch this case.
2192 cat >conftest.$ac_ext <<_ACEOF
2193 #line $LINENO "configure"
2196 cat confdefs.h >>conftest.$ac_ext
2197 cat >>conftest.$ac_ext <<_ACEOF
2198 /* end confdefs.h. */
2200 # include <limits.h>
2202 # include <assert.h>
2206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2209 grep -v '^ *+' conftest.er1 >conftest.err
2211 cat conftest.err >&5
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); } >/dev/null; then
2214 if test -s conftest.err; then
2215 ac_cpp_err=$ac_c_preproc_warn_flag
2222 if test -z "$ac_cpp_err"; then
2225 echo "$as_me: failed program was:" >&5
2226 sed 's/^/| /' conftest.$ac_ext >&5
2228 # Broken: fails on valid input.
2231 rm -f conftest.err conftest.$ac_ext
2233 # OK, works on sane cases. Now check whether non-existent headers
2234 # can be detected and how.
2235 cat >conftest.$ac_ext <<_ACEOF
2236 #line $LINENO "configure"
2239 cat confdefs.h >>conftest.$ac_ext
2240 cat >>conftest.$ac_ext <<_ACEOF
2241 /* end confdefs.h. */
2242 #include <ac_nonexistent.h>
2244 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2247 grep -v '^ *+' conftest.er1 >conftest.err
2249 cat conftest.err >&5
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); } >/dev/null; then
2252 if test -s conftest.err; then
2253 ac_cpp_err=$ac_c_preproc_warn_flag
2260 if test -z "$ac_cpp_err"; then
2261 # Broken: success on invalid input.
2264 echo "$as_me: failed program was:" >&5
2265 sed 's/^/| /' conftest.$ac_ext >&5
2267 # Passes both tests.
2271 rm -f conftest.err conftest.$ac_ext
2274 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2275 rm -f conftest.err conftest.$ac_ext
2276 if $ac_preproc_ok; then
2288 echo "$as_me:$LINENO: result: $CPP" >&5
2289 echo "${ECHO_T}$CPP" >&6
2291 for ac_c_preproc_warn_flag in '' yes
2293 # Use a header file that comes with gcc, so configuring glibc
2294 # with a fresh cross-compiler works.
2295 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2296 # <limits.h> exists even on freestanding compilers.
2297 # On the NeXT, cc -E runs the code through the compiler's parser,
2298 # not just through cpp. "Syntax error" is here to catch this case.
2299 cat >conftest.$ac_ext <<_ACEOF
2300 #line $LINENO "configure"
2303 cat confdefs.h >>conftest.$ac_ext
2304 cat >>conftest.$ac_ext <<_ACEOF
2305 /* end confdefs.h. */
2307 # include <limits.h>
2309 # include <assert.h>
2313 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2316 grep -v '^ *+' conftest.er1 >conftest.err
2318 cat conftest.err >&5
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); } >/dev/null; then
2321 if test -s conftest.err; then
2322 ac_cpp_err=$ac_c_preproc_warn_flag
2329 if test -z "$ac_cpp_err"; then
2332 echo "$as_me: failed program was:" >&5
2333 sed 's/^/| /' conftest.$ac_ext >&5
2335 # Broken: fails on valid input.
2338 rm -f conftest.err conftest.$ac_ext
2340 # OK, works on sane cases. Now check whether non-existent headers
2341 # can be detected and how.
2342 cat >conftest.$ac_ext <<_ACEOF
2343 #line $LINENO "configure"
2346 cat confdefs.h >>conftest.$ac_ext
2347 cat >>conftest.$ac_ext <<_ACEOF
2348 /* end confdefs.h. */
2349 #include <ac_nonexistent.h>
2351 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2354 grep -v '^ *+' conftest.er1 >conftest.err
2356 cat conftest.err >&5
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); } >/dev/null; then
2359 if test -s conftest.err; then
2360 ac_cpp_err=$ac_c_preproc_warn_flag
2367 if test -z "$ac_cpp_err"; then
2368 # Broken: success on invalid input.
2371 echo "$as_me: failed program was:" >&5
2372 sed 's/^/| /' conftest.$ac_ext >&5
2374 # Passes both tests.
2378 rm -f conftest.err conftest.$ac_ext
2381 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2382 rm -f conftest.err conftest.$ac_ext
2383 if $ac_preproc_ok; then
2386 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2387 See \`config.log' for more details." >&5
2388 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2389 See \`config.log' for more details." >&2;}
2390 { (exit 1); exit 1; }; }
2394 ac_cpp='$CPP $CPPFLAGS'
2395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2400 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2401 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2402 if test "${ac_cv_search_strerror+set}" = set; then
2403 echo $ECHO_N "(cached) $ECHO_C" >&6
2405 ac_func_search_save_LIBS=$LIBS
2406 ac_cv_search_strerror=no
2407 cat >conftest.$ac_ext <<_ACEOF
2408 #line $LINENO "configure"
2411 cat confdefs.h >>conftest.$ac_ext
2412 cat >>conftest.$ac_ext <<_ACEOF
2413 /* end confdefs.h. */
2415 /* Override any gcc2 internal prototype to avoid an error. */
2419 /* We use char because int might match the return type of a gcc2
2420 builtin and then its argument prototype would still apply. */
2430 rm -f conftest.$ac_objext conftest$ac_exeext
2431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2432 (eval $ac_link) 2>&5
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); } &&
2436 { ac_try='test -s conftest$ac_exeext'
2437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); }; }; then
2442 ac_cv_search_strerror="none required"
2444 echo "$as_me: failed program was:" >&5
2445 sed 's/^/| /' conftest.$ac_ext >&5
2448 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2449 if test "$ac_cv_search_strerror" = no; then
2450 for ac_lib in cposix; do
2451 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2452 cat >conftest.$ac_ext <<_ACEOF
2453 #line $LINENO "configure"
2456 cat confdefs.h >>conftest.$ac_ext
2457 cat >>conftest.$ac_ext <<_ACEOF
2458 /* end confdefs.h. */
2460 /* Override any gcc2 internal prototype to avoid an error. */
2464 /* We use char because int might match the return type of a gcc2
2465 builtin and then its argument prototype would still apply. */
2475 rm -f conftest.$ac_objext conftest$ac_exeext
2476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2477 (eval $ac_link) 2>&5
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); } &&
2481 { ac_try='test -s conftest$ac_exeext'
2482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); }; }; then
2487 ac_cv_search_strerror="-l$ac_lib"
2490 echo "$as_me: failed program was:" >&5
2491 sed 's/^/| /' conftest.$ac_ext >&5
2494 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2497 LIBS=$ac_func_search_save_LIBS
2499 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2500 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2501 if test "$ac_cv_search_strerror" != no; then
2502 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2507 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2508 if test -f $ac_dir/install-sh; then
2510 ac_install_sh="$ac_aux_dir/install-sh -c"
2512 elif test -f $ac_dir/install.sh; then
2514 ac_install_sh="$ac_aux_dir/install.sh -c"
2516 elif test -f $ac_dir/shtool; then
2518 ac_install_sh="$ac_aux_dir/shtool install -c"
2522 if test -z "$ac_aux_dir"; then
2523 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2524 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2525 { (exit 1); exit 1; }; }
2527 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2528 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2529 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2531 # Find a good install program. We prefer a C program (faster),
2532 # so one script is as good as another. But avoid the broken or
2533 # incompatible versions:
2534 # SysV /etc/install, /usr/sbin/install
2535 # SunOS /usr/etc/install
2536 # IRIX /sbin/install
2538 # AmigaOS /C/install, which installs bootblocks on floppy discs
2539 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2540 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2541 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2542 # ./install, which can be erroneously created by make from ./install.sh.
2543 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2544 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2545 if test -z "$INSTALL"; then
2546 if test "${ac_cv_path_install+set}" = set; then
2547 echo $ECHO_N "(cached) $ECHO_C" >&6
2549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553 test -z "$as_dir" && as_dir=.
2554 # Account for people who put trailing slashes in PATH elements.
2556 ./ | .// | /cC/* | \
2557 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2560 # OSF1 and SCO ODT 3.0 have their own names for install.
2561 # Don't use installbsd from OSF since it installs stuff as root
2563 for ac_prog in ginstall scoinst install; do
2564 for ac_exec_ext in '' $ac_executable_extensions; do
2565 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2566 if test $ac_prog = install &&
2567 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2568 # AIX install. It has an incompatible calling convention.
2570 elif test $ac_prog = install &&
2571 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2572 # program-specific install script used by HP pwplus--don't use.
2575 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2587 if test "${ac_cv_path_install+set}" = set; then
2588 INSTALL=$ac_cv_path_install
2590 # As a last resort, use the slow shell script. We don't cache a
2591 # path for INSTALL within a source directory, because that will
2592 # break other packages using the cache if that directory is
2593 # removed, or if the path is relative.
2594 INSTALL=$ac_install_sh
2597 echo "$as_me:$LINENO: result: $INSTALL" >&5
2598 echo "${ECHO_T}$INSTALL" >&6
2600 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2601 # It thinks the first close brace ends the variable substitution.
2602 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2604 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2606 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2608 for ac_prog in lex flex
2610 # Extract the first word of "$ac_prog", so it can be a program name with args.
2611 set dummy $ac_prog; ac_word=$2
2612 echo "$as_me:$LINENO: checking for $ac_word" >&5
2613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2614 if test "${ac_cv_prog_LEX+set}" = set; then
2615 echo $ECHO_N "(cached) $ECHO_C" >&6
2617 if test -n "$LEX"; then
2618 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624 test -z "$as_dir" && as_dir=.
2625 for ac_exec_ext in '' $ac_executable_extensions; do
2626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2627 ac_cv_prog_LEX="$ac_prog"
2628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2637 if test -n "$LEX"; then
2638 echo "$as_me:$LINENO: result: $LEX" >&5
2639 echo "${ECHO_T}$LEX" >&6
2641 echo "$as_me:$LINENO: result: no" >&5
2642 echo "${ECHO_T}no" >&6
2645 test -n "$LEX" && break
2647 test -n "$LEX" || LEX="lex_not_found"
2649 if test "$LEX" != lex_not_found ; then
2650 for ac_prog in flex lex
2652 # Extract the first word of "$ac_prog", so it can be a program name with args.
2653 set dummy $ac_prog; ac_word=$2
2654 echo "$as_me:$LINENO: checking for $ac_word" >&5
2655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2656 if test "${ac_cv_prog_LEX+set}" = set; then
2657 echo $ECHO_N "(cached) $ECHO_C" >&6
2659 if test -n "$LEX"; then
2660 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666 test -z "$as_dir" && as_dir=.
2667 for ac_exec_ext in '' $ac_executable_extensions; do
2668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2669 ac_cv_prog_LEX="$ac_prog"
2670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2679 if test -n "$LEX"; then
2680 echo "$as_me:$LINENO: result: $LEX" >&5
2681 echo "${ECHO_T}$LEX" >&6
2683 echo "$as_me:$LINENO: result: no" >&5
2684 echo "${ECHO_T}no" >&6
2687 test -n "$LEX" && break
2689 test -n "$LEX" || LEX=":"
2691 if test -z "$LEXLIB"
2693 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
2694 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
2695 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2698 ac_check_lib_save_LIBS=$LIBS
2700 cat >conftest.$ac_ext <<_ACEOF
2701 #line $LINENO "configure"
2704 cat confdefs.h >>conftest.$ac_ext
2705 cat >>conftest.$ac_ext <<_ACEOF
2706 /* end confdefs.h. */
2708 /* Override any gcc2 internal prototype to avoid an error. */
2712 /* We use char because int might match the return type of a gcc2
2713 builtin and then its argument prototype would still apply. */
2723 rm -f conftest.$ac_objext conftest$ac_exeext
2724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2725 (eval $ac_link) 2>&5
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); } &&
2729 { ac_try='test -s conftest$ac_exeext'
2730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); }; }; then
2735 ac_cv_lib_fl_yywrap=yes
2737 echo "$as_me: failed program was:" >&5
2738 sed 's/^/| /' conftest.$ac_ext >&5
2740 ac_cv_lib_fl_yywrap=no
2742 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2743 LIBS=$ac_check_lib_save_LIBS
2745 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
2746 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
2747 if test $ac_cv_lib_fl_yywrap = yes; then
2750 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
2751 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
2752 if test "${ac_cv_lib_l_yywrap+set}" = set; then
2753 echo $ECHO_N "(cached) $ECHO_C" >&6
2755 ac_check_lib_save_LIBS=$LIBS
2757 cat >conftest.$ac_ext <<_ACEOF
2758 #line $LINENO "configure"
2761 cat confdefs.h >>conftest.$ac_ext
2762 cat >>conftest.$ac_ext <<_ACEOF
2763 /* end confdefs.h. */
2765 /* Override any gcc2 internal prototype to avoid an error. */
2769 /* We use char because int might match the return type of a gcc2
2770 builtin and then its argument prototype would still apply. */
2780 rm -f conftest.$ac_objext conftest$ac_exeext
2781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2782 (eval $ac_link) 2>&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); } &&
2786 { ac_try='test -s conftest$ac_exeext'
2787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); }; }; then
2792 ac_cv_lib_l_yywrap=yes
2794 echo "$as_me: failed program was:" >&5
2795 sed 's/^/| /' conftest.$ac_ext >&5
2797 ac_cv_lib_l_yywrap=no
2799 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2800 LIBS=$ac_check_lib_save_LIBS
2802 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
2803 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
2804 if test $ac_cv_lib_l_yywrap = yes; then
2812 if test "x$LEX" != "x:"; then
2813 echo "$as_me:$LINENO: checking lex output file root" >&5
2814 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
2815 if test "${ac_cv_prog_lex_root+set}" = set; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2818 # The minimal lex program is just a single line: %%. But some broken lexes
2819 # (Solaris, I think it was) want two %% lines, so accommodate them.
2820 cat >conftest.l <<_ACEOF
2824 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
2825 (eval $LEX conftest.l) 2>&5
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); }
2829 if test -f lex.yy.c; then
2830 ac_cv_prog_lex_root=lex.yy
2831 elif test -f lexyy.c; then
2832 ac_cv_prog_lex_root=lexyy
2834 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
2835 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
2836 { (exit 1); exit 1; }; }
2839 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
2840 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
2842 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2844 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
2845 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
2846 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
2849 # POSIX says lex can declare yytext either as a pointer or an array; the
2850 # default is implementation-dependent. Figure out which it is, since
2851 # not all implementations provide the %pointer and %array declarations.
2852 ac_cv_prog_lex_yytext_pointer=no
2853 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2855 LIBS="$LIBS $LEXLIB"
2856 cat >conftest.$ac_ext <<_ACEOF
2857 `cat $LEX_OUTPUT_ROOT.c`
2859 rm -f conftest.$ac_objext conftest$ac_exeext
2860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2861 (eval $ac_link) 2>&5
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); } &&
2865 { ac_try='test -s conftest$ac_exeext'
2866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); }; }; then
2871 ac_cv_prog_lex_yytext_pointer=yes
2873 echo "$as_me: failed program was:" >&5
2874 sed 's/^/| /' conftest.$ac_ext >&5
2877 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2879 rm -f "${LEX_OUTPUT_ROOT}.c"
2882 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
2883 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
2884 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2886 cat >>confdefs.h <<\_ACEOF
2887 #define YYTEXT_POINTER 1
2894 for ac_prog in remsh rsh
2896 # Extract the first word of "$ac_prog", so it can be a program name with args.
2897 set dummy $ac_prog; ac_word=$2
2898 echo "$as_me:$LINENO: checking for $ac_word" >&5
2899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2900 if test "${ac_cv_prog_RSH+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2903 if test -n "$RSH"; then
2904 ac_cv_prog_RSH="$RSH" # Let the user override the test.
2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910 test -z "$as_dir" && as_dir=.
2911 for ac_exec_ext in '' $ac_executable_extensions; do
2912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2913 ac_cv_prog_RSH="$ac_prog"
2914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2923 if test -n "$RSH"; then
2924 echo "$as_me:$LINENO: result: $RSH" >&5
2925 echo "${ECHO_T}$RSH" >&6
2927 echo "$as_me:$LINENO: result: no" >&5
2928 echo "${ECHO_T}no" >&6
2931 test -n "$RSH" && break
2933 test -n "$RSH" || RSH="rsh"
2935 cat >>confdefs.h <<_ACEOF
2936 #define REMOTE_SHELL "$RSH"
2939 # Extract the first word of "nroff", so it can be a program name with args.
2940 set dummy nroff; ac_word=$2
2941 echo "$as_me:$LINENO: checking for $ac_word" >&5
2942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2943 if test "${ac_cv_prog_NROFF+set}" = set; then
2944 echo $ECHO_N "(cached) $ECHO_C" >&6
2946 if test -n "$NROFF"; then
2947 ac_cv_prog_NROFF="$NROFF" # Let the user override the test.
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 test -z "$as_dir" && as_dir=.
2954 for ac_exec_ext in '' $ac_executable_extensions; do
2955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2956 ac_cv_prog_NROFF="nroff -man"
2957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2963 test -z "$ac_cv_prog_NROFF" && ac_cv_prog_NROFF="cat"
2966 NROFF=$ac_cv_prog_NROFF
2967 if test -n "$NROFF"; then
2968 echo "$as_me:$LINENO: result: $NROFF" >&5
2969 echo "${ECHO_T}$NROFF" >&6
2971 echo "$as_me:$LINENO: result: no" >&5
2972 echo "${ECHO_T}no" >&6
2976 for ac_prog in awk mawk gawk nawk
2978 # Extract the first word of "$ac_prog", so it can be a program name with args.
2979 set dummy $ac_prog; ac_word=$2
2980 echo "$as_me:$LINENO: checking for $ac_word" >&5
2981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2982 if test "${ac_cv_path_AWKPATH+set}" = set; then
2983 echo $ECHO_N "(cached) $ECHO_C" >&6
2987 ac_cv_path_AWKPATH="$AWKPATH" # Let the user override the test with a path.
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994 test -z "$as_dir" && as_dir=.
2995 for ac_exec_ext in '' $ac_executable_extensions; do
2996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2997 ac_cv_path_AWKPATH="$as_dir/$ac_word$ac_exec_ext"
2998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3007 AWKPATH=$ac_cv_path_AWKPATH
3009 if test -n "$AWKPATH"; then
3010 echo "$as_me:$LINENO: result: $AWKPATH" >&5
3011 echo "${ECHO_T}$AWKPATH" >&6
3013 echo "$as_me:$LINENO: result: no" >&5
3014 echo "${ECHO_T}no" >&6
3017 test -n "$AWKPATH" && break
3022 # Extract the first word of "$ac_prog", so it can be a program name with args.
3023 set dummy $ac_prog; ac_word=$2
3024 echo "$as_me:$LINENO: checking for $ac_word" >&5
3025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3026 if test "${ac_cv_path_PERLPATH+set}" = set; then
3027 echo $ECHO_N "(cached) $ECHO_C" >&6
3031 ac_cv_path_PERLPATH="$PERLPATH" # Let the user override the test with a path.
3034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038 test -z "$as_dir" && as_dir=.
3039 for ac_exec_ext in '' $ac_executable_extensions; do
3040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3041 ac_cv_path_PERLPATH="$as_dir/$ac_word$ac_exec_ext"
3042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3051 PERLPATH=$ac_cv_path_PERLPATH
3053 if test -n "$PERLPATH"; then
3054 echo "$as_me:$LINENO: result: $PERLPATH" >&5
3055 echo "${ECHO_T}$PERLPATH" >&6
3057 echo "$as_me:$LINENO: result: no" >&5
3058 echo "${ECHO_T}no" >&6
3061 test -n "$PERLPATH" && break
3066 # Check whether --with-Xaw3d or --without-Xaw3d was given.
3067 if test "${with_Xaw3d+set}" = set; then
3068 withval="$with_Xaw3d"
3069 cat >>confdefs.h <<\_ACEOF
3080 echo "$as_me:$LINENO: checking for egrep" >&5
3081 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3082 if test "${ac_cv_prog_egrep+set}" = set; then
3083 echo $ECHO_N "(cached) $ECHO_C" >&6
3085 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3086 then ac_cv_prog_egrep='grep -E'
3087 else ac_cv_prog_egrep='egrep'
3090 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3091 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3092 EGREP=$ac_cv_prog_egrep
3095 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3096 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3097 if test "${ac_cv_header_stdc+set}" = set; then
3098 echo $ECHO_N "(cached) $ECHO_C" >&6
3100 cat >conftest.$ac_ext <<_ACEOF
3101 #line $LINENO "configure"
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>conftest.$ac_ext <<_ACEOF
3106 /* end confdefs.h. */
3120 rm -f conftest.$ac_objext
3121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3122 (eval $ac_compile) 2>&5
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); } &&
3126 { ac_try='test -s conftest.$ac_objext'
3127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); }; }; then
3132 ac_cv_header_stdc=yes
3134 echo "$as_me: failed program was:" >&5
3135 sed 's/^/| /' conftest.$ac_ext >&5
3137 ac_cv_header_stdc=no
3139 rm -f conftest.$ac_objext conftest.$ac_ext
3141 if test $ac_cv_header_stdc = yes; then
3142 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3143 cat >conftest.$ac_ext <<_ACEOF
3144 #line $LINENO "configure"
3147 cat confdefs.h >>conftest.$ac_ext
3148 cat >>conftest.$ac_ext <<_ACEOF
3149 /* end confdefs.h. */
3153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3154 $EGREP "memchr" >/dev/null 2>&1; then
3157 ac_cv_header_stdc=no
3163 if test $ac_cv_header_stdc = yes; then
3164 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3165 cat >conftest.$ac_ext <<_ACEOF
3166 #line $LINENO "configure"
3169 cat confdefs.h >>conftest.$ac_ext
3170 cat >>conftest.$ac_ext <<_ACEOF
3171 /* end confdefs.h. */
3175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3176 $EGREP "free" >/dev/null 2>&1; then
3179 ac_cv_header_stdc=no
3185 if test $ac_cv_header_stdc = yes; then
3186 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3187 if test "$cross_compiling" = yes; then
3190 cat >conftest.$ac_ext <<_ACEOF
3191 #line $LINENO "configure"
3194 cat confdefs.h >>conftest.$ac_ext
3195 cat >>conftest.$ac_ext <<_ACEOF
3196 /* end confdefs.h. */
3198 #if ((' ' & 0x0FF) == 0x020)
3199 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3200 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3202 # define ISLOWER(c) \
3203 (('a' <= (c) && (c) <= 'i') \
3204 || ('j' <= (c) && (c) <= 'r') \
3205 || ('s' <= (c) && (c) <= 'z'))
3206 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3209 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3214 for (i = 0; i < 256; i++)
3215 if (XOR (islower (i), ISLOWER (i))
3216 || toupper (i) != TOUPPER (i))
3221 rm -f conftest$ac_exeext
3222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3223 (eval $ac_link) 2>&5
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); }; }; then
3234 echo "$as_me: program exited with status $ac_status" >&5
3235 echo "$as_me: failed program was:" >&5
3236 sed 's/^/| /' conftest.$ac_ext >&5
3239 ac_cv_header_stdc=no
3241 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3245 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3246 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3247 if test $ac_cv_header_stdc = yes; then
3249 cat >>confdefs.h <<\_ACEOF
3250 #define STDC_HEADERS 1
3255 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3256 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3257 if test "${ac_cv_header_time+set}" = set; then
3258 echo $ECHO_N "(cached) $ECHO_C" >&6
3260 cat >conftest.$ac_ext <<_ACEOF
3261 #line $LINENO "configure"
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h. */
3267 #include <sys/types.h>
3268 #include <sys/time.h>
3274 if ((struct tm *) 0)
3280 rm -f conftest.$ac_objext
3281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3282 (eval $ac_compile) 2>&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); } &&
3286 { ac_try='test -s conftest.$ac_objext'
3287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); }; }; then
3292 ac_cv_header_time=yes
3294 echo "$as_me: failed program was:" >&5
3295 sed 's/^/| /' conftest.$ac_ext >&5
3297 ac_cv_header_time=no
3299 rm -f conftest.$ac_objext conftest.$ac_ext
3301 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3302 echo "${ECHO_T}$ac_cv_header_time" >&6
3303 if test $ac_cv_header_time = yes; then
3305 cat >>confdefs.h <<\_ACEOF
3306 #define TIME_WITH_SYS_TIME 1
3311 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3312 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3313 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3314 echo $ECHO_N "(cached) $ECHO_C" >&6
3316 cat >conftest.$ac_ext <<_ACEOF
3317 #line $LINENO "configure"
3320 cat confdefs.h >>conftest.$ac_ext
3321 cat >>conftest.$ac_ext <<_ACEOF
3322 /* end confdefs.h. */
3323 #include <sys/types.h>
3324 #include <sys/wait.h>
3326 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3329 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3337 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3342 rm -f conftest.$ac_objext
3343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3344 (eval $ac_compile) 2>&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); } &&
3348 { ac_try='test -s conftest.$ac_objext'
3349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }; }; then
3354 ac_cv_header_sys_wait_h=yes
3356 echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.$ac_ext >&5
3359 ac_cv_header_sys_wait_h=no
3361 rm -f conftest.$ac_objext conftest.$ac_ext
3363 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3364 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3365 if test $ac_cv_header_sys_wait_h = yes; then
3367 cat >>confdefs.h <<\_ACEOF
3368 #define HAVE_SYS_WAIT_H 1
3379 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3380 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3381 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3382 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3384 echo $ECHO_N "(cached) $ECHO_C" >&6
3386 cat >conftest.$ac_ext <<_ACEOF
3387 #line $LINENO "configure"
3390 cat confdefs.h >>conftest.$ac_ext
3391 cat >>conftest.$ac_ext <<_ACEOF
3392 /* end confdefs.h. */
3393 #include <sys/types.h>
3405 rm -f conftest.$ac_objext
3406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3407 (eval $ac_compile) 2>&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); } &&
3411 { ac_try='test -s conftest.$ac_objext'
3412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }; }; then
3417 eval "$as_ac_Header=yes"
3419 echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3422 eval "$as_ac_Header=no"
3424 rm -f conftest.$ac_objext conftest.$ac_ext
3426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3427 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3429 cat >>confdefs.h <<_ACEOF
3430 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3433 ac_header_dirent=$ac_hdr; break
3437 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3438 if test $ac_header_dirent = dirent.h; then
3439 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3440 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3441 if test "${ac_cv_search_opendir+set}" = set; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3444 ac_func_search_save_LIBS=$LIBS
3445 ac_cv_search_opendir=no
3446 cat >conftest.$ac_ext <<_ACEOF
3447 #line $LINENO "configure"
3450 cat confdefs.h >>conftest.$ac_ext
3451 cat >>conftest.$ac_ext <<_ACEOF
3452 /* end confdefs.h. */
3454 /* Override any gcc2 internal prototype to avoid an error. */
3458 /* We use char because int might match the return type of a gcc2
3459 builtin and then its argument prototype would still apply. */
3469 rm -f conftest.$ac_objext conftest$ac_exeext
3470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3471 (eval $ac_link) 2>&5
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); } &&
3475 { ac_try='test -s conftest$ac_exeext'
3476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); }; }; then
3481 ac_cv_search_opendir="none required"
3483 echo "$as_me: failed program was:" >&5
3484 sed 's/^/| /' conftest.$ac_ext >&5
3487 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3488 if test "$ac_cv_search_opendir" = no; then
3489 for ac_lib in dir; do
3490 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3491 cat >conftest.$ac_ext <<_ACEOF
3492 #line $LINENO "configure"
3495 cat confdefs.h >>conftest.$ac_ext
3496 cat >>conftest.$ac_ext <<_ACEOF
3497 /* end confdefs.h. */
3499 /* Override any gcc2 internal prototype to avoid an error. */
3503 /* We use char because int might match the return type of a gcc2
3504 builtin and then its argument prototype would still apply. */
3514 rm -f conftest.$ac_objext conftest$ac_exeext
3515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3516 (eval $ac_link) 2>&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); } &&
3520 { ac_try='test -s conftest$ac_exeext'
3521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); }; }; then
3526 ac_cv_search_opendir="-l$ac_lib"
3529 echo "$as_me: failed program was:" >&5
3530 sed 's/^/| /' conftest.$ac_ext >&5
3533 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3536 LIBS=$ac_func_search_save_LIBS
3538 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3539 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3540 if test "$ac_cv_search_opendir" != no; then
3541 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3546 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3547 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3548 if test "${ac_cv_search_opendir+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3551 ac_func_search_save_LIBS=$LIBS
3552 ac_cv_search_opendir=no
3553 cat >conftest.$ac_ext <<_ACEOF
3554 #line $LINENO "configure"
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h. */
3561 /* Override any gcc2 internal prototype to avoid an error. */
3565 /* We use char because int might match the return type of a gcc2
3566 builtin and then its argument prototype would still apply. */
3576 rm -f conftest.$ac_objext conftest$ac_exeext
3577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3578 (eval $ac_link) 2>&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); } &&
3582 { ac_try='test -s conftest$ac_exeext'
3583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }; }; then
3588 ac_cv_search_opendir="none required"
3590 echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.$ac_ext >&5
3594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3595 if test "$ac_cv_search_opendir" = no; then
3597 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3598 cat >conftest.$ac_ext <<_ACEOF
3599 #line $LINENO "configure"
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h. */
3606 /* Override any gcc2 internal prototype to avoid an error. */
3610 /* We use char because int might match the return type of a gcc2
3611 builtin and then its argument prototype would still apply. */
3621 rm -f conftest.$ac_objext conftest$ac_exeext
3622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3623 (eval $ac_link) 2>&5
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); } &&
3627 { ac_try='test -s conftest$ac_exeext'
3628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632 (exit $ac_status); }; }; then
3633 ac_cv_search_opendir="-l$ac_lib"
3636 echo "$as_me: failed program was:" >&5
3637 sed 's/^/| /' conftest.$ac_ext >&5
3640 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3643 LIBS=$ac_func_search_save_LIBS
3645 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3646 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3647 if test "$ac_cv_search_opendir" != no; then
3648 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3654 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3655 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3656 if test "${ac_cv_type_signal+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 cat >conftest.$ac_ext <<_ACEOF
3660 #line $LINENO "configure"
3663 cat confdefs.h >>conftest.$ac_ext
3664 cat >>conftest.$ac_ext <<_ACEOF
3665 /* end confdefs.h. */
3666 #include <sys/types.h>
3672 extern "C" void (*signal (int, void (*)(int)))(int);
3674 void (*signal ()) ();
3685 rm -f conftest.$ac_objext
3686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3687 (eval $ac_compile) 2>&5
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); } &&
3691 { ac_try='test -s conftest.$ac_objext'
3692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); }; }; then
3697 ac_cv_type_signal=void
3699 echo "$as_me: failed program was:" >&5
3700 sed 's/^/| /' conftest.$ac_ext >&5
3702 ac_cv_type_signal=int
3704 rm -f conftest.$ac_objext conftest.$ac_ext
3706 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3707 echo "${ECHO_T}$ac_cv_type_signal" >&6
3709 cat >>confdefs.h <<_ACEOF
3710 #define RETSIGTYPE $ac_cv_type_signal
3714 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3724 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3725 inttypes.h stdint.h unistd.h
3727 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3728 echo "$as_me:$LINENO: checking for $ac_header" >&5
3729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3731 echo $ECHO_N "(cached) $ECHO_C" >&6
3733 cat >conftest.$ac_ext <<_ACEOF
3734 #line $LINENO "configure"
3737 cat confdefs.h >>conftest.$ac_ext
3738 cat >>conftest.$ac_ext <<_ACEOF
3739 /* end confdefs.h. */
3740 $ac_includes_default
3742 #include <$ac_header>
3744 rm -f conftest.$ac_objext
3745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3746 (eval $ac_compile) 2>&5
3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); } &&
3750 { ac_try='test -s conftest.$ac_objext'
3751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); }; }; then
3756 eval "$as_ac_Header=yes"
3758 echo "$as_me: failed program was:" >&5
3759 sed 's/^/| /' conftest.$ac_ext >&5
3761 eval "$as_ac_Header=no"
3763 rm -f conftest.$ac_objext conftest.$ac_ext
3765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3766 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3767 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3768 cat >>confdefs.h <<_ACEOF
3769 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3782 for ac_header in stropts.h sys/time.h string.h unistd.h sys/systeminfo.h
3784 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3786 echo "$as_me:$LINENO: checking for $ac_header" >&5
3787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3789 echo $ECHO_N "(cached) $ECHO_C" >&6
3791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3794 # Is the header compilable?
3795 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3796 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3797 cat >conftest.$ac_ext <<_ACEOF
3798 #line $LINENO "configure"
3801 cat confdefs.h >>conftest.$ac_ext
3802 cat >>conftest.$ac_ext <<_ACEOF
3803 /* end confdefs.h. */
3804 $ac_includes_default
3805 #include <$ac_header>
3807 rm -f conftest.$ac_objext
3808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3809 (eval $ac_compile) 2>&5
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); } &&
3813 { ac_try='test -s conftest.$ac_objext'
3814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); }; }; then
3819 ac_header_compiler=yes
3821 echo "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.$ac_ext >&5
3824 ac_header_compiler=no
3826 rm -f conftest.$ac_objext conftest.$ac_ext
3827 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3828 echo "${ECHO_T}$ac_header_compiler" >&6
3830 # Is the header present?
3831 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3832 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3833 cat >conftest.$ac_ext <<_ACEOF
3834 #line $LINENO "configure"
3837 cat confdefs.h >>conftest.$ac_ext
3838 cat >>conftest.$ac_ext <<_ACEOF
3839 /* end confdefs.h. */
3840 #include <$ac_header>
3842 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3843 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3845 grep -v '^ *+' conftest.er1 >conftest.err
3847 cat conftest.err >&5
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); } >/dev/null; then
3850 if test -s conftest.err; then
3851 ac_cpp_err=$ac_c_preproc_warn_flag
3858 if test -z "$ac_cpp_err"; then
3859 ac_header_preproc=yes
3861 echo "$as_me: failed program was:" >&5
3862 sed 's/^/| /' conftest.$ac_ext >&5
3864 ac_header_preproc=no
3866 rm -f conftest.err conftest.$ac_ext
3867 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3868 echo "${ECHO_T}$ac_header_preproc" >&6
3870 # So? What about this header?
3871 case $ac_header_compiler:$ac_header_preproc in
3873 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3874 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3876 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3879 ## ------------------------------------ ##
3880 ## Report this to bug-autoconf@gnu.org. ##
3881 ## ------------------------------------ ##
3884 sed "s/^/$as_me: WARNING: /" >&2
3887 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3889 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3890 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3895 ## ------------------------------------ ##
3896 ## Report this to bug-autoconf@gnu.org. ##
3897 ## ------------------------------------ ##
3900 sed "s/^/$as_me: WARNING: /" >&2