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
="hexedit.c"
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 PRODUCT VERSION INCL SRCS OTHER CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CPP EGREP LIBOBJS LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir
='${exec_prefix}/bin'
341 sbindir
='${exec_prefix}/sbin'
342 libexecdir
='${exec_prefix}/libexec'
343 datadir
='${prefix}/share'
344 sysconfdir
='${prefix}/etc'
345 sharedstatedir
='${prefix}/com'
346 localstatedir
='${prefix}/var'
347 libdir
='${exec_prefix}/lib'
348 includedir
='${prefix}/include'
349 oldincludedir
='/usr/include'
350 infodir
='${prefix}/info'
351 mandir
='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
374 -build |
--build |
--buil |
--bui |
--bu)
375 ac_prev
=build_alias
;;
376 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
377 build_alias
=$ac_optarg ;;
379 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
380 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
381 ac_prev
=cache_file
;;
382 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
383 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
384 cache_file
=$ac_optarg ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
393 datadir
=$ac_optarg ;;
395 -disable-* |
--disable-*)
396 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* |
--enable-*)
405 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
418 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
419 |
--exec |
--exe |
--ex)
420 ac_prev
=exec_prefix
;;
421 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
422 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
423 |
--exec=* |
--exe=* |
--ex=*)
424 exec_prefix
=$ac_optarg ;;
426 -gas |
--gas |
--ga |
--g)
427 # Obsolete; use --with-gas.
430 -help |
--help |
--hel |
--he |
-h)
432 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
433 ac_init_help
=recursive
;;
434 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
435 ac_init_help
=short
;;
437 -host |
--host |
--hos |
--ho)
438 ac_prev
=host_alias
;;
439 -host=* |
--host=* |
--hos=* |
--ho=*)
440 host_alias
=$ac_optarg ;;
442 -includedir |
--includedir |
--includedi |
--included |
--include \
443 |
--includ |
--inclu |
--incl |
--inc)
444 ac_prev
=includedir
;;
445 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
446 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
447 includedir
=$ac_optarg ;;
449 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
459 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
460 |
--libexe |
--libex |
--libe)
461 ac_prev
=libexecdir
;;
462 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
463 |
--libexe=* |
--libex=* |
--libe=*)
464 libexecdir
=$ac_optarg ;;
466 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
467 |
--localstate |
--localstat |
--localsta |
--localst \
468 |
--locals |
--local |
--loca |
--loc |
--lo)
469 ac_prev
=localstatedir
;;
470 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
471 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
472 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
473 localstatedir
=$ac_optarg ;;
475 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
492 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
493 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
494 |
--oldin |
--oldi |
--old |
--ol |
--o)
495 ac_prev
=oldincludedir
;;
496 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
497 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
498 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
499 oldincludedir
=$ac_optarg ;;
501 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
506 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
507 |
--program-pre |
--program-pr |
--program-p)
508 ac_prev
=program_prefix
;;
509 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
510 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
511 program_prefix
=$ac_optarg ;;
513 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
514 |
--program-suf |
--program-su |
--program-s)
515 ac_prev
=program_suffix
;;
516 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
517 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
518 program_suffix
=$ac_optarg ;;
520 -program-transform-name |
--program-transform-name \
521 |
--program-transform-nam |
--program-transform-na \
522 |
--program-transform-n |
--program-transform- \
523 |
--program-transform |
--program-transfor \
524 |
--program-transfo |
--program-transf \
525 |
--program-trans |
--program-tran \
526 |
--progr-tra |
--program-tr |
--program-t)
527 ac_prev
=program_transform_name
;;
528 -program-transform-name=* |
--program-transform-name=* \
529 |
--program-transform-nam=* |
--program-transform-na=* \
530 |
--program-transform-n=* |
--program-transform-=* \
531 |
--program-transform=* |
--program-transfor=* \
532 |
--program-transfo=* |
--program-transf=* \
533 |
--program-trans=* |
--program-tran=* \
534 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
535 program_transform_name
=$ac_optarg ;;
537 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
538 |
-silent |
--silent |
--silen |
--sile |
--sil)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
568 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
569 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
570 ac_prev
=sysconfdir
;;
571 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
572 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
573 sysconfdir
=$ac_optarg ;;
575 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
576 ac_prev
=target_alias
;;
577 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
578 target_alias
=$ac_optarg ;;
580 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
587 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package
=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* |
--without-*)
600 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package
=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
613 |
--x-incl |
--x-inc |
--x-in |
--x-i)
614 ac_prev
=x_includes
;;
615 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
616 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
617 x_includes
=$ac_optarg ;;
619 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
620 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
621 ac_prev
=x_libraries
;;
622 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
623 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
624 x_libraries
=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var
in exec_prefix prefix
661 eval ac_val
=$
`echo $ac_var`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val
=$
`echo $ac_var`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x
; then
690 if test "x$build_alias" = x
; then
691 cross_compiling
=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
702 test "$silent" = yes && exec 6>/dev
/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted
=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir
=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted
=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set
=${build_alias+set}
742 ac_env_build_alias_value
=$build_alias
743 ac_cv_env_build_alias_set
=${build_alias+set}
744 ac_cv_env_build_alias_value
=$build_alias
745 ac_env_host_alias_set
=${host_alias+set}
746 ac_env_host_alias_value
=$host_alias
747 ac_cv_env_host_alias_set
=${host_alias+set}
748 ac_cv_env_host_alias_value
=$host_alias
749 ac_env_target_alias_set
=${target_alias+set}
750 ac_env_target_alias_value
=$target_alias
751 ac_cv_env_target_alias_set
=${target_alias+set}
752 ac_cv_env_target_alias_value
=$target_alias
753 ac_env_CC_set
=${CC+set}
755 ac_cv_env_CC_set
=${CC+set}
756 ac_cv_env_CC_value
=$CC
757 ac_env_CFLAGS_set
=${CFLAGS+set}
758 ac_env_CFLAGS_value
=$CFLAGS
759 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value
=$CFLAGS
761 ac_env_LDFLAGS_set
=${LDFLAGS+set}
762 ac_env_LDFLAGS_value
=$LDFLAGS
763 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value
=$LDFLAGS
765 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value
=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_env_CPP_set
=${CPP+set}
770 ac_env_CPP_value
=$CPP
771 ac_cv_env_CPP_set
=${CPP+set}
772 ac_cv_env_CPP_value
=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
836 if test -n "$ac_init_help"; then
841 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
842 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
843 --disable-largefile omit support
for large files
845 Some influential environment variables
:
846 CC C compiler
command
847 CFLAGS C compiler flags
848 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
849 nonstandard directory
<lib dir
>
850 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
851 headers
in a nonstandard directory
<include dir
>
854 Use these variables to override the choices made by
`configure' or to help
855 it to find libraries and programs with nonstandard names/locations.
860 if test "$ac_init_help" = "recursive"; then
861 # If there are subdirs, report their specific --help.
863 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
864 test -d $ac_dir || continue
867 if test "$ac_dir" != .; then
868 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
869 # A "../" for each directory in $ac_dir_suffix.
870 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
872 ac_dir_suffix= ac_top_builddir=
876 .) # No --srcdir option. We are building in place.
878 if test -z "$ac_top_builddir"; then
881 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
883 [\\/]* | ?:[\\/]* ) # Absolute path.
884 ac_srcdir=$srcdir$ac_dir_suffix;
885 ac_top_srcdir=$srcdir ;;
887 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
888 ac_top_srcdir=$ac_top_builddir$srcdir ;;
891 # Do not use `cd foo
&& pwd` to compute absolute paths, because
892 # the directories may not exist.
894 .) ac_abs_builddir="$ac_dir";;
897 .) ac_abs_builddir=`pwd`;;
898 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
899 *) ac_abs_builddir=`pwd`/"$ac_dir";;
902 case $ac_abs_builddir in
903 .) ac_abs_top_builddir=${ac_top_builddir}.;;
905 case ${ac_top_builddir}. in
906 .) ac_abs_top_builddir=$ac_abs_builddir;;
907 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
908 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
911 case $ac_abs_builddir in
912 .) ac_abs_srcdir=$ac_srcdir;;
915 .) ac_abs_srcdir=$ac_abs_builddir;;
916 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
917 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
920 case $ac_abs_builddir in
921 .) ac_abs_top_srcdir=$ac_top_srcdir;;
923 case $ac_top_srcdir in
924 .) ac_abs_top_srcdir=$ac_abs_builddir;;
925 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
926 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
931 # Check for guested configure; otherwise get Cygnus style configure.
932 if test -f $ac_srcdir/configure.gnu; then
934 $SHELL $ac_srcdir/configure.gnu --help=recursive
935 elif test -f $ac_srcdir/configure; then
937 $SHELL $ac_srcdir/configure --help=recursive
938 elif test -f $ac_srcdir/configure.ac ||
939 test -f $ac_srcdir/configure.in; then
943 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
949 test -n "$ac_init_help" && exit 0
950 if $ac_init_version; then
953 Copyright (C) 2003 Free Software Foundation, Inc.
954 This configure script is free software; the Free Software Foundation
955 gives unlimited permission to copy, distribute and modify it.
961 This file contains any messages produced by compilers while
962 running configure, to aid debugging if configure makes a mistake.
964 It was created by $as_me, which was
965 generated by GNU Autoconf 2.59. Invocation command line was
976 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
977 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
978 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
979 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
980 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
982 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
983 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
985 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
986 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
987 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
988 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
989 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
990 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
991 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
999 test -z "$as_dir" && as_dir=.
1000 echo "PATH: $as_dir"
1015 # Keep a trace of the command line.
1016 # Strip out --no-create and --no-recursion so they do not pile up.
1017 # Strip out --silent because we don't want to record it for future runs.
1018 # Also quote any args containing shell meta-characters.
1019 # Make two passes to allow for proper duplicate-argument suppression.
1024 ac_must_keep_next=false
1030 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1031 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1032 | -silent | --silent | --silen | --sile | --sil)
1034 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1035 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1038 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1040 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1041 if test $ac_must_keep_next = true; then
1042 ac_must_keep_next=false # Got value, back to normal.
1045 *=* | --config-cache | -C | -disable-* | --disable-* \
1046 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1047 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1048 | -with-* | --with-* | -without-* | --without-* | --x)
1049 case "$ac_configure_args0 " in
1050 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1053 -* ) ac_must_keep_next=true ;;
1056 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1057 # Get rid of the leading space.
1063 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1064 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1066 # When interrupted or exit'd, cleanup temporary files, and complete
1067 # config.log. We remove comments because anyway the quotes in there
1068 # would cause problems or look ugly.
1069 # WARNING: Be sure not to use single quotes in there, as some shells,
1070 # such as our DU 5.0 friend, will then `close
' the trap.
1071 trap 'exit_status
=$?
1072 # Save into config.log some information that might help in debugging.
1077 ## ---------------- ##
1078 ## Cache variables. ##
1079 ## ---------------- ##
1082 # The following way of writing the cache mishandles newlines in values,
1085 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1088 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1089 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1093 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1100 ## ----------------- ##
1101 ## Output variables. ##
1102 ## ----------------- ##
1105 for ac_var
in $ac_subst_vars
1107 eval ac_val
=$
`echo $ac_var`
1108 echo "$ac_var='"'"'$ac_val'"'"'"
1112 if test -n "$ac_subst_files"; then
1119 for ac_var
in $ac_subst_files
1121 eval ac_val
=$
`echo $ac_var`
1122 echo "$ac_var='"'"'$ac_val'"'"'"
1127 if test -s confdefs.h
; then
1134 sed "/^$/d" confdefs.h |
sort
1137 test "$ac_signal" != 0 &&
1138 echo "$as_me: caught signal $ac_signal"
1139 echo "$as_me: exit $exit_status"
1141 rm -f core
*.core
&&
1142 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1145 for ac_signal in 1 2 13 15; do
1146 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1150 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1151 rm -rf conftest* confdefs.h
1152 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1155 # Predefined preprocessor variables.
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_NAME "$PACKAGE_NAME"
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1167 cat >>confdefs.h <<_ACEOF
1168 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1172 cat >>confdefs.h <<_ACEOF
1173 #define PACKAGE_STRING "$PACKAGE_STRING"
1177 cat >>confdefs.h <<_ACEOF
1178 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1182 # Let the site file select an alternate cache file if it wants to.
1183 # Prefer explicitly selected file to automatically selected ones.
1184 if test -z "$CONFIG_SITE"; then
1185 if test "x$prefix" != xNONE; then
1186 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1188 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1191 for ac_site_file in $CONFIG_SITE; do
1192 if test -r "$ac_site_file"; then
1193 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1194 echo "$as_me: loading site script $ac_site_file" >&6;}
1195 sed 's
/^
/|
/' "$ac_site_file" >&5
1200 if test -r "$cache_file"; then
1201 # Some versions of bash will fail to source /dev/null (special
1202 # files actually), so we avoid doing that.
1203 if test -f "$cache_file"; then
1204 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1205 echo "$as_me: loading cache $cache_file" >&6;}
1207 [\\/]* | ?:[\\/]* ) . $cache_file;;
1208 *) . ./$cache_file;;
1212 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1213 echo "$as_me: creating cache $cache_file" >&6;}
1217 # Check that the precious variables saved in the cache have kept the same
1219 ac_cache_corrupted=false
1220 for ac_var in `(set) 2>&1 |
1221 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1222 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1223 eval ac_new_set=\$ac_env_${ac_var}_set
1224 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1225 eval ac_new_val="\$ac_env_${ac_var}_value"
1226 case $ac_old_set,$ac_new_set in
1228 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1229 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1230 ac_cache_corrupted=: ;;
1232 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1233 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1234 ac_cache_corrupted=: ;;
1237 if test "x$ac_old_val" != "x$ac_new_val"; then
1238 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1239 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1240 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1241 echo "$as_me: former value: $ac_old_val" >&2;}
1242 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1243 echo "$as_me: current value: $ac_new_val" >&2;}
1244 ac_cache_corrupted=:
1247 # Pass precious variables to config.status.
1248 if test "$ac_new_set" = set; then
1250 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1251 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1252 *) ac_arg=$ac_var=$ac_new_val ;;
1254 case " $ac_configure_args " in
1255 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1256 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1260 if $ac_cache_corrupted; then
1261 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1262 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1263 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1264 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1265 { (exit 1); exit 1; }; }
1269 ac_cpp='$CPP $CPPFLAGS'
1270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1271 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1292 ac_config_headers="$ac_config_headers config.h"
1300 SRCS="hexedit.c display.c mark.c page.c file.c interact.c misc.c search.c"
1301 OTHER="COPYING Changes TODO install-sh configure config.h.in hexedit.1 hexedit-1.2.12.lsm Makefile.in configure.in Makefile-build.in"
1310 cat >>confdefs.h <<\_ACEOF
1311 #define _GNU_SOURCE 1
1316 ac_cpp='$CPP $CPPFLAGS'
1317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1318 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1320 if test -n "$ac_tool_prefix"; then
1321 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1322 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1323 echo "$as_me:$LINENO: checking for $ac_word" >&5
1324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1325 if test "${ac_cv_prog_CC+set}" = set; then
1326 echo $ECHO_N "(cached) $ECHO_C" >&6
1328 if test -n "$CC"; then
1329 ac_cv_prog_CC="$CC" # Let the user override the test.
1331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1335 test -z "$as_dir" && as_dir=.
1336 for ac_exec_ext in '' $ac_executable_extensions; do
1337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1338 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1348 if test -n "$CC"; then
1349 echo "$as_me:$LINENO: result: $CC" >&5
1350 echo "${ECHO_T}$CC" >&6
1352 echo "$as_me:$LINENO: result: no" >&5
1353 echo "${ECHO_T}no" >&6
1357 if test -z "$ac_cv_prog_CC"; then
1359 # Extract the first word of "gcc", so it can be a program name with args.
1360 set dummy gcc; ac_word=$2
1361 echo "$as_me:$LINENO: checking for $ac_word" >&5
1362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1363 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1364 echo $ECHO_N "(cached) $ECHO_C" >&6
1366 if test -n "$ac_ct_CC"; then
1367 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1373 test -z "$as_dir" && as_dir=.
1374 for ac_exec_ext in '' $ac_executable_extensions; do
1375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1376 ac_cv_prog_ac_ct_CC="gcc"
1377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1385 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1386 if test -n "$ac_ct_CC"; then
1387 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1388 echo "${ECHO_T}$ac_ct_CC" >&6
1390 echo "$as_me:$LINENO: result: no" >&5
1391 echo "${ECHO_T}no" >&6
1399 if test -z "$CC"; then
1400 if test -n "$ac_tool_prefix"; then
1401 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1402 set dummy ${ac_tool_prefix}cc; ac_word=$2
1403 echo "$as_me:$LINENO: checking for $ac_word" >&5
1404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1405 if test "${ac_cv_prog_CC+set}" = set; then
1406 echo $ECHO_N "(cached) $ECHO_C" >&6
1408 if test -n "$CC"; then
1409 ac_cv_prog_CC="$CC" # Let the user override the test.
1411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1415 test -z "$as_dir" && as_dir=.
1416 for ac_exec_ext in '' $ac_executable_extensions; do
1417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1418 ac_cv_prog_CC="${ac_tool_prefix}cc"
1419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1428 if test -n "$CC"; then
1429 echo "$as_me:$LINENO: result: $CC" >&5
1430 echo "${ECHO_T}$CC" >&6
1432 echo "$as_me:$LINENO: result: no" >&5
1433 echo "${ECHO_T}no" >&6
1437 if test -z "$ac_cv_prog_CC"; then
1439 # Extract the first word of "cc", so it can be a program name with args.
1440 set dummy cc; ac_word=$2
1441 echo "$as_me:$LINENO: checking for $ac_word" >&5
1442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1443 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1444 echo $ECHO_N "(cached) $ECHO_C" >&6
1446 if test -n "$ac_ct_CC"; then
1447 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1453 test -z "$as_dir" && as_dir=.
1454 for ac_exec_ext in '' $ac_executable_extensions; do
1455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1456 ac_cv_prog_ac_ct_CC="cc"
1457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1465 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1466 if test -n "$ac_ct_CC"; then
1467 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1468 echo "${ECHO_T}$ac_ct_CC" >&6
1470 echo "$as_me:$LINENO: result: no" >&5
1471 echo "${ECHO_T}no" >&6
1480 if test -z "$CC"; then
1481 # Extract the first word of "cc", so it can be a program name with args.
1482 set dummy cc; ac_word=$2
1483 echo "$as_me:$LINENO: checking for $ac_word" >&5
1484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1485 if test "${ac_cv_prog_CC+set}" = set; then
1486 echo $ECHO_N "(cached) $ECHO_C" >&6
1488 if test -n "$CC"; then
1489 ac_cv_prog_CC="$CC" # Let the user override the test.
1492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1496 test -z "$as_dir" && as_dir=.
1497 for ac_exec_ext in '' $ac_executable_extensions; do
1498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1499 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1500 ac_prog_rejected=yes
1504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1510 if test $ac_prog_rejected = yes; then
1511 # We found a bogon in the path, so make sure we never use it.
1512 set dummy $ac_cv_prog_CC
1514 if test $# != 0; then
1515 # We chose a different compiler from the bogus one.
1516 # However, it has the same basename, so the bogon will be chosen
1517 # first if we set CC to just the basename; use the full file name.
1519 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1525 if test -n "$CC"; then
1526 echo "$as_me:$LINENO: result: $CC" >&5
1527 echo "${ECHO_T}$CC" >&6
1529 echo "$as_me:$LINENO: result: no" >&5
1530 echo "${ECHO_T}no" >&6
1534 if test -z "$CC"; then
1535 if test -n "$ac_tool_prefix"; then
1538 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1539 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1540 echo "$as_me:$LINENO: checking for $ac_word" >&5
1541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1542 if test "${ac_cv_prog_CC+set}" = set; then
1543 echo $ECHO_N "(cached) $ECHO_C" >&6
1545 if test -n "$CC"; then
1546 ac_cv_prog_CC="$CC" # Let the user override the test.
1548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1552 test -z "$as_dir" && as_dir=.
1553 for ac_exec_ext in '' $ac_executable_extensions; do
1554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1555 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1565 if test -n "$CC"; then
1566 echo "$as_me:$LINENO: result: $CC" >&5
1567 echo "${ECHO_T}$CC" >&6
1569 echo "$as_me:$LINENO: result: no" >&5
1570 echo "${ECHO_T}no" >&6
1573 test -n "$CC" && break
1576 if test -z "$CC"; then
1580 # Extract the first word of "$ac_prog", so it can be a program name with args.
1581 set dummy $ac_prog; ac_word=$2
1582 echo "$as_me:$LINENO: checking for $ac_word" >&5
1583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1584 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1585 echo $ECHO_N "(cached) $ECHO_C" >&6
1587 if test -n "$ac_ct_CC"; then
1588 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1594 test -z "$as_dir" && as_dir=.
1595 for ac_exec_ext in '' $ac_executable_extensions; do
1596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1597 ac_cv_prog_ac_ct_CC="$ac_prog"
1598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1606 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1607 if test -n "$ac_ct_CC"; then
1608 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1609 echo "${ECHO_T}$ac_ct_CC" >&6
1611 echo "$as_me:$LINENO: result: no" >&5
1612 echo "${ECHO_T}no" >&6
1615 test -n "$ac_ct_CC" && break
1624 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1625 See \`config.log' for more details.
" >&5
1626 echo "$as_me: error
: no acceptable C compiler found
in \
$PATH
1627 See \
`config.log' for more details." >&2;}
1628 { (exit 1); exit 1; }; }
1630 # Provide some information about the compiler.
1631 echo "$as_me:$LINENO:" \
1632 "checking for C compiler version" >&5
1633 ac_compiler=`set X
$ac_compile; echo $2`
1634 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1635 (eval $ac_compiler --version </dev/null >&5) 2>&5
1637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1638 (exit $ac_status); }
1639 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1640 (eval $ac_compiler -v </dev/null >&5) 2>&5
1642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1643 (exit $ac_status); }
1644 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1645 (eval $ac_compiler -V </dev/null >&5) 2>&5
1647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1648 (exit $ac_status); }
1650 cat >conftest.$ac_ext <<_ACEOF
1653 cat confdefs.h >>conftest.$ac_ext
1654 cat >>conftest.$ac_ext <<_ACEOF
1655 /* end confdefs.h. */
1665 ac_clean_files_save=$ac_clean_files
1666 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1667 # Try to create an executable without -o first, disregard a.out.
1668 # It will help us diagnose broken compilers, and finding out an intuition
1670 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1671 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1672 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
1673 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1674 (eval $ac_link_default) 2>&5
1676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1677 (exit $ac_status); }; then
1678 # Find the output, starting from the most likely. This scheme is
1679 # not robust to junk in `.
', hence go to wildcards (a.*) only as a last
1682 # Be careful to initialize this variable, since it used to be cached.
1683 # Otherwise an old cache value of `no' led to
`EXEEXT = no' in a Makefile.
1685 # b.out is created by i960 compilers.
1686 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1688 test -f "$ac_file" || continue
1690 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1693 # This is the source file.
1696 # We found the default executable, but exeext='' is most
1700 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1701 # FIXME: I believe we export ac_cv_exeext for Libtool,
1702 # but it would be cool to find out if it's true. Does anybody
1703 # maintain Libtool? --akim.
1711 echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1714 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1715 See \`config.log
' for more details." >&5
1716 echo "$as_me: error: C compiler cannot create executables
1717 See \`config.log' for more details.
" >&2;}
1718 { (exit 77); exit 77; }; }
1721 ac_exeext=$ac_cv_exeext
1722 echo "$as_me:$LINENO: result
: $ac_file" >&5
1723 echo "${ECHO_T}$ac_file" >&6
1725 # Check the compiler produces executables we can run. If not, either
1726 # the compiler is broken, or we cross compile.
1727 echo "$as_me:$LINENO: checking whether the C compiler works
" >&5
1728 echo $ECHO_N "checking whether the C compiler works...
$ECHO_C" >&6
1729 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1730 # If not cross compiling, check that we can run a simple program.
1731 if test "$cross_compiling" != yes; then
1732 if { ac_try='./$ac_file'
1733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1736 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
1737 (exit $ac_status); }; }; then
1740 if test "$cross_compiling" = maybe; then
1743 { { echo "$as_me:$LINENO: error
: cannot run C compiled programs.
1744 If you meant to cross compile
, use \
`--host'.
1745 See \`config.log
' for more details." >&5
1746 echo "$as_me: error: cannot run C compiled programs.
1747 If you meant to cross compile, use \`--host'.
1748 See \
`config.log' for more details." >&2;}
1749 { (exit 1); exit 1; }; }
1753 echo "$as_me:$LINENO: result: yes" >&5
1754 echo "${ECHO_T}yes" >&6
1756 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1757 ac_clean_files=$ac_clean_files_save
1758 # Check the compiler produces executables we can run. If not, either
1759 # the compiler is broken, or we cross compile.
1760 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1761 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1762 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1763 echo "${ECHO_T}$cross_compiling" >&6
1765 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1766 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1768 (eval $ac_link) 2>&5
1770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1771 (exit $ac_status); }; then
1772 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
1773 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
1774 # work properly (i.e., refer to `conftest.exe'), while it won't with
1776 for ac_file
in conftest.exe conftest conftest.
*; do
1777 test -f "$ac_file" ||
continue
1779 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1780 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1787 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1788 See \`config.log' for more details." >&5
1789 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1790 See \`config.log' for more details." >&2;}
1791 { (exit 1); exit 1; }; }
1794 rm -f conftest
$ac_cv_exeext
1795 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1796 echo "${ECHO_T}$ac_cv_exeext" >&6
1798 rm -f conftest.
$ac_ext
1799 EXEEXT
=$ac_cv_exeext
1801 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1802 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1803 if test "${ac_cv_objext+set}" = set; then
1804 echo $ECHO_N "(cached) $ECHO_C" >&6
1806 cat >conftest.
$ac_ext <<_ACEOF
1809 cat confdefs.h
>>conftest.
$ac_ext
1810 cat >>conftest.
$ac_ext <<_ACEOF
1811 /* end confdefs.h. */
1821 rm -f conftest.o conftest.obj
1822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1823 (eval $ac_compile) 2>&5
1825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1826 (exit $ac_status); }; then
1827 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1829 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
1830 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1835 echo "$as_me: failed program was:" >&5
1836 sed 's/^/| /' conftest.
$ac_ext >&5
1838 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1839 See \`config.log' for more details." >&5
1840 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1841 See \`config.log' for more details." >&2;}
1842 { (exit 1); exit 1; }; }
1845 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1847 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1848 echo "${ECHO_T}$ac_cv_objext" >&6
1849 OBJEXT
=$ac_cv_objext
1851 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1852 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1853 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1854 echo $ECHO_N "(cached) $ECHO_C" >&6
1856 cat >conftest.
$ac_ext <<_ACEOF
1859 cat confdefs.h
>>conftest.
$ac_ext
1860 cat >>conftest.
$ac_ext <<_ACEOF
1861 /* end confdefs.h. */
1874 rm -f conftest.
$ac_objext
1875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1876 (eval $ac_compile) 2>conftest.er1
1878 grep -v '^ *+' conftest.er1
>conftest.err
1880 cat conftest.err
>&5
1881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1882 (exit $ac_status); } &&
1883 { ac_try
='test -z "$ac_c_werror_flag"
1884 || test ! -s conftest.err'
1885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889 (exit $ac_status); }; } &&
1890 { ac_try
='test -s conftest.$ac_objext'
1891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1895 (exit $ac_status); }; }; then
1898 echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.
$ac_ext >&5
1903 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
1904 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
1907 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1908 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1909 GCC
=`test $ac_compiler_gnu = yes && echo yes`
1910 ac_test_CFLAGS
=${CFLAGS+set}
1911 ac_save_CFLAGS
=$CFLAGS
1913 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1914 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1915 if test "${ac_cv_prog_cc_g+set}" = set; then
1916 echo $ECHO_N "(cached) $ECHO_C" >&6
1918 cat >conftest.
$ac_ext <<_ACEOF
1921 cat confdefs.h
>>conftest.
$ac_ext
1922 cat >>conftest.
$ac_ext <<_ACEOF
1923 /* end confdefs.h. */
1933 rm -f conftest.
$ac_objext
1934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1935 (eval $ac_compile) 2>conftest.er1
1937 grep -v '^ *+' conftest.er1
>conftest.err
1939 cat conftest.err
>&5
1940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941 (exit $ac_status); } &&
1942 { ac_try
='test -z "$ac_c_werror_flag"
1943 || test ! -s conftest.err'
1944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1948 (exit $ac_status); }; } &&
1949 { ac_try
='test -s conftest.$ac_objext'
1950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1954 (exit $ac_status); }; }; then
1957 echo "$as_me: failed program was:" >&5
1958 sed 's/^/| /' conftest.
$ac_ext >&5
1962 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
1964 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1965 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1966 if test "$ac_test_CFLAGS" = set; then
1967 CFLAGS
=$ac_save_CFLAGS
1968 elif test $ac_cv_prog_cc_g = yes; then
1969 if test "$GCC" = yes; then
1975 if test "$GCC" = yes; then
1981 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1982 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1983 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1984 echo $ECHO_N "(cached) $ECHO_C" >&6
1986 ac_cv_prog_cc_stdc
=no
1988 cat >conftest.
$ac_ext <<_ACEOF
1991 cat confdefs.h
>>conftest.
$ac_ext
1992 cat >>conftest.
$ac_ext <<_ACEOF
1993 /* end confdefs.h. */
1996 #include <sys/types.h>
1997 #include <sys/stat.h>
1998 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1999 struct buf { int x; };
2000 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2001 static char *e (p, i)
2007 static char *f (char * (*g) (char **, int), char **p, ...)
2012 s = g (p, va_arg (v,int));
2017 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2018 function prototypes and stuff, but not '\xHH' hex character constants.
2019 These don't provoke an error unfortunately, instead are silently treated
2020 as 'x'. The following induces an error, until -std1 is added to get
2021 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2022 array size at least. It's necessary to write '\x00'==0 to get something
2023 that's true only with -std1. */
2024 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2026 int test (int i, double x);
2027 struct s1 {int (*f) (int a);};
2028 struct s2 {int (*f) (double a);};
2029 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2035 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2040 # Don't try gcc -ansi; that turns off useful extensions and
2041 # breaks some systems' header files.
2042 # AIX -qlanglvl=ansi
2043 # Ultrix and OSF/1 -std1
2044 # HP-UX 10.20 and later -Ae
2045 # HP-UX older versions -Aa -D_HPUX_SOURCE
2046 # SVR4 -Xc -D__EXTENSIONS__
2047 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2049 CC
="$ac_save_CC $ac_arg"
2050 rm -f conftest.
$ac_objext
2051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2052 (eval $ac_compile) 2>conftest.er1
2054 grep -v '^ *+' conftest.er1
>conftest.err
2056 cat conftest.err
>&5
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); } &&
2059 { ac_try
='test -z "$ac_c_werror_flag"
2060 || test ! -s conftest.err'
2061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065 (exit $ac_status); }; } &&
2066 { ac_try
='test -s conftest.$ac_objext'
2067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071 (exit $ac_status); }; }; then
2072 ac_cv_prog_cc_stdc
=$ac_arg
2075 echo "$as_me: failed program was:" >&5
2076 sed 's/^/| /' conftest.
$ac_ext >&5
2079 rm -f conftest.err conftest.
$ac_objext
2081 rm -f conftest.
$ac_ext conftest.
$ac_objext
2086 case "x$ac_cv_prog_cc_stdc" in
2088 echo "$as_me:$LINENO: result: none needed" >&5
2089 echo "${ECHO_T}none needed" >&6 ;;
2091 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2092 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2093 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2096 # Some people use a C++ compiler to compile C. Since we use `exit',
2097 # in C++ we need to declare it. In case someone uses the same compiler
2098 # for both compiling C and C++ we need to have the C++ compiler decide
2099 # the declaration of exit, since it's the most demanding environment.
2100 cat >conftest.
$ac_ext <<_ACEOF
2105 rm -f conftest.
$ac_objext
2106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2107 (eval $ac_compile) 2>conftest.er1
2109 grep -v '^ *+' conftest.er1
>conftest.err
2111 cat conftest.err
>&5
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); } &&
2114 { ac_try
='test -z "$ac_c_werror_flag"
2115 || test ! -s conftest.err'
2116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }; } &&
2121 { ac_try
='test -s conftest.$ac_objext'
2122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126 (exit $ac_status); }; }; then
2127 for ac_declaration
in \
2129 'extern "C" void std::exit (int) throw (); using std::exit;' \
2130 'extern "C" void std::exit (int); using std::exit;' \
2131 'extern "C" void exit (int) throw ();' \
2132 'extern "C" void exit (int);' \
2135 cat >conftest.
$ac_ext <<_ACEOF
2138 cat confdefs.h
>>conftest.
$ac_ext
2139 cat >>conftest.
$ac_ext <<_ACEOF
2140 /* end confdefs.h. */
2151 rm -f conftest.
$ac_objext
2152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2153 (eval $ac_compile) 2>conftest.er1
2155 grep -v '^ *+' conftest.er1
>conftest.err
2157 cat conftest.err
>&5
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); } &&
2160 { ac_try
='test -z "$ac_c_werror_flag"
2161 || test ! -s conftest.err'
2162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166 (exit $ac_status); }; } &&
2167 { ac_try
='test -s conftest.$ac_objext'
2168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }; }; then
2175 echo "$as_me: failed program was:" >&5
2176 sed 's/^/| /' conftest.
$ac_ext >&5
2180 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2181 cat >conftest.
$ac_ext <<_ACEOF
2184 cat confdefs.h
>>conftest.
$ac_ext
2185 cat >>conftest.
$ac_ext <<_ACEOF
2186 /* end confdefs.h. */
2196 rm -f conftest.
$ac_objext
2197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2198 (eval $ac_compile) 2>conftest.er1
2200 grep -v '^ *+' conftest.er1
>conftest.err
2202 cat conftest.err
>&5
2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204 (exit $ac_status); } &&
2205 { ac_try
='test -z "$ac_c_werror_flag"
2206 || test ! -s conftest.err'
2207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 (exit $ac_status); }; } &&
2212 { ac_try
='test -s conftest.$ac_objext'
2213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217 (exit $ac_status); }; }; then
2220 echo "$as_me: failed program was:" >&5
2221 sed 's/^/| /' conftest.
$ac_ext >&5
2224 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2227 if test -n "$ac_declaration"; then
2228 echo '#ifdef __cplusplus' >>confdefs.h
2229 echo $ac_declaration >>confdefs.h
2230 echo '#endif' >>confdefs.h
2234 echo "$as_me: failed program was:" >&5
2235 sed 's/^/| /' conftest.
$ac_ext >&5
2238 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2240 ac_cpp
='$CPP $CPPFLAGS'
2241 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2242 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2243 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2246 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
2247 if test -f $ac_dir/install-sh
; then
2249 ac_install_sh
="$ac_aux_dir/install-sh -c"
2251 elif test -f $ac_dir/install.sh
; then
2253 ac_install_sh
="$ac_aux_dir/install.sh -c"
2255 elif test -f $ac_dir/shtool
; then
2257 ac_install_sh
="$ac_aux_dir/shtool install -c"
2261 if test -z "$ac_aux_dir"; then
2262 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2263 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2264 { (exit 1); exit 1; }; }
2266 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
2267 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
2268 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2270 # Find a good install program. We prefer a C program (faster),
2271 # so one script is as good as another. But avoid the broken or
2272 # incompatible versions:
2273 # SysV /etc/install, /usr/sbin/install
2274 # SunOS /usr/etc/install
2275 # IRIX /sbin/install
2277 # AmigaOS /C/install, which installs bootblocks on floppy discs
2278 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2279 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2280 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2281 # OS/2's system install, which has a completely different semantic
2282 # ./install, which can be erroneously created by make from ./install.sh.
2283 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2284 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2285 if test -z "$INSTALL"; then
2286 if test "${ac_cv_path_install+set}" = set; then
2287 echo $ECHO_N "(cached) $ECHO_C" >&6
2289 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2293 test -z "$as_dir" && as_dir
=.
2294 # Account for people who put trailing slashes in PATH elements.
2296 .
/ | .
// |
/cC
/* | \
2297 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2298 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2301 # OSF1 and SCO ODT 3.0 have their own names for install.
2302 # Don't use installbsd from OSF since it installs stuff as root
2304 for ac_prog
in ginstall scoinst
install; do
2305 for ac_exec_ext
in '' $ac_executable_extensions; do
2306 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2307 if test $ac_prog = install &&
2308 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2309 # AIX install. It has an incompatible calling convention.
2311 elif test $ac_prog = install &&
2312 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2313 # program-specific install script used by HP pwplus--don't use.
2316 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2328 if test "${ac_cv_path_install+set}" = set; then
2329 INSTALL
=$ac_cv_path_install
2331 # As a last resort, use the slow shell script. We don't cache a
2332 # path for INSTALL within a source directory, because that will
2333 # break other packages using the cache if that directory is
2334 # removed, or if the path is relative.
2335 INSTALL
=$ac_install_sh
2338 echo "$as_me:$LINENO: result: $INSTALL" >&5
2339 echo "${ECHO_T}$INSTALL" >&6
2341 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2342 # It thinks the first close brace ends the variable substitution.
2343 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2345 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2347 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2350 echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
2351 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
2352 if test "${ac_cv_lib_curses_initscr+set}" = set; then
2353 echo $ECHO_N "(cached) $ECHO_C" >&6
2355 ac_check_lib_save_LIBS
=$LIBS
2356 LIBS
="-lcurses $LIBS"
2357 cat >conftest.
$ac_ext <<_ACEOF
2360 cat confdefs.h
>>conftest.
$ac_ext
2361 cat >>conftest.
$ac_ext <<_ACEOF
2362 /* end confdefs.h. */
2364 /* Override any gcc2 internal prototype to avoid an error. */
2368 /* We use char because int might match the return type of a gcc2
2369 builtin and then its argument prototype would still apply. */
2379 rm -f conftest.
$ac_objext conftest
$ac_exeext
2380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2381 (eval $ac_link) 2>conftest.er1
2383 grep -v '^ *+' conftest.er1
>conftest.err
2385 cat conftest.err
>&5
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); } &&
2388 { ac_try
='test -z "$ac_c_werror_flag"
2389 || test ! -s conftest.err'
2390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }; } &&
2395 { ac_try
='test -s conftest$ac_exeext'
2396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; }; then
2401 ac_cv_lib_curses_initscr
=yes
2403 echo "$as_me: failed program was:" >&5
2404 sed 's/^/| /' conftest.
$ac_ext >&5
2406 ac_cv_lib_curses_initscr
=no
2408 rm -f conftest.err conftest.
$ac_objext \
2409 conftest
$ac_exeext conftest.
$ac_ext
2410 LIBS
=$ac_check_lib_save_LIBS
2412 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
2413 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
2414 if test $ac_cv_lib_curses_initscr = yes; then
2415 LIBS
="$LIBS -lcurses"
2417 echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
2418 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
2419 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
2422 ac_check_lib_save_LIBS
=$LIBS
2423 LIBS
="-lncurses $LIBS"
2425 cat >conftest.
$ac_ext <<_ACEOF
2428 cat confdefs.h
>>conftest.
$ac_ext
2429 cat >>conftest.
$ac_ext <<_ACEOF
2430 /* end confdefs.h. */
2432 /* Override any gcc2 internal prototype to avoid an error. */
2436 /* We use char because int might match the return type of a gcc2
2437 builtin and then its argument prototype would still apply. */
2447 rm -f conftest.
$ac_objext conftest
$ac_exeext
2448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2449 (eval $ac_link) 2>conftest.er1
2451 grep -v '^ *+' conftest.er1
>conftest.err
2453 cat conftest.err
>&5
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); } &&
2456 { ac_try
='test -z "$ac_c_werror_flag"
2457 || test ! -s conftest.err'
2458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); }; } &&
2463 { ac_try
='test -s conftest$ac_exeext'
2464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; }; then
2469 ac_cv_lib_ncurses_initscr
=yes
2471 echo "$as_me: failed program was:" >&5
2472 sed 's/^/| /' conftest.
$ac_ext >&5
2474 ac_cv_lib_ncurses_initscr
=no
2476 rm -f conftest.err conftest.
$ac_objext \
2477 conftest
$ac_exeext conftest.
$ac_ext
2478 LIBS
=$ac_check_lib_save_LIBS
2480 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
2481 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
2482 if test $ac_cv_lib_ncurses_initscr = yes; then
2483 LIBS
="$LIBS -lncurses"
2489 echo "$as_me:$LINENO: checking for use_default_colors" >&5
2490 echo $ECHO_N "checking for use_default_colors... $ECHO_C" >&6
2491 if test "${ac_cv_func_use_default_colors+set}" = set; then
2492 echo $ECHO_N "(cached) $ECHO_C" >&6
2494 cat >conftest.
$ac_ext <<_ACEOF
2497 cat confdefs.h
>>conftest.
$ac_ext
2498 cat >>conftest.
$ac_ext <<_ACEOF
2499 /* end confdefs.h. */
2500 /* Define use_default_colors to an innocuous variant, in case <limits.h> declares use_default_colors.
2501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2502 #define use_default_colors innocuous_use_default_colors
2504 /* System header to define __stub macros and hopefully few prototypes,
2505 which can conflict with char use_default_colors (); below.
2506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2507 <limits.h> exists even on freestanding compilers. */
2510 # include <limits.h>
2512 # include <assert.h>
2515 #undef use_default_colors
2517 /* Override any gcc2 internal prototype to avoid an error. */
2522 /* We use char because int might match the return type of a gcc2
2523 builtin and then its argument prototype would still apply. */
2524 char use_default_colors ();
2525 /* The GNU C library defines this for functions which it implements
2526 to always fail with ENOSYS. Some functions are actually named
2527 something starting with __ and the normal name is an alias. */
2528 #if defined (__stub_use_default_colors) || defined (__stub___use_default_colors)
2531 char (*f) () = use_default_colors;
2540 return f != use_default_colors;
2545 rm -f conftest.
$ac_objext conftest
$ac_exeext
2546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2547 (eval $ac_link) 2>conftest.er1
2549 grep -v '^ *+' conftest.er1
>conftest.err
2551 cat conftest.err
>&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); } &&
2554 { ac_try
='test -z "$ac_c_werror_flag"
2555 || test ! -s conftest.err'
2556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); }; } &&
2561 { ac_try
='test -s conftest$ac_exeext'
2562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; }; then
2567 ac_cv_func_use_default_colors
=yes
2569 echo "$as_me: failed program was:" >&5
2570 sed 's/^/| /' conftest.
$ac_ext >&5
2572 ac_cv_func_use_default_colors
=no
2574 rm -f conftest.err conftest.
$ac_objext \
2575 conftest
$ac_exeext conftest.
$ac_ext
2577 echo "$as_me:$LINENO: result: $ac_cv_func_use_default_colors" >&5
2578 echo "${ECHO_T}$ac_cv_func_use_default_colors" >&6
2579 if test $ac_cv_func_use_default_colors = yes; then
2581 cat >>confdefs.h
<<\_ACEOF
2589 # Check whether --enable-largefile or --disable-largefile was given.
2590 if test "${enable_largefile+set}" = set; then
2591 enableval
="$enable_largefile"
2594 if test "$enable_largefile" != no
; then
2596 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
2597 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
2598 if test "${ac_cv_sys_largefile_CC+set}" = set; then
2599 echo $ECHO_N "(cached) $ECHO_C" >&6
2601 ac_cv_sys_largefile_CC
=no
2602 if test "$GCC" != yes; then
2605 # IRIX 6.2 and later do not support large files by default,
2606 # so use the C compiler's -n32 option if that helps.
2607 cat >conftest.
$ac_ext <<_ACEOF
2610 cat confdefs.h
>>conftest.
$ac_ext
2611 cat >>conftest.
$ac_ext <<_ACEOF
2612 /* end confdefs.h. */
2613 #include <sys/types.h>
2614 /* Check that off_t can represent 2**63 - 1 correctly.
2615 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2616 since some C++ compilers masquerading as C compilers
2617 incorrectly reject 9223372036854775807. */
2618 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2619 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2620 && LARGE_OFF_T % 2147483647 == 1)
2630 rm -f conftest.
$ac_objext
2631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2632 (eval $ac_compile) 2>conftest.er1
2634 grep -v '^ *+' conftest.er1
>conftest.err
2636 cat conftest.err
>&5
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); } &&
2639 { ac_try
='test -z "$ac_c_werror_flag"
2640 || test ! -s conftest.err'
2641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645 (exit $ac_status); }; } &&
2646 { ac_try
='test -s conftest.$ac_objext'
2647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); }; }; then
2654 echo "$as_me: failed program was:" >&5
2655 sed 's/^/| /' conftest.
$ac_ext >&5
2658 rm -f conftest.err conftest.
$ac_objext
2660 rm -f conftest.
$ac_objext
2661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2662 (eval $ac_compile) 2>conftest.er1
2664 grep -v '^ *+' conftest.er1
>conftest.err
2666 cat conftest.err
>&5
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); } &&
2669 { ac_try
='test -z "$ac_c_werror_flag"
2670 || test ! -s conftest.err'
2671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }; } &&
2676 { ac_try
='test -s conftest.$ac_objext'
2677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }; }; then
2682 ac_cv_sys_largefile_CC
=' -n32'; break
2684 echo "$as_me: failed program was:" >&5
2685 sed 's/^/| /' conftest.
$ac_ext >&5
2688 rm -f conftest.err conftest.
$ac_objext
2692 rm -f conftest.
$ac_ext
2695 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
2696 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
2697 if test "$ac_cv_sys_largefile_CC" != no
; then
2698 CC
=$CC$ac_cv_sys_largefile_CC
2701 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
2702 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
2703 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
2704 echo $ECHO_N "(cached) $ECHO_C" >&6
2707 ac_cv_sys_file_offset_bits
=no
2708 cat >conftest.
$ac_ext <<_ACEOF
2711 cat confdefs.h
>>conftest.
$ac_ext
2712 cat >>conftest.
$ac_ext <<_ACEOF
2713 /* end confdefs.h. */
2714 #include <sys/types.h>
2715 /* Check that off_t can represent 2**63 - 1 correctly.
2716 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2717 since some C++ compilers masquerading as C compilers
2718 incorrectly reject 9223372036854775807. */
2719 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2720 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2721 && LARGE_OFF_T % 2147483647 == 1)
2731 rm -f conftest.
$ac_objext
2732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2733 (eval $ac_compile) 2>conftest.er1
2735 grep -v '^ *+' conftest.er1
>conftest.err
2737 cat conftest.err
>&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); } &&
2740 { ac_try
='test -z "$ac_c_werror_flag"
2741 || test ! -s conftest.err'
2742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }; } &&
2747 { ac_try
='test -s conftest.$ac_objext'
2748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; }; then
2755 echo "$as_me: failed program was:" >&5
2756 sed 's/^/| /' conftest.
$ac_ext >&5
2759 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2760 cat >conftest.
$ac_ext <<_ACEOF
2763 cat confdefs.h
>>conftest.
$ac_ext
2764 cat >>conftest.
$ac_ext <<_ACEOF
2765 /* end confdefs.h. */
2766 #define _FILE_OFFSET_BITS 64
2767 #include <sys/types.h>
2768 /* Check that off_t can represent 2**63 - 1 correctly.
2769 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2770 since some C++ compilers masquerading as C compilers
2771 incorrectly reject 9223372036854775807. */
2772 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2773 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2774 && LARGE_OFF_T % 2147483647 == 1)
2784 rm -f conftest.
$ac_objext
2785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2786 (eval $ac_compile) 2>conftest.er1
2788 grep -v '^ *+' conftest.er1
>conftest.err
2790 cat conftest.err
>&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); } &&
2793 { ac_try
='test -z "$ac_c_werror_flag"
2794 || test ! -s conftest.err'
2795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); }; } &&
2800 { ac_try
='test -s conftest.$ac_objext'
2801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); }; }; then
2806 ac_cv_sys_file_offset_bits
=64; break
2808 echo "$as_me: failed program was:" >&5
2809 sed 's/^/| /' conftest.
$ac_ext >&5
2812 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2816 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
2817 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
2818 if test "$ac_cv_sys_file_offset_bits" != no
; then
2820 cat >>confdefs.h
<<_ACEOF
2821 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
2826 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
2827 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
2828 if test "${ac_cv_sys_large_files+set}" = set; then
2829 echo $ECHO_N "(cached) $ECHO_C" >&6
2832 ac_cv_sys_large_files
=no
2833 cat >conftest.
$ac_ext <<_ACEOF
2836 cat confdefs.h
>>conftest.
$ac_ext
2837 cat >>conftest.
$ac_ext <<_ACEOF
2838 /* end confdefs.h. */
2839 #include <sys/types.h>
2840 /* Check that off_t can represent 2**63 - 1 correctly.
2841 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2842 since some C++ compilers masquerading as C compilers
2843 incorrectly reject 9223372036854775807. */
2844 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2845 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2846 && LARGE_OFF_T % 2147483647 == 1)
2856 rm -f conftest.
$ac_objext
2857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2858 (eval $ac_compile) 2>conftest.er1
2860 grep -v '^ *+' conftest.er1
>conftest.err
2862 cat conftest.err
>&5
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); } &&
2865 { ac_try
='test -z "$ac_c_werror_flag"
2866 || test ! -s conftest.err'
2867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871 (exit $ac_status); }; } &&
2872 { ac_try
='test -s conftest.$ac_objext'
2873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); }; }; then
2880 echo "$as_me: failed program was:" >&5
2881 sed 's/^/| /' conftest.
$ac_ext >&5
2884 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2885 cat >conftest.
$ac_ext <<_ACEOF
2888 cat confdefs.h
>>conftest.
$ac_ext
2889 cat >>conftest.
$ac_ext <<_ACEOF
2890 /* end confdefs.h. */
2891 #define _LARGE_FILES 1
2892 #include <sys/types.h>
2893 /* Check that off_t can represent 2**63 - 1 correctly.
2894 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2895 since some C++ compilers masquerading as C compilers
2896 incorrectly reject 9223372036854775807. */
2897 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2898 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2899 && LARGE_OFF_T % 2147483647 == 1)
2909 rm -f conftest.
$ac_objext
2910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2911 (eval $ac_compile) 2>conftest.er1
2913 grep -v '^ *+' conftest.er1
>conftest.err
2915 cat conftest.err
>&5
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); } &&
2918 { ac_try
='test -z "$ac_c_werror_flag"
2919 || test ! -s conftest.err'
2920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }; } &&
2925 { ac_try
='test -s conftest.$ac_objext'
2926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }; }; then
2931 ac_cv_sys_large_files
=1; break
2933 echo "$as_me: failed program was:" >&5
2934 sed 's/^/| /' conftest.
$ac_ext >&5
2937 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2941 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
2942 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
2943 if test "$ac_cv_sys_large_files" != no
; then
2945 cat >>confdefs.h
<<_ACEOF
2946 #define _LARGE_FILES $ac_cv_sys_large_files
2955 ac_cpp
='$CPP $CPPFLAGS'
2956 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2957 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2958 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2959 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2960 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2961 # On Suns, sometimes $CPP names a directory.
2962 if test -n "$CPP" && test -d "$CPP"; then
2965 if test -z "$CPP"; then
2966 if test "${ac_cv_prog_CPP+set}" = set; then
2967 echo $ECHO_N "(cached) $ECHO_C" >&6
2969 # Double quotes because CPP needs to be expanded
2970 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2973 for ac_c_preproc_warn_flag
in '' yes
2975 # Use a header file that comes with gcc, so configuring glibc
2976 # with a fresh cross-compiler works.
2977 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2978 # <limits.h> exists even on freestanding compilers.
2979 # On the NeXT, cc -E runs the code through the compiler's parser,
2980 # not just through cpp. "Syntax error" is here to catch this case.
2981 cat >conftest.
$ac_ext <<_ACEOF
2984 cat confdefs.h
>>conftest.
$ac_ext
2985 cat >>conftest.
$ac_ext <<_ACEOF
2986 /* end confdefs.h. */
2988 # include <limits.h>
2990 # include <assert.h>
2994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2995 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2997 grep -v '^ *+' conftest.er1
>conftest.err
2999 cat conftest.err
>&5
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); } >/dev
/null
; then
3002 if test -s conftest.err
; then
3003 ac_cpp_err
=$ac_c_preproc_warn_flag
3004 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3011 if test -z "$ac_cpp_err"; then
3014 echo "$as_me: failed program was:" >&5
3015 sed 's/^/| /' conftest.
$ac_ext >&5
3017 # Broken: fails on valid input.
3020 rm -f conftest.err conftest.
$ac_ext
3022 # OK, works on sane cases. Now check whether non-existent headers
3023 # can be detected and how.
3024 cat >conftest.
$ac_ext <<_ACEOF
3027 cat confdefs.h
>>conftest.
$ac_ext
3028 cat >>conftest.
$ac_ext <<_ACEOF
3029 /* end confdefs.h. */
3030 #include <ac_nonexistent.h>
3032 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3033 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3035 grep -v '^ *+' conftest.er1
>conftest.err
3037 cat conftest.err
>&5
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); } >/dev
/null
; then
3040 if test -s conftest.err
; then
3041 ac_cpp_err
=$ac_c_preproc_warn_flag
3042 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3049 if test -z "$ac_cpp_err"; then
3050 # Broken: success on invalid input.
3053 echo "$as_me: failed program was:" >&5
3054 sed 's/^/| /' conftest.
$ac_ext >&5
3056 # Passes both tests.
3060 rm -f conftest.err conftest.
$ac_ext
3063 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3064 rm -f conftest.err conftest.
$ac_ext
3065 if $ac_preproc_ok; then
3077 echo "$as_me:$LINENO: result: $CPP" >&5
3078 echo "${ECHO_T}$CPP" >&6
3080 for ac_c_preproc_warn_flag
in '' yes
3082 # Use a header file that comes with gcc, so configuring glibc
3083 # with a fresh cross-compiler works.
3084 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3085 # <limits.h> exists even on freestanding compilers.
3086 # On the NeXT, cc -E runs the code through the compiler's parser,
3087 # not just through cpp. "Syntax error" is here to catch this case.
3088 cat >conftest.
$ac_ext <<_ACEOF
3091 cat confdefs.h
>>conftest.
$ac_ext
3092 cat >>conftest.
$ac_ext <<_ACEOF
3093 /* end confdefs.h. */
3095 # include <limits.h>
3097 # include <assert.h>
3101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3102 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3104 grep -v '^ *+' conftest.er1
>conftest.err
3106 cat conftest.err
>&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); } >/dev
/null
; then
3109 if test -s conftest.err
; then
3110 ac_cpp_err
=$ac_c_preproc_warn_flag
3111 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3118 if test -z "$ac_cpp_err"; then
3121 echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.
$ac_ext >&5
3124 # Broken: fails on valid input.
3127 rm -f conftest.err conftest.
$ac_ext
3129 # OK, works on sane cases. Now check whether non-existent headers
3130 # can be detected and how.
3131 cat >conftest.
$ac_ext <<_ACEOF
3134 cat confdefs.h
>>conftest.
$ac_ext
3135 cat >>conftest.
$ac_ext <<_ACEOF
3136 /* end confdefs.h. */
3137 #include <ac_nonexistent.h>
3139 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3140 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3142 grep -v '^ *+' conftest.er1
>conftest.err
3144 cat conftest.err
>&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); } >/dev
/null
; then
3147 if test -s conftest.err
; then
3148 ac_cpp_err
=$ac_c_preproc_warn_flag
3149 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3156 if test -z "$ac_cpp_err"; then
3157 # Broken: success on invalid input.
3160 echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.
$ac_ext >&5
3163 # Passes both tests.
3167 rm -f conftest.err conftest.
$ac_ext
3170 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3171 rm -f conftest.err conftest.
$ac_ext
3172 if $ac_preproc_ok; then
3175 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3176 See \`config.log' for more details." >&5
3177 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3178 See \`config.log' for more details." >&2;}
3179 { (exit 1); exit 1; }; }
3183 ac_cpp
='$CPP $CPPFLAGS'
3184 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3185 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3186 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3189 echo "$as_me:$LINENO: checking for egrep" >&5
3190 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3191 if test "${ac_cv_prog_egrep+set}" = set; then
3192 echo $ECHO_N "(cached) $ECHO_C" >&6
3194 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3195 then ac_cv_prog_egrep
='grep -E'
3196 else ac_cv_prog_egrep
='egrep'
3199 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3200 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3201 EGREP
=$ac_cv_prog_egrep
3204 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3205 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3206 if test "${ac_cv_header_stdc+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3209 cat >conftest.
$ac_ext <<_ACEOF
3212 cat confdefs.h
>>conftest.
$ac_ext
3213 cat >>conftest.
$ac_ext <<_ACEOF
3214 /* end confdefs.h. */
3228 rm -f conftest.
$ac_objext
3229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3230 (eval $ac_compile) 2>conftest.er1
3232 grep -v '^ *+' conftest.er1
>conftest.err
3234 cat conftest.err
>&5
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); } &&
3237 { ac_try
='test -z "$ac_c_werror_flag"
3238 || test ! -s conftest.err'
3239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); }; } &&
3244 { ac_try
='test -s conftest.$ac_objext'
3245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); }; }; then
3250 ac_cv_header_stdc
=yes
3252 echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.
$ac_ext >&5
3255 ac_cv_header_stdc
=no
3257 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3259 if test $ac_cv_header_stdc = yes; then
3260 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3261 cat >conftest.
$ac_ext <<_ACEOF
3264 cat confdefs.h
>>conftest.
$ac_ext
3265 cat >>conftest.
$ac_ext <<_ACEOF
3266 /* end confdefs.h. */
3270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3271 $EGREP "memchr" >/dev
/null
2>&1; then
3274 ac_cv_header_stdc
=no
3280 if test $ac_cv_header_stdc = yes; then
3281 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3282 cat >conftest.
$ac_ext <<_ACEOF
3285 cat confdefs.h
>>conftest.
$ac_ext
3286 cat >>conftest.
$ac_ext <<_ACEOF
3287 /* end confdefs.h. */
3291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3292 $EGREP "free" >/dev
/null
2>&1; then
3295 ac_cv_header_stdc
=no
3301 if test $ac_cv_header_stdc = yes; then
3302 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3303 if test "$cross_compiling" = yes; then
3306 cat >conftest.
$ac_ext <<_ACEOF
3309 cat confdefs.h
>>conftest.
$ac_ext
3310 cat >>conftest.
$ac_ext <<_ACEOF
3311 /* end confdefs.h. */
3313 #if ((' ' & 0x0FF) == 0x020)
3314 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3315 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3317 # define ISLOWER(c) \
3318 (('a' <= (c) && (c) <= 'i') \
3319 || ('j' <= (c) && (c) <= 'r') \
3320 || ('s' <= (c) && (c) <= 'z'))
3321 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3324 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3329 for (i = 0; i < 256; i++)
3330 if (XOR (islower (i), ISLOWER (i))
3331 || toupper (i) != TOUPPER (i))
3336 rm -f conftest
$ac_exeext
3337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3338 (eval $ac_link) 2>&5
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); }; }; then
3349 echo "$as_me: program exited with status $ac_status" >&5
3350 echo "$as_me: failed program was:" >&5
3351 sed 's/^/| /' conftest.
$ac_ext >&5
3354 ac_cv_header_stdc
=no
3356 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3360 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3361 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3362 if test $ac_cv_header_stdc = yes; then
3364 cat >>confdefs.h
<<\_ACEOF
3365 #define STDC_HEADERS 1
3370 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
3371 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
3372 if test "${ac_cv_header_stat_broken+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 cat >conftest.
$ac_ext <<_ACEOF
3378 cat confdefs.h
>>conftest.
$ac_ext
3379 cat >>conftest.
$ac_ext <<_ACEOF
3380 /* end confdefs.h. */
3381 #include <sys/types.h>
3382 #include <sys/stat.h>
3384 #if defined(S_ISBLK) && defined(S_IFDIR)
3385 # if S_ISBLK (S_IFDIR)
3390 #if defined(S_ISBLK) && defined(S_IFCHR)
3391 # if S_ISBLK (S_IFCHR)
3396 #if defined(S_ISLNK) && defined(S_IFREG)
3397 # if S_ISLNK (S_IFREG)
3402 #if defined(S_ISSOCK) && defined(S_IFREG)
3403 # if S_ISSOCK (S_IFREG)
3409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3410 $EGREP "You lose" >/dev
/null
2>&1; then
3411 ac_cv_header_stat_broken
=yes
3413 ac_cv_header_stat_broken
=no
3418 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
3419 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
3420 if test $ac_cv_header_stat_broken = yes; then
3422 cat >>confdefs.h
<<\_ACEOF
3423 #define STAT_MACROS_BROKEN 1
3428 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3429 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3430 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3431 echo $ECHO_N "(cached) $ECHO_C" >&6
3433 cat >conftest.
$ac_ext <<_ACEOF
3436 cat confdefs.h
>>conftest.
$ac_ext
3437 cat >>conftest.
$ac_ext <<_ACEOF
3438 /* end confdefs.h. */
3439 #include <sys/types.h>
3440 #include <sys/wait.h>
3442 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3445 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3453 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3458 rm -f conftest.
$ac_objext
3459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3460 (eval $ac_compile) 2>conftest.er1
3462 grep -v '^ *+' conftest.er1
>conftest.err
3464 cat conftest.err
>&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); } &&
3467 { ac_try
='test -z "$ac_c_werror_flag"
3468 || test ! -s conftest.err'
3469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }; } &&
3474 { ac_try
='test -s conftest.$ac_objext'
3475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); }; }; then
3480 ac_cv_header_sys_wait_h
=yes
3482 echo "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.
$ac_ext >&5
3485 ac_cv_header_sys_wait_h
=no
3487 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3489 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3490 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3491 if test $ac_cv_header_sys_wait_h = yes; then
3493 cat >>confdefs.h
<<\_ACEOF
3494 #define HAVE_SYS_WAIT_H 1
3499 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3509 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3510 inttypes.h stdint.h unistd.h
3512 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3513 echo "$as_me:$LINENO: checking for $ac_header" >&5
3514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3516 echo $ECHO_N "(cached) $ECHO_C" >&6
3518 cat >conftest.
$ac_ext <<_ACEOF
3521 cat confdefs.h
>>conftest.
$ac_ext
3522 cat >>conftest.
$ac_ext <<_ACEOF
3523 /* end confdefs.h. */
3524 $ac_includes_default
3526 #include <$ac_header>
3528 rm -f conftest.
$ac_objext
3529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3530 (eval $ac_compile) 2>conftest.er1
3532 grep -v '^ *+' conftest.er1
>conftest.err
3534 cat conftest.err
>&5
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); } &&
3537 { ac_try
='test -z "$ac_c_werror_flag"
3538 || test ! -s conftest.err'
3539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); }; } &&
3544 { ac_try
='test -s conftest.$ac_objext'
3545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); }; }; then
3550 eval "$as_ac_Header=yes"
3552 echo "$as_me: failed program was:" >&5
3553 sed 's/^/| /' conftest.
$ac_ext >&5
3555 eval "$as_ac_Header=no"
3557 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3560 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3562 cat >>confdefs.h
<<_ACEOF
3563 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3575 for ac_header
in fcntl.h unistd.h libgen.h sys
/mount.h
3577 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3579 echo "$as_me:$LINENO: checking for $ac_header" >&5
3580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3582 echo $ECHO_N "(cached) $ECHO_C" >&6
3584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3587 # Is the header compilable?
3588 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3589 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3590 cat >conftest.
$ac_ext <<_ACEOF
3593 cat confdefs.h
>>conftest.
$ac_ext
3594 cat >>conftest.
$ac_ext <<_ACEOF
3595 /* end confdefs.h. */
3596 $ac_includes_default
3597 #include <$ac_header>
3599 rm -f conftest.
$ac_objext
3600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3601 (eval $ac_compile) 2>conftest.er1
3603 grep -v '^ *+' conftest.er1
>conftest.err
3605 cat conftest.err
>&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); } &&
3608 { ac_try
='test -z "$ac_c_werror_flag"
3609 || test ! -s conftest.err'
3610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); }; } &&
3615 { ac_try
='test -s conftest.$ac_objext'
3616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); }; }; then
3621 ac_header_compiler
=yes
3623 echo "$as_me: failed program was:" >&5
3624 sed 's/^/| /' conftest.
$ac_ext >&5
3626 ac_header_compiler
=no
3628 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3629 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3630 echo "${ECHO_T}$ac_header_compiler" >&6
3632 # Is the header present?
3633 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3634 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3635 cat >conftest.
$ac_ext <<_ACEOF
3638 cat confdefs.h
>>conftest.
$ac_ext
3639 cat >>conftest.
$ac_ext <<_ACEOF
3640 /* end confdefs.h. */
3641 #include <$ac_header>
3643 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3644 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3646 grep -v '^ *+' conftest.er1
>conftest.err
3648 cat conftest.err
>&5
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); } >/dev
/null
; then
3651 if test -s conftest.err
; then
3652 ac_cpp_err
=$ac_c_preproc_warn_flag
3653 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3660 if test -z "$ac_cpp_err"; then
3661 ac_header_preproc
=yes
3663 echo "$as_me: failed program was:" >&5
3664 sed 's/^/| /' conftest.
$ac_ext >&5
3666 ac_header_preproc
=no
3668 rm -f conftest.err conftest.
$ac_ext
3669 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3670 echo "${ECHO_T}$ac_header_preproc" >&6
3672 # So? What about this header?
3673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3675 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3676 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3677 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3678 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3679 ac_header_preproc
=yes
3682 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3683 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3684 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3685 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3686 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3687 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3688 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3689 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3691 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3692 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3693 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3696 ## ------------------------------------------ ##
3697 ## Report this to the AC_PACKAGE_NAME lists. ##
3698 ## ------------------------------------------ ##
3701 sed "s/^/$as_me: WARNING: /" >&2
3704 echo "$as_me:$LINENO: checking for $ac_header" >&5
3705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3709 eval "$as_ac_Header=\$ac_header_preproc"
3711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3712 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3715 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3716 cat >>confdefs.h
<<_ACEOF
3717 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3725 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3726 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3727 if test "${ac_cv_c_const+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
3730 cat >conftest.
$ac_ext <<_ACEOF
3733 cat confdefs.h
>>conftest.
$ac_ext
3734 cat >>conftest.
$ac_ext <<_ACEOF
3735 /* end confdefs.h. */
3740 /* FIXME: Include the comments suggested by Paul. */
3742 /* Ultrix mips cc rejects this. */
3743 typedef int charset[2];
3745 /* SunOS 4.1.1 cc rejects this. */
3746 char const *const *ccp;
3748 /* NEC SVR4.0.2 mips cc rejects this. */
3749 struct point {int x, y;};
3750 static struct point const zero = {0,0};
3751 /* AIX XL C 1.02.0.0 rejects this.
3752 It does not let you subtract one const X* pointer from another in
3753 an arm of an if-expression whose if-part is not a constant
3755 const char *g = "string";
3756 ccp = &g + (g ? g-g : 0);
3757 /* HPUX 7.0 cc rejects these. */
3760 ccp = (char const *const *) p;
3761 { /* SCO 3.2v4 cc rejects this. */
3763 char const *s = 0 ? (char *) 0 : (char const *) 0;
3767 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3769 const int *foo = &x[0];
3772 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3773 typedef const int *iptr;
3777 { /* AIX XL C 1.02.0.0 rejects this saying
3778 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3779 struct s { int j; const int *ap[3]; };
3780 struct s *b; b->j = 5;
3782 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3791 rm -f conftest.
$ac_objext
3792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3793 (eval $ac_compile) 2>conftest.er1
3795 grep -v '^ *+' conftest.er1
>conftest.err
3797 cat conftest.err
>&5
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); } &&
3800 { ac_try
='test -z "$ac_c_werror_flag"
3801 || test ! -s conftest.err'
3802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); }; } &&
3807 { ac_try
='test -s conftest.$ac_objext'
3808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); }; }; then
3815 echo "$as_me: failed program was:" >&5
3816 sed 's/^/| /' conftest.
$ac_ext >&5
3820 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3822 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3823 echo "${ECHO_T}$ac_cv_c_const" >&6
3824 if test $ac_cv_c_const = no
; then
3826 cat >>confdefs.h
<<\_ACEOF
3832 echo "$as_me:$LINENO: checking for size_t" >&5
3833 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3834 if test "${ac_cv_type_size_t+set}" = set; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3837 cat >conftest.
$ac_ext <<_ACEOF
3840 cat confdefs.h
>>conftest.
$ac_ext
3841 cat >>conftest.
$ac_ext <<_ACEOF
3842 /* end confdefs.h. */
3843 $ac_includes_default
3849 if (sizeof (size_t))
3855 rm -f conftest.
$ac_objext
3856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3857 (eval $ac_compile) 2>conftest.er1
3859 grep -v '^ *+' conftest.er1
>conftest.err
3861 cat conftest.err
>&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } &&
3864 { ac_try
='test -z "$ac_c_werror_flag"
3865 || test ! -s conftest.err'
3866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); }; } &&
3871 { ac_try
='test -s conftest.$ac_objext'
3872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); }; }; then
3877 ac_cv_type_size_t
=yes
3879 echo "$as_me: failed program was:" >&5
3880 sed 's/^/| /' conftest.
$ac_ext >&5
3882 ac_cv_type_size_t
=no
3884 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3886 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3887 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3888 if test $ac_cv_type_size_t = yes; then
3892 cat >>confdefs.h
<<_ACEOF
3893 #define size_t unsigned
3906 for ac_func
in memcmp memmem memrmem memrchr strdup strerror
basename
3908 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3909 echo "$as_me:$LINENO: checking for $ac_func" >&5
3910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3911 if eval "test \"\${$as_ac_var+set}\" = set"; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3914 cat >conftest.
$ac_ext <<_ACEOF
3917 cat confdefs.h
>>conftest.
$ac_ext
3918 cat >>conftest.
$ac_ext <<_ACEOF
3919 /* end confdefs.h. */
3920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3922 #define $ac_func innocuous_$ac_func
3924 /* System header to define __stub macros and hopefully few prototypes,
3925 which can conflict with char $ac_func (); below.
3926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3927 <limits.h> exists even on freestanding compilers. */
3930 # include <limits.h>
3932 # include <assert.h>
3937 /* Override any gcc2 internal prototype to avoid an error. */
3942 /* We use char because int might match the return type of a gcc2
3943 builtin and then its argument prototype would still apply. */
3945 /* The GNU C library defines this for functions which it implements
3946 to always fail with ENOSYS. Some functions are actually named
3947 something starting with __ and the normal name is an alias. */
3948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3951 char (*f) () = $ac_func;
3960 return f != $ac_func;
3965 rm -f conftest.
$ac_objext conftest
$ac_exeext
3966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3967 (eval $ac_link) 2>conftest.er1
3969 grep -v '^ *+' conftest.er1
>conftest.err
3971 cat conftest.err
>&5
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); } &&
3974 { ac_try
='test -z "$ac_c_werror_flag"
3975 || test ! -s conftest.err'
3976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); }; } &&
3981 { ac_try
='test -s conftest$ac_exeext'
3982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); }; }; then
3987 eval "$as_ac_var=yes"
3989 echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.
$ac_ext >&5
3992 eval "$as_ac_var=no"
3994 rm -f conftest.err conftest.
$ac_objext \
3995 conftest
$ac_exeext conftest.
$ac_ext
3997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3998 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3999 if test `eval echo '${'$as_ac_var'}'` = yes; then
4000 cat >>confdefs.h
<<_ACEOF
4001 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4007 if test $ac_cv_func_basename = no
; then
4008 # basename not in the default libraries. See if it's elsewhere
4009 echo "$as_me:$LINENO: checking for basename in -lgen" >&5
4010 echo $ECHO_N "checking for basename in -lgen... $ECHO_C" >&6
4011 if test "${ac_cv_lib_gen_basename+set}" = set; then
4012 echo $ECHO_N "(cached) $ECHO_C" >&6
4014 ac_check_lib_save_LIBS
=$LIBS
4016 cat >conftest.
$ac_ext <<_ACEOF
4019 cat confdefs.h
>>conftest.
$ac_ext
4020 cat >>conftest.
$ac_ext <<_ACEOF
4021 /* end confdefs.h. */
4023 /* Override any gcc2 internal prototype to avoid an error. */
4027 /* We use char because int might match the return type of a gcc2
4028 builtin and then its argument prototype would still apply. */
4038 rm -f conftest.
$ac_objext conftest
$ac_exeext
4039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4040 (eval $ac_link) 2>conftest.er1
4042 grep -v '^ *+' conftest.er1
>conftest.err
4044 cat conftest.err
>&5
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); } &&
4047 { ac_try
='test -z "$ac_c_werror_flag"
4048 || test ! -s conftest.err'
4049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); }; } &&
4054 { ac_try
='test -s conftest$ac_exeext'
4055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); }; }; then
4060 ac_cv_lib_gen_basename
=yes
4062 echo "$as_me: failed program was:" >&5
4063 sed 's/^/| /' conftest.
$ac_ext >&5
4065 ac_cv_lib_gen_basename
=no
4067 rm -f conftest.err conftest.
$ac_objext \
4068 conftest
$ac_exeext conftest.
$ac_ext
4069 LIBS
=$ac_check_lib_save_LIBS
4071 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_basename" >&5
4072 echo "${ECHO_T}$ac_cv_lib_gen_basename" >&6
4073 if test $ac_cv_lib_gen_basename = yes; then
4074 cat >>confdefs.h
<<\_ACEOF
4075 #define HAVE_BASENAME 1
4083 echo "$as_me:$LINENO: checking whether dirname is declared" >&5
4084 echo $ECHO_N "checking whether dirname is declared... $ECHO_C" >&6
4085 if test "${ac_cv_have_decl_dirname+set}" = set; then
4086 echo $ECHO_N "(cached) $ECHO_C" >&6
4088 cat >conftest.
$ac_ext <<_ACEOF
4091 cat confdefs.h
>>conftest.
$ac_ext
4092 cat >>conftest.
$ac_ext <<_ACEOF
4093 /* end confdefs.h. */
4094 $ac_includes_default
4104 char *p = (char *) dirname;
4111 rm -f conftest.
$ac_objext
4112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4113 (eval $ac_compile) 2>conftest.er1
4115 grep -v '^ *+' conftest.er1
>conftest.err
4117 cat conftest.err
>&5
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); } &&
4120 { ac_try
='test -z "$ac_c_werror_flag"
4121 || test ! -s conftest.err'
4122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); }; } &&
4127 { ac_try
='test -s conftest.$ac_objext'
4128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); }; }; then
4133 ac_cv_have_decl_dirname
=yes
4135 echo "$as_me: failed program was:" >&5
4136 sed 's/^/| /' conftest.
$ac_ext >&5
4138 ac_cv_have_decl_dirname
=no
4140 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4142 echo "$as_me:$LINENO: result: $ac_cv_have_decl_dirname" >&5
4143 echo "${ECHO_T}$ac_cv_have_decl_dirname" >&6
4144 if test $ac_cv_have_decl_dirname = yes; then
4146 cat >>confdefs.h
<<_ACEOF
4147 #define HAVE_DECL_DIRNAME 1
4152 cat >>confdefs.h
<<_ACEOF
4153 #define HAVE_DECL_DIRNAME 0
4158 echo "$as_me:$LINENO: checking whether basename is declared" >&5
4159 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
4160 if test "${ac_cv_have_decl_basename+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4163 cat >conftest.
$ac_ext <<_ACEOF
4166 cat confdefs.h
>>conftest.
$ac_ext
4167 cat >>conftest.
$ac_ext <<_ACEOF
4168 /* end confdefs.h. */
4169 $ac_includes_default
4179 char *p = (char *) basename;
4186 rm -f conftest.
$ac_objext
4187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4188 (eval $ac_compile) 2>conftest.er1
4190 grep -v '^ *+' conftest.er1
>conftest.err
4192 cat conftest.err
>&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); } &&
4195 { ac_try
='test -z "$ac_c_werror_flag"
4196 || test ! -s conftest.err'
4197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; } &&
4202 { ac_try
='test -s conftest.$ac_objext'
4203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); }; }; then
4208 ac_cv_have_decl_basename
=yes
4210 echo "$as_me: failed program was:" >&5
4211 sed 's/^/| /' conftest.
$ac_ext >&5
4213 ac_cv_have_decl_basename
=no
4215 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4217 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
4218 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
4219 if test $ac_cv_have_decl_basename = yes; then
4221 cat >>confdefs.h
<<_ACEOF
4222 #define HAVE_DECL_BASENAME 1
4227 cat >>confdefs.h
<<_ACEOF
4228 #define HAVE_DECL_BASENAME 0
4233 echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
4234 echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6
4235 if test "${ac_cv_have_decl_memrchr+set}" = set; then
4236 echo $ECHO_N "(cached) $ECHO_C" >&6
4238 cat >conftest.
$ac_ext <<_ACEOF
4241 cat confdefs.h
>>conftest.
$ac_ext
4242 cat >>conftest.
$ac_ext <<_ACEOF
4243 /* end confdefs.h. */
4244 $ac_includes_default
4254 char *p = (char *) memrchr;
4261 rm -f conftest.
$ac_objext
4262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4263 (eval $ac_compile) 2>conftest.er1
4265 grep -v '^ *+' conftest.er1
>conftest.err
4267 cat conftest.err
>&5
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); } &&
4270 { ac_try
='test -z "$ac_c_werror_flag"
4271 || test ! -s conftest.err'
4272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); }; } &&
4277 { ac_try
='test -s conftest.$ac_objext'
4278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; }; then
4283 ac_cv_have_decl_memrchr
=yes
4285 echo "$as_me: failed program was:" >&5
4286 sed 's/^/| /' conftest.
$ac_ext >&5
4288 ac_cv_have_decl_memrchr
=no
4290 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4292 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
4293 echo "${ECHO_T}$ac_cv_have_decl_memrchr" >&6
4294 if test $ac_cv_have_decl_memrchr = yes; then
4296 cat >>confdefs.h
<<_ACEOF
4297 #define HAVE_DECL_MEMRCHR 1
4302 cat >>confdefs.h
<<_ACEOF
4303 #define HAVE_DECL_MEMRCHR 0
4308 echo "$as_me:$LINENO: checking whether memmem is declared" >&5
4309 echo $ECHO_N "checking whether memmem is declared... $ECHO_C" >&6
4310 if test "${ac_cv_have_decl_memmem+set}" = set; then
4311 echo $ECHO_N "(cached) $ECHO_C" >&6
4313 cat >conftest.
$ac_ext <<_ACEOF
4316 cat confdefs.h
>>conftest.
$ac_ext
4317 cat >>conftest.
$ac_ext <<_ACEOF
4318 /* end confdefs.h. */
4319 $ac_includes_default
4329 char *p = (char *) memmem;
4336 rm -f conftest.
$ac_objext
4337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4338 (eval $ac_compile) 2>conftest.er1
4340 grep -v '^ *+' conftest.er1
>conftest.err
4342 cat conftest.err
>&5
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); } &&
4345 { ac_try
='test -z "$ac_c_werror_flag"
4346 || test ! -s conftest.err'
4347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); }; } &&
4352 { ac_try
='test -s conftest.$ac_objext'
4353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); }; }; then
4358 ac_cv_have_decl_memmem
=yes
4360 echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.
$ac_ext >&5
4363 ac_cv_have_decl_memmem
=no
4365 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4367 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memmem" >&5
4368 echo "${ECHO_T}$ac_cv_have_decl_memmem" >&6
4369 if test $ac_cv_have_decl_memmem = yes; then
4371 cat >>confdefs.h
<<_ACEOF
4372 #define HAVE_DECL_MEMMEM 1
4377 cat >>confdefs.h
<<_ACEOF
4378 #define HAVE_DECL_MEMMEM 0
4383 echo "$as_me:$LINENO: checking whether memrmem is declared" >&5
4384 echo $ECHO_N "checking whether memrmem is declared... $ECHO_C" >&6
4385 if test "${ac_cv_have_decl_memrmem+set}" = set; then
4386 echo $ECHO_N "(cached) $ECHO_C" >&6
4388 cat >conftest.
$ac_ext <<_ACEOF
4391 cat confdefs.h
>>conftest.
$ac_ext
4392 cat >>conftest.
$ac_ext <<_ACEOF
4393 /* end confdefs.h. */
4394 $ac_includes_default
4404 char *p = (char *) memrmem;
4411 rm -f conftest.
$ac_objext
4412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4413 (eval $ac_compile) 2>conftest.er1
4415 grep -v '^ *+' conftest.er1
>conftest.err
4417 cat conftest.err
>&5
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); } &&
4420 { ac_try
='test -z "$ac_c_werror_flag"
4421 || test ! -s conftest.err'
4422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); }; } &&
4427 { ac_try
='test -s conftest.$ac_objext'
4428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); }; }; then
4433 ac_cv_have_decl_memrmem
=yes
4435 echo "$as_me: failed program was:" >&5
4436 sed 's/^/| /' conftest.
$ac_ext >&5
4438 ac_cv_have_decl_memrmem
=no
4440 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4442 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrmem" >&5
4443 echo "${ECHO_T}$ac_cv_have_decl_memrmem" >&6
4444 if test $ac_cv_have_decl_memrmem = yes; then
4446 cat >>confdefs.h
<<_ACEOF
4447 #define HAVE_DECL_MEMRMEM 1
4452 cat >>confdefs.h
<<_ACEOF
4453 #define HAVE_DECL_MEMRMEM 0
4461 ac_config_files
="$ac_config_files Makefile Makefile-build"
4462 cat >confcache
<<\_ACEOF
4463 # This file is a shell script that caches the results of configure
4464 # tests run on this system so they can be shared between configure
4465 # scripts and configure runs, see configure's option --config-cache.
4466 # It is not useful on other systems. If it contains results you don't
4467 # want to keep, you may remove or edit it.
4469 # config.status only pays attention to the cache file if you give it
4470 # the --recheck option to rerun configure.
4472 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4473 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4478 # The following way of writing the cache mishandles newlines in values,
4479 # but we know of no workaround that is simple, portable, and efficient.
4480 # So, don't put newlines in cache variables' values.
4481 # Ultrix sh set writes to stderr and can't be redirected directly,
4482 # and sets the high bit in the cache file unless we assign to the vars.
4485 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4487 # `set' does not quote correctly, so add quotes (double-quote
4488 # substitution turns \\\\ into \\, and sed turns \\ into \).
4491 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4494 # `set' quotes correctly as required by POSIX, so do not add quotes.
4496 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4503 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4505 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4507 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
4508 if test -w $cache_file; then
4509 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4510 cat confcache
>$cache_file
4512 echo "not updating unwritable cache $cache_file"
4517 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4518 # Let make expand exec_prefix.
4519 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4521 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4522 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4523 # trailing colons and then remove the whole line if VPATH becomes empty
4524 # (actually we leave an empty line to preserve line numbers).
4525 if test "x$srcdir" = x.
; then
4526 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
4527 s/:*\$(srcdir):*/:/;
4528 s/:*\${srcdir}:*/:/;
4530 s/^\([^=]*=[ ]*\):*/\1/;
4536 DEFS
=-DHAVE_CONFIG_H
4540 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
4541 # 1. Remove the extension, and $U if already installed.
4542 ac_i
=`echo "$ac_i" |
4543 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4545 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
4546 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
4550 LTLIBOBJS
=$ac_ltlibobjs
4554 : ${CONFIG_STATUS=./config.status}
4555 ac_clean_files_save
=$ac_clean_files
4556 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
4557 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4558 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4559 cat >$CONFIG_STATUS <<_ACEOF
4561 # Generated by $as_me.
4562 # Run this file to recreate the current configuration.
4563 # Compiler output produced by configure, useful for debugging
4564 # configure, is in config.log if it exists.
4569 SHELL=\${CONFIG_SHELL-$SHELL}
4572 cat >>$CONFIG_STATUS <<\_ACEOF
4573 ## --------------------- ##
4574 ## M4sh Initialization. ##
4575 ## --------------------- ##
4577 # Be Bourne compatible
4578 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
4581 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4582 # is contrary to our usage. Disable this feature.
4583 alias -g '${1+"$@"}'='"$@"'
4584 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
4587 DUALCASE
=1; export DUALCASE
# for MKS sh
4589 # Support unset when possible.
4590 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
4597 # Work around bugs in pre-3.0 UWIN ksh.
4598 $as_unset ENV MAIL MAILPATH
4605 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4606 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4607 LC_TELEPHONE LC_TIME
4609 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4610 eval $as_var=C
; export $as_var
4616 # Required to use basename.
4617 if expr a
: '\(a\)' >/dev
/null
2>&1; then
4623 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
4624 as_basename
=basename
4630 # Name of the executable.
4631 as_me
=`$as_basename "$0" ||
4632 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4633 X"$0" : 'X\(//\)$' \| \
4634 X"$0" : 'X\(/\)$' \| \
4635 . : '\(.\)' 2>/dev/null ||
4637 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4638 /^X\/\(\/\/\)$/{ s//\1/; q; }
4639 /^X\/\(\/\).*/{ s//\1/; q; }
4643 # PATH needs CR, and LINENO needs CR and PATH.
4644 # Avoid depending upon Character Ranges.
4645 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
4646 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4647 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
4648 as_cr_digits
='0123456789'
4649 as_cr_alnum
=$as_cr_Letters$as_cr_digits
4651 # The user is always right.
4652 if test "${PATH_SEPARATOR+set}" != set; then
4653 echo "#! /bin/sh" >conf$$.sh
4654 echo "exit 0" >>conf$$.sh
4656 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
4667 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
4668 test "x$as_lineno_1" != "x$as_lineno_2" &&
4669 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
4670 # Find who we are. Look in the path if we contain no path at all
4673 *[\\/]* ) as_myself
=$0 ;;
4674 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4678 test -z "$as_dir" && as_dir
=.
4679 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
4684 # We did not find ourselves, most probably we were run as `sh COMMAND'
4685 # in which case we are not to be found in the path.
4686 if test "x$as_myself" = x
; then
4689 if test ! -f "$as_myself"; then
4690 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4691 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4692 { (exit 1); exit 1; }; }
4694 case $CONFIG_SHELL in
4696 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4697 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
4700 test -z "$as_dir" && as_dir
=.
4701 for as_base
in sh bash ksh sh5
; do
4704 if ("$as_dir/$as_base" -c '
4707 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4708 test "x$as_lineno_1" != "x$as_lineno_2" &&
4709 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
4710 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
4711 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
4712 CONFIG_SHELL
=$as_dir/$as_base
4714 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4722 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4723 # uniformly replaced by the line number. The first 'sed' inserts a
4724 # line-number line before each line; the second 'sed' does the real
4725 # work. The second script uses 'N' to pair each line-number line
4726 # with the numbered line, and appends trailing '-' during
4727 # substitution so that $LINENO is not a special case at line end.
4728 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4729 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4730 sed '=' <$as_myself |
4735 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4738 s,^['$as_cr_digits']*\n,,
4740 chmod +x
$as_me.lineno ||
4741 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4742 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4743 { (exit 1); exit 1; }; }
4745 # Don't try to exec as it changes $[0], causing all sort of problems
4746 # (the dirname of $[0] is not the place where we might find the
4747 # original and so on. Autoconf is especially sensible to this).
4749 # Exit status is that of the last command.
4754 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4755 *c
*,-n*) ECHO_N
= ECHO_C
='
4757 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
4758 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
4761 if expr a
: '\(a\)' >/dev
/null
2>&1; then
4767 rm -f conf$$ conf$$.exe conf$$.
file
4769 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
4770 # We could just check for DJGPP; but this test a) works b) is more generic
4771 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4772 if test -f conf$$.exe
; then
4773 # Don't use ln at all; we don't have any links
4778 elif ln conf$$.
file conf$$
2>/dev
/null
; then
4783 rm -f conf$$ conf$$.exe conf$$.
file
4785 if mkdir
-p .
2>/dev
/null
; then
4788 test -d .
/-p && rmdir .
/-p
4792 as_executable_p
="test -f"
4794 # Sed expression to map a string onto a valid CPP name.
4795 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4797 # Sed expression to map a string onto a valid variable name.
4798 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4802 # We need space, tab and new line, in precisely that order.
4812 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4813 # report actual input values of CONFIG_FILES etc. instead of their
4814 # values after options handling. Logging --version etc. is OK.
4818 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4819 ## Running $as_me. ##
4824 This file was extended by $as_me, which was
4825 generated by GNU Autoconf 2.59. Invocation command line was
4827 CONFIG_FILES = $CONFIG_FILES
4828 CONFIG_HEADERS = $CONFIG_HEADERS
4829 CONFIG_LINKS = $CONFIG_LINKS
4830 CONFIG_COMMANDS = $CONFIG_COMMANDS
4834 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4838 # Files that config.status was made for.
4839 if test -n "$ac_config_files"; then
4840 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4843 if test -n "$ac_config_headers"; then
4844 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4847 if test -n "$ac_config_links"; then
4848 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4851 if test -n "$ac_config_commands"; then
4852 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4855 cat >>$CONFIG_STATUS <<\_ACEOF
4858 \`$as_me' instantiates files from templates according to the
4859 current configuration.
4861 Usage: $0 [OPTIONS] [FILE]...
4863 -h, --help print this help, then exit
4864 -V, --version print version number, then exit
4865 -q, --quiet do not print progress messages
4866 -d, --debug don't remove temporary files
4867 --recheck update $as_me by reconfiguring in the same conditions
4868 --file=FILE[:TEMPLATE]
4869 instantiate the configuration file FILE
4870 --header=FILE[:TEMPLATE]
4871 instantiate the configuration header FILE
4873 Configuration files:
4876 Configuration headers:
4879 Report bugs to <bug-autoconf@gnu.org>."
4882 cat >>$CONFIG_STATUS <<_ACEOF
4885 configured by $0, generated by GNU Autoconf 2.59,
4886 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4888 Copyright (C) 2003 Free Software Foundation, Inc.
4889 This config.status script is free software; the Free Software Foundation
4890 gives unlimited permission to copy, distribute and modify it."
4895 cat >>$CONFIG_STATUS <<\_ACEOF
4896 # If no file are specified by the user, then we need to provide default
4897 # value. By we need to know if files were specified by the user.
4903 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
4904 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
4912 *) # This is not an option, so the user has probably given explicit
4915 ac_need_defaults
=false
;;
4919 # Handling of the options.
4921 cat >>$CONFIG_STATUS <<\_ACEOF
4922 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
4924 --version |
--vers* |
-V )
4925 echo "$ac_cs_version"; exit 0 ;;
4927 # Conflict between --help and --header
4928 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4929 Try \`$0 --help' for more information." >&5
4930 echo "$as_me: error: ambiguous option: $1
4931 Try \`$0 --help' for more information." >&2;}
4932 { (exit 1); exit 1; }; };;
4933 --help |
--hel |
-h )
4934 echo "$ac_cs_usage"; exit 0 ;;
4935 --debug |
--d* |
-d )
4937 --file |
--fil |
--fi |
--f )
4939 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
4940 ac_need_defaults
=false
;;
4941 --header |
--heade |
--head |
--hea )
4943 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
4944 ac_need_defaults
=false
;;
4945 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
4946 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
4950 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4951 Try \`$0 --help' for more information." >&5
4952 echo "$as_me: error: unrecognized option: $1
4953 Try \`$0 --help' for more information." >&2;}
4954 { (exit 1); exit 1; }; } ;;
4956 *) ac_config_targets
="$ac_config_targets $1" ;;
4962 ac_configure_extra_args
=
4964 if $ac_cs_silent; then
4966 ac_configure_extra_args
="$ac_configure_extra_args --silent"
4970 cat >>$CONFIG_STATUS <<_ACEOF
4971 if \$ac_cs_recheck; then
4972 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4973 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4982 cat >>$CONFIG_STATUS <<\_ACEOF
4983 for ac_config_target
in $ac_config_targets
4985 case "$ac_config_target" in
4986 # Handling of arguments.
4987 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
4988 "Makefile-build" ) CONFIG_FILES
="$CONFIG_FILES Makefile-build" ;;
4989 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
4990 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4991 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4992 { (exit 1); exit 1; }; };;
4996 # If the user did not use the arguments to specify the items to instantiate,
4997 # then the envvar interface is used. Set only those that are not.
4998 # We use the long form for the default assignment because of an extremely
4999 # bizarre bug on SunOS 4.1.3.
5000 if $ac_need_defaults; then
5001 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
5002 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
5005 # Have a temporary directory for convenience. Make it in the build tree
5006 # simply because there is no reason to put it here, and in addition,
5007 # creating and moving files from /tmp can sometimes cause problems.
5008 # Create a temporary directory, and hook for its removal unless debugging.
5011 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5012 trap '{ (exit 1); exit 1; }' 1 2 13 15
5015 # Create a (secure) tmp directory for tmp files.
5018 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5019 test -n "$tmp" && test -d "$tmp"
5022 tmp
=.
/confstat$$
-$RANDOM
5023 (umask 077 && mkdir
$tmp)
5026 echo "$me: cannot create a temporary directory in ." >&2
5027 { (exit 1); exit 1; }
5032 cat >>$CONFIG_STATUS <<_ACEOF
5035 # CONFIG_FILES section.
5038 # No need to generate the scripts if there are no CONFIG_FILES.
5039 # This happens for instance when ./config.status config.h
5040 if test -n "\$CONFIG_FILES"; then
5041 # Protect against being on the right side of a sed subst in config.status.
5042 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5043 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5044 s,@SHELL@,$SHELL,;t t
5045 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5046 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5047 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5048 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5049 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5050 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5051 s,@exec_prefix@,$exec_prefix,;t t
5052 s,@prefix@,$prefix,;t t
5053 s,@program_transform_name@,$program_transform_name,;t t
5054 s,@bindir@,$bindir,;t t
5055 s,@sbindir@,$sbindir,;t t
5056 s,@libexecdir@,$libexecdir,;t t
5057 s,@datadir@,$datadir,;t t
5058 s,@sysconfdir@,$sysconfdir,;t t
5059 s,@sharedstatedir@,$sharedstatedir,;t t
5060 s,@localstatedir@,$localstatedir,;t t
5061 s,@libdir@,$libdir,;t t
5062 s,@includedir@,$includedir,;t t
5063 s,@oldincludedir@,$oldincludedir,;t t
5064 s,@infodir@,$infodir,;t t
5065 s,@mandir@,$mandir,;t t
5066 s,@build_alias@,$build_alias,;t t
5067 s,@host_alias@,$host_alias,;t t
5068 s,@target_alias@,$target_alias,;t t
5070 s,@ECHO_C@,$ECHO_C,;t t
5071 s,@ECHO_N@,$ECHO_N,;t t
5072 s,@ECHO_T@,$ECHO_T,;t t
5074 s,@PRODUCT@,$PRODUCT,;t t
5075 s,@VERSION@,$VERSION,;t t
5078 s,@OTHER@,$OTHER,;t t
5080 s,@CFLAGS@,$CFLAGS,;t t
5081 s,@LDFLAGS@,$LDFLAGS,;t t
5082 s,@CPPFLAGS@,$CPPFLAGS,;t t
5083 s,@ac_ct_CC@,$ac_ct_CC,;t t
5084 s,@EXEEXT@,$EXEEXT,;t t
5085 s,@OBJEXT@,$OBJEXT,;t t
5086 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5087 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5088 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5090 s,@EGREP@,$EGREP,;t t
5091 s,@LIBOBJS@,$LIBOBJS,;t t
5092 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5097 cat >>$CONFIG_STATUS <<\_ACEOF
5098 # Split the substitutions into bite-sized pieces for seds with
5099 # small command number limits, like on Digital OSF/1 and HP-UX.
5101 ac_sed_frag
=1 # Number of current file.
5102 ac_beg
=1 # First line for current file.
5103 ac_end
=$ac_max_sed_lines # Line after last line for current file.
5106 while $ac_more_lines; do
5107 if test $ac_beg -gt 1; then
5108 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
5110 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
5112 if test ! -s $tmp/subs.frag
; then
5115 # The purpose of the label and of the branching condition is to
5116 # speed up the sed processing (if there are no `@' at all, there
5117 # is no need to browse any of the substitutions).
5118 # These are the two extra sed commands mentioned above.
5120 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
5121 if test -z "$ac_sed_cmds"; then
5122 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
5124 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5126 ac_sed_frag
=`expr $ac_sed_frag + 1`
5128 ac_end
=`expr $ac_end + $ac_max_sed_lines`
5131 if test -z "$ac_sed_cmds"; then
5134 fi # test -n "$CONFIG_FILES"
5137 cat >>$CONFIG_STATUS <<\_ACEOF
5138 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
5139 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5141 - |
*:- |
*:-:* ) # input from stdin
5143 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5144 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
5145 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5146 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
5147 * ) ac_file_in
=$ac_file.
in ;;
5150 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5151 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
5152 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5153 X"$ac_file" : 'X\(//\)[^/]' \| \
5154 X"$ac_file" : 'X\(//\)$' \| \
5155 X"$ac_file" : 'X\(/\)' \| \
5156 . : '\(.\)' 2>/dev/null ||
5158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5159 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5160 /^X\(\/\/\)$/{ s//\1/; q; }
5161 /^X\(\/\).*/{ s//\1/; q; }
5163 { if $as_mkdir_p; then
5168 while test ! -d "$as_dir"; do
5169 as_dirs
="$as_dir $as_dirs"
5170 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
5171 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5172 X"$as_dir" : 'X\(//\)[^/]' \| \
5173 X"$as_dir" : 'X\(//\)$' \| \
5174 X"$as_dir" : 'X\(/\)' \| \
5175 . : '\(.\)' 2>/dev/null ||
5177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5178 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5179 /^X\(\/\/\)$/{ s//\1/; q; }
5180 /^X\(\/\).*/{ s//\1/; q; }
5183 test ! -n "$as_dirs" || mkdir
$as_dirs
5184 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5185 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5186 { (exit 1); exit 1; }; }; }
5190 if test "$ac_dir" != .
; then
5191 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5192 # A "../" for each directory in $ac_dir_suffix.
5193 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5195 ac_dir_suffix
= ac_top_builddir
=
5199 .
) # No --srcdir option. We are building in place.
5201 if test -z "$ac_top_builddir"; then
5204 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
5206 [\\/]* | ?
:[\\/]* ) # Absolute path.
5207 ac_srcdir
=$srcdir$ac_dir_suffix;
5208 ac_top_srcdir
=$srcdir ;;
5210 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
5211 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
5214 # Do not use `cd foo && pwd` to compute absolute paths, because
5215 # the directories may not exist.
5217 .
) ac_abs_builddir
="$ac_dir";;
5220 .
) ac_abs_builddir
=`pwd`;;
5221 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
5222 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
5225 case $ac_abs_builddir in
5226 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
5228 case ${ac_top_builddir}.
in
5229 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
5230 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
5231 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
5234 case $ac_abs_builddir in
5235 .
) ac_abs_srcdir
=$ac_srcdir;;
5238 .
) ac_abs_srcdir
=$ac_abs_builddir;;
5239 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
5240 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
5243 case $ac_abs_builddir in
5244 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
5246 case $ac_top_srcdir in
5247 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
5248 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
5249 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
5255 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
5256 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
5259 if test x
"$ac_file" != x-
; then
5260 { echo "$as_me:$LINENO: creating $ac_file" >&5
5261 echo "$as_me: creating $ac_file" >&6;}
5264 # Let's still pretend it is `configure' which instantiates (i.e., don't
5265 # use $as_me), people would be surprised to read:
5266 # /* config.h. Generated by config.status. */
5267 if test x
"$ac_file" = x-
; then
5270 configure_input
="$ac_file. "
5272 configure_input
=$configure_input"Generated from `echo $ac_file_in |
5273 sed 's,.*/,,'` by configure."
5275 # First look for the input files in the build tree, otherwise in the
5277 ac_file_inputs
=`IFS=:
5278 for f in $ac_file_in; do
5280 -) echo $tmp/stdin ;;
5282 # Absolute (can't be DOS-style, as IFS=:)
5283 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5284 echo "$as_me: error: cannot find input file: $f" >&2;}
5285 { (exit 1); exit 1; }; }
5288 if test -f "$f"; then
5291 elif test -f "$srcdir/$f"; then
5296 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5297 echo "$as_me: error: cannot find input file: $f" >&2;}
5298 { (exit 1); exit 1; }; }
5301 done` ||
{ (exit 1); exit 1; }
5303 cat >>$CONFIG_STATUS <<_ACEOF
5307 cat >>$CONFIG_STATUS <<\_ACEOF
5309 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
5310 s
,@configure_input@
,$configure_input,;t t
5311 s
,@srcdir@
,$ac_srcdir,;t t
5312 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
5313 s
,@top_srcdir@
,$ac_top_srcdir,;t t
5314 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
5315 s
,@builddir@
,$ac_builddir,;t t
5316 s
,@abs_builddir@
,$ac_abs_builddir,;t t
5317 s
,@top_builddir@
,$ac_top_builddir,;t t
5318 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
5319 s
,@INSTALL@
,$ac_INSTALL,;t t
5320 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5322 if test x"$ac_file" != x-; then
5323 mv $tmp/out $ac_file
5331 cat >>$CONFIG_STATUS <<\_ACEOF
5334 # CONFIG_HEADER section.
5337 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
5338 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5340 # ac_d sets the value in "#define NAME VALUE" lines.
5341 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5342 ac_dB
='[ ].*$,\1#\2'
5345 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5346 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5347 ac_uB
='$,\1#\2define\3'
5351 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
5352 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5354 - |
*:- |
*:-:* ) # input from stdin
5356 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5357 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
5358 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5359 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
5360 * ) ac_file_in
=$ac_file.
in ;;
5363 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
5364 echo "$as_me: creating $ac_file" >&6;}
5366 # First look for the input files in the build tree, otherwise in the
5368 ac_file_inputs
=`IFS=:
5369 for f in $ac_file_in; do
5371 -) echo $tmp/stdin ;;
5373 # Absolute (can't be DOS-style, as IFS=:)
5374 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5375 echo "$as_me: error: cannot find input file: $f" >&2;}
5376 { (exit 1); exit 1; }; }
5377 # Do quote $f, to prevent DOS paths from being IFS'd.
5380 if test -f "$f"; then
5383 elif test -f "$srcdir/$f"; then
5388 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5389 echo "$as_me: error: cannot find input file: $f" >&2;}
5390 { (exit 1); exit 1; }; }
5393 done` ||
{ (exit 1); exit 1; }
5394 # Remove the trailing spaces.
5395 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5399 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5400 # `conftest.undefs', that substitutes the proper values into
5401 # config.h.in to produce config.h. The first handles `#define'
5402 # templates, and the second `#undef' templates.
5403 # And first: Protect against being on the right side of a sed subst in
5404 # config.status. Protect against being in an unquoted here document
5406 rm -f conftest.defines conftest.undefs
5407 # Using a here document instead of a string reduces the quoting nightmare.
5408 # Putting comments in sed scripts is not portable.
5410 # `end' is used to avoid that the second main sed command (meant for
5411 # 0-ary CPP macros) applies to n-ary macro definitions.
5412 # See the Autoconf documentation for `clear'.
5413 cat >confdef2sed.
sed <<\_ACEOF
5418 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5420 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5423 # If some macros were called several times there might be several times
5424 # the same #defines, which is useless. Nevertheless, we may not want to
5425 # sort them, since we want the *last* AC-DEFINE to be honored.
5426 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5427 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5428 rm -f confdef2sed.sed
5430 # This sed command replaces #undef with comments. This is necessary, for
5431 # example, in the case of _POSIX_SOURCE, which is predefined and required
5432 # on some systems where configure will not decide to define it.
5433 cat >>conftest.undefs <<\_ACEOF
5434 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5437 # Break up conftest.defines because some shells have a limit on the size
5438 # of here documents, and old seds have small limits too (100 cmds).
5439 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5440 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5441 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5442 echo ' :' >>$CONFIG_STATUS
5444 while grep . conftest.defines >/dev/null
5446 # Write a limited-size here document to $tmp/defines.sed.
5447 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5448 # Speed up: don't consider the non `#define' lines.
5449 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5450 # Work around the forget-to-reset-the-flag bug.
5451 echo 't clr' >>$CONFIG_STATUS
5452 echo ': clr' >>$CONFIG_STATUS
5453 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
5455 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5459 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
5460 rm -f conftest.defines
5461 mv conftest.
tail conftest.defines
5463 rm -f conftest.defines
5464 echo ' fi # grep' >>$CONFIG_STATUS
5465 echo >>$CONFIG_STATUS
5467 # Break up conftest.undefs because some shells have a limit on the size
5468 # of here documents, and old seds have small limits too (100 cmds).
5469 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5471 while grep . conftest.undefs
>/dev
/null
5473 # Write a limited-size here document to $tmp/undefs.sed.
5474 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5475 # Speed up: don't consider the non
`#undef'
5476 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5477 # Work around the forget-to-reset-the-flag bug.
5478 echo 't clr' >>$CONFIG_STATUS
5479 echo ': clr' >>$CONFIG_STATUS
5480 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5482 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5486 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5487 rm -f conftest.undefs
5488 mv conftest.tail conftest.undefs
5490 rm -f conftest.undefs
5492 cat >>$CONFIG_STATUS <<\_ACEOF
5493 # Let's still pretend it is `configure
' which instantiates (i.e., don't
5494 # use $as_me), people would be surprised to read:
5495 # /* config.h. Generated by config.status. */
5496 if test x
"$ac_file" = x-
; then
5497 echo "/* Generated by configure. */" >$tmp/config.h
5499 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5501 cat $tmp/in >>$tmp/config.h
5503 if test x
"$ac_file" != x-
; then
5504 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
5505 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5506 echo "$as_me: $ac_file is unchanged" >&6;}
5508 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
5509 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5510 X"$ac_file" : 'X\(//\)[^/]' \| \
5511 X"$ac_file" : 'X\(//\)$' \| \
5512 X"$ac_file" : 'X\(/\)' \| \
5513 . : '\(.\)' 2>/dev/null ||
5515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5516 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5517 /^X\(\/\/\)$/{ s//\1/; q; }
5518 /^X\(\/\).*/{ s//\1/; q; }
5520 { if $as_mkdir_p; then
5525 while test ! -d "$as_dir"; do
5526 as_dirs
="$as_dir $as_dirs"
5527 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
5528 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5529 X"$as_dir" : 'X\(//\)[^/]' \| \
5530 X"$as_dir" : 'X\(//\)$' \| \
5531 X"$as_dir" : 'X\(/\)' \| \
5532 . : '\(.\)' 2>/dev/null ||
5534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5535 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5536 /^X\(\/\/\)$/{ s//\1/; q; }
5537 /^X\(\/\).*/{ s//\1/; q; }
5540 test ! -n "$as_dirs" || mkdir
$as_dirs
5541 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5542 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5543 { (exit 1); exit 1; }; }; }
5546 mv $tmp/config.h
$ac_file
5555 cat >>$CONFIG_STATUS <<\_ACEOF
5557 { (exit 0); exit 0; }
5559 chmod +x
$CONFIG_STATUS
5560 ac_clean_files
=$ac_clean_files_save
5563 # configure is writing to config.log, and then calls config.status.
5564 # config.status does its own redirection, appending to config.log.
5565 # Unfortunately, on DOS this fails, as config.log is still kept open
5566 # by configure, so config.status won't be able to write to it; its
5567 # output is simply discarded. So we exec the FD to /dev/null,
5568 # effectively closing config.log, so it can be properly (re)opened and
5569 # appended to by config.status. When coming back to configure, we
5570 # need to make the FD available again.
5571 if test "$no_create" != yes; then
5573 ac_config_status_args
=
5574 test "$silent" = yes &&
5575 ac_config_status_args
="$ac_config_status_args --quiet"
5577 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
5579 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5580 # would make configure fail if this is the last instruction.
5581 $ac_cs_success ||
{ (exit 1); exit 1; }