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="main.c"
274 ac_unique_file="header.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP LIBOBJS LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
846 if test -n "$ac_init_help"; then
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --disable-dependency-tracking Speeds up one-time builds
854 --enable-dependency-tracking Do not reject slow dependency extractors
856 Some influential environment variables:
857 CC C compiler command
858 CFLAGS C compiler flags
859 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
860 nonstandard directory <lib dir>
861 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
862 headers in a nonstandard directory <include dir>
865 Use these variables to override the choices made by `configure' or to help
866 it to find libraries and programs with nonstandard names/locations.
871 if test "$ac_init_help" = "recursive"; then
872 # If there are subdirs, report their specific --help.
874 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
875 test -d $ac_dir || continue
878 if test "$ac_dir" != .; then
879 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
880 # A "../" for each directory in $ac_dir_suffix.
881 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
883 ac_dir_suffix= ac_top_builddir=
887 .) # No --srcdir option. We are building in place.
889 if test -z "$ac_top_builddir"; then
892 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
894 [\\/]* | ?:[\\/]* ) # Absolute path.
895 ac_srcdir=$srcdir$ac_dir_suffix;
896 ac_top_srcdir=$srcdir ;;
898 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
899 ac_top_srcdir=$ac_top_builddir$srcdir ;;
901 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
903 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
904 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
905 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
906 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
909 # Check for guested configure; otherwise get Cygnus style configure.
910 if test -f $ac_srcdir/configure.gnu; then
912 $SHELL $ac_srcdir/configure.gnu --help=recursive
913 elif test -f $ac_srcdir/configure; then
915 $SHELL $ac_srcdir/configure --help=recursive
916 elif test -f $ac_srcdir/configure.ac ||
917 test -f $ac_srcdir/configure.in; then
921 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
927 test -n "$ac_init_help" && exit 0
928 if $ac_init_version; then
931 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
932 Free Software Foundation, Inc.
933 This configure script is free software; the Free Software Foundation
934 gives unlimited permission to copy, distribute and modify it.
940 This file contains any messages produced by compilers while
941 running configure, to aid debugging if configure makes a mistake.
943 It was created by $as_me, which was
944 generated by GNU Autoconf 2.57. Invocation command line was
955 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
956 uname -m = `(uname -m) 2>/dev/null || echo unknown`
957 uname -r = `(uname -r) 2>/dev/null || echo unknown`
958 uname -s = `(uname -s) 2>/dev/null || echo unknown`
959 uname -v = `(uname -v) 2>/dev/null || echo unknown`
961 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
962 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
964 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
965 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
966 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
967 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
968 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
969 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
970 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
978 test -z "$as_dir" && as_dir=.
994 # Keep a trace of the command line.
995 # Strip out --no-create and --no-recursion so they do not pile up.
996 # Strip out --silent because we don't want to record it for future runs.
997 # Also quote any args containing shell meta-characters.
998 # Make two passes to allow for proper duplicate-argument suppression.
1003 ac_must_keep_next=false
1009 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1010 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1011 | -silent | --silent | --silen | --sile | --sil)
1013 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1014 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1017 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1019 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1020 if test $ac_must_keep_next = true; then
1021 ac_must_keep_next=false # Got value, back to normal.
1024 *=* | --config-cache | -C | -disable-* | --disable-* \
1025 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1026 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1027 | -with-* | --with-* | -without-* | --without-* | --x)
1028 case "$ac_configure_args0 " in
1029 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1032 -* ) ac_must_keep_next=true ;;
1035 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1036 # Get rid of the leading space.
1042 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1043 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1045 # When interrupted or exit'd, cleanup temporary files, and complete
1046 # config.log. We remove comments because anyway the quotes in there
1047 # would cause problems or look ugly.
1048 # WARNING: Be sure not to use single quotes in there, as some shells,
1049 # such as our DU 5.0 friend, will then `close' the trap.
1050 trap 'exit_status=$?
1051 # Save into config.log some information that might help in debugging.
1056 ## ---------------- ##
1057 ## Cache variables. ##
1058 ## ---------------- ##
1061 # The following way of writing the cache mishandles newlines in values,
1064 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1067 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1068 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1072 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1079 ## ----------------- ##
1080 ## Output variables. ##
1081 ## ----------------- ##
1084 for ac_var in $ac_subst_vars
1086 eval ac_val=$`echo $ac_var`
1087 echo "$ac_var='"'"'$ac_val'"'"'"
1091 if test -n "$ac_subst_files"; then
1098 for ac_var in $ac_subst_files
1100 eval ac_val=$`echo $ac_var`
1101 echo "$ac_var='"'"'$ac_val'"'"'"
1106 if test -s confdefs.h; then
1113 sed "/^$/d" confdefs.h | sort
1116 test "$ac_signal" != 0 &&
1117 echo "$as_me: caught signal $ac_signal"
1118 echo "$as_me: exit $exit_status"
1120 rm -f core core.* *.core &&
1121 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1124 for ac_signal in 1 2 13 15; do
1125 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1129 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1130 rm -rf conftest* confdefs.h
1131 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1134 # Predefined preprocessor variables.
1136 cat >>confdefs.h <<_ACEOF
1137 #define PACKAGE_NAME "$PACKAGE_NAME"
1141 cat >>confdefs.h <<_ACEOF
1142 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1146 cat >>confdefs.h <<_ACEOF
1147 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1151 cat >>confdefs.h <<_ACEOF
1152 #define PACKAGE_STRING "$PACKAGE_STRING"
1156 cat >>confdefs.h <<_ACEOF
1157 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1161 # Let the site file select an alternate cache file if it wants to.
1162 # Prefer explicitly selected file to automatically selected ones.
1163 if test -z "$CONFIG_SITE"; then
1164 if test "x$prefix" != xNONE; then
1165 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1167 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1170 for ac_site_file in $CONFIG_SITE; do
1171 if test -r "$ac_site_file"; then
1172 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1173 echo "$as_me: loading site script $ac_site_file" >&6;}
1174 sed 's/^/| /' "$ac_site_file" >&5
1179 if test -r "$cache_file"; then
1180 # Some versions of bash will fail to source /dev/null (special
1181 # files actually), so we avoid doing that.
1182 if test -f "$cache_file"; then
1183 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1184 echo "$as_me: loading cache $cache_file" >&6;}
1186 [\\/]* | ?:[\\/]* ) . $cache_file;;
1187 *) . ./$cache_file;;
1191 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1192 echo "$as_me: creating cache $cache_file" >&6;}
1196 # Check that the precious variables saved in the cache have kept the same
1198 ac_cache_corrupted=false
1199 for ac_var in `(set) 2>&1 |
1200 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1201 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1202 eval ac_new_set=\$ac_env_${ac_var}_set
1203 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1204 eval ac_new_val="\$ac_env_${ac_var}_value"
1205 case $ac_old_set,$ac_new_set in
1207 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1208 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1209 ac_cache_corrupted=: ;;
1211 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1212 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1213 ac_cache_corrupted=: ;;
1216 if test "x$ac_old_val" != "x$ac_new_val"; then
1217 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1218 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1219 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1220 echo "$as_me: former value: $ac_old_val" >&2;}
1221 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1222 echo "$as_me: current value: $ac_new_val" >&2;}
1223 ac_cache_corrupted=:
1226 # Pass precious variables to config.status.
1227 if test "$ac_new_set" = set; then
1229 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1230 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1231 *) ac_arg=$ac_var=$ac_new_val ;;
1233 case " $ac_configure_args " in
1234 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1235 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1239 if $ac_cache_corrupted; then
1240 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1241 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1242 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1243 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1244 { (exit 1); exit 1; }; }
1248 ac_cpp='$CPP $CPPFLAGS'
1249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1271 am__api_version="1.7"
1273 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1274 if test -f $ac_dir/install-sh; then
1276 ac_install_sh="$ac_aux_dir/install-sh -c"
1278 elif test -f $ac_dir/install.sh; then
1280 ac_install_sh="$ac_aux_dir/install.sh -c"
1282 elif test -f $ac_dir/shtool; then
1284 ac_install_sh="$ac_aux_dir/shtool install -c"
1288 if test -z "$ac_aux_dir"; then
1289 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1290 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1291 { (exit 1); exit 1; }; }
1293 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1294 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1295 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1297 # Find a good install program. We prefer a C program (faster),
1298 # so one script is as good as another. But avoid the broken or
1299 # incompatible versions:
1300 # SysV /etc/install, /usr/sbin/install
1301 # SunOS /usr/etc/install
1302 # IRIX /sbin/install
1304 # AmigaOS /C/install, which installs bootblocks on floppy discs
1305 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1306 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1307 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1308 # ./install, which can be erroneously created by make from ./install.sh.
1309 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1310 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1311 if test -z "$INSTALL"; then
1312 if test "${ac_cv_path_install+set}" = set; then
1313 echo $ECHO_N "(cached) $ECHO_C" >&6
1315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1319 test -z "$as_dir" && as_dir=.
1320 # Account for people who put trailing slashes in PATH elements.
1322 ./ | .// | /cC/* | \
1323 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1326 # OSF1 and SCO ODT 3.0 have their own names for install.
1327 # Don't use installbsd from OSF since it installs stuff as root
1329 for ac_prog in ginstall scoinst install; do
1330 for ac_exec_ext in '' $ac_executable_extensions; do
1331 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1332 if test $ac_prog = install &&
1333 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1334 # AIX install. It has an incompatible calling convention.
1336 elif test $ac_prog = install &&
1337 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1338 # program-specific install script used by HP pwplus--don't use.
1341 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1353 if test "${ac_cv_path_install+set}" = set; then
1354 INSTALL=$ac_cv_path_install
1356 # As a last resort, use the slow shell script. We don't cache a
1357 # path for INSTALL within a source directory, because that will
1358 # break other packages using the cache if that directory is
1359 # removed, or if the path is relative.
1360 INSTALL=$ac_install_sh
1363 echo "$as_me:$LINENO: result: $INSTALL" >&5
1364 echo "${ECHO_T}$INSTALL" >&6
1366 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1367 # It thinks the first close brace ends the variable substitution.
1368 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1370 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1372 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1374 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1375 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1378 echo timestamp > conftest.file
1379 # Do `set' in a subshell so we don't clobber the current shell's
1380 # arguments. Must try -L first in case configure is actually a
1381 # symlink; some systems play weird games with the mod time of symlinks
1382 # (eg FreeBSD returns the mod time of the symlink's containing
1385 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1386 if test "$*" = "X"; then
1388 set X `ls -t $srcdir/configure conftest.file`
1391 if test "$*" != "X $srcdir/configure conftest.file" \
1392 && test "$*" != "X conftest.file $srcdir/configure"; then
1394 # If neither matched, then we have a broken ls. This can happen
1395 # if, for instance, CONFIG_SHELL is bash and it inherits a
1396 # broken ls alias from the environment. This has actually
1397 # happened. Such a system could not be considered "sane".
1398 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1399 alias in your environment" >&5
1400 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1401 alias in your environment" >&2;}
1402 { (exit 1); exit 1; }; }
1405 test "$2" = conftest.file
1411 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1412 Check your system clock" >&5
1413 echo "$as_me: error: newly created file is older than distributed files!
1414 Check your system clock" >&2;}
1415 { (exit 1); exit 1; }; }
1417 echo "$as_me:$LINENO: result: yes" >&5
1418 echo "${ECHO_T}yes" >&6
1419 test "$program_prefix" != NONE &&
1420 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1421 # Use a double $ so make ignores it.
1422 test "$program_suffix" != NONE &&
1423 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1424 # Double any \ or $. echo might interpret backslashes.
1425 # By default was `s,x,x', remove it if useless.
1426 cat <<\_ACEOF >conftest.sed
1427 s/[\\$]/&&/g;s/;s,x,x,$//
1429 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1433 # expand $ac_aux_dir to an absolute path
1434 am_aux_dir=`cd $ac_aux_dir && pwd`
1436 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1437 # Use eval to expand $SHELL
1438 if eval "$MISSING --run true"; then
1439 am_missing_run="$MISSING --run "
1442 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1443 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1446 for ac_prog in gawk mawk nawk awk
1448 # Extract the first word of "$ac_prog", so it can be a program name with args.
1449 set dummy $ac_prog; ac_word=$2
1450 echo "$as_me:$LINENO: checking for $ac_word" >&5
1451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1452 if test "${ac_cv_prog_AWK+set}" = set; then
1453 echo $ECHO_N "(cached) $ECHO_C" >&6
1455 if test -n "$AWK"; then
1456 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1462 test -z "$as_dir" && as_dir=.
1463 for ac_exec_ext in '' $ac_executable_extensions; do
1464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1465 ac_cv_prog_AWK="$ac_prog"
1466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1475 if test -n "$AWK"; then
1476 echo "$as_me:$LINENO: result: $AWK" >&5
1477 echo "${ECHO_T}$AWK" >&6
1479 echo "$as_me:$LINENO: result: no" >&5
1480 echo "${ECHO_T}no" >&6
1483 test -n "$AWK" && break
1486 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1487 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1488 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1489 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1490 echo $ECHO_N "(cached) $ECHO_C" >&6
1492 cat >conftest.make <<\_ACEOF
1494 @echo 'ac_maketemp="$(MAKE)"'
1496 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1497 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1498 if test -n "$ac_maketemp"; then
1499 eval ac_cv_prog_make_${ac_make}_set=yes
1501 eval ac_cv_prog_make_${ac_make}_set=no
1505 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1506 echo "$as_me:$LINENO: result: yes" >&5
1507 echo "${ECHO_T}yes" >&6
1510 echo "$as_me:$LINENO: result: no" >&5
1511 echo "${ECHO_T}no" >&6
1512 SET_MAKE="MAKE=${MAKE-make}"
1515 rm -rf .tst 2>/dev/null
1516 mkdir .tst 2>/dev/null
1517 if test -d .tst; then
1522 rmdir .tst 2>/dev/null
1524 # test to see if srcdir already configured
1525 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1526 test -f $srcdir/config.status; then
1527 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1528 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1529 { (exit 1); exit 1; }; }
1532 # test whether we have cygpath
1533 if test -z "$CYGPATH_W"; then
1534 if (cygpath --version) >/dev/null 2>/dev/null; then
1535 CYGPATH_W='cygpath -w'
1542 # Define the identity of the package.
1547 cat >>confdefs.h <<_ACEOF
1548 #define PACKAGE "$PACKAGE"
1552 cat >>confdefs.h <<_ACEOF
1553 #define VERSION "$VERSION"
1556 # Some tools Automake needs.
1558 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1561 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1564 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1567 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1570 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1573 AMTAR=${AMTAR-"${am_missing_run}tar"}
1575 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1577 # Installed binaries are usually stripped using `strip' when the user
1578 # run `make install-strip'. However `strip' might not be the right
1579 # tool to use in cross-compilation environments, therefore Automake
1580 # will honor the `STRIP' environment variable to overrule this program.
1581 if test "$cross_compiling" != no; then
1582 if test -n "$ac_tool_prefix"; then
1583 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1584 set dummy ${ac_tool_prefix}strip; ac_word=$2
1585 echo "$as_me:$LINENO: checking for $ac_word" >&5
1586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1587 if test "${ac_cv_prog_STRIP+set}" = set; then
1588 echo $ECHO_N "(cached) $ECHO_C" >&6
1590 if test -n "$STRIP"; then
1591 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1597 test -z "$as_dir" && as_dir=.
1598 for ac_exec_ext in '' $ac_executable_extensions; do
1599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1600 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1609 STRIP=$ac_cv_prog_STRIP
1610 if test -n "$STRIP"; then
1611 echo "$as_me:$LINENO: result: $STRIP" >&5
1612 echo "${ECHO_T}$STRIP" >&6
1614 echo "$as_me:$LINENO: result: no" >&5
1615 echo "${ECHO_T}no" >&6
1619 if test -z "$ac_cv_prog_STRIP"; then
1621 # Extract the first word of "strip", so it can be a program name with args.
1622 set dummy strip; ac_word=$2
1623 echo "$as_me:$LINENO: checking for $ac_word" >&5
1624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1625 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1628 if test -n "$ac_ct_STRIP"; then
1629 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1635 test -z "$as_dir" && as_dir=.
1636 for ac_exec_ext in '' $ac_executable_extensions; do
1637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1638 ac_cv_prog_ac_ct_STRIP="strip"
1639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1645 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1648 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1649 if test -n "$ac_ct_STRIP"; then
1650 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1651 echo "${ECHO_T}$ac_ct_STRIP" >&6
1653 echo "$as_me:$LINENO: result: no" >&5
1654 echo "${ECHO_T}no" >&6
1659 STRIP="$ac_cv_prog_STRIP"
1663 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1665 # We need awk for the "check" target. The system "awk" is bad on
1671 # Make sure we can run config.sub.
1672 $ac_config_sub sun4 >/dev/null 2>&1 ||
1673 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1674 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1675 { (exit 1); exit 1; }; }
1677 echo "$as_me:$LINENO: checking build system type" >&5
1678 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1679 if test "${ac_cv_build+set}" = set; then
1680 echo $ECHO_N "(cached) $ECHO_C" >&6
1682 ac_cv_build_alias=$build_alias
1683 test -z "$ac_cv_build_alias" &&
1684 ac_cv_build_alias=`$ac_config_guess`
1685 test -z "$ac_cv_build_alias" &&
1686 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1687 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1688 { (exit 1); exit 1; }; }
1689 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1690 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1691 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1692 { (exit 1); exit 1; }; }
1695 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1696 echo "${ECHO_T}$ac_cv_build" >&6
1698 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1699 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1700 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1703 echo "$as_me:$LINENO: checking host system type" >&5
1704 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1705 if test "${ac_cv_host+set}" = set; then
1706 echo $ECHO_N "(cached) $ECHO_C" >&6
1708 ac_cv_host_alias=$host_alias
1709 test -z "$ac_cv_host_alias" &&
1710 ac_cv_host_alias=$ac_cv_build_alias
1711 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1712 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1713 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1714 { (exit 1); exit 1; }; }
1717 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1718 echo "${ECHO_T}$ac_cv_host" >&6
1720 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1721 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1722 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1725 echo "$as_me:$LINENO: checking target system type" >&5
1726 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1727 if test "${ac_cv_target+set}" = set; then
1728 echo $ECHO_N "(cached) $ECHO_C" >&6
1730 ac_cv_target_alias=$target_alias
1731 test "x$ac_cv_target_alias" = "x" &&
1732 ac_cv_target_alias=$ac_cv_host_alias
1733 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1734 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1735 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1736 { (exit 1); exit 1; }; }
1739 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1740 echo "${ECHO_T}$ac_cv_target" >&6
1741 target=$ac_cv_target
1742 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1743 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1744 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1747 # The aliases save the names the user supplied, while $host etc.
1748 # will get canonicalized.
1749 test -n "$target_alias" &&
1750 test "$program_prefix$program_suffix$program_transform_name" = \
1752 program_prefix=${target_alias}-
1754 # Checks for programs.
1756 ac_cpp='$CPP $CPPFLAGS'
1757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1760 if test -n "$ac_tool_prefix"; then
1761 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1762 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1763 echo "$as_me:$LINENO: checking for $ac_word" >&5
1764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1765 if test "${ac_cv_prog_CC+set}" = set; then
1766 echo $ECHO_N "(cached) $ECHO_C" >&6
1768 if test -n "$CC"; then
1769 ac_cv_prog_CC="$CC" # Let the user override the test.
1771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1775 test -z "$as_dir" && as_dir=.
1776 for ac_exec_ext in '' $ac_executable_extensions; do
1777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1778 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1788 if test -n "$CC"; then
1789 echo "$as_me:$LINENO: result: $CC" >&5
1790 echo "${ECHO_T}$CC" >&6
1792 echo "$as_me:$LINENO: result: no" >&5
1793 echo "${ECHO_T}no" >&6
1797 if test -z "$ac_cv_prog_CC"; then
1799 # Extract the first word of "gcc", so it can be a program name with args.
1800 set dummy gcc; ac_word=$2
1801 echo "$as_me:$LINENO: checking for $ac_word" >&5
1802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1803 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1804 echo $ECHO_N "(cached) $ECHO_C" >&6
1806 if test -n "$ac_ct_CC"; then
1807 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1813 test -z "$as_dir" && as_dir=.
1814 for ac_exec_ext in '' $ac_executable_extensions; do
1815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1816 ac_cv_prog_ac_ct_CC="gcc"
1817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1826 if test -n "$ac_ct_CC"; then
1827 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1828 echo "${ECHO_T}$ac_ct_CC" >&6
1830 echo "$as_me:$LINENO: result: no" >&5
1831 echo "${ECHO_T}no" >&6
1839 if test -z "$CC"; then
1840 if test -n "$ac_tool_prefix"; then
1841 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1842 set dummy ${ac_tool_prefix}cc; ac_word=$2
1843 echo "$as_me:$LINENO: checking for $ac_word" >&5
1844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1845 if test "${ac_cv_prog_CC+set}" = set; then
1846 echo $ECHO_N "(cached) $ECHO_C" >&6
1848 if test -n "$CC"; then
1849 ac_cv_prog_CC="$CC" # Let the user override the test.
1851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1855 test -z "$as_dir" && as_dir=.
1856 for ac_exec_ext in '' $ac_executable_extensions; do
1857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1858 ac_cv_prog_CC="${ac_tool_prefix}cc"
1859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1868 if test -n "$CC"; then
1869 echo "$as_me:$LINENO: result: $CC" >&5
1870 echo "${ECHO_T}$CC" >&6
1872 echo "$as_me:$LINENO: result: no" >&5
1873 echo "${ECHO_T}no" >&6
1877 if test -z "$ac_cv_prog_CC"; then
1879 # Extract the first word of "cc", so it can be a program name with args.
1880 set dummy cc; ac_word=$2
1881 echo "$as_me:$LINENO: checking for $ac_word" >&5
1882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1883 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1884 echo $ECHO_N "(cached) $ECHO_C" >&6
1886 if test -n "$ac_ct_CC"; then
1887 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893 test -z "$as_dir" && as_dir=.
1894 for ac_exec_ext in '' $ac_executable_extensions; do
1895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1896 ac_cv_prog_ac_ct_CC="cc"
1897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1905 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1906 if test -n "$ac_ct_CC"; then
1907 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1908 echo "${ECHO_T}$ac_ct_CC" >&6
1910 echo "$as_me:$LINENO: result: no" >&5
1911 echo "${ECHO_T}no" >&6
1920 if test -z "$CC"; then
1921 # Extract the first word of "cc", so it can be a program name with args.
1922 set dummy cc; ac_word=$2
1923 echo "$as_me:$LINENO: checking for $ac_word" >&5
1924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1925 if test "${ac_cv_prog_CC+set}" = set; then
1926 echo $ECHO_N "(cached) $ECHO_C" >&6
1928 if test -n "$CC"; then
1929 ac_cv_prog_CC="$CC" # Let the user override the test.
1932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1936 test -z "$as_dir" && as_dir=.
1937 for ac_exec_ext in '' $ac_executable_extensions; do
1938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1939 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1940 ac_prog_rejected=yes
1944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1950 if test $ac_prog_rejected = yes; then
1951 # We found a bogon in the path, so make sure we never use it.
1952 set dummy $ac_cv_prog_CC
1954 if test $# != 0; then
1955 # We chose a different compiler from the bogus one.
1956 # However, it has the same basename, so the bogon will be chosen
1957 # first if we set CC to just the basename; use the full file name.
1959 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1965 if test -n "$CC"; then
1966 echo "$as_me:$LINENO: result: $CC" >&5
1967 echo "${ECHO_T}$CC" >&6
1969 echo "$as_me:$LINENO: result: no" >&5
1970 echo "${ECHO_T}no" >&6
1974 if test -z "$CC"; then
1975 if test -n "$ac_tool_prefix"; then
1978 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1979 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1980 echo "$as_me:$LINENO: checking for $ac_word" >&5
1981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1982 if test "${ac_cv_prog_CC+set}" = set; then
1983 echo $ECHO_N "(cached) $ECHO_C" >&6
1985 if test -n "$CC"; then
1986 ac_cv_prog_CC="$CC" # Let the user override the test.
1988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992 test -z "$as_dir" && as_dir=.
1993 for ac_exec_ext in '' $ac_executable_extensions; do
1994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1995 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2005 if test -n "$CC"; then
2006 echo "$as_me:$LINENO: result: $CC" >&5
2007 echo "${ECHO_T}$CC" >&6
2009 echo "$as_me:$LINENO: result: no" >&5
2010 echo "${ECHO_T}no" >&6
2013 test -n "$CC" && break
2016 if test -z "$CC"; then
2020 # Extract the first word of "$ac_prog", so it can be a program name with args.
2021 set dummy $ac_prog; ac_word=$2
2022 echo "$as_me:$LINENO: checking for $ac_word" >&5
2023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2024 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2027 if test -n "$ac_ct_CC"; then
2028 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034 test -z "$as_dir" && as_dir=.
2035 for ac_exec_ext in '' $ac_executable_extensions; do
2036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2037 ac_cv_prog_ac_ct_CC="$ac_prog"
2038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2046 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2047 if test -n "$ac_ct_CC"; then
2048 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2049 echo "${ECHO_T}$ac_ct_CC" >&6
2051 echo "$as_me:$LINENO: result: no" >&5
2052 echo "${ECHO_T}no" >&6
2055 test -n "$ac_ct_CC" && break
2064 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2065 See \`config.log' for more details." >&5
2066 echo "$as_me: error: no acceptable C compiler found in \$PATH
2067 See \`config.log' for more details." >&2;}
2068 { (exit 1); exit 1; }; }
2070 # Provide some information about the compiler.
2071 echo "$as_me:$LINENO:" \
2072 "checking for C compiler version" >&5
2073 ac_compiler=`set X $ac_compile; echo $2`
2074 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2075 (eval $ac_compiler --version </dev/null >&5) 2>&5
2077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2078 (exit $ac_status); }
2079 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2080 (eval $ac_compiler -v </dev/null >&5) 2>&5
2082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083 (exit $ac_status); }
2084 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2085 (eval $ac_compiler -V </dev/null >&5) 2>&5
2087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088 (exit $ac_status); }
2090 cat >conftest.$ac_ext <<_ACEOF
2091 #line $LINENO "configure"
2094 cat confdefs.h >>conftest.$ac_ext
2095 cat >>conftest.$ac_ext <<_ACEOF
2096 /* end confdefs.h. */
2106 ac_clean_files_save=$ac_clean_files
2107 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2108 # Try to create an executable without -o first, disregard a.out.
2109 # It will help us diagnose broken compilers, and finding out an intuition
2111 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2112 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2113 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2114 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2115 (eval $ac_link_default) 2>&5
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }; then
2119 # Find the output, starting from the most likely. This scheme is
2120 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2123 # Be careful to initialize this variable, since it used to be cached.
2124 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2126 # b.out is created by i960 compilers.
2127 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2129 test -f "$ac_file" || continue
2131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2134 # This is the source file.
2137 # We found the default executable, but exeext='' is most
2141 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2142 # FIXME: I believe we export ac_cv_exeext for Libtool,
2143 # but it would be cool to find out if it's true. Does anybody
2144 # maintain Libtool? --akim.
2152 echo "$as_me: failed program was:" >&5
2153 sed 's/^/| /' conftest.$ac_ext >&5
2155 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2156 See \`config.log' for more details." >&5
2157 echo "$as_me: error: C compiler cannot create executables
2158 See \`config.log' for more details." >&2;}
2159 { (exit 77); exit 77; }; }
2162 ac_exeext=$ac_cv_exeext
2163 echo "$as_me:$LINENO: result: $ac_file" >&5
2164 echo "${ECHO_T}$ac_file" >&6
2166 # Check the compiler produces executables we can run. If not, either
2167 # the compiler is broken, or we cross compile.
2168 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2169 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2170 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2171 # If not cross compiling, check that we can run a simple program.
2172 if test "$cross_compiling" != yes; then
2173 if { ac_try='./$ac_file'
2174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); }; }; then
2181 if test "$cross_compiling" = maybe; then
2184 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2185 If you meant to cross compile, use \`--host'.
2186 See \`config.log' for more details." >&5
2187 echo "$as_me: error: cannot run C compiled programs.
2188 If you meant to cross compile, use \`--host'.
2189 See \`config.log' for more details." >&2;}
2190 { (exit 1); exit 1; }; }
2194 echo "$as_me:$LINENO: result: yes" >&5
2195 echo "${ECHO_T}yes" >&6
2197 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2198 ac_clean_files=$ac_clean_files_save
2199 # Check the compiler produces executables we can run. If not, either
2200 # the compiler is broken, or we cross compile.
2201 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2202 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2203 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2204 echo "${ECHO_T}$cross_compiling" >&6
2206 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2207 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2209 (eval $ac_link) 2>&5
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); }; then
2213 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2214 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2215 # work properly (i.e., refer to `conftest.exe'), while it won't with
2217 for ac_file in conftest.exe conftest conftest.*; do
2218 test -f "$ac_file" || continue
2220 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2221 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2228 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2229 See \`config.log' for more details." >&5
2230 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2231 See \`config.log' for more details." >&2;}
2232 { (exit 1); exit 1; }; }
2235 rm -f conftest$ac_cv_exeext
2236 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2237 echo "${ECHO_T}$ac_cv_exeext" >&6
2239 rm -f conftest.$ac_ext
2240 EXEEXT=$ac_cv_exeext
2242 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2243 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2244 if test "${ac_cv_objext+set}" = set; then
2245 echo $ECHO_N "(cached) $ECHO_C" >&6
2247 cat >conftest.$ac_ext <<_ACEOF
2248 #line $LINENO "configure"
2251 cat confdefs.h >>conftest.$ac_ext
2252 cat >>conftest.$ac_ext <<_ACEOF
2253 /* end confdefs.h. */
2263 rm -f conftest.o conftest.obj
2264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2265 (eval $ac_compile) 2>&5
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; then
2269 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2271 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2272 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2277 echo "$as_me: failed program was:" >&5
2278 sed 's/^/| /' conftest.$ac_ext >&5
2280 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2281 See \`config.log' for more details." >&5
2282 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2283 See \`config.log' for more details." >&2;}
2284 { (exit 1); exit 1; }; }
2287 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2289 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2290 echo "${ECHO_T}$ac_cv_objext" >&6
2291 OBJEXT=$ac_cv_objext
2293 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2294 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2295 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2296 echo $ECHO_N "(cached) $ECHO_C" >&6
2298 cat >conftest.$ac_ext <<_ACEOF
2299 #line $LINENO "configure"
2302 cat confdefs.h >>conftest.$ac_ext
2303 cat >>conftest.$ac_ext <<_ACEOF
2304 /* end confdefs.h. */
2317 rm -f conftest.$ac_objext
2318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2319 (eval $ac_compile) 2>&5
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); } &&
2323 { ac_try='test -s conftest.$ac_objext'
2324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }; }; then
2331 echo "$as_me: failed program was:" >&5
2332 sed 's/^/| /' conftest.$ac_ext >&5
2336 rm -f conftest.$ac_objext conftest.$ac_ext
2337 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2340 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2341 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2342 GCC=`test $ac_compiler_gnu = yes && echo yes`
2343 ac_test_CFLAGS=${CFLAGS+set}
2344 ac_save_CFLAGS=$CFLAGS
2346 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2347 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2348 if test "${ac_cv_prog_cc_g+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2351 cat >conftest.$ac_ext <<_ACEOF
2352 #line $LINENO "configure"
2355 cat confdefs.h >>conftest.$ac_ext
2356 cat >>conftest.$ac_ext <<_ACEOF
2357 /* end confdefs.h. */
2367 rm -f conftest.$ac_objext
2368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2369 (eval $ac_compile) 2>&5
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); } &&
2373 { ac_try='test -s conftest.$ac_objext'
2374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); }; }; then
2381 echo "$as_me: failed program was:" >&5
2382 sed 's/^/| /' conftest.$ac_ext >&5
2386 rm -f conftest.$ac_objext conftest.$ac_ext
2388 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2389 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2390 if test "$ac_test_CFLAGS" = set; then
2391 CFLAGS=$ac_save_CFLAGS
2392 elif test $ac_cv_prog_cc_g = yes; then
2393 if test "$GCC" = yes; then
2399 if test "$GCC" = yes; then
2405 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2406 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2407 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2408 echo $ECHO_N "(cached) $ECHO_C" >&6
2410 ac_cv_prog_cc_stdc=no
2412 cat >conftest.$ac_ext <<_ACEOF
2413 #line $LINENO "configure"
2416 cat confdefs.h >>conftest.$ac_ext
2417 cat >>conftest.$ac_ext <<_ACEOF
2418 /* end confdefs.h. */
2421 #include <sys/types.h>
2422 #include <sys/stat.h>
2423 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2424 struct buf { int x; };
2425 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2426 static char *e (p, i)
2432 static char *f (char * (*g) (char **, int), char **p, ...)
2437 s = g (p, va_arg (v,int));
2441 int test (int i, double x);
2442 struct s1 {int (*f) (int a);};
2443 struct s2 {int (*f) (double a);};
2444 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2450 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2455 # Don't try gcc -ansi; that turns off useful extensions and
2456 # breaks some systems' header files.
2457 # AIX -qlanglvl=ansi
2458 # Ultrix and OSF/1 -std1
2459 # HP-UX 10.20 and later -Ae
2460 # HP-UX older versions -Aa -D_HPUX_SOURCE
2461 # SVR4 -Xc -D__EXTENSIONS__
2462 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2464 CC="$ac_save_CC $ac_arg"
2465 rm -f conftest.$ac_objext
2466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2467 (eval $ac_compile) 2>&5
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); } &&
2471 { ac_try='test -s conftest.$ac_objext'
2472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }; }; then
2477 ac_cv_prog_cc_stdc=$ac_arg
2480 echo "$as_me: failed program was:" >&5
2481 sed 's/^/| /' conftest.$ac_ext >&5
2484 rm -f conftest.$ac_objext
2486 rm -f conftest.$ac_ext conftest.$ac_objext
2491 case "x$ac_cv_prog_cc_stdc" in
2493 echo "$as_me:$LINENO: result: none needed" >&5
2494 echo "${ECHO_T}none needed" >&6 ;;
2496 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2497 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2498 CC="$CC $ac_cv_prog_cc_stdc" ;;
2501 # Some people use a C++ compiler to compile C. Since we use `exit',
2502 # in C++ we need to declare it. In case someone uses the same compiler
2503 # for both compiling C and C++ we need to have the C++ compiler decide
2504 # the declaration of exit, since it's the most demanding environment.
2505 cat >conftest.$ac_ext <<_ACEOF
2510 rm -f conftest.$ac_objext
2511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2512 (eval $ac_compile) 2>&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); } &&
2516 { ac_try='test -s conftest.$ac_objext'
2517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; }; then
2522 for ac_declaration in \
2524 '#include <stdlib.h>' \
2525 'extern "C" void std::exit (int) throw (); using std::exit;' \
2526 'extern "C" void std::exit (int); using std::exit;' \
2527 'extern "C" void exit (int) throw ();' \
2528 'extern "C" void exit (int);' \
2531 cat >conftest.$ac_ext <<_ACEOF
2532 #line $LINENO "configure"
2535 cat confdefs.h >>conftest.$ac_ext
2536 cat >>conftest.$ac_ext <<_ACEOF
2537 /* end confdefs.h. */
2548 rm -f conftest.$ac_objext
2549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2550 (eval $ac_compile) 2>&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); } &&
2554 { ac_try='test -s conftest.$ac_objext'
2555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; }; then
2562 echo "$as_me: failed program was:" >&5
2563 sed 's/^/| /' conftest.$ac_ext >&5
2567 rm -f conftest.$ac_objext conftest.$ac_ext
2568 cat >conftest.$ac_ext <<_ACEOF
2569 #line $LINENO "configure"
2572 cat confdefs.h >>conftest.$ac_ext
2573 cat >>conftest.$ac_ext <<_ACEOF
2574 /* end confdefs.h. */
2584 rm -f conftest.$ac_objext
2585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2586 (eval $ac_compile) 2>&5
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); } &&
2590 { ac_try='test -s conftest.$ac_objext'
2591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); }; }; then
2598 echo "$as_me: failed program was:" >&5
2599 sed 's/^/| /' conftest.$ac_ext >&5
2602 rm -f conftest.$ac_objext conftest.$ac_ext
2605 if test -n "$ac_declaration"; then
2606 echo '#ifdef __cplusplus' >>confdefs.h
2607 echo $ac_declaration >>confdefs.h
2608 echo '#endif' >>confdefs.h
2612 echo "$as_me: failed program was:" >&5
2613 sed 's/^/| /' conftest.$ac_ext >&5
2616 rm -f conftest.$ac_objext conftest.$ac_ext
2618 ac_cpp='$CPP $CPPFLAGS'
2619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2622 DEPDIR="${am__leading_dot}deps"
2624 ac_config_commands="$ac_config_commands depfiles"
2627 am_make=${MAKE-make}
2628 cat > confinc << 'END'
2633 # If we don't find an include directive, just comment out the code.
2634 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2635 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2639 # First try GNU make style include.
2640 echo "include confinc" > confmf
2641 # We grep out `Entering directory' and `Leaving directory'
2642 # messages which can occur if `w' ends up in MAKEFLAGS.
2643 # In particular we don't look at `^make:' because GNU make might
2644 # be invoked under some other name (usually "gmake"), in which
2645 # case it prints its new name instead of `make'.
2646 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2651 # Now try BSD make style include.
2652 if test "$am__include" = "#"; then
2653 echo '.include "confinc"' > confmf
2654 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2655 am__include=.include
2662 echo "$as_me:$LINENO: result: $_am_result" >&5
2663 echo "${ECHO_T}$_am_result" >&6
2664 rm -f confinc confmf
2666 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2667 if test "${enable_dependency_tracking+set}" = set; then
2668 enableval="$enable_dependency_tracking"
2671 if test "x$enable_dependency_tracking" != xno; then
2672 am_depcomp="$ac_aux_dir/depcomp"
2677 if test "x$enable_dependency_tracking" != xno; then
2688 depcc="$CC" am_compiler_list=
2690 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2691 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2692 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2693 echo $ECHO_N "(cached) $ECHO_C" >&6
2695 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2696 # We make a subdir and do the tests there. Otherwise we can end up
2697 # making bogus files that we don't know about and never remove. For
2698 # instance it was reported that on HP-UX the gcc test will end up
2699 # making a dummy file named `D' -- because `-MD' means `put the output
2702 # Copy depcomp to subdir because otherwise we won't find it if we're
2703 # using a relative directory.
2704 cp "$am_depcomp" conftest.dir
2706 # We will build objects and dependencies in a subdirectory because
2707 # it helps to detect inapplicable dependency modes. For instance
2708 # both Tru64's cc and ICC support -MD to output dependencies as a
2709 # side effect of compilation, but ICC will put the dependencies in
2710 # the current directory while Tru64 will put them in the object
2714 am_cv_CC_dependencies_compiler_type=none
2715 if test "$am_compiler_list" = ""; then
2716 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2718 for depmode in $am_compiler_list; do
2719 # Setup a source with many dependencies, because some compilers
2720 # like to wrap large dependency lists on column 80 (with \), and
2721 # we should not choose a depcomp mode which is confused by this.
2723 # We need to recreate these files for each test, as the compiler may
2724 # overwrite some of them when testing with obscure command lines.
2725 # This happens at least with the AIX C compiler.
2727 for i in 1 2 3 4 5 6; do
2728 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2731 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2735 # after this tag, mechanisms are not by side-effect, so they'll
2736 # only be used when explicitly requested
2737 if test "x$enable_dependency_tracking" = xyes; then
2745 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2746 # mode. It turns out that the SunPro C++ compiler does not properly
2747 # handle `-M -o', and we need to detect this.
2748 if depmode=$depmode \
2749 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2750 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2751 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2752 >/dev/null 2>conftest.err &&
2753 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2754 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2755 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2756 # icc doesn't choke on unknown options, it will just issue warnings
2757 # (even with -Werror). So we grep stderr for any message
2758 # that says an option was ignored.
2759 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2760 am_cv_CC_dependencies_compiler_type=$depmode
2769 am_cv_CC_dependencies_compiler_type=none
2773 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2774 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2775 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2780 test "x$enable_dependency_tracking" != xno \
2781 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2783 am__fastdepCC_FALSE='#'
2785 am__fastdepCC_TRUE='#'
2786 am__fastdepCC_FALSE=
2791 # Checks for libraries.
2793 # Checks for header files.
2796 ac_cpp='$CPP $CPPFLAGS'
2797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2800 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2801 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2802 # On Suns, sometimes $CPP names a directory.
2803 if test -n "$CPP" && test -d "$CPP"; then
2806 if test -z "$CPP"; then
2807 if test "${ac_cv_prog_CPP+set}" = set; then
2808 echo $ECHO_N "(cached) $ECHO_C" >&6
2810 # Double quotes because CPP needs to be expanded
2811 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2814 for ac_c_preproc_warn_flag in '' yes
2816 # Use a header file that comes with gcc, so configuring glibc
2817 # with a fresh cross-compiler works.
2818 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2819 # <limits.h> exists even on freestanding compilers.
2820 # On the NeXT, cc -E runs the code through the compiler's parser,
2821 # not just through cpp. "Syntax error" is here to catch this case.
2822 cat >conftest.$ac_ext <<_ACEOF
2823 #line $LINENO "configure"
2826 cat confdefs.h >>conftest.$ac_ext
2827 cat >>conftest.$ac_ext <<_ACEOF
2828 /* end confdefs.h. */
2830 # include <limits.h>
2832 # include <assert.h>
2836 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2837 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2839 grep -v '^ *+' conftest.er1 >conftest.err
2841 cat conftest.err >&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); } >/dev/null; then
2844 if test -s conftest.err; then
2845 ac_cpp_err=$ac_c_preproc_warn_flag
2852 if test -z "$ac_cpp_err"; then
2855 echo "$as_me: failed program was:" >&5
2856 sed 's/^/| /' conftest.$ac_ext >&5
2858 # Broken: fails on valid input.
2861 rm -f conftest.err conftest.$ac_ext
2863 # OK, works on sane cases. Now check whether non-existent headers
2864 # can be detected and how.
2865 cat >conftest.$ac_ext <<_ACEOF
2866 #line $LINENO "configure"
2869 cat confdefs.h >>conftest.$ac_ext
2870 cat >>conftest.$ac_ext <<_ACEOF
2871 /* end confdefs.h. */
2872 #include <ac_nonexistent.h>
2874 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2875 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2877 grep -v '^ *+' conftest.er1 >conftest.err
2879 cat conftest.err >&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); } >/dev/null; then
2882 if test -s conftest.err; then
2883 ac_cpp_err=$ac_c_preproc_warn_flag
2890 if test -z "$ac_cpp_err"; then
2891 # Broken: success on invalid input.
2894 echo "$as_me: failed program was:" >&5
2895 sed 's/^/| /' conftest.$ac_ext >&5
2897 # Passes both tests.
2901 rm -f conftest.err conftest.$ac_ext
2904 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2905 rm -f conftest.err conftest.$ac_ext
2906 if $ac_preproc_ok; then
2918 echo "$as_me:$LINENO: result: $CPP" >&5
2919 echo "${ECHO_T}$CPP" >&6
2921 for ac_c_preproc_warn_flag in '' yes
2923 # Use a header file that comes with gcc, so configuring glibc
2924 # with a fresh cross-compiler works.
2925 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2926 # <limits.h> exists even on freestanding compilers.
2927 # On the NeXT, cc -E runs the code through the compiler's parser,
2928 # not just through cpp. "Syntax error" is here to catch this case.
2929 cat >conftest.$ac_ext <<_ACEOF
2930 #line $LINENO "configure"
2933 cat confdefs.h >>conftest.$ac_ext
2934 cat >>conftest.$ac_ext <<_ACEOF
2935 /* end confdefs.h. */
2937 # include <limits.h>
2939 # include <assert.h>
2943 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2944 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2946 grep -v '^ *+' conftest.er1 >conftest.err
2948 cat conftest.err >&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); } >/dev/null; then
2951 if test -s conftest.err; then
2952 ac_cpp_err=$ac_c_preproc_warn_flag
2959 if test -z "$ac_cpp_err"; then
2962 echo "$as_me: failed program was:" >&5
2963 sed 's/^/| /' conftest.$ac_ext >&5
2965 # Broken: fails on valid input.
2968 rm -f conftest.err conftest.$ac_ext
2970 # OK, works on sane cases. Now check whether non-existent headers
2971 # can be detected and how.
2972 cat >conftest.$ac_ext <<_ACEOF
2973 #line $LINENO "configure"
2976 cat confdefs.h >>conftest.$ac_ext
2977 cat >>conftest.$ac_ext <<_ACEOF
2978 /* end confdefs.h. */
2979 #include <ac_nonexistent.h>
2981 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2982 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2984 grep -v '^ *+' conftest.er1 >conftest.err
2986 cat conftest.err >&5
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); } >/dev/null; then
2989 if test -s conftest.err; then
2990 ac_cpp_err=$ac_c_preproc_warn_flag
2997 if test -z "$ac_cpp_err"; then
2998 # Broken: success on invalid input.
3001 echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3004 # Passes both tests.
3008 rm -f conftest.err conftest.$ac_ext
3011 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3012 rm -f conftest.err conftest.$ac_ext
3013 if $ac_preproc_ok; then
3016 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3017 See \`config.log' for more details." >&5
3018 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3019 See \`config.log' for more details." >&2;}
3020 { (exit 1); exit 1; }; }
3024 ac_cpp='$CPP $CPPFLAGS'
3025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3030 echo "$as_me:$LINENO: checking for egrep" >&5
3031 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3032 if test "${ac_cv_prog_egrep+set}" = set; then
3033 echo $ECHO_N "(cached) $ECHO_C" >&6
3035 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3036 then ac_cv_prog_egrep='grep -E'
3037 else ac_cv_prog_egrep='egrep'
3040 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3041 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3042 EGREP=$ac_cv_prog_egrep
3045 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3046 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3047 if test "${ac_cv_header_stdc+set}" = set; then
3048 echo $ECHO_N "(cached) $ECHO_C" >&6
3050 cat >conftest.$ac_ext <<_ACEOF
3051 #line $LINENO "configure"
3054 cat confdefs.h >>conftest.$ac_ext
3055 cat >>conftest.$ac_ext <<_ACEOF
3056 /* end confdefs.h. */
3070 rm -f conftest.$ac_objext
3071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3072 (eval $ac_compile) 2>&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); } &&
3076 { ac_try='test -s conftest.$ac_objext'
3077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); }; }; then
3082 ac_cv_header_stdc=yes
3084 echo "$as_me: failed program was:" >&5
3085 sed 's/^/| /' conftest.$ac_ext >&5
3087 ac_cv_header_stdc=no
3089 rm -f conftest.$ac_objext conftest.$ac_ext
3091 if test $ac_cv_header_stdc = yes; then
3092 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3093 cat >conftest.$ac_ext <<_ACEOF
3094 #line $LINENO "configure"
3097 cat confdefs.h >>conftest.$ac_ext
3098 cat >>conftest.$ac_ext <<_ACEOF
3099 /* end confdefs.h. */
3103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3104 $EGREP "memchr" >/dev/null 2>&1; then
3107 ac_cv_header_stdc=no
3113 if test $ac_cv_header_stdc = yes; then
3114 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3115 cat >conftest.$ac_ext <<_ACEOF
3116 #line $LINENO "configure"
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h. */
3125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3126 $EGREP "free" >/dev/null 2>&1; then
3129 ac_cv_header_stdc=no
3135 if test $ac_cv_header_stdc = yes; then
3136 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3137 if test "$cross_compiling" = yes; then
3140 cat >conftest.$ac_ext <<_ACEOF
3141 #line $LINENO "configure"
3144 cat confdefs.h >>conftest.$ac_ext
3145 cat >>conftest.$ac_ext <<_ACEOF
3146 /* end confdefs.h. */
3148 #if ((' ' & 0x0FF) == 0x020)
3149 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3150 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3152 # define ISLOWER(c) \
3153 (('a' <= (c) && (c) <= 'i') \
3154 || ('j' <= (c) && (c) <= 'r') \
3155 || ('s' <= (c) && (c) <= 'z'))
3156 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3159 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3164 for (i = 0; i < 256; i++)
3165 if (XOR (islower (i), ISLOWER (i))
3166 || toupper (i) != TOUPPER (i))
3171 rm -f conftest$ac_exeext
3172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3173 (eval $ac_link) 2>&5
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); }; }; then
3184 echo "$as_me: program exited with status $ac_status" >&5
3185 echo "$as_me: failed program was:" >&5
3186 sed 's/^/| /' conftest.$ac_ext >&5
3189 ac_cv_header_stdc=no
3191 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3195 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3196 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3197 if test $ac_cv_header_stdc = yes; then
3199 cat >>confdefs.h <<\_ACEOF
3200 #define STDC_HEADERS 1
3205 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3215 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3216 inttypes.h stdint.h unistd.h
3218 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3219 echo "$as_me:$LINENO: checking for $ac_header" >&5
3220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3222 echo $ECHO_N "(cached) $ECHO_C" >&6
3224 cat >conftest.$ac_ext <<_ACEOF
3225 #line $LINENO "configure"
3228 cat confdefs.h >>conftest.$ac_ext
3229 cat >>conftest.$ac_ext <<_ACEOF
3230 /* end confdefs.h. */
3231 $ac_includes_default
3233 #include <$ac_header>
3235 rm -f conftest.$ac_objext
3236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3237 (eval $ac_compile) 2>&5
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); } &&
3241 { ac_try='test -s conftest.$ac_objext'
3242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); }; }; then
3247 eval "$as_ac_Header=yes"
3249 echo "$as_me: failed program was:" >&5
3250 sed 's/^/| /' conftest.$ac_ext >&5
3252 eval "$as_ac_Header=no"
3254 rm -f conftest.$ac_objext conftest.$ac_ext
3256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3259 cat >>confdefs.h <<_ACEOF
3260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3280 for ac_header in arpa/inet.h fcntl.h float.h limits.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h syslog.h unistd.h
3282 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3284 echo "$as_me:$LINENO: checking for $ac_header" >&5
3285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3287 echo $ECHO_N "(cached) $ECHO_C" >&6
3289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3290 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3292 # Is the header compilable?
3293 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3294 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3295 cat >conftest.$ac_ext <<_ACEOF
3296 #line $LINENO "configure"
3299 cat confdefs.h >>conftest.$ac_ext
3300 cat >>conftest.$ac_ext <<_ACEOF
3301 /* end confdefs.h. */
3302 $ac_includes_default
3303 #include <$ac_header>
3305 rm -f conftest.$ac_objext
3306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3307 (eval $ac_compile) 2>&5
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); } &&
3311 { ac_try='test -s conftest.$ac_objext'
3312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); }; }; then
3317 ac_header_compiler=yes
3319 echo "$as_me: failed program was:" >&5
3320 sed 's/^/| /' conftest.$ac_ext >&5
3322 ac_header_compiler=no
3324 rm -f conftest.$ac_objext conftest.$ac_ext
3325 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3326 echo "${ECHO_T}$ac_header_compiler" >&6
3328 # Is the header present?
3329 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3330 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3331 cat >conftest.$ac_ext <<_ACEOF
3332 #line $LINENO "configure"
3335 cat confdefs.h >>conftest.$ac_ext
3336 cat >>conftest.$ac_ext <<_ACEOF
3337 /* end confdefs.h. */
3338 #include <$ac_header>
3340 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3341 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3343 grep -v '^ *+' conftest.er1 >conftest.err
3345 cat conftest.err >&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); } >/dev/null; then
3348 if test -s conftest.err; then
3349 ac_cpp_err=$ac_c_preproc_warn_flag
3356 if test -z "$ac_cpp_err"; then
3357 ac_header_preproc=yes
3359 echo "$as_me: failed program was:" >&5
3360 sed 's/^/| /' conftest.$ac_ext >&5
3362 ac_header_preproc=no
3364 rm -f conftest.err conftest.$ac_ext
3365 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3366 echo "${ECHO_T}$ac_header_preproc" >&6
3368 # So? What about this header?
3369 case $ac_header_compiler:$ac_header_preproc in
3371 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3372 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3374 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3377 ## ------------------------------------ ##
3378 ## Report this to bug-autoconf@gnu.org. ##
3379 ## ------------------------------------ ##
3382 sed "s/^/$as_me: WARNING: /" >&2
3385 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3386 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3387 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3388 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3390 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3393 ## ------------------------------------ ##
3394 ## Report this to bug-autoconf@gnu.org. ##
3395 ## ------------------------------------ ##
3398 sed "s/^/$as_me: WARNING: /" >&2
3401 echo "$as_me:$LINENO: checking for $ac_header" >&5
3402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3404 echo $ECHO_N "(cached) $ECHO_C" >&6
3406 eval "$as_ac_Header=$ac_header_preproc"
3408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3409 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3412 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3413 cat >>confdefs.h <<_ACEOF
3414 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3422 # Checks for typedefs, structures, and compiler characteristics.
3423 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3424 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3425 if test "${ac_cv_c_const+set}" = set; then
3426 echo $ECHO_N "(cached) $ECHO_C" >&6
3428 cat >conftest.$ac_ext <<_ACEOF
3429 #line $LINENO "configure"
3432 cat confdefs.h >>conftest.$ac_ext
3433 cat >>conftest.$ac_ext <<_ACEOF
3434 /* end confdefs.h. */
3439 /* FIXME: Include the comments suggested by Paul. */
3441 /* Ultrix mips cc rejects this. */
3442 typedef int charset[2];
3444 /* SunOS 4.1.1 cc rejects this. */
3445 char const *const *ccp;
3447 /* NEC SVR4.0.2 mips cc rejects this. */
3448 struct point {int x, y;};
3449 static struct point const zero = {0,0};
3450 /* AIX XL C 1.02.0.0 rejects this.
3451 It does not let you subtract one const X* pointer from another in
3452 an arm of an if-expression whose if-part is not a constant
3454 const char *g = "string";
3455 ccp = &g + (g ? g-g : 0);
3456 /* HPUX 7.0 cc rejects these. */
3459 ccp = (char const *const *) p;
3460 { /* SCO 3.2v4 cc rejects this. */
3462 char const *s = 0 ? (char *) 0 : (char const *) 0;
3466 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3468 const int *foo = &x[0];
3471 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3472 typedef const int *iptr;
3476 { /* AIX XL C 1.02.0.0 rejects this saying
3477 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3478 struct s { int j; const int *ap[3]; };
3479 struct s *b; b->j = 5;
3481 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3490 rm -f conftest.$ac_objext
3491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3492 (eval $ac_compile) 2>&5
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); } &&
3496 { ac_try='test -s conftest.$ac_objext'
3497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); }; }; then
3504 echo "$as_me: failed program was:" >&5
3505 sed 's/^/| /' conftest.$ac_ext >&5
3509 rm -f conftest.$ac_objext conftest.$ac_ext
3511 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3512 echo "${ECHO_T}$ac_cv_c_const" >&6
3513 if test $ac_cv_c_const = no; then
3515 cat >>confdefs.h <<\_ACEOF
3521 echo "$as_me:$LINENO: checking for size_t" >&5
3522 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3523 if test "${ac_cv_type_size_t+set}" = set; then
3524 echo $ECHO_N "(cached) $ECHO_C" >&6
3526 cat >conftest.$ac_ext <<_ACEOF
3527 #line $LINENO "configure"
3530 cat confdefs.h >>conftest.$ac_ext
3531 cat >>conftest.$ac_ext <<_ACEOF
3532 /* end confdefs.h. */
3533 $ac_includes_default
3539 if (sizeof (size_t))
3545 rm -f conftest.$ac_objext
3546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3547 (eval $ac_compile) 2>&5
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); } &&
3551 { ac_try='test -s conftest.$ac_objext'
3552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); }; }; then
3557 ac_cv_type_size_t=yes
3559 echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3562 ac_cv_type_size_t=no
3564 rm -f conftest.$ac_objext conftest.$ac_ext
3566 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3567 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3568 if test $ac_cv_type_size_t = yes; then
3572 cat >>confdefs.h <<_ACEOF
3573 #define size_t unsigned
3578 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3579 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3580 if test "${ac_cv_header_time+set}" = set; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3583 cat >conftest.$ac_ext <<_ACEOF
3584 #line $LINENO "configure"
3587 cat confdefs.h >>conftest.$ac_ext
3588 cat >>conftest.$ac_ext <<_ACEOF
3589 /* end confdefs.h. */
3590 #include <sys/types.h>
3591 #include <sys/time.h>
3597 if ((struct tm *) 0)
3603 rm -f conftest.$ac_objext
3604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3605 (eval $ac_compile) 2>&5
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); } &&
3609 { ac_try='test -s conftest.$ac_objext'
3610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); }; }; then
3615 ac_cv_header_time=yes
3617 echo "$as_me: failed program was:" >&5
3618 sed 's/^/| /' conftest.$ac_ext >&5
3620 ac_cv_header_time=no
3622 rm -f conftest.$ac_objext conftest.$ac_ext
3624 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3625 echo "${ECHO_T}$ac_cv_header_time" >&6
3626 if test $ac_cv_header_time = yes; then
3628 cat >>confdefs.h <<\_ACEOF
3629 #define TIME_WITH_SYS_TIME 1
3634 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
3635 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
3636 if test "${ac_cv_struct_tm+set}" = set; then
3637 echo $ECHO_N "(cached) $ECHO_C" >&6
3639 cat >conftest.$ac_ext <<_ACEOF
3640 #line $LINENO "configure"
3643 cat confdefs.h >>conftest.$ac_ext
3644 cat >>conftest.$ac_ext <<_ACEOF
3645 /* end confdefs.h. */
3646 #include <sys/types.h>
3652 struct tm *tp; tp->tm_sec;
3657 rm -f conftest.$ac_objext
3658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3659 (eval $ac_compile) 2>&5
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); } &&
3663 { ac_try='test -s conftest.$ac_objext'
3664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); }; }; then
3669 ac_cv_struct_tm=time.h
3671 echo "$as_me: failed program was:" >&5
3672 sed 's/^/| /' conftest.$ac_ext >&5
3674 ac_cv_struct_tm=sys/time.h
3676 rm -f conftest.$ac_objext conftest.$ac_ext
3678 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
3679 echo "${ECHO_T}$ac_cv_struct_tm" >&6
3680 if test $ac_cv_struct_tm = sys/time.h; then
3682 cat >>confdefs.h <<\_ACEOF
3683 #define TM_IN_SYS_TIME 1
3689 echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5
3690 echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6
3691 if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
3692 echo $ECHO_N "(cached) $ECHO_C" >&6
3695 cat >conftest.$ac_ext <<_ACEOF
3696 #line $LINENO "configure"
3699 cat confdefs.h >>conftest.$ac_ext
3700 cat >>conftest.$ac_ext <<_ACEOF
3701 /* end confdefs.h. */
3703 #include <sys/types.h>
3704 #include <sys/socket.h>
3709 struct sockaddr_storage s; s.ss_family = 1;
3714 rm -f conftest.$ac_objext
3715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3716 (eval $ac_compile) 2>&5
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); } &&
3720 { ac_try='test -s conftest.$ac_objext'
3721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); }; }; then
3726 ac_cv_have_ss_family_in_struct_ss="yes"
3728 echo "$as_me: failed program was:" >&5
3729 sed 's/^/| /' conftest.$ac_ext >&5
3731 ac_cv_have_ss_family_in_struct_ss="no"
3733 rm -f conftest.$ac_objext conftest.$ac_ext
3736 echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5
3737 echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6
3738 if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
3740 cat >>confdefs.h <<\_ACEOF
3741 #define HAVE_SS_FAMILY_IN_SS 1
3746 echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5
3747 echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6
3748 if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3752 cat >conftest.$ac_ext <<_ACEOF
3753 #line $LINENO "configure"
3756 cat confdefs.h >>conftest.$ac_ext
3757 cat >>conftest.$ac_ext <<_ACEOF
3758 /* end confdefs.h. */
3760 #include <sys/types.h>
3761 #include <sys/socket.h>
3766 struct sockaddr_storage s; s.__ss_family = 1;
3771 rm -f conftest.$ac_objext
3772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3773 (eval $ac_compile) 2>&5
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); } &&
3777 { ac_try='test -s conftest.$ac_objext'
3778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); }; }; then
3783 ac_cv_have___ss_family_in_struct_ss="yes"
3785 echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3788 ac_cv_have___ss_family_in_struct_ss="no"
3791 rm -f conftest.$ac_objext conftest.$ac_ext
3794 echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5
3795 echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6
3796 if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
3798 cat >>confdefs.h <<\_ACEOF
3799 #define HAVE___SS_FAMILY_IN_SS 1
3804 case "$ac_cv_have_ss_family_in_struct_ss$ac_cv_have___ss_family_in_struct_ss" in
3806 cat >>confdefs.h <<_ACEOF
3807 #define ss_family __ss_family
3810 cat >>confdefs.h <<_ACEOF
3811 #define ss_len __ss_len
3817 # Checks for library functions.
3818 echo "$as_me:$LINENO: checking for working memcmp" >&5
3819 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
3820 if test "${ac_cv_func_memcmp_working+set}" = set; then
3821 echo $ECHO_N "(cached) $ECHO_C" >&6
3823 if test "$cross_compiling" = yes; then
3824 ac_cv_func_memcmp_working=no
3826 cat >conftest.$ac_ext <<_ACEOF
3827 #line $LINENO "configure"
3830 cat confdefs.h >>conftest.$ac_ext
3831 cat >>conftest.$ac_ext <<_ACEOF
3832 /* end confdefs.h. */
3838 /* Some versions of memcmp are not 8-bit clean. */
3839 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3840 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
3843 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
3844 or more and with at least one buffer not starting on a 4-byte boundary.
3845 William Lewis provided this test program. */
3850 for (i = 0; i < 4; i++)
3854 strcpy (a, "--------01111111");
3855 strcpy (b, "--------10000000");
3856 if (memcmp (a, b, 16) >= 0)
3866 rm -f conftest$ac_exeext
3867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3868 (eval $ac_link) 2>&5
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); }; }; then
3877 ac_cv_func_memcmp_working=yes
3879 echo "$as_me: program exited with status $ac_status" >&5
3880 echo "$as_me: failed program was:" >&5
3881 sed 's/^/| /' conftest.$ac_ext >&5
3884 ac_cv_func_memcmp_working=no
3886 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3889 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
3890 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
3891 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
3893 echo "$as_me:$LINENO: checking for function prototypes" >&5
3894 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3895 if test "$ac_cv_prog_cc_stdc" != no; then
3896 echo "$as_me:$LINENO: result: yes" >&5
3897 echo "${ECHO_T}yes" >&6
3899 cat >>confdefs.h <<\_ACEOF
3900 #define PROTOTYPES 1
3904 cat >>confdefs.h <<\_ACEOF
3905 #define __PROTOTYPES 1
3909 echo "$as_me:$LINENO: result: no" >&5
3910 echo "${ECHO_T}no" >&6
3913 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
3914 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
3915 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
3916 echo $ECHO_N "(cached) $ECHO_C" >&6
3918 ac_cv_func_setvbuf_reversed=no
3919 cat >conftest.$ac_ext <<_ACEOF
3920 #line $LINENO "configure"
3923 cat confdefs.h >>conftest.$ac_ext
3924 cat >>conftest.$ac_ext <<_ACEOF
3925 /* end confdefs.h. */
3928 int (setvbuf) (FILE *, int, char *, size_t);
3933 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
3938 rm -f conftest.$ac_objext conftest$ac_exeext
3939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3940 (eval $ac_link) 2>&5
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); } &&
3944 { ac_try='test -s conftest$ac_exeext'
3945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); }; }; then
3950 cat >conftest.$ac_ext <<_ACEOF
3951 #line $LINENO "configure"
3954 cat confdefs.h >>conftest.$ac_ext
3955 cat >>conftest.$ac_ext <<_ACEOF
3956 /* end confdefs.h. */
3959 int (setvbuf) (FILE *, int, char *, size_t);
3964 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
3969 rm -f conftest.$ac_objext conftest$ac_exeext
3970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3971 (eval $ac_link) 2>&5
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); } &&
3975 { ac_try='test -s conftest$ac_exeext'
3976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); }; }; then
3981 # It compiles and links either way, so it must not be declared
3982 # with a prototype and most likely this is a K&R C compiler.
3984 if test "$cross_compiling" = yes; then
3985 : # Assume setvbuf is not reversed when cross-compiling.
3987 cat >conftest.$ac_ext <<_ACEOF
3988 #line $LINENO "configure"
3991 cat confdefs.h >>conftest.$ac_ext
3992 cat >>conftest.$ac_ext <<_ACEOF
3993 /* end confdefs.h. */
3998 /* This call has the arguments reversed.
3999 A reversed system may check and see that the address of buf
4000 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
4002 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
4005 exit (0); /* Non-reversed systems SEGV here. */
4010 rm -f conftest$ac_exeext
4011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4012 (eval $ac_link) 2>&5
4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); }; }; then
4021 ac_cv_func_setvbuf_reversed=yes
4023 echo "$as_me: program exited with status $ac_status" >&5
4024 echo "$as_me: failed program was:" >&5
4025 sed 's/^/| /' conftest.$ac_ext >&5
4028 rm -f core core.* *.core
4030 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4032 ac_cv_func_setvbuf_reversed=yes
4034 echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.$ac_ext >&5
4038 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4040 echo "$as_me: failed program was:" >&5
4041 sed 's/^/| /' conftest.$ac_ext >&5
4044 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4046 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
4047 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
4048 if test $ac_cv_func_setvbuf_reversed = yes; then
4050 cat >>confdefs.h <<\_ACEOF
4051 #define SETVBUF_REVERSED 1
4056 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4057 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4058 if test "${ac_cv_type_signal+set}" = set; then
4059 echo $ECHO_N "(cached) $ECHO_C" >&6
4061 cat >conftest.$ac_ext <<_ACEOF
4062 #line $LINENO "configure"
4065 cat confdefs.h >>conftest.$ac_ext
4066 cat >>conftest.$ac_ext <<_ACEOF
4067 /* end confdefs.h. */
4068 #include <sys/types.h>
4074 extern "C" void (*signal (int, void (*)(int)))(int);
4076 void (*signal ()) ();
4087 rm -f conftest.$ac_objext
4088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4089 (eval $ac_compile) 2>&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); } &&
4093 { ac_try='test -s conftest.$ac_objext'
4094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); }; }; then
4099 ac_cv_type_signal=void
4101 echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4104 ac_cv_type_signal=int
4106 rm -f conftest.$ac_objext conftest.$ac_ext
4108 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4109 echo "${ECHO_T}$ac_cv_type_signal" >&6
4111 cat >>confdefs.h <<_ACEOF
4112 #define RETSIGTYPE $ac_cv_type_signal
4117 for ac_func in alarm
4119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4120 echo "$as_me:$LINENO: checking for $ac_func" >&5
4121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4122 if eval "test \"\${$as_ac_var+set}\" = set"; then
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
4125 cat >conftest.$ac_ext <<_ACEOF
4126 #line $LINENO "configure"
4129 cat confdefs.h >>conftest.$ac_ext
4130 cat >>conftest.$ac_ext <<_ACEOF
4131 /* end confdefs.h. */
4132 /* System header to define __stub macros and hopefully few prototypes,
4133 which can conflict with char $ac_func (); below.
4134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4135 <limits.h> exists even on freestanding compilers. */
4137 # include <limits.h>
4139 # include <assert.h>
4141 /* Override any gcc2 internal prototype to avoid an error. */
4146 /* We use char because int might match the return type of a gcc2
4147 builtin and then its argument prototype would still apply. */
4149 /* The GNU C library defines this for functions which it implements
4150 to always fail with ENOSYS. Some functions are actually named
4151 something starting with __ and the normal name is an alias. */
4152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4155 char (*f) () = $ac_func;
4164 return f != $ac_func;
4169 rm -f conftest.$ac_objext conftest$ac_exeext
4170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4171 (eval $ac_link) 2>&5
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); } &&
4175 { ac_try='test -s conftest$ac_exeext'
4176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); }; }; then
4181 eval "$as_ac_var=yes"
4183 echo "$as_me: failed program was:" >&5
4184 sed 's/^/| /' conftest.$ac_ext >&5
4186 eval "$as_ac_var=no"
4188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4191 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4192 if test `eval echo '${'$as_ac_var'}'` = yes; then
4193 cat >>confdefs.h <<_ACEOF
4194 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4200 echo "$as_me:$LINENO: checking for gethostent" >&5
4201 echo $ECHO_N "checking for gethostent... $ECHO_C" >&6
4202 if test "${ac_cv_func_gethostent+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4205 cat >conftest.$ac_ext <<_ACEOF
4206 #line $LINENO "configure"
4209 cat confdefs.h >>conftest.$ac_ext
4210 cat >>conftest.$ac_ext <<_ACEOF
4211 /* end confdefs.h. */
4212 /* System header to define __stub macros and hopefully few prototypes,
4213 which can conflict with char gethostent (); below.
4214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4215 <limits.h> exists even on freestanding compilers. */
4217 # include <limits.h>
4219 # include <assert.h>
4221 /* Override any gcc2 internal prototype to avoid an error. */
4226 /* We use char because int might match the return type of a gcc2
4227 builtin and then its argument prototype would still apply. */
4229 /* The GNU C library defines this for functions which it implements
4230 to always fail with ENOSYS. Some functions are actually named
4231 something starting with __ and the normal name is an alias. */
4232 #if defined (__stub_gethostent) || defined (__stub___gethostent)
4235 char (*f) () = gethostent;
4244 return f != gethostent;
4249 rm -f conftest.$ac_objext conftest$ac_exeext
4250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4251 (eval $ac_link) 2>&5
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); } &&
4255 { ac_try='test -s conftest$ac_exeext'
4256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); }; }; then
4261 ac_cv_func_gethostent=yes
4263 echo "$as_me: failed program was:" >&5
4264 sed 's/^/| /' conftest.$ac_ext >&5
4266 ac_cv_func_gethostent=no
4268 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4270 echo "$as_me:$LINENO: result: $ac_cv_func_gethostent" >&5
4271 echo "${ECHO_T}$ac_cv_func_gethostent" >&6
4272 if test $ac_cv_func_gethostent = yes; then
4276 echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5
4277 echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6
4278 if test "${ac_cv_lib_nsl_gethostent+set}" = set; then
4279 echo $ECHO_N "(cached) $ECHO_C" >&6
4281 ac_check_lib_save_LIBS=$LIBS
4282 LIBS="-lnsl -lsocket $LIBS"
4283 cat >conftest.$ac_ext <<_ACEOF
4284 #line $LINENO "configure"
4287 cat confdefs.h >>conftest.$ac_ext
4288 cat >>conftest.$ac_ext <<_ACEOF
4289 /* end confdefs.h. */
4291 /* Override any gcc2 internal prototype to avoid an error. */
4295 /* We use char because int might match the return type of a gcc2
4296 builtin and then its argument prototype would still apply. */
4306 rm -f conftest.$ac_objext conftest$ac_exeext
4307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4308 (eval $ac_link) 2>&5
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); } &&
4312 { ac_try='test -s conftest$ac_exeext'
4313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); }; }; then
4318 ac_cv_lib_nsl_gethostent=yes
4320 echo "$as_me: failed program was:" >&5
4321 sed 's/^/| /' conftest.$ac_ext >&5
4323 ac_cv_lib_nsl_gethostent=no
4325 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4326 LIBS=$ac_check_lib_save_LIBS
4328 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostent" >&5
4329 echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6
4330 if test $ac_cv_lib_nsl_gethostent = yes; then
4331 cat >>confdefs.h <<_ACEOF
4332 #define HAVE_LIBNSL 1
4344 for ac_func in gettimeofday inet_ntoa memset
4346 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4347 echo "$as_me:$LINENO: checking for $ac_func" >&5
4348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4349 if eval "test \"\${$as_ac_var+set}\" = set"; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 cat >conftest.$ac_ext <<_ACEOF
4353 #line $LINENO "configure"
4356 cat confdefs.h >>conftest.$ac_ext
4357 cat >>conftest.$ac_ext <<_ACEOF
4358 /* end confdefs.h. */
4359 /* System header to define __stub macros and hopefully few prototypes,
4360 which can conflict with char $ac_func (); below.
4361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4362 <limits.h> exists even on freestanding compilers. */
4364 # include <limits.h>
4366 # include <assert.h>
4368 /* Override any gcc2 internal prototype to avoid an error. */
4373 /* We use char because int might match the return type of a gcc2
4374 builtin and then its argument prototype would still apply. */
4376 /* The GNU C library defines this for functions which it implements
4377 to always fail with ENOSYS. Some functions are actually named
4378 something starting with __ and the normal name is an alias. */
4379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4382 char (*f) () = $ac_func;
4391 return f != $ac_func;
4396 rm -f conftest.$ac_objext conftest$ac_exeext
4397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4398 (eval $ac_link) 2>&5
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); } &&
4402 { ac_try='test -s conftest$ac_exeext'
4403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); }; }; then
4408 eval "$as_ac_var=yes"
4410 echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.$ac_ext >&5
4413 eval "$as_ac_var=no"
4415 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4418 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4419 if test `eval echo '${'$as_ac_var'}'` = yes; then
4420 cat >>confdefs.h <<_ACEOF
4421 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4428 for ac_func in socket
4430 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4431 echo "$as_me:$LINENO: checking for $ac_func" >&5
4432 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4433 if eval "test \"\${$as_ac_var+set}\" = set"; then
4434 echo $ECHO_N "(cached) $ECHO_C" >&6
4436 cat >conftest.$ac_ext <<_ACEOF
4437 #line $LINENO "configure"
4440 cat confdefs.h >>conftest.$ac_ext
4441 cat >>conftest.$ac_ext <<_ACEOF
4442 /* end confdefs.h. */
4443 /* System header to define __stub macros and hopefully few prototypes,
4444 which can conflict with char $ac_func (); below.
4445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4446 <limits.h> exists even on freestanding compilers. */
4448 # include <limits.h>
4450 # include <assert.h>
4452 /* Override any gcc2 internal prototype to avoid an error. */
4457 /* We use char because int might match the return type of a gcc2
4458 builtin and then its argument prototype would still apply. */
4460 /* The GNU C library defines this for functions which it implements
4461 to always fail with ENOSYS. Some functions are actually named
4462 something starting with __ and the normal name is an alias. */
4463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4466 char (*f) () = $ac_func;
4475 return f != $ac_func;
4480 rm -f conftest.$ac_objext conftest$ac_exeext
4481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4482 (eval $ac_link) 2>&5
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); } &&
4486 { ac_try='test -s conftest$ac_exeext'
4487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); }; }; then
4492 eval "$as_ac_var=yes"
4494 echo "$as_me: failed program was:" >&5
4495 sed 's/^/| /' conftest.$ac_ext >&5
4497 eval "$as_ac_var=no"
4499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4502 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4503 if test `eval echo '${'$as_ac_var'}'` = yes; then
4504 cat >>confdefs.h <<_ACEOF
4505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4510 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4511 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4512 if test "${ac_cv_lib_socket_socket+set}" = set; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4515 ac_check_lib_save_LIBS=$LIBS
4516 LIBS="-lsocket $LIBS"
4517 cat >conftest.$ac_ext <<_ACEOF
4518 #line $LINENO "configure"
4521 cat confdefs.h >>conftest.$ac_ext
4522 cat >>conftest.$ac_ext <<_ACEOF
4523 /* end confdefs.h. */
4525 /* Override any gcc2 internal prototype to avoid an error. */
4529 /* We use char because int might match the return type of a gcc2
4530 builtin and then its argument prototype would still apply. */
4540 rm -f conftest.$ac_objext conftest$ac_exeext
4541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4542 (eval $ac_link) 2>&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } &&
4546 { ac_try='test -s conftest$ac_exeext'
4547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); }; }; then
4552 ac_cv_lib_socket_socket=yes
4554 echo "$as_me: failed program was:" >&5
4555 sed 's/^/| /' conftest.$ac_ext >&5
4557 ac_cv_lib_socket_socket=no
4559 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4560 LIBS=$ac_check_lib_save_LIBS
4562 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4563 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4564 if test $ac_cv_lib_socket_socket = yes; then
4565 cat >>confdefs.h <<_ACEOF
4566 #define HAVE_LIBSOCKET 1
4569 LIBS="-lsocket $LIBS"
4579 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4580 echo "$as_me:$LINENO: checking for $ac_func" >&5
4581 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4582 if eval "test \"\${$as_ac_var+set}\" = set"; then
4583 echo $ECHO_N "(cached) $ECHO_C" >&6
4585 cat >conftest.$ac_ext <<_ACEOF
4586 #line $LINENO "configure"
4589 cat confdefs.h >>conftest.$ac_ext
4590 cat >>conftest.$ac_ext <<_ACEOF
4591 /* end confdefs.h. */
4592 /* System header to define __stub macros and hopefully few prototypes,
4593 which can conflict with char $ac_func (); below.
4594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4595 <limits.h> exists even on freestanding compilers. */
4597 # include <limits.h>
4599 # include <assert.h>
4601 /* Override any gcc2 internal prototype to avoid an error. */
4606 /* We use char because int might match the return type of a gcc2
4607 builtin and then its argument prototype would still apply. */
4609 /* The GNU C library defines this for functions which it implements
4610 to always fail with ENOSYS. Some functions are actually named
4611 something starting with __ and the normal name is an alias. */
4612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4615 char (*f) () = $ac_func;
4624 return f != $ac_func;
4629 rm -f conftest.$ac_objext conftest$ac_exeext
4630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4631 (eval $ac_link) 2>&5
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); } &&
4635 { ac_try='test -s conftest$ac_exeext'
4636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640 (exit $ac_status); }; }; then
4641 eval "$as_ac_var=yes"
4643 echo "$as_me: failed program was:" >&5
4644 sed 's/^/| /' conftest.$ac_ext >&5
4646 eval "$as_ac_var=no"
4648 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4651 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4652 if test `eval echo '${'$as_ac_var'}'` = yes; then
4653 cat >>confdefs.h <<_ACEOF
4654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4659 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
4660 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
4661 if test "${ac_cv_lib_m_sqrt+set}" = set; then
4662 echo $ECHO_N "(cached) $ECHO_C" >&6
4664 ac_check_lib_save_LIBS=$LIBS
4666 cat >conftest.$ac_ext <<_ACEOF
4667 #line $LINENO "configure"
4670 cat confdefs.h >>conftest.$ac_ext
4671 cat >>conftest.$ac_ext <<_ACEOF
4672 /* end confdefs.h. */
4674 /* Override any gcc2 internal prototype to avoid an error. */
4678 /* We use char because int might match the return type of a gcc2
4679 builtin and then its argument prototype would still apply. */
4689 rm -f conftest.$ac_objext conftest$ac_exeext
4690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4691 (eval $ac_link) 2>&5
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); } &&
4695 { ac_try='test -s conftest$ac_exeext'
4696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); }; }; then
4701 ac_cv_lib_m_sqrt=yes
4703 echo "$as_me: failed program was:" >&5
4704 sed 's/^/| /' conftest.$ac_ext >&5
4708 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4709 LIBS=$ac_check_lib_save_LIBS
4711 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
4712 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4713 if test $ac_cv_lib_m_sqrt = yes; then
4714 cat >>confdefs.h <<_ACEOF
4726 for ac_func in strrchr
4728 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4729 echo "$as_me:$LINENO: checking for $ac_func" >&5
4730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4731 if eval "test \"\${$as_ac_var+set}\" = set"; then
4732 echo $ECHO_N "(cached) $ECHO_C" >&6
4734 cat >conftest.$ac_ext <<_ACEOF
4735 #line $LINENO "configure"
4738 cat confdefs.h >>conftest.$ac_ext
4739 cat >>conftest.$ac_ext <<_ACEOF
4740 /* end confdefs.h. */
4741 /* System header to define __stub macros and hopefully few prototypes,
4742 which can conflict with char $ac_func (); below.
4743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4744 <limits.h> exists even on freestanding compilers. */
4746 # include <limits.h>
4748 # include <assert.h>
4750 /* Override any gcc2 internal prototype to avoid an error. */
4755 /* We use char because int might match the return type of a gcc2
4756 builtin and then its argument prototype would still apply. */
4758 /* The GNU C library defines this for functions which it implements
4759 to always fail with ENOSYS. Some functions are actually named
4760 something starting with __ and the normal name is an alias. */
4761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4764 char (*f) () = $ac_func;
4773 return f != $ac_func;
4778 rm -f conftest.$ac_objext conftest$ac_exeext
4779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4780 (eval $ac_link) 2>&5
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); } &&
4784 { ac_try='test -s conftest$ac_exeext'
4785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; }; then
4790 eval "$as_ac_var=yes"
4792 echo "$as_me: failed program was:" >&5
4793 sed 's/^/| /' conftest.$ac_ext >&5
4795 eval "$as_ac_var=no"
4797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4800 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4801 if test `eval echo '${'$as_ac_var'}'` = yes; then
4802 cat >>confdefs.h <<_ACEOF
4803 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4812 CFLAGS="$CFLAGS -DADJTIME_MISSING"
4815 CFLAGS="$CFLAGS -DNONBLOCK_BROKEN"
4819 ac_config_files="$ac_config_files Makefile"
4821 cat >confcache <<\_ACEOF
4822 # This file is a shell script that caches the results of configure
4823 # tests run on this system so they can be shared between configure
4824 # scripts and configure runs, see configure's option --config-cache.
4825 # It is not useful on other systems. If it contains results you don't
4826 # want to keep, you may remove or edit it.
4828 # config.status only pays attention to the cache file if you give it
4829 # the --recheck option to rerun configure.
4831 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4832 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4837 # The following way of writing the cache mishandles newlines in values,
4838 # but we know of no workaround that is simple, portable, and efficient.
4839 # So, don't put newlines in cache variables' values.
4840 # Ultrix sh set writes to stderr and can't be redirected directly,
4841 # and sets the high bit in the cache file unless we assign to the vars.
4844 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4846 # `set' does not quote correctly, so add quotes (double-quote
4847 # substitution turns \\\\ into \\, and sed turns \\ into \).
4850 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4853 # `set' quotes correctly as required by POSIX, so do not add quotes.
4855 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4862 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4864 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4866 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4867 if test -w $cache_file; then
4868 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4869 cat confcache >$cache_file
4871 echo "not updating unwritable cache $cache_file"
4876 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4877 # Let make expand exec_prefix.
4878 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4880 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4881 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4882 # trailing colons and then remove the whole line if VPATH becomes empty
4883 # (actually we leave an empty line to preserve line numbers).
4884 if test "x$srcdir" = x.; then
4885 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4886 s/:*\$(srcdir):*/:/;
4887 s/:*\${srcdir}:*/:/;
4889 s/^\([^=]*=[ ]*\):*/\1/;
4895 # Transform confdefs.h into DEFS.
4896 # Protect against shell expansion while executing Makefile rules.
4897 # Protect against Makefile macro expansion.
4899 # If the first sed substitution is executed (which looks for macros that
4900 # take arguments), then we branch to the quote section. Otherwise,
4901 # look for a macro that doesn't take arguments.
4902 cat >confdef2opt.sed <<\_ACEOF
4905 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
4907 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
4911 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
4917 # We use echo to avoid assuming a particular line-breaking character.
4918 # The extra dot is to prevent the shell from consuming trailing
4919 # line-breaks from the sub-command output. A line-break within
4920 # single-quotes doesn't work because, if this script is created in a
4921 # platform that uses two characters for line-breaks (e.g., DOS), tr
4923 ac_LF_and_DOT=`echo; echo .`
4924 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
4925 rm -f confdef2opt.sed
4930 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4931 # 1. Remove the extension, and $U if already installed.
4932 ac_i=`echo "$ac_i" |
4933 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4935 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4936 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4940 LTLIBOBJS=$ac_ltlibobjs
4943 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4944 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
4945 Usually this means the macro was only invoked conditionally." >&5
4946 echo "$as_me: error: conditional \"AMDEP\" was never defined.
4947 Usually this means the macro was only invoked conditionally." >&2;}
4948 { (exit 1); exit 1; }; }
4950 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
4951 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
4952 Usually this means the macro was only invoked conditionally." >&5
4953 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
4954 Usually this means the macro was only invoked conditionally." >&2;}
4955 { (exit 1); exit 1; }; }
4958 : ${CONFIG_STATUS=./config.status}
4959 ac_clean_files_save=$ac_clean_files
4960 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4961 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4962 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4963 cat >$CONFIG_STATUS <<_ACEOF
4965 # Generated by $as_me.
4966 # Run this file to recreate the current configuration.
4967 # Compiler output produced by configure, useful for debugging
4968 # configure, is in config.log if it exists.
4973 SHELL=\${CONFIG_SHELL-$SHELL}
4976 cat >>$CONFIG_STATUS <<\_ACEOF
4977 ## --------------------- ##
4978 ## M4sh Initialization. ##
4979 ## --------------------- ##
4981 # Be Bourne compatible
4982 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4985 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4986 # is contrary to our usage. Disable this feature.
4987 alias -g '${1+"$@"}'='"$@"'
4988 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4992 # Support unset when possible.
4993 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5000 # Work around bugs in pre-3.0 UWIN ksh.
5001 $as_unset ENV MAIL MAILPATH
5008 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5009 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5010 LC_TELEPHONE LC_TIME
5012 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
5013 eval $as_var=C; export $as_var
5019 # Required to use basename.
5020 if expr a : '\(a\)' >/dev/null 2>&1; then
5026 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5027 as_basename=basename
5033 # Name of the executable.
5034 as_me=`$as_basename "$0" ||
5035 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5036 X"$0" : 'X\(//\)$' \| \
5037 X"$0" : 'X\(/\)$' \| \
5038 . : '\(.\)' 2>/dev/null ||
5040 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5041 /^X\/\(\/\/\)$/{ s//\1/; q; }
5042 /^X\/\(\/\).*/{ s//\1/; q; }
5046 # PATH needs CR, and LINENO needs CR and PATH.
5047 # Avoid depending upon Character Ranges.
5048 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5049 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5050 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5051 as_cr_digits='0123456789'
5052 as_cr_alnum=$as_cr_Letters$as_cr_digits
5054 # The user is always right.
5055 if test "${PATH_SEPARATOR+set}" != set; then
5056 echo "#! /bin/sh" >conf$$.sh
5057 echo "exit 0" >>conf$$.sh
5059 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5070 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5071 test "x$as_lineno_1" != "x$as_lineno_2" &&
5072 test "x$as_lineno_3" = "x$as_lineno_2" || {
5073 # Find who we are. Look in the path if we contain no path at all
5076 *[\\/]* ) as_myself=$0 ;;
5077 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5081 test -z "$as_dir" && as_dir=.
5082 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5087 # We did not find ourselves, most probably we were run as `sh COMMAND'
5088 # in which case we are not to be found in the path.
5089 if test "x$as_myself" = x; then
5092 if test ! -f "$as_myself"; then
5093 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5094 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5095 { (exit 1); exit 1; }; }
5097 case $CONFIG_SHELL in
5099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5103 test -z "$as_dir" && as_dir=.
5104 for as_base in sh bash ksh sh5; do
5107 if ("$as_dir/$as_base" -c '
5110 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5111 test "x$as_lineno_1" != "x$as_lineno_2" &&
5112 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5113 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5114 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5115 CONFIG_SHELL=$as_dir/$as_base
5117 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5125 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5126 # uniformly replaced by the line number. The first 'sed' inserts a
5127 # line-number line before each line; the second 'sed' does the real
5128 # work. The second script uses 'N' to pair each line-number line
5129 # with the numbered line, and appends trailing '-' during
5130 # substitution so that $LINENO is not a special case at line end.
5131 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5132 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5133 sed '=' <$as_myself |
5138 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5141 s,^['$as_cr_digits']*\n,,
5143 chmod +x $as_me.lineno ||
5144 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5145 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5146 { (exit 1); exit 1; }; }
5148 # Don't try to exec as it changes $[0], causing all sort of problems
5149 # (the dirname of $[0] is not the place where we might find the
5150 # original and so on. Autoconf is especially sensible to this).
5152 # Exit status is that of the last command.
5157 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5158 *c*,-n*) ECHO_N= ECHO_C='
5160 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5161 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5164 if expr a : '\(a\)' >/dev/null 2>&1; then
5170 rm -f conf$$ conf$$.exe conf$$.file
5172 if ln -s conf$$.file conf$$ 2>/dev/null; then
5173 # We could just check for DJGPP; but this test a) works b) is more generic
5174 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5175 if test -f conf$$.exe; then
5176 # Don't use ln at all; we don't have any links
5181 elif ln conf$$.file conf$$ 2>/dev/null; then
5186 rm -f conf$$ conf$$.exe conf$$.file
5188 if mkdir -p . 2>/dev/null; then
5194 as_executable_p="test -f"
5196 # Sed expression to map a string onto a valid CPP name.
5197 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
5199 # Sed expression to map a string onto a valid variable name.
5200 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
5204 # We need space, tab and new line, in precisely that order.
5214 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5215 # report actual input values of CONFIG_FILES etc. instead of their
5216 # values after options handling. Logging --version etc. is OK.
5220 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5221 ## Running $as_me. ##
5226 This file was extended by $as_me, which was
5227 generated by GNU Autoconf 2.57. Invocation command line was
5229 CONFIG_FILES = $CONFIG_FILES
5230 CONFIG_HEADERS = $CONFIG_HEADERS
5231 CONFIG_LINKS = $CONFIG_LINKS
5232 CONFIG_COMMANDS = $CONFIG_COMMANDS
5236 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5240 # Files that config.status was made for.
5241 if test -n "$ac_config_files"; then
5242 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5245 if test -n "$ac_config_headers"; then
5246 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5249 if test -n "$ac_config_links"; then
5250 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5253 if test -n "$ac_config_commands"; then
5254 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5257 cat >>$CONFIG_STATUS <<\_ACEOF
5260 \`$as_me' instantiates files from templates according to the
5261 current configuration.
5263 Usage: $0 [OPTIONS] [FILE]...
5265 -h, --help print this help, then exit
5266 -V, --version print version number, then exit
5267 -q, --quiet do not print progress messages
5268 -d, --debug don't remove temporary files
5269 --recheck update $as_me by reconfiguring in the same conditions
5270 --file=FILE[:TEMPLATE]
5271 instantiate the configuration file FILE
5273 Configuration files:
5276 Configuration commands:
5279 Report bugs to <bug-autoconf@gnu.org>."
5282 cat >>$CONFIG_STATUS <<_ACEOF
5285 configured by $0, generated by GNU Autoconf 2.57,
5286 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5288 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5289 Free Software Foundation, Inc.
5290 This config.status script is free software; the Free Software Foundation
5291 gives unlimited permission to copy, distribute and modify it."
5296 cat >>$CONFIG_STATUS <<\_ACEOF
5297 # If no file are specified by the user, then we need to provide default
5298 # value. By we need to know if files were specified by the user.
5304 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5305 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5313 *) # This is not an option, so the user has probably given explicit
5316 ac_need_defaults=false;;
5320 # Handling of the options.
5322 cat >>$CONFIG_STATUS <<\_ACEOF
5323 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5325 --version | --vers* | -V )
5326 echo "$ac_cs_version"; exit 0 ;;
5328 # Conflict between --help and --header
5329 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5330 Try \`$0 --help' for more information." >&5
5331 echo "$as_me: error: ambiguous option: $1
5332 Try \`$0 --help' for more information." >&2;}
5333 { (exit 1); exit 1; }; };;
5334 --help | --hel | -h )
5335 echo "$ac_cs_usage"; exit 0 ;;
5336 --debug | --d* | -d )
5338 --file | --fil | --fi | --f )
5340 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5341 ac_need_defaults=false;;
5342 --header | --heade | --head | --hea )
5344 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5345 ac_need_defaults=false;;
5346 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5347 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5351 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5352 Try \`$0 --help' for more information." >&5
5353 echo "$as_me: error: unrecognized option: $1
5354 Try \`$0 --help' for more information." >&2;}
5355 { (exit 1); exit 1; }; } ;;
5357 *) ac_config_targets="$ac_config_targets $1" ;;
5363 ac_configure_extra_args=
5365 if $ac_cs_silent; then
5367 ac_configure_extra_args="$ac_configure_extra_args --silent"
5371 cat >>$CONFIG_STATUS <<_ACEOF
5372 if \$ac_cs_recheck; then
5373 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5374 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5379 cat >>$CONFIG_STATUS <<_ACEOF
5381 # INIT-COMMANDS section.
5384 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5390 cat >>$CONFIG_STATUS <<\_ACEOF
5391 for ac_config_target in $ac_config_targets
5393 case "$ac_config_target" in
5394 # Handling of arguments.
5395 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5396 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5397 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5398 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5399 { (exit 1); exit 1; }; };;
5403 # If the user did not use the arguments to specify the items to instantiate,
5404 # then the envvar interface is used. Set only those that are not.
5405 # We use the long form for the default assignment because of an extremely
5406 # bizarre bug on SunOS 4.1.3.
5407 if $ac_need_defaults; then
5408 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5409 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5412 # Have a temporary directory for convenience. Make it in the build tree
5413 # simply because there is no reason to put it here, and in addition,
5414 # creating and moving files from /tmp can sometimes cause problems.
5415 # Create a temporary directory, and hook for its removal unless debugging.
5418 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5419 trap '{ (exit 1); exit 1; }' 1 2 13 15
5422 # Create a (secure) tmp directory for tmp files.
5425 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5426 test -n "$tmp" && test -d "$tmp"
5429 tmp=./confstat$$-$RANDOM
5430 (umask 077 && mkdir $tmp)
5433 echo "$me: cannot create a temporary directory in ." >&2
5434 { (exit 1); exit 1; }
5439 cat >>$CONFIG_STATUS <<_ACEOF
5442 # CONFIG_FILES section.
5445 # No need to generate the scripts if there are no CONFIG_FILES.
5446 # This happens for instance when ./config.status config.h
5447 if test -n "\$CONFIG_FILES"; then
5448 # Protect against being on the right side of a sed subst in config.status.
5449 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5450 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5451 s,@SHELL@,$SHELL,;t t
5452 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5453 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5454 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5455 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5456 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5457 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5458 s,@exec_prefix@,$exec_prefix,;t t
5459 s,@prefix@,$prefix,;t t
5460 s,@program_transform_name@,$program_transform_name,;t t
5461 s,@bindir@,$bindir,;t t
5462 s,@sbindir@,$sbindir,;t t
5463 s,@libexecdir@,$libexecdir,;t t
5464 s,@datadir@,$datadir,;t t
5465 s,@sysconfdir@,$sysconfdir,;t t
5466 s,@sharedstatedir@,$sharedstatedir,;t t
5467 s,@localstatedir@,$localstatedir,;t t
5468 s,@libdir@,$libdir,;t t
5469 s,@includedir@,$includedir,;t t
5470 s,@oldincludedir@,$oldincludedir,;t t
5471 s,@infodir@,$infodir,;t t
5472 s,@mandir@,$mandir,;t t
5473 s,@build_alias@,$build_alias,;t t
5474 s,@host_alias@,$host_alias,;t t
5475 s,@target_alias@,$target_alias,;t t
5477 s,@ECHO_C@,$ECHO_C,;t t
5478 s,@ECHO_N@,$ECHO_N,;t t
5479 s,@ECHO_T@,$ECHO_T,;t t
5481 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5482 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5483 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5484 s,@CYGPATH_W@,$CYGPATH_W,;t t
5485 s,@PACKAGE@,$PACKAGE,;t t
5486 s,@VERSION@,$VERSION,;t t
5487 s,@ACLOCAL@,$ACLOCAL,;t t
5488 s,@AUTOCONF@,$AUTOCONF,;t t
5489 s,@AUTOMAKE@,$AUTOMAKE,;t t
5490 s,@AUTOHEADER@,$AUTOHEADER,;t t
5491 s,@MAKEINFO@,$MAKEINFO,;t t
5492 s,@AMTAR@,$AMTAR,;t t
5493 s,@install_sh@,$install_sh,;t t
5494 s,@STRIP@,$STRIP,;t t
5495 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
5496 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
5498 s,@SET_MAKE@,$SET_MAKE,;t t
5499 s,@am__leading_dot@,$am__leading_dot,;t t
5500 s,@build@,$build,;t t
5501 s,@build_cpu@,$build_cpu,;t t
5502 s,@build_vendor@,$build_vendor,;t t
5503 s,@build_os@,$build_os,;t t
5505 s,@host_cpu@,$host_cpu,;t t
5506 s,@host_vendor@,$host_vendor,;t t
5507 s,@host_os@,$host_os,;t t
5508 s,@target@,$target,;t t
5509 s,@target_cpu@,$target_cpu,;t t
5510 s,@target_vendor@,$target_vendor,;t t
5511 s,@target_os@,$target_os,;t t
5513 s,@CFLAGS@,$CFLAGS,;t t
5514 s,@LDFLAGS@,$LDFLAGS,;t t
5515 s,@CPPFLAGS@,$CPPFLAGS,;t t
5516 s,@ac_ct_CC@,$ac_ct_CC,;t t
5517 s,@EXEEXT@,$EXEEXT,;t t
5518 s,@OBJEXT@,$OBJEXT,;t t
5519 s,@DEPDIR@,$DEPDIR,;t t
5520 s,@am__include@,$am__include,;t t
5521 s,@am__quote@,$am__quote,;t t
5522 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
5523 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
5524 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
5525 s,@CCDEPMODE@,$CCDEPMODE,;t t
5526 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
5527 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
5529 s,@EGREP@,$EGREP,;t t
5530 s,@LIBOBJS@,$LIBOBJS,;t t
5531 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5536 cat >>$CONFIG_STATUS <<\_ACEOF
5537 # Split the substitutions into bite-sized pieces for seds with
5538 # small command number limits, like on Digital OSF/1 and HP-UX.
5540 ac_sed_frag=1 # Number of current file.
5541 ac_beg=1 # First line for current file.
5542 ac_end=$ac_max_sed_lines # Line after last line for current file.
5545 while $ac_more_lines; do
5546 if test $ac_beg -gt 1; then
5547 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5549 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5551 if test ! -s $tmp/subs.frag; then
5554 # The purpose of the label and of the branching condition is to
5555 # speed up the sed processing (if there are no `@' at all, there
5556 # is no need to browse any of the substitutions).
5557 # These are the two extra sed commands mentioned above.
5559 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5560 if test -z "$ac_sed_cmds"; then
5561 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5563 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5565 ac_sed_frag=`expr $ac_sed_frag + 1`
5567 ac_end=`expr $ac_end + $ac_max_sed_lines`
5570 if test -z "$ac_sed_cmds"; then
5573 fi # test -n "$CONFIG_FILES"
5576 cat >>$CONFIG_STATUS <<\_ACEOF
5577 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5578 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5580 - | *:- | *:-:* ) # input from stdin
5582 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5583 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5584 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5585 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5586 * ) ac_file_in=$ac_file.in ;;
5589 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5590 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5591 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5592 X"$ac_file" : 'X\(//\)[^/]' \| \
5593 X"$ac_file" : 'X\(//\)$' \| \
5594 X"$ac_file" : 'X\(/\)' \| \
5595 . : '\(.\)' 2>/dev/null ||
5597 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5598 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5599 /^X\(\/\/\)$/{ s//\1/; q; }
5600 /^X\(\/\).*/{ s//\1/; q; }
5602 { if $as_mkdir_p; then
5607 while test ! -d "$as_dir"; do
5608 as_dirs="$as_dir $as_dirs"
5609 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5610 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5611 X"$as_dir" : 'X\(//\)[^/]' \| \
5612 X"$as_dir" : 'X\(//\)$' \| \
5613 X"$as_dir" : 'X\(/\)' \| \
5614 . : '\(.\)' 2>/dev/null ||
5616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5617 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5618 /^X\(\/\/\)$/{ s//\1/; q; }
5619 /^X\(\/\).*/{ s//\1/; q; }
5622 test ! -n "$as_dirs" || mkdir $as_dirs
5623 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5624 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5625 { (exit 1); exit 1; }; }; }
5629 if test "$ac_dir" != .; then
5630 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5631 # A "../" for each directory in $ac_dir_suffix.
5632 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5634 ac_dir_suffix= ac_top_builddir=
5638 .) # No --srcdir option. We are building in place.
5640 if test -z "$ac_top_builddir"; then
5643 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5645 [\\/]* | ?:[\\/]* ) # Absolute path.
5646 ac_srcdir=$srcdir$ac_dir_suffix;
5647 ac_top_srcdir=$srcdir ;;
5649 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5650 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5652 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5654 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5655 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
5656 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5657 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5661 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5662 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5665 if test x"$ac_file" != x-; then
5666 { echo "$as_me:$LINENO: creating $ac_file" >&5
5667 echo "$as_me: creating $ac_file" >&6;}
5670 # Let's still pretend it is `configure' which instantiates (i.e., don't
5671 # use $as_me), people would be surprised to read:
5672 # /* config.h. Generated by config.status. */
5673 if test x"$ac_file" = x-; then
5676 configure_input="$ac_file. "
5678 configure_input=$configure_input"Generated from `echo $ac_file_in |
5679 sed 's,.*/,,'` by configure."
5681 # First look for the input files in the build tree, otherwise in the
5683 ac_file_inputs=`IFS=:
5684 for f in $ac_file_in; do
5686 -) echo $tmp/stdin ;;
5688 # Absolute (can't be DOS-style, as IFS=:)
5689 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5690 echo "$as_me: error: cannot find input file: $f" >&2;}
5691 { (exit 1); exit 1; }; }
5694 if test -f "$f"; then
5697 elif test -f "$srcdir/$f"; then
5702 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5703 echo "$as_me: error: cannot find input file: $f" >&2;}
5704 { (exit 1); exit 1; }; }
5707 done` || { (exit 1); exit 1; }
5709 cat >>$CONFIG_STATUS <<_ACEOF
5713 cat >>$CONFIG_STATUS <<\_ACEOF
5715 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5716 s,@configure_input@,$configure_input,;t t
5717 s,@srcdir@,$ac_srcdir,;t t
5718 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5719 s,@top_srcdir@,$ac_top_srcdir,;t t
5720 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5721 s,@builddir@,$ac_builddir,;t t
5722 s,@abs_builddir@,$ac_abs_builddir,;t t
5723 s,@top_builddir@,$ac_top_builddir,;t t
5724 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5725 s,@INSTALL@,$ac_INSTALL,;t t
5726 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5728 if test x"$ac_file" != x-; then
5729 mv $tmp/out $ac_file
5737 cat >>$CONFIG_STATUS <<\_ACEOF
5740 # CONFIG_COMMANDS section.
5742 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5743 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5744 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5745 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5746 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5747 X"$ac_dest" : 'X\(//\)[^/]' \| \
5748 X"$ac_dest" : 'X\(//\)$' \| \
5749 X"$ac_dest" : 'X\(/\)' \| \
5750 . : '\(.\)' 2>/dev/null ||
5752 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5753 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5754 /^X\(\/\/\)$/{ s//\1/; q; }
5755 /^X\(\/\).*/{ s//\1/; q; }
5759 if test "$ac_dir" != .; then
5760 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5761 # A "../" for each directory in $ac_dir_suffix.
5762 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5764 ac_dir_suffix= ac_top_builddir=
5768 .) # No --srcdir option. We are building in place.
5770 if test -z "$ac_top_builddir"; then
5773 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5775 [\\/]* | ?:[\\/]* ) # Absolute path.
5776 ac_srcdir=$srcdir$ac_dir_suffix;
5777 ac_top_srcdir=$srcdir ;;
5779 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5780 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5782 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5784 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5785 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
5786 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5787 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5790 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5791 echo "$as_me: executing $ac_dest commands" >&6;}
5793 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
5794 # Strip MF so we end up with the name of the file.
5795 mf=`echo "$mf" | sed -e 's/:.*$//'`
5796 # Check whether this is an Automake generated Makefile or not.
5797 # We used to match only the files named `Makefile.in', but
5798 # some people rename them; so instead we look at the file content.
5799 # Grep'ing the first line is not enough: some people post-process
5800 # each Makefile.in and add a new line on top of each file to say so.
5801 # So let's grep whole file.
5802 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
5803 dirpart=`(dirname "$mf") 2>/dev/null ||
5804 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5805 X"$mf" : 'X\(//\)[^/]' \| \
5806 X"$mf" : 'X\(//\)$' \| \
5807 X"$mf" : 'X\(/\)' \| \
5808 . : '\(.\)' 2>/dev/null ||
5810 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5811 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5812 /^X\(\/\/\)$/{ s//\1/; q; }
5813 /^X\(\/\).*/{ s//\1/; q; }
5818 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
5819 # Extract the definition of DEP_FILES from the Makefile without
5821 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
5822 test -z "$DEPDIR" && continue
5823 # When using ansi2knr, U may be empty or an underscore; expand it
5824 U=`sed -n -e '/^U = / s///p' < "$mf"`
5825 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
5826 # We invoke sed twice because it is the simplest approach to
5827 # changing $(DEPDIR) to its actual value in the expansion.
5828 for file in `sed -n -e '
5829 /^DEP_FILES = .*\\\\$/ {
5838 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
5839 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
5840 # Make sure the directory exists.
5841 test -f "$dirpart/$file" && continue
5842 fdir=`(dirname "$file") 2>/dev/null ||
5843 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5844 X"$file" : 'X\(//\)[^/]' \| \
5845 X"$file" : 'X\(//\)$' \| \
5846 X"$file" : 'X\(/\)' \| \
5847 . : '\(.\)' 2>/dev/null ||
5849 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5850 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5851 /^X\(\/\/\)$/{ s//\1/; q; }
5852 /^X\(\/\).*/{ s//\1/; q; }
5854 { if $as_mkdir_p; then
5855 mkdir -p $dirpart/$fdir
5857 as_dir=$dirpart/$fdir
5859 while test ! -d "$as_dir"; do
5860 as_dirs="$as_dir $as_dirs"
5861 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5862 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5863 X"$as_dir" : 'X\(//\)[^/]' \| \
5864 X"$as_dir" : 'X\(//\)$' \| \
5865 X"$as_dir" : 'X\(/\)' \| \
5866 . : '\(.\)' 2>/dev/null ||
5868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5869 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5870 /^X\(\/\/\)$/{ s//\1/; q; }
5871 /^X\(\/\).*/{ s//\1/; q; }
5874 test ! -n "$as_dirs" || mkdir $as_dirs
5875 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
5876 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
5877 { (exit 1); exit 1; }; }; }
5879 # echo "creating $dirpart/$file"
5880 echo '# dummy' > "$dirpart/$file"
5888 cat >>$CONFIG_STATUS <<\_ACEOF
5890 { (exit 0); exit 0; }
5892 chmod +x $CONFIG_STATUS
5893 ac_clean_files=$ac_clean_files_save
5896 # configure is writing to config.log, and then calls config.status.
5897 # config.status does its own redirection, appending to config.log.
5898 # Unfortunately, on DOS this fails, as config.log is still kept open
5899 # by configure, so config.status won't be able to write to it; its
5900 # output is simply discarded. So we exec the FD to /dev/null,
5901 # effectively closing config.log, so it can be properly (re)opened and
5902 # appended to by config.status. When coming back to configure, we
5903 # need to make the FD available again.
5904 if test "$no_create" != yes; then
5906 ac_config_status_args=
5907 test "$silent" = yes &&
5908 ac_config_status_args="$ac_config_status_args --quiet"
5910 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5912 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5913 # would make configure fail if this is the last instruction.
5914 $ac_cs_success || { (exit 1); exit 1; }