2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="Makefile.in"
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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LIBREADLINE CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB AUTOCONF STRIP AS CP M_OR_MM sdccconf_h_dir_separator lib_dir_suffix 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
773 ac_env_sdccconf_h_dir_separator_set=${sdccconf_h_dir_separator+set}
774 ac_env_sdccconf_h_dir_separator_value=$sdccconf_h_dir_separator
775 ac_cv_env_sdccconf_h_dir_separator_set=${sdccconf_h_dir_separator+set}
776 ac_cv_env_sdccconf_h_dir_separator_value=$sdccconf_h_dir_separator
777 ac_env_lib_dir_suffix_set=${lib_dir_suffix+set}
778 ac_env_lib_dir_suffix_value=$lib_dir_suffix
779 ac_cv_env_lib_dir_suffix_set=${lib_dir_suffix+set}
780 ac_cv_env_lib_dir_suffix_value=$lib_dir_suffix
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
844 if test -n "$ac_init_help"; then
848 Some influential environment variables:
849 CC C compiler command
850 CFLAGS C compiler flags
851 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
852 nonstandard directory <lib dir>
853 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
854 headers in a nonstandard directory <include dir>
856 sdccconf_h_dir_separator
857 needed in sdccconf.h: either "/" (default) or "\\"
859 appended to datadir to define SDCC's library root directory
861 Use these variables to override the choices made by `configure' or to help
862 it to find libraries and programs with nonstandard names/locations.
867 if test "$ac_init_help" = "recursive"; then
868 # If there are subdirs, report their specific --help.
870 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
871 test -d $ac_dir || continue
874 if test "$ac_dir" != .; then
875 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
876 # A "../" for each directory in $ac_dir_suffix.
877 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
879 ac_dir_suffix= ac_top_builddir=
883 .) # No --srcdir option. We are building in place.
885 if test -z "$ac_top_builddir"; then
888 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
890 [\\/]* | ?:[\\/]* ) # Absolute path.
891 ac_srcdir=$srcdir$ac_dir_suffix;
892 ac_top_srcdir=$srcdir ;;
894 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
895 ac_top_srcdir=$ac_top_builddir$srcdir ;;
898 # Do not use `cd foo && pwd` to compute absolute paths, because
899 # the directories may not exist.
901 .) ac_abs_builddir="$ac_dir";;
904 .) ac_abs_builddir=`pwd`;;
905 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
906 *) ac_abs_builddir=`pwd`/"$ac_dir";;
909 case $ac_abs_builddir in
910 .) ac_abs_top_builddir=${ac_top_builddir}.;;
912 case ${ac_top_builddir}. in
913 .) ac_abs_top_builddir=$ac_abs_builddir;;
914 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
915 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
918 case $ac_abs_builddir in
919 .) ac_abs_srcdir=$ac_srcdir;;
922 .) ac_abs_srcdir=$ac_abs_builddir;;
923 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
924 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
927 case $ac_abs_builddir in
928 .) ac_abs_top_srcdir=$ac_top_srcdir;;
930 case $ac_top_srcdir in
931 .) ac_abs_top_srcdir=$ac_abs_builddir;;
932 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
933 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
938 # Check for guested configure; otherwise get Cygnus style configure.
939 if test -f $ac_srcdir/configure.gnu; then
941 $SHELL $ac_srcdir/configure.gnu --help=recursive
942 elif test -f $ac_srcdir/configure; then
944 $SHELL $ac_srcdir/configure --help=recursive
945 elif test -f $ac_srcdir/configure.ac ||
946 test -f $ac_srcdir/configure.in; then
950 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
956 test -n "$ac_init_help" && exit 0
957 if $ac_init_version; then
960 Copyright (C) 2003 Free Software Foundation, Inc.
961 This configure script is free software; the Free Software Foundation
962 gives unlimited permission to copy, distribute and modify it.
968 This file contains any messages produced by compilers while
969 running configure, to aid debugging if configure makes a mistake.
971 It was created by $as_me, which was
972 generated by GNU Autoconf 2.59. Invocation command line was
983 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
984 uname -m = `(uname -m) 2>/dev/null || echo unknown`
985 uname -r = `(uname -r) 2>/dev/null || echo unknown`
986 uname -s = `(uname -s) 2>/dev/null || echo unknown`
987 uname -v = `(uname -v) 2>/dev/null || echo unknown`
989 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
990 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
992 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
993 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
994 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
995 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
996 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
997 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
998 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1006 test -z "$as_dir" && as_dir=.
1007 echo "PATH: $as_dir"
1022 # Keep a trace of the command line.
1023 # Strip out --no-create and --no-recursion so they do not pile up.
1024 # Strip out --silent because we don't want to record it for future runs.
1025 # Also quote any args containing shell meta-characters.
1026 # Make two passes to allow for proper duplicate-argument suppression.
1031 ac_must_keep_next=false
1037 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1038 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1039 | -silent | --silent | --silen | --sile | --sil)
1041 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1042 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1045 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1047 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1048 if test $ac_must_keep_next = true; then
1049 ac_must_keep_next=false # Got value, back to normal.
1052 *=* | --config-cache | -C | -disable-* | --disable-* \
1053 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1054 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1055 | -with-* | --with-* | -without-* | --without-* | --x)
1056 case "$ac_configure_args0 " in
1057 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1060 -* ) ac_must_keep_next=true ;;
1063 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1064 # Get rid of the leading space.
1070 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1071 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1073 # When interrupted or exit'd, cleanup temporary files, and complete
1074 # config.log. We remove comments because anyway the quotes in there
1075 # would cause problems or look ugly.
1076 # WARNING: Be sure not to use single quotes in there, as some shells,
1077 # such as our DU 5.0 friend, will then `close' the trap.
1078 trap 'exit_status=$?
1079 # Save into config.log some information that might help in debugging.
1084 ## ---------------- ##
1085 ## Cache variables. ##
1086 ## ---------------- ##
1089 # The following way of writing the cache mishandles newlines in values,
1092 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1095 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1096 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1100 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1107 ## ----------------- ##
1108 ## Output variables. ##
1109 ## ----------------- ##
1112 for ac_var in $ac_subst_vars
1114 eval ac_val=$`echo $ac_var`
1115 echo "$ac_var='"'"'$ac_val'"'"'"
1119 if test -n "$ac_subst_files"; then
1126 for ac_var in $ac_subst_files
1128 eval ac_val=$`echo $ac_var`
1129 echo "$ac_var='"'"'$ac_val'"'"'"
1134 if test -s confdefs.h; then
1141 sed "/^$/d" confdefs.h | sort
1144 test "$ac_signal" != 0 &&
1145 echo "$as_me: caught signal $ac_signal"
1146 echo "$as_me: exit $exit_status"
1148 rm -f core *.core &&
1149 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1152 for ac_signal in 1 2 13 15; do
1153 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1157 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1158 rm -rf conftest* confdefs.h
1159 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1162 # Predefined preprocessor variables.
1164 cat >>confdefs.h <<_ACEOF
1165 #define PACKAGE_NAME "$PACKAGE_NAME"
1169 cat >>confdefs.h <<_ACEOF
1170 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_STRING "$PACKAGE_STRING"
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1189 # Let the site file select an alternate cache file if it wants to.
1190 # Prefer explicitly selected file to automatically selected ones.
1191 if test -z "$CONFIG_SITE"; then
1192 if test "x$prefix" != xNONE; then
1193 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1195 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1198 for ac_site_file in $CONFIG_SITE; do
1199 if test -r "$ac_site_file"; then
1200 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1201 echo "$as_me: loading site script $ac_site_file" >&6;}
1202 sed 's/^/| /' "$ac_site_file" >&5
1207 if test -r "$cache_file"; then
1208 # Some versions of bash will fail to source /dev/null (special
1209 # files actually), so we avoid doing that.
1210 if test -f "$cache_file"; then
1211 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1212 echo "$as_me: loading cache $cache_file" >&6;}
1214 [\\/]* | ?:[\\/]* ) . $cache_file;;
1215 *) . ./$cache_file;;
1219 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1220 echo "$as_me: creating cache $cache_file" >&6;}
1224 # Check that the precious variables saved in the cache have kept the same
1226 ac_cache_corrupted=false
1227 for ac_var in `(set) 2>&1 |
1228 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1229 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1230 eval ac_new_set=\$ac_env_${ac_var}_set
1231 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1232 eval ac_new_val="\$ac_env_${ac_var}_value"
1233 case $ac_old_set,$ac_new_set in
1235 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1236 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1237 ac_cache_corrupted=: ;;
1239 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1240 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1241 ac_cache_corrupted=: ;;
1244 if test "x$ac_old_val" != "x$ac_new_val"; then
1245 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1246 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1247 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1248 echo "$as_me: former value: $ac_old_val" >&2;}
1249 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1250 echo "$as_me: current value: $ac_new_val" >&2;}
1251 ac_cache_corrupted=:
1254 # Pass precious variables to config.status.
1255 if test "$ac_new_set" = set; then
1257 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1258 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1259 *) ac_arg=$ac_var=$ac_new_val ;;
1261 case " $ac_configure_args " in
1262 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1263 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1267 if $ac_cache_corrupted; then
1268 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1269 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1270 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1271 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1272 { (exit 1); exit 1; }; }
1276 ac_cpp='$CPP $CPPFLAGS'
1277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1300 ac_config_headers="$ac_config_headers config.h"
1305 ac_cpp='$CPP $CPPFLAGS'
1306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1309 if test -n "$ac_tool_prefix"; then
1310 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1311 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1312 echo "$as_me:$LINENO: checking for $ac_word" >&5
1313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1314 if test "${ac_cv_prog_CC+set}" = set; then
1315 echo $ECHO_N "(cached) $ECHO_C" >&6
1317 if test -n "$CC"; then
1318 ac_cv_prog_CC="$CC" # Let the user override the test.
1320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1324 test -z "$as_dir" && as_dir=.
1325 for ac_exec_ext in '' $ac_executable_extensions; do
1326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1327 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1337 if test -n "$CC"; then
1338 echo "$as_me:$LINENO: result: $CC" >&5
1339 echo "${ECHO_T}$CC" >&6
1341 echo "$as_me:$LINENO: result: no" >&5
1342 echo "${ECHO_T}no" >&6
1346 if test -z "$ac_cv_prog_CC"; then
1348 # Extract the first word of "gcc", so it can be a program name with args.
1349 set dummy gcc; ac_word=$2
1350 echo "$as_me:$LINENO: checking for $ac_word" >&5
1351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1352 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1353 echo $ECHO_N "(cached) $ECHO_C" >&6
1355 if test -n "$ac_ct_CC"; then
1356 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1362 test -z "$as_dir" && as_dir=.
1363 for ac_exec_ext in '' $ac_executable_extensions; do
1364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1365 ac_cv_prog_ac_ct_CC="gcc"
1366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1374 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1375 if test -n "$ac_ct_CC"; then
1376 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1377 echo "${ECHO_T}$ac_ct_CC" >&6
1379 echo "$as_me:$LINENO: result: no" >&5
1380 echo "${ECHO_T}no" >&6
1388 if test -z "$CC"; then
1389 if test -n "$ac_tool_prefix"; then
1390 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1391 set dummy ${ac_tool_prefix}cc; ac_word=$2
1392 echo "$as_me:$LINENO: checking for $ac_word" >&5
1393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1394 if test "${ac_cv_prog_CC+set}" = set; then
1395 echo $ECHO_N "(cached) $ECHO_C" >&6
1397 if test -n "$CC"; then
1398 ac_cv_prog_CC="$CC" # Let the user override the test.
1400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1404 test -z "$as_dir" && as_dir=.
1405 for ac_exec_ext in '' $ac_executable_extensions; do
1406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1407 ac_cv_prog_CC="${ac_tool_prefix}cc"
1408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1417 if test -n "$CC"; then
1418 echo "$as_me:$LINENO: result: $CC" >&5
1419 echo "${ECHO_T}$CC" >&6
1421 echo "$as_me:$LINENO: result: no" >&5
1422 echo "${ECHO_T}no" >&6
1426 if test -z "$ac_cv_prog_CC"; then
1428 # Extract the first word of "cc", so it can be a program name with args.
1429 set dummy cc; ac_word=$2
1430 echo "$as_me:$LINENO: checking for $ac_word" >&5
1431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1432 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1433 echo $ECHO_N "(cached) $ECHO_C" >&6
1435 if test -n "$ac_ct_CC"; then
1436 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1442 test -z "$as_dir" && as_dir=.
1443 for ac_exec_ext in '' $ac_executable_extensions; do
1444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1445 ac_cv_prog_ac_ct_CC="cc"
1446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1454 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1455 if test -n "$ac_ct_CC"; then
1456 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1457 echo "${ECHO_T}$ac_ct_CC" >&6
1459 echo "$as_me:$LINENO: result: no" >&5
1460 echo "${ECHO_T}no" >&6
1469 if test -z "$CC"; then
1470 # Extract the first word of "cc", so it can be a program name with args.
1471 set dummy cc; ac_word=$2
1472 echo "$as_me:$LINENO: checking for $ac_word" >&5
1473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1474 if test "${ac_cv_prog_CC+set}" = set; then
1475 echo $ECHO_N "(cached) $ECHO_C" >&6
1477 if test -n "$CC"; then
1478 ac_cv_prog_CC="$CC" # Let the user override the test.
1481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485 test -z "$as_dir" && as_dir=.
1486 for ac_exec_ext in '' $ac_executable_extensions; do
1487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1488 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1489 ac_prog_rejected=yes
1493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1499 if test $ac_prog_rejected = yes; then
1500 # We found a bogon in the path, so make sure we never use it.
1501 set dummy $ac_cv_prog_CC
1503 if test $# != 0; then
1504 # We chose a different compiler from the bogus one.
1505 # However, it has the same basename, so the bogon will be chosen
1506 # first if we set CC to just the basename; use the full file name.
1508 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1514 if test -n "$CC"; then
1515 echo "$as_me:$LINENO: result: $CC" >&5
1516 echo "${ECHO_T}$CC" >&6
1518 echo "$as_me:$LINENO: result: no" >&5
1519 echo "${ECHO_T}no" >&6
1523 if test -z "$CC"; then
1524 if test -n "$ac_tool_prefix"; then
1527 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1528 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1529 echo "$as_me:$LINENO: checking for $ac_word" >&5
1530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1531 if test "${ac_cv_prog_CC+set}" = set; then
1532 echo $ECHO_N "(cached) $ECHO_C" >&6
1534 if test -n "$CC"; then
1535 ac_cv_prog_CC="$CC" # Let the user override the test.
1537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1541 test -z "$as_dir" && as_dir=.
1542 for ac_exec_ext in '' $ac_executable_extensions; do
1543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1544 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1554 if test -n "$CC"; then
1555 echo "$as_me:$LINENO: result: $CC" >&5
1556 echo "${ECHO_T}$CC" >&6
1558 echo "$as_me:$LINENO: result: no" >&5
1559 echo "${ECHO_T}no" >&6
1562 test -n "$CC" && break
1565 if test -z "$CC"; then
1569 # Extract the first word of "$ac_prog", so it can be a program name with args.
1570 set dummy $ac_prog; ac_word=$2
1571 echo "$as_me:$LINENO: checking for $ac_word" >&5
1572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1573 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1574 echo $ECHO_N "(cached) $ECHO_C" >&6
1576 if test -n "$ac_ct_CC"; then
1577 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1583 test -z "$as_dir" && as_dir=.
1584 for ac_exec_ext in '' $ac_executable_extensions; do
1585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1586 ac_cv_prog_ac_ct_CC="$ac_prog"
1587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1595 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1596 if test -n "$ac_ct_CC"; then
1597 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1598 echo "${ECHO_T}$ac_ct_CC" >&6
1600 echo "$as_me:$LINENO: result: no" >&5
1601 echo "${ECHO_T}no" >&6
1604 test -n "$ac_ct_CC" && break
1613 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1614 See \`config.log' for more details." >&5
1615 echo "$as_me: error: no acceptable C compiler found in \$PATH
1616 See \`config.log' for more details." >&2;}
1617 { (exit 1); exit 1; }; }
1619 # Provide some information about the compiler.
1620 echo "$as_me:$LINENO:" \
1621 "checking for C compiler version" >&5
1622 ac_compiler=`set X $ac_compile; echo $2`
1623 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1624 (eval $ac_compiler --version </dev/null >&5) 2>&5
1626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1627 (exit $ac_status); }
1628 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1629 (eval $ac_compiler -v </dev/null >&5) 2>&5
1631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1632 (exit $ac_status); }
1633 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1634 (eval $ac_compiler -V </dev/null >&5) 2>&5
1636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1637 (exit $ac_status); }
1639 cat >conftest.$ac_ext <<_ACEOF
1642 cat confdefs.h >>conftest.$ac_ext
1643 cat >>conftest.$ac_ext <<_ACEOF
1644 /* end confdefs.h. */
1654 ac_clean_files_save=$ac_clean_files
1655 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1656 # Try to create an executable without -o first, disregard a.out.
1657 # It will help us diagnose broken compilers, and finding out an intuition
1659 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1660 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1661 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1662 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1663 (eval $ac_link_default) 2>&5
1665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1666 (exit $ac_status); }; then
1667 # Find the output, starting from the most likely. This scheme is
1668 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1671 # Be careful to initialize this variable, since it used to be cached.
1672 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1674 # b.out is created by i960 compilers.
1675 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1677 test -f "$ac_file" || continue
1679 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1682 # This is the source file.
1685 # We found the default executable, but exeext='' is most
1689 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1690 # FIXME: I believe we export ac_cv_exeext for Libtool,
1691 # but it would be cool to find out if it's true. Does anybody
1692 # maintain Libtool? --akim.
1700 echo "$as_me: failed program was:" >&5
1701 sed 's/^/| /' conftest.$ac_ext >&5
1703 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1704 See \`config.log' for more details." >&5
1705 echo "$as_me: error: C compiler cannot create executables
1706 See \`config.log' for more details." >&2;}
1707 { (exit 77); exit 77; }; }
1710 ac_exeext=$ac_cv_exeext
1711 echo "$as_me:$LINENO: result: $ac_file" >&5
1712 echo "${ECHO_T}$ac_file" >&6
1714 # Check the compiler produces executables we can run. If not, either
1715 # the compiler is broken, or we cross compile.
1716 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1717 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1718 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1719 # If not cross compiling, check that we can run a simple program.
1720 if test "$cross_compiling" != yes; then
1721 if { ac_try='./$ac_file'
1722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1726 (exit $ac_status); }; }; then
1729 if test "$cross_compiling" = maybe; then
1732 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1733 If you meant to cross compile, use \`--host'.
1734 See \`config.log' for more details." >&5
1735 echo "$as_me: error: cannot run C compiled programs.
1736 If you meant to cross compile, use \`--host'.
1737 See \`config.log' for more details." >&2;}
1738 { (exit 1); exit 1; }; }
1742 echo "$as_me:$LINENO: result: yes" >&5
1743 echo "${ECHO_T}yes" >&6
1745 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1746 ac_clean_files=$ac_clean_files_save
1747 # Check the compiler produces executables we can run. If not, either
1748 # the compiler is broken, or we cross compile.
1749 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1750 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1751 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1752 echo "${ECHO_T}$cross_compiling" >&6
1754 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1755 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1757 (eval $ac_link) 2>&5
1759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1760 (exit $ac_status); }; then
1761 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1762 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1763 # work properly (i.e., refer to `conftest.exe'), while it won't with
1765 for ac_file in conftest.exe conftest conftest.*; do
1766 test -f "$ac_file" || continue
1768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1769 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1776 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1777 See \`config.log' for more details." >&5
1778 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1779 See \`config.log' for more details." >&2;}
1780 { (exit 1); exit 1; }; }
1783 rm -f conftest$ac_cv_exeext
1784 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1785 echo "${ECHO_T}$ac_cv_exeext" >&6
1787 rm -f conftest.$ac_ext
1788 EXEEXT=$ac_cv_exeext
1790 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1791 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1792 if test "${ac_cv_objext+set}" = set; then
1793 echo $ECHO_N "(cached) $ECHO_C" >&6
1795 cat >conftest.$ac_ext <<_ACEOF
1798 cat confdefs.h >>conftest.$ac_ext
1799 cat >>conftest.$ac_ext <<_ACEOF
1800 /* end confdefs.h. */
1810 rm -f conftest.o conftest.obj
1811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1812 (eval $ac_compile) 2>&5
1814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1815 (exit $ac_status); }; then
1816 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1818 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1819 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1824 echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.$ac_ext >&5
1827 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1828 See \`config.log' for more details." >&5
1829 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1830 See \`config.log' for more details." >&2;}
1831 { (exit 1); exit 1; }; }
1834 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1836 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1837 echo "${ECHO_T}$ac_cv_objext" >&6
1838 OBJEXT=$ac_cv_objext
1840 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1841 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1842 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1843 echo $ECHO_N "(cached) $ECHO_C" >&6
1845 cat >conftest.$ac_ext <<_ACEOF
1848 cat confdefs.h >>conftest.$ac_ext
1849 cat >>conftest.$ac_ext <<_ACEOF
1850 /* end confdefs.h. */
1863 rm -f conftest.$ac_objext
1864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1865 (eval $ac_compile) 2>conftest.er1
1867 grep -v '^ *+' conftest.er1 >conftest.err
1869 cat conftest.err >&5
1870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1871 (exit $ac_status); } &&
1872 { ac_try='test -z "$ac_c_werror_flag"
1873 || test ! -s conftest.err'
1874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1878 (exit $ac_status); }; } &&
1879 { ac_try='test -s conftest.$ac_objext'
1880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1884 (exit $ac_status); }; }; then
1887 echo "$as_me: failed program was:" >&5
1888 sed 's/^/| /' conftest.$ac_ext >&5
1892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1893 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1896 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1897 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1898 GCC=`test $ac_compiler_gnu = yes && echo yes`
1899 ac_test_CFLAGS=${CFLAGS+set}
1900 ac_save_CFLAGS=$CFLAGS
1902 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1903 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1904 if test "${ac_cv_prog_cc_g+set}" = set; then
1905 echo $ECHO_N "(cached) $ECHO_C" >&6
1907 cat >conftest.$ac_ext <<_ACEOF
1910 cat confdefs.h >>conftest.$ac_ext
1911 cat >>conftest.$ac_ext <<_ACEOF
1912 /* end confdefs.h. */
1922 rm -f conftest.$ac_objext
1923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1924 (eval $ac_compile) 2>conftest.er1
1926 grep -v '^ *+' conftest.er1 >conftest.err
1928 cat conftest.err >&5
1929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1930 (exit $ac_status); } &&
1931 { ac_try='test -z "$ac_c_werror_flag"
1932 || test ! -s conftest.err'
1933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1937 (exit $ac_status); }; } &&
1938 { ac_try='test -s conftest.$ac_objext'
1939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); }; }; then
1946 echo "$as_me: failed program was:" >&5
1947 sed 's/^/| /' conftest.$ac_ext >&5
1951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1953 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1954 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1955 if test "$ac_test_CFLAGS" = set; then
1956 CFLAGS=$ac_save_CFLAGS
1957 elif test $ac_cv_prog_cc_g = yes; then
1958 if test "$GCC" = yes; then
1964 if test "$GCC" = yes; then
1970 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1971 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1972 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1975 ac_cv_prog_cc_stdc=no
1977 cat >conftest.$ac_ext <<_ACEOF
1980 cat confdefs.h >>conftest.$ac_ext
1981 cat >>conftest.$ac_ext <<_ACEOF
1982 /* end confdefs.h. */
1985 #include <sys/types.h>
1986 #include <sys/stat.h>
1987 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1988 struct buf { int x; };
1989 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1990 static char *e (p, i)
1996 static char *f (char * (*g) (char **, int), char **p, ...)
2001 s = g (p, va_arg (v,int));
2006 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2007 function prototypes and stuff, but not '\xHH' hex character constants.
2008 These don't provoke an error unfortunately, instead are silently treated
2009 as 'x'. The following induces an error, until -std1 is added to get
2010 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2011 array size at least. It's necessary to write '\x00'==0 to get something
2012 that's true only with -std1. */
2013 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2015 int test (int i, double x);
2016 struct s1 {int (*f) (int a);};
2017 struct s2 {int (*f) (double a);};
2018 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2024 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2029 # Don't try gcc -ansi; that turns off useful extensions and
2030 # breaks some systems' header files.
2031 # AIX -qlanglvl=ansi
2032 # Ultrix and OSF/1 -std1
2033 # HP-UX 10.20 and later -Ae
2034 # HP-UX older versions -Aa -D_HPUX_SOURCE
2035 # SVR4 -Xc -D__EXTENSIONS__
2036 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2038 CC="$ac_save_CC $ac_arg"
2039 rm -f conftest.$ac_objext
2040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2041 (eval $ac_compile) 2>conftest.er1
2043 grep -v '^ *+' conftest.er1 >conftest.err
2045 cat conftest.err >&5
2046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2047 (exit $ac_status); } &&
2048 { ac_try='test -z "$ac_c_werror_flag"
2049 || test ! -s conftest.err'
2050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054 (exit $ac_status); }; } &&
2055 { ac_try='test -s conftest.$ac_objext'
2056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); }; }; then
2061 ac_cv_prog_cc_stdc=$ac_arg
2064 echo "$as_me: failed program was:" >&5
2065 sed 's/^/| /' conftest.$ac_ext >&5
2068 rm -f conftest.err conftest.$ac_objext
2070 rm -f conftest.$ac_ext conftest.$ac_objext
2075 case "x$ac_cv_prog_cc_stdc" in
2077 echo "$as_me:$LINENO: result: none needed" >&5
2078 echo "${ECHO_T}none needed" >&6 ;;
2080 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2081 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2082 CC="$CC $ac_cv_prog_cc_stdc" ;;
2085 # Some people use a C++ compiler to compile C. Since we use `exit',
2086 # in C++ we need to declare it. In case someone uses the same compiler
2087 # for both compiling C and C++ we need to have the C++ compiler decide
2088 # the declaration of exit, since it's the most demanding environment.
2089 cat >conftest.$ac_ext <<_ACEOF
2094 rm -f conftest.$ac_objext
2095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2096 (eval $ac_compile) 2>conftest.er1
2098 grep -v '^ *+' conftest.er1 >conftest.err
2100 cat conftest.err >&5
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); } &&
2103 { ac_try='test -z "$ac_c_werror_flag"
2104 || test ! -s conftest.err'
2105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109 (exit $ac_status); }; } &&
2110 { ac_try='test -s conftest.$ac_objext'
2111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); }; }; then
2116 for ac_declaration in \
2118 'extern "C" void std::exit (int) throw (); using std::exit;' \
2119 'extern "C" void std::exit (int); using std::exit;' \
2120 'extern "C" void exit (int) throw ();' \
2121 'extern "C" void exit (int);' \
2124 cat >conftest.$ac_ext <<_ACEOF
2127 cat confdefs.h >>conftest.$ac_ext
2128 cat >>conftest.$ac_ext <<_ACEOF
2129 /* end confdefs.h. */
2140 rm -f conftest.$ac_objext
2141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2142 (eval $ac_compile) 2>conftest.er1
2144 grep -v '^ *+' conftest.er1 >conftest.err
2146 cat conftest.err >&5
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); } &&
2149 { ac_try='test -z "$ac_c_werror_flag"
2150 || test ! -s conftest.err'
2151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }; } &&
2156 { ac_try='test -s conftest.$ac_objext'
2157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161 (exit $ac_status); }; }; then
2164 echo "$as_me: failed program was:" >&5
2165 sed 's/^/| /' conftest.$ac_ext >&5
2169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2170 cat >conftest.$ac_ext <<_ACEOF
2173 cat confdefs.h >>conftest.$ac_ext
2174 cat >>conftest.$ac_ext <<_ACEOF
2175 /* end confdefs.h. */
2185 rm -f conftest.$ac_objext
2186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2187 (eval $ac_compile) 2>conftest.er1
2189 grep -v '^ *+' conftest.er1 >conftest.err
2191 cat conftest.err >&5
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); } &&
2194 { ac_try='test -z "$ac_c_werror_flag"
2195 || test ! -s conftest.err'
2196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); }; } &&
2201 { ac_try='test -s conftest.$ac_objext'
2202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); }; }; then
2209 echo "$as_me: failed program was:" >&5
2210 sed 's/^/| /' conftest.$ac_ext >&5
2213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2216 if test -n "$ac_declaration"; then
2217 echo '#ifdef __cplusplus' >>confdefs.h
2218 echo $ac_declaration >>confdefs.h
2219 echo '#endif' >>confdefs.h
2223 echo "$as_me: failed program was:" >&5
2224 sed 's/^/| /' conftest.$ac_ext >&5
2227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2229 ac_cpp='$CPP $CPPFLAGS'
2230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2236 ac_cpp='$CPP $CPPFLAGS'
2237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2240 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2241 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2242 # On Suns, sometimes $CPP names a directory.
2243 if test -n "$CPP" && test -d "$CPP"; then
2246 if test -z "$CPP"; then
2247 if test "${ac_cv_prog_CPP+set}" = set; then
2248 echo $ECHO_N "(cached) $ECHO_C" >&6
2250 # Double quotes because CPP needs to be expanded
2251 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2254 for ac_c_preproc_warn_flag in '' yes
2256 # Use a header file that comes with gcc, so configuring glibc
2257 # with a fresh cross-compiler works.
2258 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2259 # <limits.h> exists even on freestanding compilers.
2260 # On the NeXT, cc -E runs the code through the compiler's parser,
2261 # not just through cpp. "Syntax error" is here to catch this case.
2262 cat >conftest.$ac_ext <<_ACEOF
2265 cat confdefs.h >>conftest.$ac_ext
2266 cat >>conftest.$ac_ext <<_ACEOF
2267 /* end confdefs.h. */
2269 # include <limits.h>
2271 # include <assert.h>
2275 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2276 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2278 grep -v '^ *+' conftest.er1 >conftest.err
2280 cat conftest.err >&5
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); } >/dev/null; then
2283 if test -s conftest.err; then
2284 ac_cpp_err=$ac_c_preproc_warn_flag
2285 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2292 if test -z "$ac_cpp_err"; then
2295 echo "$as_me: failed program was:" >&5
2296 sed 's/^/| /' conftest.$ac_ext >&5
2298 # Broken: fails on valid input.
2301 rm -f conftest.err conftest.$ac_ext
2303 # OK, works on sane cases. Now check whether non-existent headers
2304 # can be detected and how.
2305 cat >conftest.$ac_ext <<_ACEOF
2308 cat confdefs.h >>conftest.$ac_ext
2309 cat >>conftest.$ac_ext <<_ACEOF
2310 /* end confdefs.h. */
2311 #include <ac_nonexistent.h>
2313 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2316 grep -v '^ *+' conftest.er1 >conftest.err
2318 cat conftest.err >&5
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); } >/dev/null; then
2321 if test -s conftest.err; then
2322 ac_cpp_err=$ac_c_preproc_warn_flag
2323 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2330 if test -z "$ac_cpp_err"; then
2331 # Broken: success on invalid input.
2334 echo "$as_me: failed program was:" >&5
2335 sed 's/^/| /' conftest.$ac_ext >&5
2337 # Passes both tests.
2341 rm -f conftest.err conftest.$ac_ext
2344 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2345 rm -f conftest.err conftest.$ac_ext
2346 if $ac_preproc_ok; then
2358 echo "$as_me:$LINENO: result: $CPP" >&5
2359 echo "${ECHO_T}$CPP" >&6
2361 for ac_c_preproc_warn_flag in '' yes
2363 # Use a header file that comes with gcc, so configuring glibc
2364 # with a fresh cross-compiler works.
2365 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2366 # <limits.h> exists even on freestanding compilers.
2367 # On the NeXT, cc -E runs the code through the compiler's parser,
2368 # not just through cpp. "Syntax error" is here to catch this case.
2369 cat >conftest.$ac_ext <<_ACEOF
2372 cat confdefs.h >>conftest.$ac_ext
2373 cat >>conftest.$ac_ext <<_ACEOF
2374 /* end confdefs.h. */
2376 # include <limits.h>
2378 # include <assert.h>
2382 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2383 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2385 grep -v '^ *+' conftest.er1 >conftest.err
2387 cat conftest.err >&5
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); } >/dev/null; then
2390 if test -s conftest.err; then
2391 ac_cpp_err=$ac_c_preproc_warn_flag
2392 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2399 if test -z "$ac_cpp_err"; then
2402 echo "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2405 # Broken: fails on valid input.
2408 rm -f conftest.err conftest.$ac_ext
2410 # OK, works on sane cases. Now check whether non-existent headers
2411 # can be detected and how.
2412 cat >conftest.$ac_ext <<_ACEOF
2415 cat confdefs.h >>conftest.$ac_ext
2416 cat >>conftest.$ac_ext <<_ACEOF
2417 /* end confdefs.h. */
2418 #include <ac_nonexistent.h>
2420 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2421 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2423 grep -v '^ *+' conftest.er1 >conftest.err
2425 cat conftest.err >&5
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); } >/dev/null; then
2428 if test -s conftest.err; then
2429 ac_cpp_err=$ac_c_preproc_warn_flag
2430 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2437 if test -z "$ac_cpp_err"; then
2438 # Broken: success on invalid input.
2441 echo "$as_me: failed program was:" >&5
2442 sed 's/^/| /' conftest.$ac_ext >&5
2444 # Passes both tests.
2448 rm -f conftest.err conftest.$ac_ext
2451 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2452 rm -f conftest.err conftest.$ac_ext
2453 if $ac_preproc_ok; then
2456 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2457 See \`config.log' for more details." >&5
2458 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2459 See \`config.log' for more details." >&2;}
2460 { (exit 1); exit 1; }; }
2464 ac_cpp='$CPP $CPPFLAGS'
2465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2470 echo "$as_me:$LINENO: checking for egrep" >&5
2471 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2472 if test "${ac_cv_prog_egrep+set}" = set; then
2473 echo $ECHO_N "(cached) $ECHO_C" >&6
2475 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2476 then ac_cv_prog_egrep='grep -E'
2477 else ac_cv_prog_egrep='egrep'
2480 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2481 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2482 EGREP=$ac_cv_prog_egrep
2485 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2486 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2487 if test "${ac_cv_header_stdc+set}" = set; then
2488 echo $ECHO_N "(cached) $ECHO_C" >&6
2490 cat >conftest.$ac_ext <<_ACEOF
2493 cat confdefs.h >>conftest.$ac_ext
2494 cat >>conftest.$ac_ext <<_ACEOF
2495 /* end confdefs.h. */
2509 rm -f conftest.$ac_objext
2510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2511 (eval $ac_compile) 2>conftest.er1
2513 grep -v '^ *+' conftest.er1 >conftest.err
2515 cat conftest.err >&5
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); } &&
2518 { ac_try='test -z "$ac_c_werror_flag"
2519 || test ! -s conftest.err'
2520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }; } &&
2525 { ac_try='test -s conftest.$ac_objext'
2526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }; }; then
2531 ac_cv_header_stdc=yes
2533 echo "$as_me: failed program was:" >&5
2534 sed 's/^/| /' conftest.$ac_ext >&5
2536 ac_cv_header_stdc=no
2538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2540 if test $ac_cv_header_stdc = yes; then
2541 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2542 cat >conftest.$ac_ext <<_ACEOF
2545 cat confdefs.h >>conftest.$ac_ext
2546 cat >>conftest.$ac_ext <<_ACEOF
2547 /* end confdefs.h. */
2551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2552 $EGREP "memchr" >/dev/null 2>&1; then
2555 ac_cv_header_stdc=no
2561 if test $ac_cv_header_stdc = yes; then
2562 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2563 cat >conftest.$ac_ext <<_ACEOF
2566 cat confdefs.h >>conftest.$ac_ext
2567 cat >>conftest.$ac_ext <<_ACEOF
2568 /* end confdefs.h. */
2572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2573 $EGREP "free" >/dev/null 2>&1; then
2576 ac_cv_header_stdc=no
2582 if test $ac_cv_header_stdc = yes; then
2583 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2584 if test "$cross_compiling" = yes; then
2587 cat >conftest.$ac_ext <<_ACEOF
2590 cat confdefs.h >>conftest.$ac_ext
2591 cat >>conftest.$ac_ext <<_ACEOF
2592 /* end confdefs.h. */
2594 #if ((' ' & 0x0FF) == 0x020)
2595 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2596 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2598 # define ISLOWER(c) \
2599 (('a' <= (c) && (c) <= 'i') \
2600 || ('j' <= (c) && (c) <= 'r') \
2601 || ('s' <= (c) && (c) <= 'z'))
2602 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2605 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2610 for (i = 0; i < 256; i++)
2611 if (XOR (islower (i), ISLOWER (i))
2612 || toupper (i) != TOUPPER (i))
2617 rm -f conftest$ac_exeext
2618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2619 (eval $ac_link) 2>&5
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); }; }; then
2630 echo "$as_me: program exited with status $ac_status" >&5
2631 echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.$ac_ext >&5
2635 ac_cv_header_stdc=no
2637 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2641 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2642 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2643 if test $ac_cv_header_stdc = yes; then
2645 cat >>confdefs.h <<\_ACEOF
2646 #define STDC_HEADERS 1
2651 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2661 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2662 inttypes.h stdint.h unistd.h
2664 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2665 echo "$as_me:$LINENO: checking for $ac_header" >&5
2666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2668 echo $ECHO_N "(cached) $ECHO_C" >&6
2670 cat >conftest.$ac_ext <<_ACEOF
2673 cat confdefs.h >>conftest.$ac_ext
2674 cat >>conftest.$ac_ext <<_ACEOF
2675 /* end confdefs.h. */
2676 $ac_includes_default
2678 #include <$ac_header>
2680 rm -f conftest.$ac_objext
2681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2682 (eval $ac_compile) 2>conftest.er1
2684 grep -v '^ *+' conftest.er1 >conftest.err
2686 cat conftest.err >&5
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); } &&
2689 { ac_try='test -z "$ac_c_werror_flag"
2690 || test ! -s conftest.err'
2691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }; } &&
2696 { ac_try='test -s conftest.$ac_objext'
2697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); }; }; then
2702 eval "$as_ac_Header=yes"
2704 echo "$as_me: failed program was:" >&5
2705 sed 's/^/| /' conftest.$ac_ext >&5
2707 eval "$as_ac_Header=no"
2709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2712 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2713 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2714 cat >>confdefs.h <<_ACEOF
2715 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2724 echo "$as_me:$LINENO: checking for GNU Readline library, version 2.0 or newer" >&5
2725 echo $ECHO_N "checking for GNU Readline library, version 2.0 or newer... $ECHO_C" >&6
2727 wi_cv_lib_readline=no
2728 wi_cv_lib_readline_result=no
2729 ac_save_LIBS="$LIBS"
2730 # Note: $LIBCURSES is permitted to be empty.
2731 for LIBREADLINE in "-lreadline" "-lreadline $LIBCURSES" "-lreadline -ltermcap" "-lreadline -lncurses" "-lreadline -lcurses"
2733 LIBS="$ac_save_LIBS $LIBREADLINE"
2734 if test "$cross_compiling" = yes; then
2736 # action if cross compiling
2737 wi_cv_lib_readline=no
2740 cat >conftest.$ac_ext <<_ACEOF
2743 cat confdefs.h >>conftest.$ac_ext
2744 cat >>conftest.$ac_ext <<_ACEOF
2745 /* end confdefs.h. */
2751 main(int argc, char **argv)
2753 /* Note: don't actually call readline, since it may block;
2754 * We just want to see if it (dynamic) linked in okay.
2756 if (argc == 0) /* never true */
2762 rm -f conftest$ac_exeext
2763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2764 (eval $ac_link) 2>&5
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }; }; then
2775 wi_cv_lib_readline=yes
2778 echo "$as_me: program exited with status $ac_status" >&5
2779 echo "$as_me: failed program was:" >&5
2780 sed 's/^/| /' conftest.$ac_ext >&5
2785 wi_cv_lib_readline=no
2788 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2791 if test "$wi_cv_lib_readline" = yes ; then break ; fi
2794 # Now try it again, to be sure it is recent enough.
2795 # rl_function_of_keyseq appeared in version 2.0
2797 cat >conftest.$ac_ext <<_ACEOF
2800 cat confdefs.h >>conftest.$ac_ext
2801 cat >>conftest.$ac_ext <<_ACEOF
2802 /* end confdefs.h. */
2812 rl_function_of_keyseq(0);
2818 rm -f conftest.$ac_objext conftest$ac_exeext
2819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2820 (eval $ac_link) 2>conftest.er1
2822 grep -v '^ *+' conftest.er1 >conftest.err
2824 cat conftest.err >&5
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); } &&
2827 { ac_try='test -z "$ac_c_werror_flag"
2828 || test ! -s conftest.err'
2829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); }; } &&
2834 { ac_try='test -s conftest$ac_exeext'
2835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; }; then
2841 wi_cv_lib_readline=yes
2844 echo "$as_me: failed program was:" >&5
2845 sed 's/^/| /' conftest.$ac_ext >&5
2848 wi_cv_lib_readline=no
2849 wi_cv_lib_readline_result="no (it is present but too old to use)"
2852 rm -f conftest.err conftest.$ac_objext \
2853 conftest$ac_exeext conftest.$ac_ext
2855 if test "$wi_cv_lib_readline" = no ; then
2858 LIBS="$ac_save_LIBS"
2860 /bin/rm -f readline.ver
2863 if test "$cross_compiling" = yes; then
2865 # action if cross compiling
2866 rl_library_version=''
2868 /bin/rm -f readline.ver
2871 cat >conftest.$ac_ext <<_ACEOF
2874 cat confdefs.h >>conftest.$ac_ext
2875 cat >>conftest.$ac_ext <<_ACEOF
2876 /* end confdefs.h. */
2880 #include <sys/types.h>
2883 extern char *rl_library_version;
2890 sscanf(rl_library_version, "%lf", &d);
2891 fp = fopen("readline.ver", "w");
2892 if (fp == NULL) exit(1);
2893 if (fprintf(fp, "%s\n", rl_library_version) < 0) exit(1);
2894 if (fprintf(fp, "%03d\n", (int) (d * 100.0)) < 0) exit(1);
2895 if (fclose(fp) < 0) exit(1);
2900 rm -f conftest$ac_exeext
2901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2902 (eval $ac_link) 2>&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }; }; then
2913 rl_library_version=`sed -n 1,1p readline.ver 2>/dev/null`
2914 rlver=`sed -n 2,2p readline.ver 2>/dev/null`
2915 /bin/rm -f readline.ver
2918 echo "$as_me: program exited with status $ac_status" >&5
2919 echo "$as_me: failed program was:" >&5
2920 sed 's/^/| /' conftest.$ac_ext >&5
2925 rl_library_version=''
2927 /bin/rm -f readline.ver
2930 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2935 wi_cv_lib_readline_result="yes, installed version is $rl_library_version"
2938 # Test using current LIBS.
2939 cat >conftest.$ac_ext <<_ACEOF
2942 cat confdefs.h >>conftest.$ac_ext
2943 cat >>conftest.$ac_ext <<_ACEOF
2944 /* end confdefs.h. */
2947 extern int rl_completion_append_character;
2955 rl_completion_append_character = 0;
2961 rm -f conftest.$ac_objext conftest$ac_exeext
2962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2963 (eval $ac_link) 2>conftest.er1
2965 grep -v '^ *+' conftest.er1 >conftest.err
2967 cat conftest.err >&5
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); } &&
2970 { ac_try='test -z "$ac_c_werror_flag"
2971 || test ! -s conftest.err'
2972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); }; } &&
2977 { ac_try='test -s conftest$ac_exeext'
2978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); }; }; then
2987 echo "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.$ac_ext >&5
2994 rm -f conftest.err conftest.$ac_objext \
2995 conftest$ac_exeext conftest.$ac_ext
2997 if test "$rlver" = "210" ; then
2998 wi_cv_lib_readline_result="yes, version 2.1 or higher"
3000 wi_cv_lib_readline_result="yes, version 2.0"
3005 wi_cv_lib_readline=yes
3007 LIBS="$ac_save_LIBS"
3009 echo "$as_me:$LINENO: result: $wi_cv_lib_readline_result" >&5
3010 echo "${ECHO_T}$wi_cv_lib_readline_result" >&6
3013 if test "$wi_cv_lib_readline" = yes ; then
3014 # Now verify that all the headers are installed.
3017 unset ac_cv_header_readline_chardefs_h
3018 unset ac_cv_header_readline_history_h
3019 unset ac_cv_header_readline_keymaps_h
3020 unset ac_cv_header_readline_readline_h
3021 unset ac_cv_header_readline_tilde_h
3027 for ac_header in readline/chardefs.h readline/history.h readline/keymaps.h readline/readline.h readline/tilde.h
3029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3031 echo "$as_me:$LINENO: checking for $ac_header" >&5
3032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3034 echo $ECHO_N "(cached) $ECHO_C" >&6
3036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3037 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3039 # Is the header compilable?
3040 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3041 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3042 cat >conftest.$ac_ext <<_ACEOF
3045 cat confdefs.h >>conftest.$ac_ext
3046 cat >>conftest.$ac_ext <<_ACEOF
3047 /* end confdefs.h. */
3048 $ac_includes_default
3049 #include <$ac_header>
3051 rm -f conftest.$ac_objext
3052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3053 (eval $ac_compile) 2>conftest.er1
3055 grep -v '^ *+' conftest.er1 >conftest.err
3057 cat conftest.err >&5
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); } &&
3060 { ac_try='test -z "$ac_c_werror_flag"
3061 || test ! -s conftest.err'
3062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); }; } &&
3067 { ac_try='test -s conftest.$ac_objext'
3068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072 (exit $ac_status); }; }; then
3073 ac_header_compiler=yes
3075 echo "$as_me: failed program was:" >&5
3076 sed 's/^/| /' conftest.$ac_ext >&5
3078 ac_header_compiler=no
3080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3081 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3082 echo "${ECHO_T}$ac_header_compiler" >&6
3084 # Is the header present?
3085 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3086 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3087 cat >conftest.$ac_ext <<_ACEOF
3090 cat confdefs.h >>conftest.$ac_ext
3091 cat >>conftest.$ac_ext <<_ACEOF
3092 /* end confdefs.h. */
3093 #include <$ac_header>
3095 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3096 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3098 grep -v '^ *+' conftest.er1 >conftest.err
3100 cat conftest.err >&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); } >/dev/null; then
3103 if test -s conftest.err; then
3104 ac_cpp_err=$ac_c_preproc_warn_flag
3105 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3112 if test -z "$ac_cpp_err"; then
3113 ac_header_preproc=yes
3115 echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3118 ac_header_preproc=no
3120 rm -f conftest.err conftest.$ac_ext
3121 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3122 echo "${ECHO_T}$ac_header_preproc" >&6
3124 # So? What about this header?
3125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3127 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3128 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3130 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3131 ac_header_preproc=yes
3134 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3135 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3136 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3137 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3138 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3139 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3140 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3141 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3143 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3144 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3145 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3148 ## ------------------------------------------ ##
3149 ## Report this to the AC_PACKAGE_NAME lists. ##
3150 ## ------------------------------------------ ##
3153 sed "s/^/$as_me: WARNING: /" >&2
3156 echo "$as_me:$LINENO: checking for $ac_header" >&5
3157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3159 echo $ECHO_N "(cached) $ECHO_C" >&6
3161 eval "$as_ac_Header=\$ac_header_preproc"
3163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3164 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3167 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3168 cat >>confdefs.h <<_ACEOF
3169 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3178 "$ac_cv_header_readline_chardefs_h" \
3179 "$ac_cv_header_readline_history_h" \
3180 "$ac_cv_header_readline_keymaps_h" \
3181 "$ac_cv_header_readline_readline_h" \
3182 "$ac_cv_header_readline_tilde_h"
3184 if test "$xxwi" = no ; then
3189 if test "$xxwi" = no ; then
3190 { echo "$as_me:$LINENO: WARNING: GNU Readline headers are not installed or could not be found -- GNU Readline will not be used." >&5
3191 echo "$as_me: WARNING: GNU Readline headers are not installed or could not be found -- GNU Readline will not be used." >&2;}
3192 wi_cv_lib_readline=no
3193 wi_cv_lib_readline_result="no (headers not installed)"
3196 cat >>confdefs.h <<_ACEOF
3197 #define HAVE_LIBREADLINE $rlver
3202 if test "$wi_cv_lib_readline" = "yes" ; then
3203 ac_save_LIBS="$LIBS"
3204 LIBS="$ac_save_LIBS $LIBREADLINE"
3207 for ac_func in rl_completion_matches completion_matches
3209 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3210 echo "$as_me:$LINENO: checking for $ac_func" >&5
3211 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3212 if eval "test \"\${$as_ac_var+set}\" = set"; then
3213 echo $ECHO_N "(cached) $ECHO_C" >&6
3215 cat >conftest.$ac_ext <<_ACEOF
3218 cat confdefs.h >>conftest.$ac_ext
3219 cat >>conftest.$ac_ext <<_ACEOF
3220 /* end confdefs.h. */
3221 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3223 #define $ac_func innocuous_$ac_func
3225 /* System header to define __stub macros and hopefully few prototypes,
3226 which can conflict with char $ac_func (); below.
3227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3228 <limits.h> exists even on freestanding compilers. */
3231 # include <limits.h>
3233 # include <assert.h>
3238 /* Override any gcc2 internal prototype to avoid an error. */
3243 /* We use char because int might match the return type of a gcc2
3244 builtin and then its argument prototype would still apply. */
3246 /* The GNU C library defines this for functions which it implements
3247 to always fail with ENOSYS. Some functions are actually named
3248 something starting with __ and the normal name is an alias. */
3249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3252 char (*f) () = $ac_func;
3261 return f != $ac_func;
3266 rm -f conftest.$ac_objext conftest$ac_exeext
3267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3268 (eval $ac_link) 2>conftest.er1
3270 grep -v '^ *+' conftest.er1 >conftest.err
3272 cat conftest.err >&5
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); } &&
3275 { ac_try='test -z "$ac_c_werror_flag"
3276 || test ! -s conftest.err'
3277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); }; } &&
3282 { ac_try='test -s conftest$ac_exeext'
3283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); }; }; then
3288 eval "$as_ac_var=yes"
3290 echo "$as_me: failed program was:" >&5
3291 sed 's/^/| /' conftest.$ac_ext >&5
3293 eval "$as_ac_var=no"
3295 rm -f conftest.err conftest.$ac_objext \
3296 conftest$ac_exeext conftest.$ac_ext
3298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3299 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3300 if test `eval echo '${'$as_ac_var'}'` = yes; then
3301 cat >>confdefs.h <<_ACEOF
3302 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3309 LIBS="$ac_save_LIBS"
3311 echo "$as_me:$LINENO: checking to see if readline callbacks take a cast" >&5
3312 echo $ECHO_N "checking to see if readline callbacks take a cast... $ECHO_C" >&6
3313 ac_save_LIBS="$LIBS"
3314 LIBS="$ac_save_LIBS $LIBREADLINE"
3317 cat >conftest.$ac_ext <<_ACEOF
3320 cat confdefs.h >>conftest.$ac_ext
3321 cat >>conftest.$ac_ext <<_ACEOF
3322 /* end confdefs.h. */
3325 #include <readline/readline.h>
3326 void func(void) { return; }
3332 rl_callback_handler_install(">", (void(*)(char*))func);
3338 rm -f conftest.$ac_objext conftest$ac_exeext
3339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3340 (eval $ac_link) 2>conftest.er1
3342 grep -v '^ *+' conftest.er1 >conftest.err
3344 cat conftest.err >&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); } &&
3347 { ac_try='test -z "$ac_c_werror_flag"
3348 || test ! -s conftest.err'
3349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }; } &&
3354 { ac_try='test -s conftest$ac_exeext'
3355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }; }; then
3362 cat >>confdefs.h <<\_ACEOF
3363 #define READLINE_CB_TAKES_CAST 1
3366 echo "$as_me:$LINENO: result: yes" >&5
3367 echo "${ECHO_T}yes" >&6
3370 echo "$as_me: failed program was:" >&5
3371 sed 's/^/| /' conftest.$ac_ext >&5
3374 echo "$as_me:$LINENO: result: no" >&5
3375 echo "${ECHO_T}no" >&6
3378 rm -f conftest.err conftest.$ac_objext \
3379 conftest$ac_exeext conftest.$ac_ext
3381 LIBS="$ac_save_LIBS"
3386 # ===========================================================================
3388 ac_cpp='$CPP $CPPFLAGS'
3389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3392 if test -n "$ac_tool_prefix"; then
3393 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3394 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3395 echo "$as_me:$LINENO: checking for $ac_word" >&5
3396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3397 if test "${ac_cv_prog_CC+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3400 if test -n "$CC"; then
3401 ac_cv_prog_CC="$CC" # Let the user override the test.
3403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407 test -z "$as_dir" && as_dir=.
3408 for ac_exec_ext in '' $ac_executable_extensions; do
3409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3410 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3420 if test -n "$CC"; then
3421 echo "$as_me:$LINENO: result: $CC" >&5
3422 echo "${ECHO_T}$CC" >&6
3424 echo "$as_me:$LINENO: result: no" >&5
3425 echo "${ECHO_T}no" >&6
3429 if test -z "$ac_cv_prog_CC"; then
3431 # Extract the first word of "gcc", so it can be a program name with args.
3432 set dummy gcc; ac_word=$2
3433 echo "$as_me:$LINENO: checking for $ac_word" >&5
3434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3435 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3436 echo $ECHO_N "(cached) $ECHO_C" >&6
3438 if test -n "$ac_ct_CC"; then
3439 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445 test -z "$as_dir" && as_dir=.
3446 for ac_exec_ext in '' $ac_executable_extensions; do
3447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3448 ac_cv_prog_ac_ct_CC="gcc"
3449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3457 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3458 if test -n "$ac_ct_CC"; then
3459 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3460 echo "${ECHO_T}$ac_ct_CC" >&6
3462 echo "$as_me:$LINENO: result: no" >&5
3463 echo "${ECHO_T}no" >&6
3471 if test -z "$CC"; then
3472 if test -n "$ac_tool_prefix"; then
3473 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3474 set dummy ${ac_tool_prefix}cc; ac_word=$2
3475 echo "$as_me:$LINENO: checking for $ac_word" >&5
3476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3477 if test "${ac_cv_prog_CC+set}" = set; then
3478 echo $ECHO_N "(cached) $ECHO_C" >&6
3480 if test -n "$CC"; then
3481 ac_cv_prog_CC="$CC" # Let the user override the test.
3483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3487 test -z "$as_dir" && as_dir=.
3488 for ac_exec_ext in '' $ac_executable_extensions; do
3489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3490 ac_cv_prog_CC="${ac_tool_prefix}cc"
3491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3500 if test -n "$CC"; then
3501 echo "$as_me:$LINENO: result: $CC" >&5
3502 echo "${ECHO_T}$CC" >&6
3504 echo "$as_me:$LINENO: result: no" >&5
3505 echo "${ECHO_T}no" >&6
3509 if test -z "$ac_cv_prog_CC"; then
3511 # Extract the first word of "cc", so it can be a program name with args.
3512 set dummy cc; ac_word=$2
3513 echo "$as_me:$LINENO: checking for $ac_word" >&5
3514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3515 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3516 echo $ECHO_N "(cached) $ECHO_C" >&6
3518 if test -n "$ac_ct_CC"; then
3519 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3525 test -z "$as_dir" && as_dir=.
3526 for ac_exec_ext in '' $ac_executable_extensions; do
3527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3528 ac_cv_prog_ac_ct_CC="cc"
3529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3537 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3538 if test -n "$ac_ct_CC"; then
3539 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3540 echo "${ECHO_T}$ac_ct_CC" >&6
3542 echo "$as_me:$LINENO: result: no" >&5
3543 echo "${ECHO_T}no" >&6
3552 if test -z "$CC"; then
3553 # Extract the first word of "cc", so it can be a program name with args.
3554 set dummy cc; ac_word=$2
3555 echo "$as_me:$LINENO: checking for $ac_word" >&5
3556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3557 if test "${ac_cv_prog_CC+set}" = set; then
3558 echo $ECHO_N "(cached) $ECHO_C" >&6
3560 if test -n "$CC"; then
3561 ac_cv_prog_CC="$CC" # Let the user override the test.
3564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3568 test -z "$as_dir" && as_dir=.
3569 for ac_exec_ext in '' $ac_executable_extensions; do
3570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3571 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3572 ac_prog_rejected=yes
3576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3582 if test $ac_prog_rejected = yes; then
3583 # We found a bogon in the path, so make sure we never use it.
3584 set dummy $ac_cv_prog_CC
3586 if test $# != 0; then
3587 # We chose a different compiler from the bogus one.
3588 # However, it has the same basename, so the bogon will be chosen
3589 # first if we set CC to just the basename; use the full file name.
3591 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3597 if test -n "$CC"; then
3598 echo "$as_me:$LINENO: result: $CC" >&5
3599 echo "${ECHO_T}$CC" >&6
3601 echo "$as_me:$LINENO: result: no" >&5
3602 echo "${ECHO_T}no" >&6
3606 if test -z "$CC"; then
3607 if test -n "$ac_tool_prefix"; then
3610 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3611 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3612 echo "$as_me:$LINENO: checking for $ac_word" >&5
3613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3614 if test "${ac_cv_prog_CC+set}" = set; then
3615 echo $ECHO_N "(cached) $ECHO_C" >&6
3617 if test -n "$CC"; then
3618 ac_cv_prog_CC="$CC" # Let the user override the test.
3620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3624 test -z "$as_dir" && as_dir=.
3625 for ac_exec_ext in '' $ac_executable_extensions; do
3626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3627 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3637 if test -n "$CC"; then
3638 echo "$as_me:$LINENO: result: $CC" >&5
3639 echo "${ECHO_T}$CC" >&6
3641 echo "$as_me:$LINENO: result: no" >&5
3642 echo "${ECHO_T}no" >&6
3645 test -n "$CC" && break
3648 if test -z "$CC"; then
3652 # Extract the first word of "$ac_prog", so it can be a program name with args.
3653 set dummy $ac_prog; ac_word=$2
3654 echo "$as_me:$LINENO: checking for $ac_word" >&5
3655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3656 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 if test -n "$ac_ct_CC"; then
3660 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3666 test -z "$as_dir" && as_dir=.
3667 for ac_exec_ext in '' $ac_executable_extensions; do
3668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3669 ac_cv_prog_ac_ct_CC="$ac_prog"
3670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3678 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3679 if test -n "$ac_ct_CC"; then
3680 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3681 echo "${ECHO_T}$ac_ct_CC" >&6
3683 echo "$as_me:$LINENO: result: no" >&5
3684 echo "${ECHO_T}no" >&6
3687 test -n "$ac_ct_CC" && break
3696 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3697 See \`config.log' for more details." >&5
3698 echo "$as_me: error: no acceptable C compiler found in \$PATH
3699 See \`config.log' for more details." >&2;}
3700 { (exit 1); exit 1; }; }
3702 # Provide some information about the compiler.
3703 echo "$as_me:$LINENO:" \
3704 "checking for C compiler version" >&5
3705 ac_compiler=`set X $ac_compile; echo $2`
3706 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3707 (eval $ac_compiler --version </dev/null >&5) 2>&5
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); }
3711 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3712 (eval $ac_compiler -v </dev/null >&5) 2>&5
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); }
3716 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3717 (eval $ac_compiler -V </dev/null >&5) 2>&5
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); }
3722 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3723 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3724 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3725 echo $ECHO_N "(cached) $ECHO_C" >&6
3727 cat >conftest.$ac_ext <<_ACEOF
3730 cat confdefs.h >>conftest.$ac_ext
3731 cat >>conftest.$ac_ext <<_ACEOF
3732 /* end confdefs.h. */
3745 rm -f conftest.$ac_objext
3746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3747 (eval $ac_compile) 2>conftest.er1
3749 grep -v '^ *+' conftest.er1 >conftest.err
3751 cat conftest.err >&5
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); } &&
3754 { ac_try='test -z "$ac_c_werror_flag"
3755 || test ! -s conftest.err'
3756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); }; } &&
3761 { ac_try='test -s conftest.$ac_objext'
3762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); }; }; then
3769 echo "$as_me: failed program was:" >&5
3770 sed 's/^/| /' conftest.$ac_ext >&5
3774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3775 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3778 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3779 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3780 GCC=`test $ac_compiler_gnu = yes && echo yes`
3781 ac_test_CFLAGS=${CFLAGS+set}
3782 ac_save_CFLAGS=$CFLAGS
3784 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3785 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3786 if test "${ac_cv_prog_cc_g+set}" = set; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3789 cat >conftest.$ac_ext <<_ACEOF
3792 cat confdefs.h >>conftest.$ac_ext
3793 cat >>conftest.$ac_ext <<_ACEOF
3794 /* end confdefs.h. */
3804 rm -f conftest.$ac_objext
3805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3806 (eval $ac_compile) 2>conftest.er1
3808 grep -v '^ *+' conftest.er1 >conftest.err
3810 cat conftest.err >&5
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); } &&
3813 { ac_try='test -z "$ac_c_werror_flag"
3814 || test ! -s conftest.err'
3815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); }; } &&
3820 { ac_try='test -s conftest.$ac_objext'
3821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); }; }; then
3828 echo "$as_me: failed program was:" >&5
3829 sed 's/^/| /' conftest.$ac_ext >&5
3833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3835 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3836 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3837 if test "$ac_test_CFLAGS" = set; then
3838 CFLAGS=$ac_save_CFLAGS
3839 elif test $ac_cv_prog_cc_g = yes; then
3840 if test "$GCC" = yes; then
3846 if test "$GCC" = yes; then
3852 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3853 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3854 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3857 ac_cv_prog_cc_stdc=no
3859 cat >conftest.$ac_ext <<_ACEOF
3862 cat confdefs.h >>conftest.$ac_ext
3863 cat >>conftest.$ac_ext <<_ACEOF
3864 /* end confdefs.h. */
3867 #include <sys/types.h>
3868 #include <sys/stat.h>
3869 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3870 struct buf { int x; };
3871 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3872 static char *e (p, i)
3878 static char *f (char * (*g) (char **, int), char **p, ...)
3883 s = g (p, va_arg (v,int));
3888 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3889 function prototypes and stuff, but not '\xHH' hex character constants.
3890 These don't provoke an error unfortunately, instead are silently treated
3891 as 'x'. The following induces an error, until -std1 is added to get
3892 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3893 array size at least. It's necessary to write '\x00'==0 to get something
3894 that's true only with -std1. */
3895 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3897 int test (int i, double x);
3898 struct s1 {int (*f) (int a);};
3899 struct s2 {int (*f) (double a);};
3900 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3906 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3911 # Don't try gcc -ansi; that turns off useful extensions and
3912 # breaks some systems' header files.
3913 # AIX -qlanglvl=ansi
3914 # Ultrix and OSF/1 -std1
3915 # HP-UX 10.20 and later -Ae
3916 # HP-UX older versions -Aa -D_HPUX_SOURCE
3917 # SVR4 -Xc -D__EXTENSIONS__
3918 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3920 CC="$ac_save_CC $ac_arg"
3921 rm -f conftest.$ac_objext
3922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3923 (eval $ac_compile) 2>conftest.er1
3925 grep -v '^ *+' conftest.er1 >conftest.err
3927 cat conftest.err >&5
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); } &&
3930 { ac_try='test -z "$ac_c_werror_flag"
3931 || test ! -s conftest.err'
3932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); }; } &&
3937 { ac_try='test -s conftest.$ac_objext'
3938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); }; }; then
3943 ac_cv_prog_cc_stdc=$ac_arg
3946 echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3950 rm -f conftest.err conftest.$ac_objext
3952 rm -f conftest.$ac_ext conftest.$ac_objext
3957 case "x$ac_cv_prog_cc_stdc" in
3959 echo "$as_me:$LINENO: result: none needed" >&5
3960 echo "${ECHO_T}none needed" >&6 ;;
3962 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3963 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3964 CC="$CC $ac_cv_prog_cc_stdc" ;;
3967 # Some people use a C++ compiler to compile C. Since we use `exit',
3968 # in C++ we need to declare it. In case someone uses the same compiler
3969 # for both compiling C and C++ we need to have the C++ compiler decide
3970 # the declaration of exit, since it's the most demanding environment.
3971 cat >conftest.$ac_ext <<_ACEOF
3976 rm -f conftest.$ac_objext
3977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3978 (eval $ac_compile) 2>conftest.er1
3980 grep -v '^ *+' conftest.er1 >conftest.err
3982 cat conftest.err >&5
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); } &&
3985 { ac_try='test -z "$ac_c_werror_flag"
3986 || test ! -s conftest.err'
3987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); }; } &&
3992 { ac_try='test -s conftest.$ac_objext'
3993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); }; }; then
3998 for ac_declaration in \
4000 'extern "C" void std::exit (int) throw (); using std::exit;' \
4001 'extern "C" void std::exit (int); using std::exit;' \
4002 'extern "C" void exit (int) throw ();' \
4003 'extern "C" void exit (int);' \
4006 cat >conftest.$ac_ext <<_ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h. */
4022 rm -f conftest.$ac_objext
4023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4024 (eval $ac_compile) 2>conftest.er1
4026 grep -v '^ *+' conftest.er1 >conftest.err
4028 cat conftest.err >&5
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); } &&
4031 { ac_try='test -z "$ac_c_werror_flag"
4032 || test ! -s conftest.err'
4033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); }; } &&
4038 { ac_try='test -s conftest.$ac_objext'
4039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); }; }; then
4046 echo "$as_me: failed program was:" >&5
4047 sed 's/^/| /' conftest.$ac_ext >&5
4051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4052 cat >conftest.$ac_ext <<_ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4067 rm -f conftest.$ac_objext
4068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4069 (eval $ac_compile) 2>conftest.er1
4071 grep -v '^ *+' conftest.er1 >conftest.err
4073 cat conftest.err >&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); } &&
4076 { ac_try='test -z "$ac_c_werror_flag"
4077 || test ! -s conftest.err'
4078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; } &&
4083 { ac_try='test -s conftest.$ac_objext'
4084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); }; }; then
4091 echo "$as_me: failed program was:" >&5
4092 sed 's/^/| /' conftest.$ac_ext >&5
4095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4098 if test -n "$ac_declaration"; then
4099 echo '#ifdef __cplusplus' >>confdefs.h
4100 echo $ac_declaration >>confdefs.h
4101 echo '#endif' >>confdefs.h
4105 echo "$as_me: failed program was:" >&5
4106 sed 's/^/| /' conftest.$ac_ext >&5
4109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4111 ac_cpp='$CPP $CPPFLAGS'
4112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4117 ac_cpp='$CPP $CPPFLAGS'
4118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4121 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4122 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4123 # On Suns, sometimes $CPP names a directory.
4124 if test -n "$CPP" && test -d "$CPP"; then
4127 if test -z "$CPP"; then
4128 if test "${ac_cv_prog_CPP+set}" = set; then
4129 echo $ECHO_N "(cached) $ECHO_C" >&6
4131 # Double quotes because CPP needs to be expanded
4132 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4135 for ac_c_preproc_warn_flag in '' yes
4137 # Use a header file that comes with gcc, so configuring glibc
4138 # with a fresh cross-compiler works.
4139 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4140 # <limits.h> exists even on freestanding compilers.
4141 # On the NeXT, cc -E runs the code through the compiler's parser,
4142 # not just through cpp. "Syntax error" is here to catch this case.
4143 cat >conftest.$ac_ext <<_ACEOF
4146 cat confdefs.h >>conftest.$ac_ext
4147 cat >>conftest.$ac_ext <<_ACEOF
4148 /* end confdefs.h. */
4150 # include <limits.h>
4152 # include <assert.h>
4156 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4157 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4159 grep -v '^ *+' conftest.er1 >conftest.err
4161 cat conftest.err >&5
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); } >/dev/null; then
4164 if test -s conftest.err; then
4165 ac_cpp_err=$ac_c_preproc_warn_flag
4166 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4173 if test -z "$ac_cpp_err"; then
4176 echo "$as_me: failed program was:" >&5
4177 sed 's/^/| /' conftest.$ac_ext >&5
4179 # Broken: fails on valid input.
4182 rm -f conftest.err conftest.$ac_ext
4184 # OK, works on sane cases. Now check whether non-existent headers
4185 # can be detected and how.
4186 cat >conftest.$ac_ext <<_ACEOF
4189 cat confdefs.h >>conftest.$ac_ext
4190 cat >>conftest.$ac_ext <<_ACEOF
4191 /* end confdefs.h. */
4192 #include <ac_nonexistent.h>
4194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4195 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4197 grep -v '^ *+' conftest.er1 >conftest.err
4199 cat conftest.err >&5
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); } >/dev/null; then
4202 if test -s conftest.err; then
4203 ac_cpp_err=$ac_c_preproc_warn_flag
4204 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4211 if test -z "$ac_cpp_err"; then
4212 # Broken: success on invalid input.
4215 echo "$as_me: failed program was:" >&5
4216 sed 's/^/| /' conftest.$ac_ext >&5
4218 # Passes both tests.
4222 rm -f conftest.err conftest.$ac_ext
4225 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4226 rm -f conftest.err conftest.$ac_ext
4227 if $ac_preproc_ok; then
4239 echo "$as_me:$LINENO: result: $CPP" >&5
4240 echo "${ECHO_T}$CPP" >&6
4242 for ac_c_preproc_warn_flag in '' yes
4244 # Use a header file that comes with gcc, so configuring glibc
4245 # with a fresh cross-compiler works.
4246 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4247 # <limits.h> exists even on freestanding compilers.
4248 # On the NeXT, cc -E runs the code through the compiler's parser,
4249 # not just through cpp. "Syntax error" is here to catch this case.
4250 cat >conftest.$ac_ext <<_ACEOF
4253 cat confdefs.h >>conftest.$ac_ext
4254 cat >>conftest.$ac_ext <<_ACEOF
4255 /* end confdefs.h. */
4257 # include <limits.h>
4259 # include <assert.h>
4263 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4264 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4266 grep -v '^ *+' conftest.er1 >conftest.err
4268 cat conftest.err >&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); } >/dev/null; then
4271 if test -s conftest.err; then
4272 ac_cpp_err=$ac_c_preproc_warn_flag
4273 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4280 if test -z "$ac_cpp_err"; then
4283 echo "$as_me: failed program was:" >&5
4284 sed 's/^/| /' conftest.$ac_ext >&5
4286 # Broken: fails on valid input.
4289 rm -f conftest.err conftest.$ac_ext
4291 # OK, works on sane cases. Now check whether non-existent headers
4292 # can be detected and how.
4293 cat >conftest.$ac_ext <<_ACEOF
4296 cat confdefs.h >>conftest.$ac_ext
4297 cat >>conftest.$ac_ext <<_ACEOF
4298 /* end confdefs.h. */
4299 #include <ac_nonexistent.h>
4301 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4304 grep -v '^ *+' conftest.er1 >conftest.err
4306 cat conftest.err >&5
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); } >/dev/null; then
4309 if test -s conftest.err; then
4310 ac_cpp_err=$ac_c_preproc_warn_flag
4311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4318 if test -z "$ac_cpp_err"; then
4319 # Broken: success on invalid input.
4322 echo "$as_me: failed program was:" >&5
4323 sed 's/^/| /' conftest.$ac_ext >&5
4325 # Passes both tests.
4329 rm -f conftest.err conftest.$ac_ext
4332 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4333 rm -f conftest.err conftest.$ac_ext
4334 if $ac_preproc_ok; then
4337 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4338 See \`config.log' for more details." >&5
4339 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4340 See \`config.log' for more details." >&2;}
4341 { (exit 1); exit 1; }; }
4345 ac_cpp='$CPP $CPPFLAGS'
4346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4351 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
4352 if test -f $ac_dir/install-sh; then
4354 ac_install_sh="$ac_aux_dir/install-sh -c"
4356 elif test -f $ac_dir/install.sh; then
4358 ac_install_sh="$ac_aux_dir/install.sh -c"
4360 elif test -f $ac_dir/shtool; then
4362 ac_install_sh="$ac_aux_dir/shtool install -c"
4366 if test -z "$ac_aux_dir"; then
4367 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
4368 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
4369 { (exit 1); exit 1; }; }
4371 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
4372 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
4373 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
4375 # Find a good install program. We prefer a C program (faster),
4376 # so one script is as good as another. But avoid the broken or
4377 # incompatible versions:
4378 # SysV /etc/install, /usr/sbin/install
4379 # SunOS /usr/etc/install
4380 # IRIX /sbin/install
4382 # AmigaOS /C/install, which installs bootblocks on floppy discs
4383 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4384 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4385 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4386 # OS/2's system install, which has a completely different semantic
4387 # ./install, which can be erroneously created by make from ./install.sh.
4388 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4389 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4390 if test -z "$INSTALL"; then
4391 if test "${ac_cv_path_install+set}" = set; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
4394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 test -z "$as_dir" && as_dir=.
4399 # Account for people who put trailing slashes in PATH elements.
4401 ./ | .// | /cC/* | \
4402 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4403 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4406 # OSF1 and SCO ODT 3.0 have their own names for install.
4407 # Don't use installbsd from OSF since it installs stuff as root
4409 for ac_prog in ginstall scoinst install; do
4410 for ac_exec_ext in '' $ac_executable_extensions; do
4411 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4412 if test $ac_prog = install &&
4413 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4414 # AIX install. It has an incompatible calling convention.
4416 elif test $ac_prog = install &&
4417 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4418 # program-specific install script used by HP pwplus--don't use.
4421 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4433 if test "${ac_cv_path_install+set}" = set; then
4434 INSTALL=$ac_cv_path_install
4436 # As a last resort, use the slow shell script. We don't cache a
4437 # path for INSTALL within a source directory, because that will
4438 # break other packages using the cache if that directory is
4439 # removed, or if the path is relative.
4440 INSTALL=$ac_install_sh
4443 echo "$as_me:$LINENO: result: $INSTALL" >&5
4444 echo "${ECHO_T}$INSTALL" >&6
4446 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4447 # It thinks the first close brace ends the variable substitution.
4448 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4450 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4452 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4454 if test -n "$ac_tool_prefix"; then
4455 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4456 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4457 echo "$as_me:$LINENO: checking for $ac_word" >&5
4458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4459 if test "${ac_cv_prog_RANLIB+set}" = set; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4462 if test -n "$RANLIB"; then
4463 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469 test -z "$as_dir" && as_dir=.
4470 for ac_exec_ext in '' $ac_executable_extensions; do
4471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4472 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4481 RANLIB=$ac_cv_prog_RANLIB
4482 if test -n "$RANLIB"; then
4483 echo "$as_me:$LINENO: result: $RANLIB" >&5
4484 echo "${ECHO_T}$RANLIB" >&6
4486 echo "$as_me:$LINENO: result: no" >&5
4487 echo "${ECHO_T}no" >&6
4491 if test -z "$ac_cv_prog_RANLIB"; then
4492 ac_ct_RANLIB=$RANLIB
4493 # Extract the first word of "ranlib", so it can be a program name with args.
4494 set dummy ranlib; ac_word=$2
4495 echo "$as_me:$LINENO: checking for $ac_word" >&5
4496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4497 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4500 if test -n "$ac_ct_RANLIB"; then
4501 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507 test -z "$as_dir" && as_dir=.
4508 for ac_exec_ext in '' $ac_executable_extensions; do
4509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4510 ac_cv_prog_ac_ct_RANLIB="ranlib"
4511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4517 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4520 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4521 if test -n "$ac_ct_RANLIB"; then
4522 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4523 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4525 echo "$as_me:$LINENO: result: no" >&5
4526 echo "${ECHO_T}no" >&6
4529 RANLIB=$ac_ct_RANLIB
4531 RANLIB="$ac_cv_prog_RANLIB"
4534 # Extract the first word of "autoconf", so it can be a program name with args.
4535 set dummy autoconf; ac_word=$2
4536 echo "$as_me:$LINENO: checking for $ac_word" >&5
4537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4538 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
4539 echo $ECHO_N "(cached) $ECHO_C" >&6
4541 if test -n "$AUTOCONF"; then
4542 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548 test -z "$as_dir" && as_dir=.
4549 for ac_exec_ext in '' $ac_executable_extensions; do
4550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4551 ac_cv_prog_AUTOCONF="autoconf"
4552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4558 test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF=":"
4561 AUTOCONF=$ac_cv_prog_AUTOCONF
4562 if test -n "$AUTOCONF"; then
4563 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
4564 echo "${ECHO_T}$AUTOCONF" >&6
4566 echo "$as_me:$LINENO: result: no" >&5
4567 echo "${ECHO_T}no" >&6
4570 # Extract the first word of "strip", so it can be a program name with args.
4571 set dummy strip; ac_word=$2
4572 echo "$as_me:$LINENO: checking for $ac_word" >&5
4573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4574 if test "${ac_cv_prog_STRIP+set}" = set; then
4575 echo $ECHO_N "(cached) $ECHO_C" >&6
4577 if test -n "$STRIP"; then
4578 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584 test -z "$as_dir" && as_dir=.
4585 for ac_exec_ext in '' $ac_executable_extensions; do
4586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4587 ac_cv_prog_STRIP="strip"
4588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4594 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4597 STRIP=$ac_cv_prog_STRIP
4598 if test -n "$STRIP"; then
4599 echo "$as_me:$LINENO: result: $STRIP" >&5
4600 echo "${ECHO_T}$STRIP" >&6
4602 echo "$as_me:$LINENO: result: no" >&5
4603 echo "${ECHO_T}no" >&6
4606 # Extract the first word of "as", so it can be a program name with args.
4607 set dummy as; ac_word=$2
4608 echo "$as_me:$LINENO: checking for $ac_word" >&5
4609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4610 if test "${ac_cv_prog_AS+set}" = set; then
4611 echo $ECHO_N "(cached) $ECHO_C" >&6
4613 if test -n "$AS"; then
4614 ac_cv_prog_AS="$AS" # Let the user override the test.
4616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620 test -z "$as_dir" && as_dir=.
4621 for ac_exec_ext in '' $ac_executable_extensions; do
4622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4630 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS=":"
4634 if test -n "$AS"; then
4635 echo "$as_me:$LINENO: result: $AS" >&5
4636 echo "${ECHO_T}$AS" >&6
4638 echo "$as_me:$LINENO: result: no" >&5
4639 echo "${ECHO_T}no" >&6
4642 # Extract the first word of "cp", so it can be a program name with args.
4643 set dummy cp; ac_word=$2
4644 echo "$as_me:$LINENO: checking for $ac_word" >&5
4645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4646 if test "${ac_cv_prog_CP+set}" = set; then
4647 echo $ECHO_N "(cached) $ECHO_C" >&6
4649 if test -n "$CP"; then
4650 ac_cv_prog_CP="$CP" # Let the user override the test.
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 test -z "$as_dir" && as_dir=.
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 test -z "$ac_cv_prog_CP" && ac_cv_prog_CP=":"
4670 if test -n "$CP"; then
4671 echo "$as_me:$LINENO: result: $CP" >&5
4672 echo "${ECHO_T}$CP" >&6
4674 echo "$as_me:$LINENO: result: no" >&5
4675 echo "${ECHO_T}no" >&6
4680 ac_cpp='$CPP $CPPFLAGS'
4681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4687 # Checking for header files.
4688 # ===========================================================================
4691 for ac_header in sys/socket.h
4693 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4695 echo "$as_me:$LINENO: checking for $ac_header" >&5
4696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4698 echo $ECHO_N "(cached) $ECHO_C" >&6
4700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4701 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4703 # Is the header compilable?
4704 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4705 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4706 cat >conftest.$ac_ext <<_ACEOF
4709 cat confdefs.h >>conftest.$ac_ext
4710 cat >>conftest.$ac_ext <<_ACEOF
4711 /* end confdefs.h. */
4712 $ac_includes_default
4713 #include <$ac_header>
4715 rm -f conftest.$ac_objext
4716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4717 (eval $ac_compile) 2>conftest.er1
4719 grep -v '^ *+' conftest.er1 >conftest.err
4721 cat conftest.err >&5
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); } &&
4724 { ac_try='test -z "$ac_c_werror_flag"
4725 || test ! -s conftest.err'
4726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); }; } &&
4731 { ac_try='test -s conftest.$ac_objext'
4732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); }; }; then
4737 ac_header_compiler=yes
4739 echo "$as_me: failed program was:" >&5
4740 sed 's/^/| /' conftest.$ac_ext >&5
4742 ac_header_compiler=no
4744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4745 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4746 echo "${ECHO_T}$ac_header_compiler" >&6
4748 # Is the header present?
4749 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4750 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4751 cat >conftest.$ac_ext <<_ACEOF
4754 cat confdefs.h >>conftest.$ac_ext
4755 cat >>conftest.$ac_ext <<_ACEOF
4756 /* end confdefs.h. */
4757 #include <$ac_header>
4759 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4760 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4762 grep -v '^ *+' conftest.er1 >conftest.err
4764 cat conftest.err >&5
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); } >/dev/null; then
4767 if test -s conftest.err; then
4768 ac_cpp_err=$ac_c_preproc_warn_flag
4769 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4776 if test -z "$ac_cpp_err"; then
4777 ac_header_preproc=yes
4779 echo "$as_me: failed program was:" >&5
4780 sed 's/^/| /' conftest.$ac_ext >&5
4782 ac_header_preproc=no
4784 rm -f conftest.err conftest.$ac_ext
4785 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4786 echo "${ECHO_T}$ac_header_preproc" >&6
4788 # So? What about this header?
4789 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4791 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4792 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4794 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4795 ac_header_preproc=yes
4798 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4799 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4800 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4801 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4802 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4803 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4804 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4805 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4807 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4808 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4809 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4812 ## ------------------------------------------ ##
4813 ## Report this to the AC_PACKAGE_NAME lists. ##
4814 ## ------------------------------------------ ##
4817 sed "s/^/$as_me: WARNING: /" >&2
4820 echo "$as_me:$LINENO: checking for $ac_header" >&5
4821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4823 echo $ECHO_N "(cached) $ECHO_C" >&6
4825 eval "$as_ac_Header=\$ac_header_preproc"
4827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4828 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4831 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4832 cat >>confdefs.h <<_ACEOF
4833 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4835 socket_type=sys_socket_h
4840 if test $socket_type = unknown; then
4842 for ac_header in winsock2.h
4844 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4846 echo "$as_me:$LINENO: checking for $ac_header" >&5
4847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4849 echo $ECHO_N "(cached) $ECHO_C" >&6
4851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4852 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4854 # Is the header compilable?
4855 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4856 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4857 cat >conftest.$ac_ext <<_ACEOF
4860 cat confdefs.h >>conftest.$ac_ext
4861 cat >>conftest.$ac_ext <<_ACEOF
4862 /* end confdefs.h. */
4863 $ac_includes_default
4864 #include <$ac_header>
4866 rm -f conftest.$ac_objext
4867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4868 (eval $ac_compile) 2>conftest.er1
4870 grep -v '^ *+' conftest.er1 >conftest.err
4872 cat conftest.err >&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); } &&
4875 { ac_try='test -z "$ac_c_werror_flag"
4876 || test ! -s conftest.err'
4877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); }; } &&
4882 { ac_try='test -s conftest.$ac_objext'
4883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); }; }; then
4888 ac_header_compiler=yes
4890 echo "$as_me: failed program was:" >&5
4891 sed 's/^/| /' conftest.$ac_ext >&5
4893 ac_header_compiler=no
4895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4896 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4897 echo "${ECHO_T}$ac_header_compiler" >&6
4899 # Is the header present?
4900 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4901 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4902 cat >conftest.$ac_ext <<_ACEOF
4905 cat confdefs.h >>conftest.$ac_ext
4906 cat >>conftest.$ac_ext <<_ACEOF
4907 /* end confdefs.h. */
4908 #include <$ac_header>
4910 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4911 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4913 grep -v '^ *+' conftest.er1 >conftest.err
4915 cat conftest.err >&5
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); } >/dev/null; then
4918 if test -s conftest.err; then
4919 ac_cpp_err=$ac_c_preproc_warn_flag
4920 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4927 if test -z "$ac_cpp_err"; then
4928 ac_header_preproc=yes
4930 echo "$as_me: failed program was:" >&5
4931 sed 's/^/| /' conftest.$ac_ext >&5
4933 ac_header_preproc=no
4935 rm -f conftest.err conftest.$ac_ext
4936 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4937 echo "${ECHO_T}$ac_header_preproc" >&6
4939 # So? What about this header?
4940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4942 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4943 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4944 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4945 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4946 ac_header_preproc=yes
4949 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4950 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4951 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4952 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4953 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4954 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4955 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4956 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4958 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4959 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4960 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4963 ## ------------------------------------------ ##
4964 ## Report this to the AC_PACKAGE_NAME lists. ##
4965 ## ------------------------------------------ ##
4968 sed "s/^/$as_me: WARNING: /" >&2
4971 echo "$as_me:$LINENO: checking for $ac_header" >&5
4972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4974 echo $ECHO_N "(cached) $ECHO_C" >&6
4976 eval "$as_ac_Header=\$ac_header_preproc"
4978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4979 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4982 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4983 cat >>confdefs.h <<_ACEOF
4984 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4986 socket_type=winsock2_h
4994 # Checking for functions/libs
4995 # ===========================================================================
4996 if test $socket_type = winsock2_h; then
4997 LIBS="-lws2_32 $LIBS"
5000 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5001 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
5002 if test "${ac_cv_lib_socket_socket+set}" = set; then
5003 echo $ECHO_N "(cached) $ECHO_C" >&6
5005 ac_check_lib_save_LIBS=$LIBS
5006 LIBS="-lsocket $LIBS"
5007 cat >conftest.$ac_ext <<_ACEOF
5010 cat confdefs.h >>conftest.$ac_ext
5011 cat >>conftest.$ac_ext <<_ACEOF
5012 /* end confdefs.h. */
5014 /* Override any gcc2 internal prototype to avoid an error. */
5018 /* We use char because int might match the return type of a gcc2
5019 builtin and then its argument prototype would still apply. */
5029 rm -f conftest.$ac_objext conftest$ac_exeext
5030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5031 (eval $ac_link) 2>conftest.er1
5033 grep -v '^ *+' conftest.er1 >conftest.err
5035 cat conftest.err >&5
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); } &&
5038 { ac_try='test -z "$ac_c_werror_flag"
5039 || test ! -s conftest.err'
5040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); }; } &&
5045 { ac_try='test -s conftest$ac_exeext'
5046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); }; }; then
5051 ac_cv_lib_socket_socket=yes
5053 echo "$as_me: failed program was:" >&5
5054 sed 's/^/| /' conftest.$ac_ext >&5
5056 ac_cv_lib_socket_socket=no
5058 rm -f conftest.err conftest.$ac_objext \
5059 conftest$ac_exeext conftest.$ac_ext
5060 LIBS=$ac_check_lib_save_LIBS
5062 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5063 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
5064 if test $ac_cv_lib_socket_socket = yes; then
5065 cat >>confdefs.h <<_ACEOF
5066 #define HAVE_LIBSOCKET 1
5069 LIBS="-lsocket $LIBS"
5074 echo "$as_me:$LINENO: checking for xdr_short in -lnsl" >&5
5075 echo $ECHO_N "checking for xdr_short in -lnsl... $ECHO_C" >&6
5076 if test "${ac_cv_lib_nsl_xdr_short+set}" = set; then
5077 echo $ECHO_N "(cached) $ECHO_C" >&6
5079 ac_check_lib_save_LIBS=$LIBS
5081 cat >conftest.$ac_ext <<_ACEOF
5084 cat confdefs.h >>conftest.$ac_ext
5085 cat >>conftest.$ac_ext <<_ACEOF
5086 /* end confdefs.h. */
5088 /* Override any gcc2 internal prototype to avoid an error. */
5092 /* We use char because int might match the return type of a gcc2
5093 builtin and then its argument prototype would still apply. */
5103 rm -f conftest.$ac_objext conftest$ac_exeext
5104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5105 (eval $ac_link) 2>conftest.er1
5107 grep -v '^ *+' conftest.er1 >conftest.err
5109 cat conftest.err >&5
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); } &&
5112 { ac_try='test -z "$ac_c_werror_flag"
5113 || test ! -s conftest.err'
5114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); }; } &&
5119 { ac_try='test -s conftest$ac_exeext'
5120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); }; }; then
5125 ac_cv_lib_nsl_xdr_short=yes
5127 echo "$as_me: failed program was:" >&5
5128 sed 's/^/| /' conftest.$ac_ext >&5
5130 ac_cv_lib_nsl_xdr_short=no
5132 rm -f conftest.err conftest.$ac_objext \
5133 conftest$ac_exeext conftest.$ac_ext
5134 LIBS=$ac_check_lib_save_LIBS
5136 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_xdr_short" >&5
5137 echo "${ECHO_T}$ac_cv_lib_nsl_xdr_short" >&6
5138 if test $ac_cv_lib_nsl_xdr_short = yes; then
5139 cat >>confdefs.h <<_ACEOF
5140 #define HAVE_LIBNSL 1
5151 # ===========================================================================
5153 # adl_DD_COPT macro checks if the compiler specified as the 1st parameter
5154 # supports option specified as the 2nd parameter
5155 # For example: DD_CPORT(CXX, fPIC)
5159 # This macro expands DIR and assigns it to RET.
5160 # If DIR is NONE, then it's replaced by DEFAULT.
5162 # Based on AC_DEFINE_DIR
5166 # adl_EXPAND(prefix, "/usr/local", expanded_prefix)
5170 # adl_NORMALIZE_PATH
5172 # - empty paths are changed to '.'
5173 # - trailing slashes are removed
5174 # - repeated slashes are squeezed except a leading doubled slash '//'
5175 # (which might indicate a networked disk on some OS).
5178 # REFERENCE_STRING is used to turn '/' into '\' and vice-versa: if
5179 # REFERENCE_STRING contains some backslashes, all slashes and backslashes
5180 # are turned into backslashes, otherwise they are all turned into slashes.
5182 # This makes processing of DOS filenames quite easier, because you can turn a
5183 # filename to the Unix notation, make your processing, and turn it back to
5184 # original notation.
5192 # Checking characteristics of compilers and other programs
5193 # ===========================================================================
5194 echo "$as_me:$LINENO: checking whether preprocessor accepts -MM or -M" >&5
5195 echo $ECHO_N "checking whether preprocessor accepts -MM or -M... $ECHO_C" >&6
5196 if test "${sdcc_cv_MM+set}" = set; then
5197 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 echo "#include <stdio.h>" >_test_.c
5201 $CPP -v -MM _test_.c 1>&5 2>&5
5202 if test "$?" = "0"; then
5209 echo "$as_me:$LINENO: result: $sdcc_cv_MM" >&5
5210 echo "${ECHO_T}$sdcc_cv_MM" >&6
5214 # This is the first time when CFLAGS are set/modified!!
5216 echo "$as_me:$LINENO: checking whether $CC accepts -ggdb" >&5
5217 echo $ECHO_N "checking whether $CC accepts -ggdb... $ECHO_C" >&6
5218 if test "${sdcc_cv_CCggdb+set}" = set; then
5219 echo $ECHO_N "(cached) $ECHO_C" >&6
5225 $CC -v -ggdb -c _test_.c 1>&5 2>&5
5226 if test "$?" = "0"; then
5227 sdcc_cv_CCggdb="yes"
5231 rm -f _test_.* a.out
5233 echo "$as_me:$LINENO: result: $sdcc_cv_CCggdb" >&5
5234 echo "${ECHO_T}$sdcc_cv_CCggdb" >&6
5236 if test "$sdcc_cv_CCggdb" = "yes"; then
5237 CFLAGS="-ggdb ${CFLAGS}"
5241 echo "$as_me:$LINENO: checking whether $CC accepts -pipe" >&5
5242 echo $ECHO_N "checking whether $CC accepts -pipe... $ECHO_C" >&6
5243 if test "${sdcc_cv_CCpipe+set}" = set; then
5244 echo $ECHO_N "(cached) $ECHO_C" >&6
5250 $CC -v -pipe -c _test_.c 1>&5 2>&5
5251 if test "$?" = "0"; then
5252 sdcc_cv_CCpipe="yes"
5256 rm -f _test_.* a.out
5258 echo "$as_me:$LINENO: result: $sdcc_cv_CCpipe" >&5
5259 echo "${ECHO_T}$sdcc_cv_CCpipe" >&6
5261 if test "$sdcc_cv_CCpipe" = "yes"; then
5262 CFLAGS="-pipe $CFLAGS"
5266 # Set standard installation paths
5267 # ===========================================================================
5269 # In the Makefiles we need paths with '/' as directory separator, even if
5270 # crosscompiling for Win32.
5271 # And we want to preserve the macros (e.g. ${prefix}) in the Makefiles.
5272 # The variables in the Makefiles are replaced by AC_SUBST()
5274 # In sdccconf.h the '/' in paths can be replaced by "\\" (normalized), if
5276 # The macros are expanded for the header.
5277 # The variables in the header are replaced by AC_*DEFINE*()
5278 # sdccconf_h_dir_separator contains a backslash.
5280 if test "x${sdccconf_h_dir_separator}" = "x"; then
5281 sdccconf_h_dir_separator="/"
5288 # *nix default: "sdcc/lib"
5290 if test "${lib_dir_suffix}" = ""; then
5291 lib_dir_suffix="sdcc/lib"
5300 cat >>confdefs.h <<_ACEOF
5301 #define DIR_SEPARATOR_STRING "${sdccconf_h_dir_separator}"
5306 # default: "${prefix}/share"
5308 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5309 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5311 test "x$ac_expand" = xNONE && ac_expand="$"NONE""
5312 ac_expand=`eval echo $ac_expand`
5313 expanded_datadir=`eval echo $ac_expand`
5316 ac_ndu=$expanded_datadir
5319 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
5322 case $sdccconf_h_dir_separator in
5324 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
5325 s,^[\\/],\\\\\\\\,'` ;;
5327 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
5329 cat >>confdefs.h <<_ACEOF
5330 #define DATADIR "${ac_ndu}"
5336 norm_lib_dir_suffix=${lib_dir_suffix}
5337 case ":$norm_lib_dir_suffix:" in
5338 ::) norm_lib_dir_suffix='.' ;;
5339 :*[\\/]:) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,[\\/]*$,,'` ;;
5342 case $sdccconf_h_dir_separator in
5344 *\\*) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
5345 s,^[\\/],\\\\\\\\,'` ;;
5347 *) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
5349 cat >>confdefs.h <<_ACEOF
5350 #define LIB_DIR_SUFFIX DIR_SEPARATOR_STRING "${norm_lib_dir_suffix}"
5355 # Generating output files
5356 # ===========================================================================
5357 ac_config_files="$ac_config_files Makefile"
5359 cat >confcache <<\_ACEOF
5360 # This file is a shell script that caches the results of configure
5361 # tests run on this system so they can be shared between configure
5362 # scripts and configure runs, see configure's option --config-cache.
5363 # It is not useful on other systems. If it contains results you don't
5364 # want to keep, you may remove or edit it.
5366 # config.status only pays attention to the cache file if you give it
5367 # the --recheck option to rerun configure.
5369 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5370 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5375 # The following way of writing the cache mishandles newlines in values,
5376 # but we know of no workaround that is simple, portable, and efficient.
5377 # So, don't put newlines in cache variables' values.
5378 # Ultrix sh set writes to stderr and can't be redirected directly,
5379 # and sets the high bit in the cache file unless we assign to the vars.
5382 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5384 # `set' does not quote correctly, so add quotes (double-quote
5385 # substitution turns \\\\ into \\, and sed turns \\ into \).
5388 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5391 # `set' quotes correctly as required by POSIX, so do not add quotes.
5393 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5400 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5402 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5404 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5405 if test -w $cache_file; then
5406 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5407 cat confcache >$cache_file
5409 echo "not updating unwritable cache $cache_file"
5414 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5415 # Let make expand exec_prefix.
5416 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5418 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5419 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5420 # trailing colons and then remove the whole line if VPATH becomes empty
5421 # (actually we leave an empty line to preserve line numbers).
5422 if test "x$srcdir" = x.; then
5423 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5424 s/:*\$(srcdir):*/:/;
5425 s/:*\${srcdir}:*/:/;
5427 s/^\([^=]*=[ ]*\):*/\1/;
5433 DEFS=-DHAVE_CONFIG_H
5437 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5438 # 1. Remove the extension, and $U if already installed.
5439 ac_i=`echo "$ac_i" |
5440 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5441 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5442 # will be set to the directory where LIBOBJS objects are built.
5443 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5444 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
5448 LTLIBOBJS=$ac_ltlibobjs
5452 : ${CONFIG_STATUS=./config.status}
5453 ac_clean_files_save=$ac_clean_files
5454 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5455 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5456 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5457 cat >$CONFIG_STATUS <<_ACEOF
5459 # Generated by $as_me.
5460 # Run this file to recreate the current configuration.
5461 # Compiler output produced by configure, useful for debugging
5462 # configure, is in config.log if it exists.
5467 SHELL=\${CONFIG_SHELL-$SHELL}
5470 cat >>$CONFIG_STATUS <<\_ACEOF
5471 ## --------------------- ##
5472 ## M4sh Initialization. ##
5473 ## --------------------- ##
5475 # Be Bourne compatible
5476 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5479 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5480 # is contrary to our usage. Disable this feature.
5481 alias -g '${1+"$@"}'='"$@"'
5482 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5485 DUALCASE=1; export DUALCASE # for MKS sh
5487 # Support unset when possible.
5488 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5495 # Work around bugs in pre-3.0 UWIN ksh.
5496 $as_unset ENV MAIL MAILPATH
5503 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5504 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5505 LC_TELEPHONE LC_TIME
5507 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5508 eval $as_var=C; export $as_var
5514 # Required to use basename.
5515 if expr a : '\(a\)' >/dev/null 2>&1; then
5521 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5522 as_basename=basename
5528 # Name of the executable.
5529 as_me=`$as_basename "$0" ||
5530 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5531 X"$0" : 'X\(//\)$' \| \
5532 X"$0" : 'X\(/\)$' \| \
5533 . : '\(.\)' 2>/dev/null ||
5535 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5536 /^X\/\(\/\/\)$/{ s//\1/; q; }
5537 /^X\/\(\/\).*/{ s//\1/; q; }
5541 # PATH needs CR, and LINENO needs CR and PATH.
5542 # Avoid depending upon Character Ranges.
5543 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5544 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5545 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5546 as_cr_digits='0123456789'
5547 as_cr_alnum=$as_cr_Letters$as_cr_digits
5549 # The user is always right.
5550 if test "${PATH_SEPARATOR+set}" != set; then
5551 echo "#! /bin/sh" >conf$$.sh
5552 echo "exit 0" >>conf$$.sh
5554 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5565 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5566 test "x$as_lineno_1" != "x$as_lineno_2" &&
5567 test "x$as_lineno_3" = "x$as_lineno_2" || {
5568 # Find who we are. Look in the path if we contain no path at all
5571 *[\\/]* ) as_myself=$0 ;;
5572 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5576 test -z "$as_dir" && as_dir=.
5577 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5582 # We did not find ourselves, most probably we were run as `sh COMMAND'
5583 # in which case we are not to be found in the path.
5584 if test "x$as_myself" = x; then
5587 if test ! -f "$as_myself"; then
5588 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5589 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5590 { (exit 1); exit 1; }; }
5592 case $CONFIG_SHELL in
5594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5595 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5598 test -z "$as_dir" && as_dir=.
5599 for as_base in sh bash ksh sh5; do
5602 if ("$as_dir/$as_base" -c '
5605 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5606 test "x$as_lineno_1" != "x$as_lineno_2" &&
5607 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5608 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5609 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5610 CONFIG_SHELL=$as_dir/$as_base
5612 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5620 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5621 # uniformly replaced by the line number. The first 'sed' inserts a
5622 # line-number line before each line; the second 'sed' does the real
5623 # work. The second script uses 'N' to pair each line-number line
5624 # with the numbered line, and appends trailing '-' during
5625 # substitution so that $LINENO is not a special case at line end.
5626 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5627 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5628 sed '=' <$as_myself |
5633 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5636 s,^['$as_cr_digits']*\n,,
5638 chmod +x $as_me.lineno ||
5639 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5640 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5641 { (exit 1); exit 1; }; }
5643 # Don't try to exec as it changes $[0], causing all sort of problems
5644 # (the dirname of $[0] is not the place where we might find the
5645 # original and so on. Autoconf is especially sensible to this).
5647 # Exit status is that of the last command.
5652 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5653 *c*,-n*) ECHO_N= ECHO_C='
5655 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5656 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5659 if expr a : '\(a\)' >/dev/null 2>&1; then
5665 rm -f conf$$ conf$$.exe conf$$.file
5667 if ln -s conf$$.file conf$$ 2>/dev/null; then
5668 # We could just check for DJGPP; but this test a) works b) is more generic
5669 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5670 if test -f conf$$.exe; then
5671 # Don't use ln at all; we don't have any links
5676 elif ln conf$$.file conf$$ 2>/dev/null; then
5681 rm -f conf$$ conf$$.exe conf$$.file
5683 if mkdir -p . 2>/dev/null; then
5686 test -d ./-p && rmdir ./-p
5690 as_executable_p="test -f"
5692 # Sed expression to map a string onto a valid CPP name.
5693 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5695 # Sed expression to map a string onto a valid variable name.
5696 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5700 # We need space, tab and new line, in precisely that order.
5710 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5711 # report actual input values of CONFIG_FILES etc. instead of their
5712 # values after options handling. Logging --version etc. is OK.
5716 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5717 ## Running $as_me. ##
5722 This file was extended by $as_me, which was
5723 generated by GNU Autoconf 2.59. Invocation command line was
5725 CONFIG_FILES = $CONFIG_FILES
5726 CONFIG_HEADERS = $CONFIG_HEADERS
5727 CONFIG_LINKS = $CONFIG_LINKS
5728 CONFIG_COMMANDS = $CONFIG_COMMANDS
5732 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5736 # Files that config.status was made for.
5737 if test -n "$ac_config_files"; then
5738 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5741 if test -n "$ac_config_headers"; then
5742 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5745 if test -n "$ac_config_links"; then
5746 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5749 if test -n "$ac_config_commands"; then
5750 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5753 cat >>$CONFIG_STATUS <<\_ACEOF
5756 \`$as_me' instantiates files from templates according to the
5757 current configuration.
5759 Usage: $0 [OPTIONS] [FILE]...
5761 -h, --help print this help, then exit
5762 -V, --version print version number, then exit
5763 -q, --quiet do not print progress messages
5764 -d, --debug don't remove temporary files
5765 --recheck update $as_me by reconfiguring in the same conditions
5766 --file=FILE[:TEMPLATE]
5767 instantiate the configuration file FILE
5768 --header=FILE[:TEMPLATE]
5769 instantiate the configuration header FILE
5771 Configuration files:
5774 Configuration headers:
5777 Report bugs to <bug-autoconf@gnu.org>."
5780 cat >>$CONFIG_STATUS <<_ACEOF
5783 configured by $0, generated by GNU Autoconf 2.59,
5784 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5786 Copyright (C) 2003 Free Software Foundation, Inc.
5787 This config.status script is free software; the Free Software Foundation
5788 gives unlimited permission to copy, distribute and modify it."
5793 cat >>$CONFIG_STATUS <<\_ACEOF
5794 # If no file are specified by the user, then we need to provide default
5795 # value. By we need to know if files were specified by the user.
5801 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5802 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5810 *) # This is not an option, so the user has probably given explicit
5813 ac_need_defaults=false;;
5817 # Handling of the options.
5819 cat >>$CONFIG_STATUS <<\_ACEOF
5820 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5822 --version | --vers* | -V )
5823 echo "$ac_cs_version"; exit 0 ;;
5825 # Conflict between --help and --header
5826 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5827 Try \`$0 --help' for more information." >&5
5828 echo "$as_me: error: ambiguous option: $1
5829 Try \`$0 --help' for more information." >&2;}
5830 { (exit 1); exit 1; }; };;
5831 --help | --hel | -h )
5832 echo "$ac_cs_usage"; exit 0 ;;
5833 --debug | --d* | -d )
5835 --file | --fil | --fi | --f )
5837 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5838 ac_need_defaults=false;;
5839 --header | --heade | --head | --hea )
5841 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5842 ac_need_defaults=false;;
5843 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5844 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5848 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5849 Try \`$0 --help' for more information." >&5
5850 echo "$as_me: error: unrecognized option: $1
5851 Try \`$0 --help' for more information." >&2;}
5852 { (exit 1); exit 1; }; } ;;
5854 *) ac_config_targets="$ac_config_targets $1" ;;
5860 ac_configure_extra_args=
5862 if $ac_cs_silent; then
5864 ac_configure_extra_args="$ac_configure_extra_args --silent"
5868 cat >>$CONFIG_STATUS <<_ACEOF
5869 if \$ac_cs_recheck; then
5870 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5871 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5880 cat >>$CONFIG_STATUS <<\_ACEOF
5881 for ac_config_target in $ac_config_targets
5883 case "$ac_config_target" in
5884 # Handling of arguments.
5885 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5886 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5887 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5888 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5889 { (exit 1); exit 1; }; };;
5893 # If the user did not use the arguments to specify the items to instantiate,
5894 # then the envvar interface is used. Set only those that are not.
5895 # We use the long form for the default assignment because of an extremely
5896 # bizarre bug on SunOS 4.1.3.
5897 if $ac_need_defaults; then
5898 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5899 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5902 # Have a temporary directory for convenience. Make it in the build tree
5903 # simply because there is no reason to put it here, and in addition,
5904 # creating and moving files from /tmp can sometimes cause problems.
5905 # Create a temporary directory, and hook for its removal unless debugging.
5908 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5909 trap '{ (exit 1); exit 1; }' 1 2 13 15
5912 # Create a (secure) tmp directory for tmp files.
5915 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5916 test -n "$tmp" && test -d "$tmp"
5919 tmp=./confstat$$-$RANDOM
5920 (umask 077 && mkdir $tmp)
5923 echo "$me: cannot create a temporary directory in ." >&2
5924 { (exit 1); exit 1; }
5929 cat >>$CONFIG_STATUS <<_ACEOF
5932 # CONFIG_FILES section.
5935 # No need to generate the scripts if there are no CONFIG_FILES.
5936 # This happens for instance when ./config.status config.h
5937 if test -n "\$CONFIG_FILES"; then
5938 # Protect against being on the right side of a sed subst in config.status.
5939 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5940 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5941 s,@SHELL@,$SHELL,;t t
5942 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5943 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5944 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5945 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5946 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5947 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5948 s,@exec_prefix@,$exec_prefix,;t t
5949 s,@prefix@,$prefix,;t t
5950 s,@program_transform_name@,$program_transform_name,;t t
5951 s,@bindir@,$bindir,;t t
5952 s,@sbindir@,$sbindir,;t t
5953 s,@libexecdir@,$libexecdir,;t t
5954 s,@datadir@,$datadir,;t t
5955 s,@sysconfdir@,$sysconfdir,;t t
5956 s,@sharedstatedir@,$sharedstatedir,;t t
5957 s,@localstatedir@,$localstatedir,;t t
5958 s,@libdir@,$libdir,;t t
5959 s,@includedir@,$includedir,;t t
5960 s,@oldincludedir@,$oldincludedir,;t t
5961 s,@infodir@,$infodir,;t t
5962 s,@mandir@,$mandir,;t t
5963 s,@build_alias@,$build_alias,;t t
5964 s,@host_alias@,$host_alias,;t t
5965 s,@target_alias@,$target_alias,;t t
5967 s,@ECHO_C@,$ECHO_C,;t t
5968 s,@ECHO_N@,$ECHO_N,;t t
5969 s,@ECHO_T@,$ECHO_T,;t t
5972 s,@CFLAGS@,$CFLAGS,;t t
5973 s,@LDFLAGS@,$LDFLAGS,;t t
5974 s,@CPPFLAGS@,$CPPFLAGS,;t t
5975 s,@ac_ct_CC@,$ac_ct_CC,;t t
5976 s,@EXEEXT@,$EXEEXT,;t t
5977 s,@OBJEXT@,$OBJEXT,;t t
5978 s,@LIBREADLINE@,$LIBREADLINE,;t t
5980 s,@EGREP@,$EGREP,;t t
5981 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5982 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5983 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5984 s,@RANLIB@,$RANLIB,;t t
5985 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5986 s,@AUTOCONF@,$AUTOCONF,;t t
5987 s,@STRIP@,$STRIP,;t t
5990 s,@M_OR_MM@,$M_OR_MM,;t t
5991 s,@sdccconf_h_dir_separator@,$sdccconf_h_dir_separator,;t t
5992 s,@lib_dir_suffix@,$lib_dir_suffix,;t t
5993 s,@LIBOBJS@,$LIBOBJS,;t t
5994 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5999 cat >>$CONFIG_STATUS <<\_ACEOF
6000 # Split the substitutions into bite-sized pieces for seds with
6001 # small command number limits, like on Digital OSF/1 and HP-UX.
6003 ac_sed_frag=1 # Number of current file.
6004 ac_beg=1 # First line for current file.
6005 ac_end=$ac_max_sed_lines # Line after last line for current file.
6008 while $ac_more_lines; do
6009 if test $ac_beg -gt 1; then
6010 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6012 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6014 if test ! -s $tmp/subs.frag; then
6017 # The purpose of the label and of the branching condition is to
6018 # speed up the sed processing (if there are no `@' at all, there
6019 # is no need to browse any of the substitutions).
6020 # These are the two extra sed commands mentioned above.
6022 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6023 if test -z "$ac_sed_cmds"; then
6024 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6026 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6028 ac_sed_frag=`expr $ac_sed_frag + 1`
6030 ac_end=`expr $ac_end + $ac_max_sed_lines`
6033 if test -z "$ac_sed_cmds"; then
6036 fi # test -n "$CONFIG_FILES"
6039 cat >>$CONFIG_STATUS <<\_ACEOF
6040 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6041 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6043 - | *:- | *:-:* ) # input from stdin
6045 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6046 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6047 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6048 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6049 * ) ac_file_in=$ac_file.in ;;
6052 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6053 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6054 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6055 X"$ac_file" : 'X\(//\)[^/]' \| \
6056 X"$ac_file" : 'X\(//\)$' \| \
6057 X"$ac_file" : 'X\(/\)' \| \
6058 . : '\(.\)' 2>/dev/null ||
6060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6061 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6062 /^X\(\/\/\)$/{ s//\1/; q; }
6063 /^X\(\/\).*/{ s//\1/; q; }
6065 { if $as_mkdir_p; then
6070 while test ! -d "$as_dir"; do
6071 as_dirs="$as_dir $as_dirs"
6072 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6073 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6074 X"$as_dir" : 'X\(//\)[^/]' \| \
6075 X"$as_dir" : 'X\(//\)$' \| \
6076 X"$as_dir" : 'X\(/\)' \| \
6077 . : '\(.\)' 2>/dev/null ||
6079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6080 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6081 /^X\(\/\/\)$/{ s//\1/; q; }
6082 /^X\(\/\).*/{ s//\1/; q; }
6085 test ! -n "$as_dirs" || mkdir $as_dirs
6086 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6087 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6088 { (exit 1); exit 1; }; }; }
6092 if test "$ac_dir" != .; then
6093 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6094 # A "../" for each directory in $ac_dir_suffix.
6095 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6097 ac_dir_suffix= ac_top_builddir=
6101 .) # No --srcdir option. We are building in place.
6103 if test -z "$ac_top_builddir"; then
6106 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6108 [\\/]* | ?:[\\/]* ) # Absolute path.
6109 ac_srcdir=$srcdir$ac_dir_suffix;
6110 ac_top_srcdir=$srcdir ;;
6112 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6113 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6116 # Do not use `cd foo && pwd` to compute absolute paths, because
6117 # the directories may not exist.
6119 .) ac_abs_builddir="$ac_dir";;
6122 .) ac_abs_builddir=`pwd`;;
6123 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6124 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6127 case $ac_abs_builddir in
6128 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6130 case ${ac_top_builddir}. in
6131 .) ac_abs_top_builddir=$ac_abs_builddir;;
6132 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6133 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6136 case $ac_abs_builddir in
6137 .) ac_abs_srcdir=$ac_srcdir;;
6140 .) ac_abs_srcdir=$ac_abs_builddir;;
6141 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6142 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6145 case $ac_abs_builddir in
6146 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6148 case $ac_top_srcdir in
6149 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6150 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6151 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6157 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6158 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6161 if test x"$ac_file" != x-; then
6162 { echo "$as_me:$LINENO: creating $ac_file" >&5
6163 echo "$as_me: creating $ac_file" >&6;}
6166 # Let's still pretend it is `configure' which instantiates (i.e., don't
6167 # use $as_me), people would be surprised to read:
6168 # /* config.h. Generated by config.status. */
6169 if test x"$ac_file" = x-; then
6172 configure_input="$ac_file. "
6174 configure_input=$configure_input"Generated from `echo $ac_file_in |
6175 sed 's,.*/,,'` by configure."
6177 # First look for the input files in the build tree, otherwise in the
6179 ac_file_inputs=`IFS=:
6180 for f in $ac_file_in; do
6182 -) echo $tmp/stdin ;;
6184 # Absolute (can't be DOS-style, as IFS=:)
6185 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6186 echo "$as_me: error: cannot find input file: $f" >&2;}
6187 { (exit 1); exit 1; }; }
6190 if test -f "$f"; then
6193 elif test -f "$srcdir/$f"; then
6198 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6199 echo "$as_me: error: cannot find input file: $f" >&2;}
6200 { (exit 1); exit 1; }; }
6203 done` || { (exit 1); exit 1; }
6205 cat >>$CONFIG_STATUS <<_ACEOF
6209 cat >>$CONFIG_STATUS <<\_ACEOF
6211 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6212 s,@configure_input@,$configure_input,;t t
6213 s,@srcdir@,$ac_srcdir,;t t
6214 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6215 s,@top_srcdir@,$ac_top_srcdir,;t t
6216 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6217 s,@builddir@,$ac_builddir,;t t
6218 s,@abs_builddir@,$ac_abs_builddir,;t t
6219 s,@top_builddir@,$ac_top_builddir,;t t
6220 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6221 s,@INSTALL@,$ac_INSTALL,;t t
6222 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6224 if test x"$ac_file" != x-; then
6225 mv $tmp/out $ac_file
6233 cat >>$CONFIG_STATUS <<\_ACEOF
6236 # CONFIG_HEADER section.
6239 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6240 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6242 # ac_d sets the value in "#define NAME VALUE" lines.
6243 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6244 ac_dB='[ ].*$,\1#\2'
6247 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6248 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6249 ac_uB='$,\1#\2define\3'
6253 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6254 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6256 - | *:- | *:-:* ) # input from stdin
6258 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6259 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6260 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6261 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6262 * ) ac_file_in=$ac_file.in ;;
6265 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6266 echo "$as_me: creating $ac_file" >&6;}
6268 # First look for the input files in the build tree, otherwise in the
6270 ac_file_inputs=`IFS=:
6271 for f in $ac_file_in; do
6273 -) echo $tmp/stdin ;;
6275 # Absolute (can't be DOS-style, as IFS=:)
6276 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6277 echo "$as_me: error: cannot find input file: $f" >&2;}
6278 { (exit 1); exit 1; }; }
6279 # Do quote $f, to prevent DOS paths from being IFS'd.
6282 if test -f "$f"; then
6285 elif test -f "$srcdir/$f"; then
6290 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6291 echo "$as_me: error: cannot find input file: $f" >&2;}
6292 { (exit 1); exit 1; }; }
6295 done` || { (exit 1); exit 1; }
6296 # Remove the trailing spaces.
6297 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6301 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6302 # `conftest.undefs', that substitutes the proper values into
6303 # config.h.in to produce config.h. The first handles `#define'
6304 # templates, and the second `#undef' templates.
6305 # And first: Protect against being on the right side of a sed subst in
6306 # config.status. Protect against being in an unquoted here document
6308 rm -f conftest.defines conftest.undefs
6309 # Using a here document instead of a string reduces the quoting nightmare.
6310 # Putting comments in sed scripts is not portable.
6312 # `end' is used to avoid that the second main sed command (meant for
6313 # 0-ary CPP macros) applies to n-ary macro definitions.
6314 # See the Autoconf documentation for `clear'.
6315 cat >confdef2sed.sed <<\_ACEOF
6320 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6322 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6325 # If some macros were called several times there might be several times
6326 # the same #defines, which is useless. Nevertheless, we may not want to
6327 # sort them, since we want the *last* AC-DEFINE to be honored.
6328 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6329 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6330 rm -f confdef2sed.sed
6332 # This sed command replaces #undef with comments. This is necessary, for
6333 # example, in the case of _POSIX_SOURCE, which is predefined and required
6334 # on some systems where configure will not decide to define it.
6335 cat >>conftest.undefs <<\_ACEOF
6336 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6339 # Break up conftest.defines because some shells have a limit on the size
6340 # of here documents, and old seds have small limits too (100 cmds).
6341 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6342 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6343 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6344 echo ' :' >>$CONFIG_STATUS
6346 while grep . conftest.defines >/dev/null
6348 # Write a limited-size here document to $tmp/defines.sed.
6349 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6350 # Speed up: don't consider the non `#define' lines.
6351 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6352 # Work around the forget-to-reset-the-flag bug.
6353 echo 't clr' >>$CONFIG_STATUS
6354 echo ': clr' >>$CONFIG_STATUS
6355 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6357 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6361 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6362 rm -f conftest.defines
6363 mv conftest.tail conftest.defines
6365 rm -f conftest.defines
6366 echo ' fi # grep' >>$CONFIG_STATUS
6367 echo >>$CONFIG_STATUS
6369 # Break up conftest.undefs because some shells have a limit on the size
6370 # of here documents, and old seds have small limits too (100 cmds).
6371 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6373 while grep . conftest.undefs >/dev/null
6375 # Write a limited-size here document to $tmp/undefs.sed.
6376 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6377 # Speed up: don't consider the non `#undef'
6378 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6379 # Work around the forget-to-reset-the-flag bug.
6380 echo 't clr' >>$CONFIG_STATUS
6381 echo ': clr' >>$CONFIG_STATUS
6382 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6384 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6388 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6389 rm -f conftest.undefs
6390 mv conftest.tail conftest.undefs
6392 rm -f conftest.undefs
6394 cat >>$CONFIG_STATUS <<\_ACEOF
6395 # Let's still pretend it is `configure' which instantiates (i.e., don't
6396 # use $as_me), people would be surprised to read:
6397 # /* config.h. Generated by config.status. */
6398 if test x"$ac_file" = x-; then
6399 echo "/* Generated by configure. */" >$tmp/config.h
6401 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6403 cat $tmp/in >>$tmp/config.h
6405 if test x"$ac_file" != x-; then
6406 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6407 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6408 echo "$as_me: $ac_file is unchanged" >&6;}
6410 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6411 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6412 X"$ac_file" : 'X\(//\)[^/]' \| \
6413 X"$ac_file" : 'X\(//\)$' \| \
6414 X"$ac_file" : 'X\(/\)' \| \
6415 . : '\(.\)' 2>/dev/null ||
6417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6418 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6419 /^X\(\/\/\)$/{ s//\1/; q; }
6420 /^X\(\/\).*/{ s//\1/; q; }
6422 { if $as_mkdir_p; then
6427 while test ! -d "$as_dir"; do
6428 as_dirs="$as_dir $as_dirs"
6429 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6430 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6431 X"$as_dir" : 'X\(//\)[^/]' \| \
6432 X"$as_dir" : 'X\(//\)$' \| \
6433 X"$as_dir" : 'X\(/\)' \| \
6434 . : '\(.\)' 2>/dev/null ||
6436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6437 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6438 /^X\(\/\/\)$/{ s//\1/; q; }
6439 /^X\(\/\).*/{ s//\1/; q; }
6442 test ! -n "$as_dirs" || mkdir $as_dirs
6443 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6444 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6445 { (exit 1); exit 1; }; }; }
6448 mv $tmp/config.h $ac_file
6457 cat >>$CONFIG_STATUS <<\_ACEOF
6459 { (exit 0); exit 0; }
6461 chmod +x $CONFIG_STATUS
6462 ac_clean_files=$ac_clean_files_save
6465 # configure is writing to config.log, and then calls config.status.
6466 # config.status does its own redirection, appending to config.log.
6467 # Unfortunately, on DOS this fails, as config.log is still kept open
6468 # by configure, so config.status won't be able to write to it; its
6469 # output is simply discarded. So we exec the FD to /dev/null,
6470 # effectively closing config.log, so it can be properly (re)opened and
6471 # appended to by config.status. When coming back to configure, we
6472 # need to make the FD available again.
6473 if test "$no_create" != yes; then
6475 ac_config_status_args=
6476 test "$silent" = yes &&
6477 ac_config_status_args="$ac_config_status_args --quiet"
6479 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6481 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6482 # would make configure fail if this is the last instruction.
6483 $ac_cs_success || { (exit 1); exit 1; }
6487 # Prepare result message
6488 # ======================
6490 # In the C-header we need \\ as dir-separator, but in the message only \
6491 dirch=${sdccconf_h_dir_separator}
6492 test ${dirch} = '\\' && dirch='\'
6494 echo "$as_me:$LINENO: result:
6495 sdcdb is now configured for
6497 Build: ${build_alias}
6499 Source directory: ${srcdir}
6504 binary files: ${exec_prefix}
6505 include files: ${datadir}/${include_dir_suffix}
6506 library files: ${datadir}/${lib_dir_suffix}
6507 documentation: ${docdir}
6512 Search paths (incomplete, see manual for all search paths):
6513 binary files: \$SDCC_HOME${binPath}
6514 include files: ${incPath1}
6515 path(argv[0])${incPath2}
6517 library files: \$SDCC_HOME${libPath1}${dirch}<model>
6518 path(argv[0])${libPath2}${dirch}<model>
6519 ${libPath3}${dirch}<model>
6522 sdcdb is now configured for
6524 Build: ${build_alias}
6526 Source directory: ${srcdir}
6531 binary files: ${exec_prefix}
6532 include files: ${datadir}/${include_dir_suffix}
6533 library files: ${datadir}/${lib_dir_suffix}
6534 documentation: ${docdir}
6539 Search paths (incomplete, see manual for all search paths):
6540 binary files: \$SDCC_HOME${binPath}
6541 include files: ${incPath1}
6542 path(argv[0])${incPath2}
6544 library files: \$SDCC_HOME${libPath1}${dirch}<model>
6545 path(argv[0])${libPath2}${dirch}<model>
6546 ${libPath3}${dirch}<model>
6548 # End of configure/configure.in