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
="main.c"
275 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LEX LEXLIB LEX_OUTPUT_ROOT YACC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA ALLOCA CPP EGREP LIBOBJS LTLIBOBJS'
278 # Initialize some variables set by options.
280 ac_init_version
=false
281 # The variables have the same names as the options, with
282 # dashes changed to underlines.
290 program_transform_name
=s
,x
,x
,
298 # Installation directory options.
299 # These are left unexpanded so users can "make install exec_prefix=/foo"
300 # and all the variables that are supposed to be based on exec_prefix
301 # by default will actually change.
302 # Use braces instead of parens because sh, perl, etc. also accept them.
303 bindir
='${exec_prefix}/bin'
304 sbindir
='${exec_prefix}/sbin'
305 libexecdir
='${exec_prefix}/libexec'
306 datadir
='${prefix}/share'
307 sysconfdir
='${prefix}/etc'
308 sharedstatedir
='${prefix}/com'
309 localstatedir
='${prefix}/var'
310 libdir
='${exec_prefix}/lib'
311 includedir
='${prefix}/include'
312 oldincludedir
='/usr/include'
313 infodir
='${prefix}/info'
314 mandir
='${prefix}/man'
319 # If the previous option needs an argument, assign it.
320 if test -n "$ac_prev"; then
321 eval "$ac_prev=\$ac_option"
326 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
328 # Accept the important Cygnus configure options, so we can diagnose typos.
332 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
334 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
337 -build |
--build |
--buil |
--bui |
--bu)
338 ac_prev
=build_alias
;;
339 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
340 build_alias
=$ac_optarg ;;
342 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
343 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
344 ac_prev
=cache_file
;;
345 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
346 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
347 cache_file
=$ac_optarg ;;
350 cache_file
=config.cache
;;
352 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
354 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
356 datadir
=$ac_optarg ;;
358 -disable-* |
--disable-*)
359 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
360 # Reject names that are not valid shell variable names.
361 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
362 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363 { (exit 1); exit 1; }; }
364 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
365 eval "enable_$ac_feature=no" ;;
367 -enable-* |
--enable-*)
368 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
369 # Reject names that are not valid shell variable names.
370 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
371 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372 { (exit 1); exit 1; }; }
373 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
375 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
378 eval "enable_$ac_feature='$ac_optarg'" ;;
380 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
381 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
382 |
--exec |
--exe |
--ex)
383 ac_prev
=exec_prefix
;;
384 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
385 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
386 |
--exec=* |
--exe=* |
--ex=*)
387 exec_prefix
=$ac_optarg ;;
389 -gas |
--gas |
--ga |
--g)
390 # Obsolete; use --with-gas.
393 -help |
--help |
--hel |
--he |
-h)
395 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
396 ac_init_help
=recursive
;;
397 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
398 ac_init_help
=short
;;
400 -host |
--host |
--hos |
--ho)
401 ac_prev
=host_alias
;;
402 -host=* |
--host=* |
--hos=* |
--ho=*)
403 host_alias
=$ac_optarg ;;
405 -includedir |
--includedir |
--includedi |
--included |
--include \
406 |
--includ |
--inclu |
--incl |
--inc)
407 ac_prev
=includedir
;;
408 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
409 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
410 includedir
=$ac_optarg ;;
412 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
414 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
415 infodir
=$ac_optarg ;;
417 -libdir |
--libdir |
--libdi |
--libd)
419 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
422 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
423 |
--libexe |
--libex |
--libe)
424 ac_prev
=libexecdir
;;
425 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
426 |
--libexe=* |
--libex=* |
--libe=*)
427 libexecdir
=$ac_optarg ;;
429 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
430 |
--localstate |
--localstat |
--localsta |
--localst \
431 |
--locals |
--local |
--loca |
--loc |
--lo)
432 ac_prev
=localstatedir
;;
433 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
434 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
435 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
436 localstatedir
=$ac_optarg ;;
438 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
440 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
444 # Obsolete; use --without-fp.
447 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
448 |
--no-cr |
--no-c |
-n)
451 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
452 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
455 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
456 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
457 |
--oldin |
--oldi |
--old |
--ol |
--o)
458 ac_prev
=oldincludedir
;;
459 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
460 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
461 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
462 oldincludedir
=$ac_optarg ;;
464 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
466 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
469 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
470 |
--program-pre |
--program-pr |
--program-p)
471 ac_prev
=program_prefix
;;
472 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
473 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
474 program_prefix
=$ac_optarg ;;
476 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
477 |
--program-suf |
--program-su |
--program-s)
478 ac_prev
=program_suffix
;;
479 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
480 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
481 program_suffix
=$ac_optarg ;;
483 -program-transform-name |
--program-transform-name \
484 |
--program-transform-nam |
--program-transform-na \
485 |
--program-transform-n |
--program-transform- \
486 |
--program-transform |
--program-transfor \
487 |
--program-transfo |
--program-transf \
488 |
--program-trans |
--program-tran \
489 |
--progr-tra |
--program-tr |
--program-t)
490 ac_prev
=program_transform_name
;;
491 -program-transform-name=* |
--program-transform-name=* \
492 |
--program-transform-nam=* |
--program-transform-na=* \
493 |
--program-transform-n=* |
--program-transform-=* \
494 |
--program-transform=* |
--program-transfor=* \
495 |
--program-transfo=* |
--program-transf=* \
496 |
--program-trans=* |
--program-tran=* \
497 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
498 program_transform_name
=$ac_optarg ;;
500 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
501 |
-silent |
--silent |
--silen |
--sile |
--sil)
504 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
506 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
508 sbindir
=$ac_optarg ;;
510 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
511 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
512 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
514 ac_prev
=sharedstatedir
;;
515 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
516 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
517 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
519 sharedstatedir
=$ac_optarg ;;
521 -site |
--site |
--sit)
523 -site=* |
--site=* |
--sit=*)
526 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
528 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
531 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
532 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
533 ac_prev
=sysconfdir
;;
534 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
535 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
536 sysconfdir
=$ac_optarg ;;
538 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
539 ac_prev
=target_alias
;;
540 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
541 target_alias
=$ac_optarg ;;
543 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
546 -version |
--version |
--versio |
--versi |
--vers |
-V)
550 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
553 { echo "$as_me: error: invalid package name: $ac_package" >&2
554 { (exit 1); exit 1; }; }
555 ac_package
=`echo $ac_package| sed 's/-/_/g'`
557 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
560 eval "with_$ac_package='$ac_optarg'" ;;
562 -without-* |
--without-*)
563 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
566 { echo "$as_me: error: invalid package name: $ac_package" >&2
567 { (exit 1); exit 1; }; }
568 ac_package
=`echo $ac_package | sed 's/-/_/g'`
569 eval "with_$ac_package=no" ;;
572 # Obsolete; use --with-x.
575 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
576 |
--x-incl |
--x-inc |
--x-in |
--x-i)
577 ac_prev
=x_includes
;;
578 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
579 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
580 x_includes
=$ac_optarg ;;
582 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
583 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
584 ac_prev
=x_libraries
;;
585 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
586 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
587 x_libraries
=$ac_optarg ;;
589 -*) { echo "$as_me: error: unrecognized option: $ac_option
590 Try \`$0 --help' for more information." >&2
591 { (exit 1); exit 1; }; }
595 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
596 # Reject names that are not valid shell variable names.
597 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
598 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599 { (exit 1); exit 1; }; }
600 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601 eval "$ac_envvar='$ac_optarg'"
605 # FIXME: should be removed in autoconf 3.0.
606 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
608 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
615 if test -n "$ac_prev"; then
616 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
617 { echo "$as_me: error: missing argument to $ac_option" >&2
618 { (exit 1); exit 1; }; }
621 # Be sure to have absolute paths.
622 for ac_var
in exec_prefix prefix
624 eval ac_val
=$
`echo $ac_var`
626 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
627 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628 { (exit 1); exit 1; }; };;
632 # Be sure to have absolute paths.
633 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634 localstatedir libdir includedir oldincludedir infodir mandir
636 eval ac_val
=$
`echo $ac_var`
638 [\\/$
]* | ?
:[\\/]* ) ;;
639 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640 { (exit 1); exit 1; }; };;
644 # There might be people who depend on the old broken behavior: `$host'
645 # used to hold the argument of --host etc.
646 # FIXME: To remove some day.
651 # FIXME: To remove some day.
652 if test "x$host_alias" != x
; then
653 if test "x$build_alias" = x
; then
654 cross_compiling
=maybe
655 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656 If a cross compiler is detected then cross compile mode will be used." >&2
657 elif test "x$build_alias" != "x$host_alias"; then
663 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
665 test "$silent" = yes && exec 6>/dev
/null
668 # Find the source files, if location was not specified.
669 if test -z "$srcdir"; then
670 ac_srcdir_defaulted
=yes
671 # Try the directory containing this script, then its parent.
672 ac_confdir
=`(dirname "$0") 2>/dev/null ||
673 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674 X"$0" : 'X\(//\)[^/]' \| \
675 X"$0" : 'X\(//\)$' \| \
676 X"$0" : 'X\(/\)' \| \
677 . : '\(.\)' 2>/dev/null ||
679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681 /^X\(\/\/\)$/{ s//\1/; q; }
682 /^X\(\/\).*/{ s//\1/; q; }
685 if test ! -r "$srcdir/$ac_unique_file"; then
689 ac_srcdir_defaulted
=no
691 if test ! -r "$srcdir/$ac_unique_file"; then
692 if test "$ac_srcdir_defaulted" = yes; then
693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694 { (exit 1); exit 1; }; }
696 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697 { (exit 1); exit 1; }; }
700 (cd $srcdir && test -r "./$ac_unique_file") 2>/dev
/null ||
701 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
702 { (exit 1); exit 1; }; }
703 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704 ac_env_build_alias_set
=${build_alias+set}
705 ac_env_build_alias_value
=$build_alias
706 ac_cv_env_build_alias_set
=${build_alias+set}
707 ac_cv_env_build_alias_value
=$build_alias
708 ac_env_host_alias_set
=${host_alias+set}
709 ac_env_host_alias_value
=$host_alias
710 ac_cv_env_host_alias_set
=${host_alias+set}
711 ac_cv_env_host_alias_value
=$host_alias
712 ac_env_target_alias_set
=${target_alias+set}
713 ac_env_target_alias_value
=$target_alias
714 ac_cv_env_target_alias_set
=${target_alias+set}
715 ac_cv_env_target_alias_value
=$target_alias
716 ac_env_CC_set
=${CC+set}
718 ac_cv_env_CC_set
=${CC+set}
719 ac_cv_env_CC_value
=$CC
720 ac_env_CFLAGS_set
=${CFLAGS+set}
721 ac_env_CFLAGS_value
=$CFLAGS
722 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
723 ac_cv_env_CFLAGS_value
=$CFLAGS
724 ac_env_LDFLAGS_set
=${LDFLAGS+set}
725 ac_env_LDFLAGS_value
=$LDFLAGS
726 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
727 ac_cv_env_LDFLAGS_value
=$LDFLAGS
728 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
729 ac_env_CPPFLAGS_value
=$CPPFLAGS
730 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
731 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
732 ac_env_CPP_set
=${CPP+set}
733 ac_env_CPP_value
=$CPP
734 ac_cv_env_CPP_set
=${CPP+set}
735 ac_cv_env_CPP_value
=$CPP
738 # Report the --help message.
740 if test "$ac_init_help" = "long"; then
741 # Omit some internal or obsolete options to make the list less imposing.
742 # This message is too long to be a string in the A/UX 3.1 sh.
744 \`configure' configures this package to adapt to many kinds of systems.
746 Usage: $0 [OPTION]... [VAR=VALUE]...
748 To assign environment variables (e.g., CC, CFLAGS...), specify them as
749 VAR=VALUE. See below for descriptions of some of the useful variables.
751 Defaults for the options are specified in brackets.
754 -h, --help display this help and exit
755 --help=short display options specific to this package
756 --help=recursive display the short help of all the included packages
757 -V, --version display version information and exit
758 -q, --quiet, --silent do not print \`checking...' messages
759 --cache-file=FILE cache test results in FILE [disabled]
760 -C, --config-cache alias for \`--cache-file=config.cache'
761 -n, --no-create do not create output files
762 --srcdir=DIR find the sources in DIR [configure dir or \`..']
767 Installation directories:
768 --prefix=PREFIX install architecture-independent files in PREFIX
770 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
773 By default, \`make install' will install all the files in
774 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
775 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
776 for instance \`--prefix=\$HOME'.
778 For better control, use the options below.
780 Fine tuning of the installation directories:
781 --bindir=DIR user executables [EPREFIX/bin]
782 --sbindir=DIR system admin executables [EPREFIX/sbin]
783 --libexecdir=DIR program executables [EPREFIX/libexec]
784 --datadir=DIR read-only architecture-independent data [PREFIX/share]
785 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
786 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
787 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
788 --libdir=DIR object code libraries [EPREFIX/lib]
789 --includedir=DIR C header files [PREFIX/include]
790 --oldincludedir=DIR C header files for non-gcc [/usr/include]
791 --infodir=DIR info documentation [PREFIX/info]
792 --mandir=DIR man documentation [PREFIX/man]
799 if test -n "$ac_init_help"; then
803 Some influential environment variables
:
804 CC C compiler
command
805 CFLAGS C compiler flags
806 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
807 nonstandard directory
<lib dir
>
808 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
809 headers
in a nonstandard directory
<include dir
>
812 Use these variables to override the choices made by
`configure' or to help
813 it to find libraries and programs with nonstandard names/locations.
818 if test "$ac_init_help" = "recursive"; then
819 # If there are subdirs, report their specific --help.
821 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
822 test -d $ac_dir || continue
825 if test "$ac_dir" != .; then
826 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
827 # A "../" for each directory in $ac_dir_suffix.
828 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
830 ac_dir_suffix= ac_top_builddir=
834 .) # No --srcdir option. We are building in place.
836 if test -z "$ac_top_builddir"; then
839 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
841 [\\/]* | ?:[\\/]* ) # Absolute path.
842 ac_srcdir=$srcdir$ac_dir_suffix;
843 ac_top_srcdir=$srcdir ;;
845 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
846 ac_top_srcdir=$ac_top_builddir$srcdir ;;
849 # Do not use `cd foo
&& pwd` to compute absolute paths, because
850 # the directories may not exist.
852 .) ac_abs_builddir="$ac_dir";;
855 .) ac_abs_builddir=`pwd`;;
856 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
857 *) ac_abs_builddir=`pwd`/"$ac_dir";;
860 case $ac_abs_builddir in
861 .) ac_abs_top_builddir=${ac_top_builddir}.;;
863 case ${ac_top_builddir}. in
864 .) ac_abs_top_builddir=$ac_abs_builddir;;
865 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
866 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
869 case $ac_abs_builddir in
870 .) ac_abs_srcdir=$ac_srcdir;;
873 .) ac_abs_srcdir=$ac_abs_builddir;;
874 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
875 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
878 case $ac_abs_builddir in
879 .) ac_abs_top_srcdir=$ac_top_srcdir;;
881 case $ac_top_srcdir in
882 .) ac_abs_top_srcdir=$ac_abs_builddir;;
883 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
884 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
889 # Check for guested configure; otherwise get Cygnus style configure.
890 if test -f $ac_srcdir/configure.gnu; then
892 $SHELL $ac_srcdir/configure.gnu --help=recursive
893 elif test -f $ac_srcdir/configure; then
895 $SHELL $ac_srcdir/configure --help=recursive
896 elif test -f $ac_srcdir/configure.ac ||
897 test -f $ac_srcdir/configure.in; then
901 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
907 test -n "$ac_init_help" && exit 0
908 if $ac_init_version; then
911 Copyright (C) 2003 Free Software Foundation, Inc.
912 This configure script is free software; the Free Software Foundation
913 gives unlimited permission to copy, distribute and modify it.
919 This file contains any messages produced by compilers while
920 running configure, to aid debugging if configure makes a mistake.
922 It was created by $as_me, which was
923 generated by GNU Autoconf 2.59. Invocation command line was
934 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
935 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
936 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
937 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
938 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
940 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
941 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
943 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
944 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
945 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
946 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
947 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
948 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
949 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
957 test -z "$as_dir" && as_dir=.
973 # Keep a trace of the command line.
974 # Strip out --no-create and --no-recursion so they do not pile up.
975 # Strip out --silent because we don't want to record it for future runs.
976 # Also quote any args containing shell meta-characters.
977 # Make two passes to allow for proper duplicate-argument suppression.
982 ac_must_keep_next=false
988 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
989 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
990 | -silent | --silent | --silen | --sile | --sil)
992 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
993 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
996 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
998 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
999 if test $ac_must_keep_next = true; then
1000 ac_must_keep_next=false # Got value, back to normal.
1003 *=* | --config-cache | -C | -disable-* | --disable-* \
1004 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1005 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1006 | -with-* | --with-* | -without-* | --without-* | --x)
1007 case "$ac_configure_args0 " in
1008 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1011 -* ) ac_must_keep_next=true ;;
1014 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1015 # Get rid of the leading space.
1021 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1022 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1024 # When interrupted or exit'd, cleanup temporary files, and complete
1025 # config.log. We remove comments because anyway the quotes in there
1026 # would cause problems or look ugly.
1027 # WARNING: Be sure not to use single quotes in there, as some shells,
1028 # such as our DU 5.0 friend, will then `close
' the trap.
1029 trap 'exit_status
=$?
1030 # Save into config.log some information that might help in debugging.
1035 ## ---------------- ##
1036 ## Cache variables. ##
1037 ## ---------------- ##
1040 # The following way of writing the cache mishandles newlines in values,
1043 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1046 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1047 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1051 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1058 ## ----------------- ##
1059 ## Output variables. ##
1060 ## ----------------- ##
1063 for ac_var
in $ac_subst_vars
1065 eval ac_val
=$
`echo $ac_var`
1066 echo "$ac_var='"'"'$ac_val'"'"'"
1070 if test -n "$ac_subst_files"; then
1077 for ac_var
in $ac_subst_files
1079 eval ac_val
=$
`echo $ac_var`
1080 echo "$ac_var='"'"'$ac_val'"'"'"
1085 if test -s confdefs.h
; then
1092 sed "/^$/d" confdefs.h |
sort
1095 test "$ac_signal" != 0 &&
1096 echo "$as_me: caught signal $ac_signal"
1097 echo "$as_me: exit $exit_status"
1099 rm -f core
*.core
&&
1100 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1103 for ac_signal in 1 2 13 15; do
1104 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1108 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1109 rm -rf conftest* confdefs.h
1110 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1113 # Predefined preprocessor variables.
1115 cat >>confdefs.h <<_ACEOF
1116 #define PACKAGE_NAME "$PACKAGE_NAME"
1120 cat >>confdefs.h <<_ACEOF
1121 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1125 cat >>confdefs.h <<_ACEOF
1126 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1130 cat >>confdefs.h <<_ACEOF
1131 #define PACKAGE_STRING "$PACKAGE_STRING"
1135 cat >>confdefs.h <<_ACEOF
1136 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1140 # Let the site file select an alternate cache file if it wants to.
1141 # Prefer explicitly selected file to automatically selected ones.
1142 if test -z "$CONFIG_SITE"; then
1143 if test "x$prefix" != xNONE; then
1144 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1146 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1149 for ac_site_file in $CONFIG_SITE; do
1150 if test -r "$ac_site_file"; then
1151 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1152 echo "$as_me: loading site script $ac_site_file" >&6;}
1153 sed 's
/^
/|
/' "$ac_site_file" >&5
1158 if test -r "$cache_file"; then
1159 # Some versions of bash will fail to source /dev/null (special
1160 # files actually), so we avoid doing that.
1161 if test -f "$cache_file"; then
1162 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1163 echo "$as_me: loading cache $cache_file" >&6;}
1165 [\\/]* | ?:[\\/]* ) . $cache_file;;
1166 *) . ./$cache_file;;
1170 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1171 echo "$as_me: creating cache $cache_file" >&6;}
1175 # Check that the precious variables saved in the cache have kept the same
1177 ac_cache_corrupted=false
1178 for ac_var in `(set) 2>&1 |
1179 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1180 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1181 eval ac_new_set=\$ac_env_${ac_var}_set
1182 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1183 eval ac_new_val="\$ac_env_${ac_var}_value"
1184 case $ac_old_set,$ac_new_set in
1186 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1187 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1188 ac_cache_corrupted=: ;;
1190 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1191 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1192 ac_cache_corrupted=: ;;
1195 if test "x$ac_old_val" != "x$ac_new_val"; then
1196 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1197 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1198 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1199 echo "$as_me: former value: $ac_old_val" >&2;}
1200 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1201 echo "$as_me: current value: $ac_new_val" >&2;}
1202 ac_cache_corrupted=:
1205 # Pass precious variables to config.status.
1206 if test "$ac_new_set" = set; then
1208 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1209 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1210 *) ac_arg=$ac_var=$ac_new_val ;;
1212 case " $ac_configure_args " in
1213 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1214 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1218 if $ac_cache_corrupted; then
1219 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1220 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1221 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1222 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1223 { (exit 1); exit 1; }; }
1227 ac_cpp='$CPP $CPPFLAGS'
1228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1229 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1250 ac_config_headers="$ac_config_headers config.h"
1253 ac_cpp='$CPP $CPPFLAGS'
1254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1255 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1257 if test -n "$ac_tool_prefix"; then
1258 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1259 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1260 echo "$as_me:$LINENO: checking for $ac_word" >&5
1261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1262 if test "${ac_cv_prog_CC+set}" = set; then
1263 echo $ECHO_N "(cached) $ECHO_C" >&6
1265 if test -n "$CC"; then
1266 ac_cv_prog_CC="$CC" # Let the user override the test.
1268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1272 test -z "$as_dir" && as_dir=.
1273 for ac_exec_ext in '' $ac_executable_extensions; do
1274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1275 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1285 if test -n "$CC"; then
1286 echo "$as_me:$LINENO: result: $CC" >&5
1287 echo "${ECHO_T}$CC" >&6
1289 echo "$as_me:$LINENO: result: no" >&5
1290 echo "${ECHO_T}no" >&6
1294 if test -z "$ac_cv_prog_CC"; then
1296 # Extract the first word of "gcc", so it can be a program name with args.
1297 set dummy gcc; ac_word=$2
1298 echo "$as_me:$LINENO: checking for $ac_word" >&5
1299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1300 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1301 echo $ECHO_N "(cached) $ECHO_C" >&6
1303 if test -n "$ac_ct_CC"; then
1304 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1310 test -z "$as_dir" && as_dir=.
1311 for ac_exec_ext in '' $ac_executable_extensions; do
1312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1313 ac_cv_prog_ac_ct_CC="gcc"
1314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1322 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1323 if test -n "$ac_ct_CC"; then
1324 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1325 echo "${ECHO_T}$ac_ct_CC" >&6
1327 echo "$as_me:$LINENO: result: no" >&5
1328 echo "${ECHO_T}no" >&6
1336 if test -z "$CC"; then
1337 if test -n "$ac_tool_prefix"; then
1338 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1339 set dummy ${ac_tool_prefix}cc; ac_word=$2
1340 echo "$as_me:$LINENO: checking for $ac_word" >&5
1341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1342 if test "${ac_cv_prog_CC+set}" = set; then
1343 echo $ECHO_N "(cached) $ECHO_C" >&6
1345 if test -n "$CC"; then
1346 ac_cv_prog_CC="$CC" # Let the user override the test.
1348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1352 test -z "$as_dir" && as_dir=.
1353 for ac_exec_ext in '' $ac_executable_extensions; do
1354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1355 ac_cv_prog_CC="${ac_tool_prefix}cc"
1356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1365 if test -n "$CC"; then
1366 echo "$as_me:$LINENO: result: $CC" >&5
1367 echo "${ECHO_T}$CC" >&6
1369 echo "$as_me:$LINENO: result: no" >&5
1370 echo "${ECHO_T}no" >&6
1374 if test -z "$ac_cv_prog_CC"; then
1376 # Extract the first word of "cc", so it can be a program name with args.
1377 set dummy cc; ac_word=$2
1378 echo "$as_me:$LINENO: checking for $ac_word" >&5
1379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1380 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1381 echo $ECHO_N "(cached) $ECHO_C" >&6
1383 if test -n "$ac_ct_CC"; then
1384 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1390 test -z "$as_dir" && as_dir=.
1391 for ac_exec_ext in '' $ac_executable_extensions; do
1392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1393 ac_cv_prog_ac_ct_CC="cc"
1394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1402 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1403 if test -n "$ac_ct_CC"; then
1404 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1405 echo "${ECHO_T}$ac_ct_CC" >&6
1407 echo "$as_me:$LINENO: result: no" >&5
1408 echo "${ECHO_T}no" >&6
1417 if test -z "$CC"; then
1418 # Extract the first word of "cc", so it can be a program name with args.
1419 set dummy cc; ac_word=$2
1420 echo "$as_me:$LINENO: checking for $ac_word" >&5
1421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1422 if test "${ac_cv_prog_CC+set}" = set; then
1423 echo $ECHO_N "(cached) $ECHO_C" >&6
1425 if test -n "$CC"; then
1426 ac_cv_prog_CC="$CC" # Let the user override the test.
1429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1433 test -z "$as_dir" && as_dir=.
1434 for ac_exec_ext in '' $ac_executable_extensions; do
1435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1436 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1437 ac_prog_rejected=yes
1441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1447 if test $ac_prog_rejected = yes; then
1448 # We found a bogon in the path, so make sure we never use it.
1449 set dummy $ac_cv_prog_CC
1451 if test $# != 0; then
1452 # We chose a different compiler from the bogus one.
1453 # However, it has the same basename, so the bogon will be chosen
1454 # first if we set CC to just the basename; use the full file name.
1456 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1462 if test -n "$CC"; then
1463 echo "$as_me:$LINENO: result: $CC" >&5
1464 echo "${ECHO_T}$CC" >&6
1466 echo "$as_me:$LINENO: result: no" >&5
1467 echo "${ECHO_T}no" >&6
1471 if test -z "$CC"; then
1472 if test -n "$ac_tool_prefix"; then
1475 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1476 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1477 echo "$as_me:$LINENO: checking for $ac_word" >&5
1478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1479 if test "${ac_cv_prog_CC+set}" = set; then
1480 echo $ECHO_N "(cached) $ECHO_C" >&6
1482 if test -n "$CC"; then
1483 ac_cv_prog_CC="$CC" # Let the user override the test.
1485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1489 test -z "$as_dir" && as_dir=.
1490 for ac_exec_ext in '' $ac_executable_extensions; do
1491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1492 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1502 if test -n "$CC"; then
1503 echo "$as_me:$LINENO: result: $CC" >&5
1504 echo "${ECHO_T}$CC" >&6
1506 echo "$as_me:$LINENO: result: no" >&5
1507 echo "${ECHO_T}no" >&6
1510 test -n "$CC" && break
1513 if test -z "$CC"; then
1517 # Extract the first word of "$ac_prog", so it can be a program name with args.
1518 set dummy $ac_prog; ac_word=$2
1519 echo "$as_me:$LINENO: checking for $ac_word" >&5
1520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1521 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1522 echo $ECHO_N "(cached) $ECHO_C" >&6
1524 if test -n "$ac_ct_CC"; then
1525 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1531 test -z "$as_dir" && as_dir=.
1532 for ac_exec_ext in '' $ac_executable_extensions; do
1533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1534 ac_cv_prog_ac_ct_CC="$ac_prog"
1535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1543 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1544 if test -n "$ac_ct_CC"; then
1545 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1546 echo "${ECHO_T}$ac_ct_CC" >&6
1548 echo "$as_me:$LINENO: result: no" >&5
1549 echo "${ECHO_T}no" >&6
1552 test -n "$ac_ct_CC" && break
1561 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1562 See \`config.log' for more details.
" >&5
1563 echo "$as_me: error
: no acceptable C compiler found
in \
$PATH
1564 See \
`config.log' for more details." >&2;}
1565 { (exit 1); exit 1; }; }
1567 # Provide some information about the compiler.
1568 echo "$as_me:$LINENO:" \
1569 "checking for C compiler version" >&5
1570 ac_compiler=`set X
$ac_compile; echo $2`
1571 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1572 (eval $ac_compiler --version </dev/null >&5) 2>&5
1574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1575 (exit $ac_status); }
1576 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1577 (eval $ac_compiler -v </dev/null >&5) 2>&5
1579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1580 (exit $ac_status); }
1581 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1582 (eval $ac_compiler -V </dev/null >&5) 2>&5
1584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1585 (exit $ac_status); }
1587 cat >conftest.$ac_ext <<_ACEOF
1590 cat confdefs.h >>conftest.$ac_ext
1591 cat >>conftest.$ac_ext <<_ACEOF
1592 /* end confdefs.h. */
1602 ac_clean_files_save=$ac_clean_files
1603 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1604 # Try to create an executable without -o first, disregard a.out.
1605 # It will help us diagnose broken compilers, and finding out an intuition
1607 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1608 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1609 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
1610 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1611 (eval $ac_link_default) 2>&5
1613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1614 (exit $ac_status); }; then
1615 # Find the output, starting from the most likely. This scheme is
1616 # not robust to junk in `.
', hence go to wildcards (a.*) only as a last
1619 # Be careful to initialize this variable, since it used to be cached.
1620 # Otherwise an old cache value of `no' led to
`EXEEXT = no' in a Makefile.
1622 # b.out is created by i960 compilers.
1623 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1625 test -f "$ac_file" || continue
1627 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1630 # This is the source file.
1633 # We found the default executable, but exeext='' is most
1637 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1638 # FIXME: I believe we export ac_cv_exeext for Libtool,
1639 # but it would be cool to find out if it's true. Does anybody
1640 # maintain Libtool? --akim.
1648 echo "$as_me: failed program was:" >&5
1649 sed 's/^/| /' conftest.$ac_ext >&5
1651 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1652 See \`config.log
' for more details." >&5
1653 echo "$as_me: error: C compiler cannot create executables
1654 See \`config.log' for more details.
" >&2;}
1655 { (exit 77); exit 77; }; }
1658 ac_exeext=$ac_cv_exeext
1659 echo "$as_me:$LINENO: result
: $ac_file" >&5
1660 echo "${ECHO_T}$ac_file" >&6
1662 # Check the compiler produces executables we can run. If not, either
1663 # the compiler is broken, or we cross compile.
1664 echo "$as_me:$LINENO: checking whether the C compiler works
" >&5
1665 echo $ECHO_N "checking whether the C compiler works...
$ECHO_C" >&6
1666 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1667 # If not cross compiling, check that we can run a simple program.
1668 if test "$cross_compiling" != yes; then
1669 if { ac_try='./$ac_file'
1670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1673 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
1674 (exit $ac_status); }; }; then
1677 if test "$cross_compiling" = maybe; then
1680 { { echo "$as_me:$LINENO: error
: cannot run C compiled programs.
1681 If you meant to cross compile
, use \
`--host'.
1682 See \`config.log
' for more details." >&5
1683 echo "$as_me: error: cannot run C compiled programs.
1684 If you meant to cross compile, use \`--host'.
1685 See \
`config.log' for more details." >&2;}
1686 { (exit 1); exit 1; }; }
1690 echo "$as_me:$LINENO: result: yes" >&5
1691 echo "${ECHO_T}yes" >&6
1693 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1694 ac_clean_files=$ac_clean_files_save
1695 # Check the compiler produces executables we can run. If not, either
1696 # the compiler is broken, or we cross compile.
1697 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1698 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1699 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1700 echo "${ECHO_T}$cross_compiling" >&6
1702 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1703 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1705 (eval $ac_link) 2>&5
1707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1708 (exit $ac_status); }; then
1709 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
1710 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
1711 # work properly (i.e., refer to `conftest.exe'), while it won't with
1713 for ac_file
in conftest.exe conftest conftest.
*; do
1714 test -f "$ac_file" ||
continue
1716 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1717 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1724 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1725 See \`config.log' for more details." >&5
1726 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1727 See \`config.log' for more details." >&2;}
1728 { (exit 1); exit 1; }; }
1731 rm -f conftest
$ac_cv_exeext
1732 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1733 echo "${ECHO_T}$ac_cv_exeext" >&6
1735 rm -f conftest.
$ac_ext
1736 EXEEXT
=$ac_cv_exeext
1738 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1739 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1740 if test "${ac_cv_objext+set}" = set; then
1741 echo $ECHO_N "(cached) $ECHO_C" >&6
1743 cat >conftest.
$ac_ext <<_ACEOF
1746 cat confdefs.h
>>conftest.
$ac_ext
1747 cat >>conftest.
$ac_ext <<_ACEOF
1748 /* end confdefs.h. */
1758 rm -f conftest.o conftest.obj
1759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1760 (eval $ac_compile) 2>&5
1762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1763 (exit $ac_status); }; then
1764 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1766 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
1767 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1772 echo "$as_me: failed program was:" >&5
1773 sed 's/^/| /' conftest.
$ac_ext >&5
1775 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1776 See \`config.log' for more details." >&5
1777 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1778 See \`config.log' for more details." >&2;}
1779 { (exit 1); exit 1; }; }
1782 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1784 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1785 echo "${ECHO_T}$ac_cv_objext" >&6
1786 OBJEXT
=$ac_cv_objext
1788 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1789 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1790 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1791 echo $ECHO_N "(cached) $ECHO_C" >&6
1793 cat >conftest.
$ac_ext <<_ACEOF
1796 cat confdefs.h
>>conftest.
$ac_ext
1797 cat >>conftest.
$ac_ext <<_ACEOF
1798 /* end confdefs.h. */
1811 rm -f conftest.
$ac_objext
1812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1813 (eval $ac_compile) 2>conftest.er1
1815 grep -v '^ *+' conftest.er1
>conftest.err
1817 cat conftest.err
>&5
1818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1819 (exit $ac_status); } &&
1820 { ac_try
='test -z "$ac_c_werror_flag"
1821 || test ! -s conftest.err'
1822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1826 (exit $ac_status); }; } &&
1827 { ac_try
='test -s conftest.$ac_objext'
1828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1832 (exit $ac_status); }; }; then
1835 echo "$as_me: failed program was:" >&5
1836 sed 's/^/| /' conftest.
$ac_ext >&5
1840 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
1841 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
1844 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1845 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1846 GCC
=`test $ac_compiler_gnu = yes && echo yes`
1847 ac_test_CFLAGS
=${CFLAGS+set}
1848 ac_save_CFLAGS
=$CFLAGS
1850 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1851 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1852 if test "${ac_cv_prog_cc_g+set}" = set; then
1853 echo $ECHO_N "(cached) $ECHO_C" >&6
1855 cat >conftest.
$ac_ext <<_ACEOF
1858 cat confdefs.h
>>conftest.
$ac_ext
1859 cat >>conftest.
$ac_ext <<_ACEOF
1860 /* end confdefs.h. */
1870 rm -f conftest.
$ac_objext
1871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1872 (eval $ac_compile) 2>conftest.er1
1874 grep -v '^ *+' conftest.er1
>conftest.err
1876 cat conftest.err
>&5
1877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1878 (exit $ac_status); } &&
1879 { ac_try
='test -z "$ac_c_werror_flag"
1880 || test ! -s conftest.err'
1881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885 (exit $ac_status); }; } &&
1886 { ac_try
='test -s conftest.$ac_objext'
1887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1891 (exit $ac_status); }; }; then
1894 echo "$as_me: failed program was:" >&5
1895 sed 's/^/| /' conftest.
$ac_ext >&5
1899 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
1901 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1902 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1903 if test "$ac_test_CFLAGS" = set; then
1904 CFLAGS
=$ac_save_CFLAGS
1905 elif test $ac_cv_prog_cc_g = yes; then
1906 if test "$GCC" = yes; then
1912 if test "$GCC" = yes; then
1918 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1919 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1920 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1921 echo $ECHO_N "(cached) $ECHO_C" >&6
1923 ac_cv_prog_cc_stdc
=no
1925 cat >conftest.
$ac_ext <<_ACEOF
1928 cat confdefs.h
>>conftest.
$ac_ext
1929 cat >>conftest.
$ac_ext <<_ACEOF
1930 /* end confdefs.h. */
1933 #include <sys/types.h>
1934 #include <sys/stat.h>
1935 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1936 struct buf { int x; };
1937 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1938 static char *e (p, i)
1944 static char *f (char * (*g) (char **, int), char **p, ...)
1949 s = g (p, va_arg (v,int));
1954 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1955 function prototypes and stuff, but not '\xHH' hex character constants.
1956 These don't provoke an error unfortunately, instead are silently treated
1957 as 'x'. The following induces an error, until -std1 is added to get
1958 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
1959 array size at least. It's necessary to write '\x00'==0 to get something
1960 that's true only with -std1. */
1961 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1963 int test (int i, double x);
1964 struct s1 {int (*f) (int a);};
1965 struct s2 {int (*f) (double a);};
1966 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1972 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1977 # Don't try gcc -ansi; that turns off useful extensions and
1978 # breaks some systems' header files.
1979 # AIX -qlanglvl=ansi
1980 # Ultrix and OSF/1 -std1
1981 # HP-UX 10.20 and later -Ae
1982 # HP-UX older versions -Aa -D_HPUX_SOURCE
1983 # SVR4 -Xc -D__EXTENSIONS__
1984 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1986 CC
="$ac_save_CC $ac_arg"
1987 rm -f conftest.
$ac_objext
1988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1989 (eval $ac_compile) 2>conftest.er1
1991 grep -v '^ *+' conftest.er1
>conftest.err
1993 cat conftest.err
>&5
1994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995 (exit $ac_status); } &&
1996 { ac_try
='test -z "$ac_c_werror_flag"
1997 || test ! -s conftest.err'
1998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); }; } &&
2003 { ac_try
='test -s conftest.$ac_objext'
2004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); }; }; then
2009 ac_cv_prog_cc_stdc
=$ac_arg
2012 echo "$as_me: failed program was:" >&5
2013 sed 's/^/| /' conftest.
$ac_ext >&5
2016 rm -f conftest.err conftest.
$ac_objext
2018 rm -f conftest.
$ac_ext conftest.
$ac_objext
2023 case "x$ac_cv_prog_cc_stdc" in
2025 echo "$as_me:$LINENO: result: none needed" >&5
2026 echo "${ECHO_T}none needed" >&6 ;;
2028 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2029 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2030 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2033 # Some people use a C++ compiler to compile C. Since we use `exit',
2034 # in C++ we need to declare it. In case someone uses the same compiler
2035 # for both compiling C and C++ we need to have the C++ compiler decide
2036 # the declaration of exit, since it's the most demanding environment.
2037 cat >conftest.
$ac_ext <<_ACEOF
2042 rm -f conftest.
$ac_objext
2043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2044 (eval $ac_compile) 2>conftest.er1
2046 grep -v '^ *+' conftest.er1
>conftest.err
2048 cat conftest.err
>&5
2049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2050 (exit $ac_status); } &&
2051 { ac_try
='test -z "$ac_c_werror_flag"
2052 || test ! -s conftest.err'
2053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057 (exit $ac_status); }; } &&
2058 { ac_try
='test -s conftest.$ac_objext'
2059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063 (exit $ac_status); }; }; then
2064 for ac_declaration
in \
2066 'extern "C" void std::exit (int) throw (); using std::exit;' \
2067 'extern "C" void std::exit (int); using std::exit;' \
2068 'extern "C" void exit (int) throw ();' \
2069 'extern "C" void exit (int);' \
2072 cat >conftest.
$ac_ext <<_ACEOF
2075 cat confdefs.h
>>conftest.
$ac_ext
2076 cat >>conftest.
$ac_ext <<_ACEOF
2077 /* end confdefs.h. */
2088 rm -f conftest.
$ac_objext
2089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2090 (eval $ac_compile) 2>conftest.er1
2092 grep -v '^ *+' conftest.er1
>conftest.err
2094 cat conftest.err
>&5
2095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096 (exit $ac_status); } &&
2097 { ac_try
='test -z "$ac_c_werror_flag"
2098 || test ! -s conftest.err'
2099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103 (exit $ac_status); }; } &&
2104 { ac_try
='test -s conftest.$ac_objext'
2105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109 (exit $ac_status); }; }; then
2112 echo "$as_me: failed program was:" >&5
2113 sed 's/^/| /' conftest.
$ac_ext >&5
2117 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2118 cat >conftest.
$ac_ext <<_ACEOF
2121 cat confdefs.h
>>conftest.
$ac_ext
2122 cat >>conftest.
$ac_ext <<_ACEOF
2123 /* end confdefs.h. */
2133 rm -f conftest.
$ac_objext
2134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2135 (eval $ac_compile) 2>conftest.er1
2137 grep -v '^ *+' conftest.er1
>conftest.err
2139 cat conftest.err
>&5
2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); } &&
2142 { ac_try
='test -z "$ac_c_werror_flag"
2143 || test ! -s conftest.err'
2144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); }; } &&
2149 { ac_try
='test -s conftest.$ac_objext'
2150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }; }; then
2157 echo "$as_me: failed program was:" >&5
2158 sed 's/^/| /' conftest.
$ac_ext >&5
2161 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2164 if test -n "$ac_declaration"; then
2165 echo '#ifdef __cplusplus' >>confdefs.h
2166 echo $ac_declaration >>confdefs.h
2167 echo '#endif' >>confdefs.h
2171 echo "$as_me: failed program was:" >&5
2172 sed 's/^/| /' conftest.
$ac_ext >&5
2175 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2177 ac_cpp
='$CPP $CPPFLAGS'
2178 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2179 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2180 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2183 for ac_prog
in flex
lex
2185 # Extract the first word of "$ac_prog", so it can be a program name with args.
2186 set dummy
$ac_prog; ac_word
=$2
2187 echo "$as_me:$LINENO: checking for $ac_word" >&5
2188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2189 if test "${ac_cv_prog_LEX+set}" = set; then
2190 echo $ECHO_N "(cached) $ECHO_C" >&6
2192 if test -n "$LEX"; then
2193 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
2195 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2199 test -z "$as_dir" && as_dir
=.
2200 for ac_exec_ext
in '' $ac_executable_extensions; do
2201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2202 ac_cv_prog_LEX
="$ac_prog"
2203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2212 if test -n "$LEX"; then
2213 echo "$as_me:$LINENO: result: $LEX" >&5
2214 echo "${ECHO_T}$LEX" >&6
2216 echo "$as_me:$LINENO: result: no" >&5
2217 echo "${ECHO_T}no" >&6
2220 test -n "$LEX" && break
2222 test -n "$LEX" || LEX
=":"
2224 if test -z "$LEXLIB"
2226 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
2227 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
2228 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
2229 echo $ECHO_N "(cached) $ECHO_C" >&6
2231 ac_check_lib_save_LIBS
=$LIBS
2233 cat >conftest.
$ac_ext <<_ACEOF
2236 cat confdefs.h
>>conftest.
$ac_ext
2237 cat >>conftest.
$ac_ext <<_ACEOF
2238 /* end confdefs.h. */
2240 /* Override any gcc2 internal prototype to avoid an error. */
2244 /* We use char because int might match the return type of a gcc2
2245 builtin and then its argument prototype would still apply. */
2255 rm -f conftest.
$ac_objext conftest
$ac_exeext
2256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2257 (eval $ac_link) 2>conftest.er1
2259 grep -v '^ *+' conftest.er1
>conftest.err
2261 cat conftest.err
>&5
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); } &&
2264 { ac_try
='test -z "$ac_c_werror_flag"
2265 || test ! -s conftest.err'
2266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }; } &&
2271 { ac_try
='test -s conftest$ac_exeext'
2272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; }; then
2277 ac_cv_lib_fl_yywrap
=yes
2279 echo "$as_me: failed program was:" >&5
2280 sed 's/^/| /' conftest.
$ac_ext >&5
2282 ac_cv_lib_fl_yywrap
=no
2284 rm -f conftest.err conftest.
$ac_objext \
2285 conftest
$ac_exeext conftest.
$ac_ext
2286 LIBS
=$ac_check_lib_save_LIBS
2288 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
2289 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
2290 if test $ac_cv_lib_fl_yywrap = yes; then
2293 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
2294 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
2295 if test "${ac_cv_lib_l_yywrap+set}" = set; then
2296 echo $ECHO_N "(cached) $ECHO_C" >&6
2298 ac_check_lib_save_LIBS
=$LIBS
2300 cat >conftest.
$ac_ext <<_ACEOF
2303 cat confdefs.h
>>conftest.
$ac_ext
2304 cat >>conftest.
$ac_ext <<_ACEOF
2305 /* end confdefs.h. */
2307 /* Override any gcc2 internal prototype to avoid an error. */
2311 /* We use char because int might match the return type of a gcc2
2312 builtin and then its argument prototype would still apply. */
2322 rm -f conftest.
$ac_objext conftest
$ac_exeext
2323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2324 (eval $ac_link) 2>conftest.er1
2326 grep -v '^ *+' conftest.er1
>conftest.err
2328 cat conftest.err
>&5
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); } &&
2331 { ac_try
='test -z "$ac_c_werror_flag"
2332 || test ! -s conftest.err'
2333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }; } &&
2338 { ac_try
='test -s conftest$ac_exeext'
2339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }; }; then
2344 ac_cv_lib_l_yywrap
=yes
2346 echo "$as_me: failed program was:" >&5
2347 sed 's/^/| /' conftest.
$ac_ext >&5
2349 ac_cv_lib_l_yywrap
=no
2351 rm -f conftest.err conftest.
$ac_objext \
2352 conftest
$ac_exeext conftest.
$ac_ext
2353 LIBS
=$ac_check_lib_save_LIBS
2355 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
2356 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
2357 if test $ac_cv_lib_l_yywrap = yes; then
2365 if test "x$LEX" != "x:"; then
2366 echo "$as_me:$LINENO: checking lex output file root" >&5
2367 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
2368 if test "${ac_cv_prog_lex_root+set}" = set; then
2369 echo $ECHO_N "(cached) $ECHO_C" >&6
2371 # The minimal lex program is just a single line: %%. But some broken lexes
2372 # (Solaris, I think it was) want two %% lines, so accommodate them.
2373 cat >conftest.l
<<_ACEOF
2377 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
2378 (eval $LEX conftest.l
) 2>&5
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); }
2382 if test -f lex.yy.c
; then
2383 ac_cv_prog_lex_root
=lex.yy
2384 elif test -f lexyy.c
; then
2385 ac_cv_prog_lex_root
=lexyy
2387 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
2388 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
2389 { (exit 1); exit 1; }; }
2392 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
2393 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
2395 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
2397 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
2398 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
2399 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
2400 echo $ECHO_N "(cached) $ECHO_C" >&6
2402 # POSIX says lex can declare yytext either as a pointer or an array; the
2403 # default is implementation-dependent. Figure out which it is, since
2404 # not all implementations provide the %pointer and %array declarations.
2405 ac_cv_prog_lex_yytext_pointer
=no
2406 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2408 LIBS
="$LIBS $LEXLIB"
2409 cat >conftest.
$ac_ext <<_ACEOF
2410 `cat $LEX_OUTPUT_ROOT.c`
2412 rm -f conftest.
$ac_objext conftest
$ac_exeext
2413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2414 (eval $ac_link) 2>conftest.er1
2416 grep -v '^ *+' conftest.er1
>conftest.err
2418 cat conftest.err
>&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); } &&
2421 { ac_try
='test -z "$ac_c_werror_flag"
2422 || test ! -s conftest.err'
2423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); }; } &&
2428 { ac_try
='test -s conftest$ac_exeext'
2429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); }; }; then
2434 ac_cv_prog_lex_yytext_pointer
=yes
2436 echo "$as_me: failed program was:" >&5
2437 sed 's/^/| /' conftest.
$ac_ext >&5
2440 rm -f conftest.err conftest.
$ac_objext \
2441 conftest
$ac_exeext conftest.
$ac_ext
2443 rm -f "${LEX_OUTPUT_ROOT}.c"
2446 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
2447 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
2448 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2450 cat >>confdefs.h
<<\_ACEOF
2451 #define YYTEXT_POINTER 1
2457 for ac_prog
in 'bison -y' byacc
2459 # Extract the first word of "$ac_prog", so it can be a program name with args.
2460 set dummy
$ac_prog; ac_word
=$2
2461 echo "$as_me:$LINENO: checking for $ac_word" >&5
2462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2463 if test "${ac_cv_prog_YACC+set}" = set; then
2464 echo $ECHO_N "(cached) $ECHO_C" >&6
2466 if test -n "$YACC"; then
2467 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
2469 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2473 test -z "$as_dir" && as_dir
=.
2474 for ac_exec_ext
in '' $ac_executable_extensions; do
2475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2476 ac_cv_prog_YACC
="$ac_prog"
2477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2485 YACC
=$ac_cv_prog_YACC
2486 if test -n "$YACC"; then
2487 echo "$as_me:$LINENO: result: $YACC" >&5
2488 echo "${ECHO_T}$YACC" >&6
2490 echo "$as_me:$LINENO: result: no" >&5
2491 echo "${ECHO_T}no" >&6
2494 test -n "$YACC" && break
2496 test -n "$YACC" || YACC
="yacc"
2499 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
2500 if test -f $ac_dir/install-sh
; then
2502 ac_install_sh
="$ac_aux_dir/install-sh -c"
2504 elif test -f $ac_dir/install.sh
; then
2506 ac_install_sh
="$ac_aux_dir/install.sh -c"
2508 elif test -f $ac_dir/shtool
; then
2510 ac_install_sh
="$ac_aux_dir/shtool install -c"
2514 if test -z "$ac_aux_dir"; then
2515 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2516 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2517 { (exit 1); exit 1; }; }
2519 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
2520 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
2521 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2523 # Find a good install program. We prefer a C program (faster),
2524 # so one script is as good as another. But avoid the broken or
2525 # incompatible versions:
2526 # SysV /etc/install, /usr/sbin/install
2527 # SunOS /usr/etc/install
2528 # IRIX /sbin/install
2530 # AmigaOS /C/install, which installs bootblocks on floppy discs
2531 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2532 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2533 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2534 # OS/2's system install, which has a completely different semantic
2535 # ./install, which can be erroneously created by make from ./install.sh.
2536 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2537 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2538 if test -z "$INSTALL"; then
2539 if test "${ac_cv_path_install+set}" = set; then
2540 echo $ECHO_N "(cached) $ECHO_C" >&6
2542 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2546 test -z "$as_dir" && as_dir
=.
2547 # Account for people who put trailing slashes in PATH elements.
2549 .
/ | .
// |
/cC
/* | \
2550 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2551 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2554 # OSF1 and SCO ODT 3.0 have their own names for install.
2555 # Don't use installbsd from OSF since it installs stuff as root
2557 for ac_prog
in ginstall scoinst
install; do
2558 for ac_exec_ext
in '' $ac_executable_extensions; do
2559 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2560 if test $ac_prog = install &&
2561 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2562 # AIX install. It has an incompatible calling convention.
2564 elif test $ac_prog = install &&
2565 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2566 # program-specific install script used by HP pwplus--don't use.
2569 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2581 if test "${ac_cv_path_install+set}" = set; then
2582 INSTALL
=$ac_cv_path_install
2584 # As a last resort, use the slow shell script. We don't cache a
2585 # path for INSTALL within a source directory, because that will
2586 # break other packages using the cache if that directory is
2587 # removed, or if the path is relative.
2588 INSTALL
=$ac_install_sh
2591 echo "$as_me:$LINENO: result: $INSTALL" >&5
2592 echo "${ECHO_T}$INSTALL" >&6
2594 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2595 # It thinks the first close brace ends the variable substitution.
2596 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2598 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2600 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2603 ac_cpp
='$CPP $CPPFLAGS'
2604 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2605 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2606 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2607 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2608 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2609 # On Suns, sometimes $CPP names a directory.
2610 if test -n "$CPP" && test -d "$CPP"; then
2613 if test -z "$CPP"; then
2614 if test "${ac_cv_prog_CPP+set}" = set; then
2615 echo $ECHO_N "(cached) $ECHO_C" >&6
2617 # Double quotes because CPP needs to be expanded
2618 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2621 for ac_c_preproc_warn_flag
in '' yes
2623 # Use a header file that comes with gcc, so configuring glibc
2624 # with a fresh cross-compiler works.
2625 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2626 # <limits.h> exists even on freestanding compilers.
2627 # On the NeXT, cc -E runs the code through the compiler's parser,
2628 # not just through cpp. "Syntax error" is here to catch this case.
2629 cat >conftest.
$ac_ext <<_ACEOF
2632 cat confdefs.h
>>conftest.
$ac_ext
2633 cat >>conftest.
$ac_ext <<_ACEOF
2634 /* end confdefs.h. */
2636 # include <limits.h>
2638 # include <assert.h>
2642 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2643 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2645 grep -v '^ *+' conftest.er1
>conftest.err
2647 cat conftest.err
>&5
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); } >/dev
/null
; then
2650 if test -s conftest.err
; then
2651 ac_cpp_err
=$ac_c_preproc_warn_flag
2652 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2659 if test -z "$ac_cpp_err"; then
2662 echo "$as_me: failed program was:" >&5
2663 sed 's/^/| /' conftest.
$ac_ext >&5
2665 # Broken: fails on valid input.
2668 rm -f conftest.err conftest.
$ac_ext
2670 # OK, works on sane cases. Now check whether non-existent headers
2671 # can be detected and how.
2672 cat >conftest.
$ac_ext <<_ACEOF
2675 cat confdefs.h
>>conftest.
$ac_ext
2676 cat >>conftest.
$ac_ext <<_ACEOF
2677 /* end confdefs.h. */
2678 #include <ac_nonexistent.h>
2680 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2681 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2683 grep -v '^ *+' conftest.er1
>conftest.err
2685 cat conftest.err
>&5
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); } >/dev
/null
; then
2688 if test -s conftest.err
; then
2689 ac_cpp_err
=$ac_c_preproc_warn_flag
2690 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2697 if test -z "$ac_cpp_err"; then
2698 # Broken: success on invalid input.
2701 echo "$as_me: failed program was:" >&5
2702 sed 's/^/| /' conftest.
$ac_ext >&5
2704 # Passes both tests.
2708 rm -f conftest.err conftest.
$ac_ext
2711 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2712 rm -f conftest.err conftest.
$ac_ext
2713 if $ac_preproc_ok; then
2725 echo "$as_me:$LINENO: result: $CPP" >&5
2726 echo "${ECHO_T}$CPP" >&6
2728 for ac_c_preproc_warn_flag
in '' yes
2730 # Use a header file that comes with gcc, so configuring glibc
2731 # with a fresh cross-compiler works.
2732 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2733 # <limits.h> exists even on freestanding compilers.
2734 # On the NeXT, cc -E runs the code through the compiler's parser,
2735 # not just through cpp. "Syntax error" is here to catch this case.
2736 cat >conftest.
$ac_ext <<_ACEOF
2739 cat confdefs.h
>>conftest.
$ac_ext
2740 cat >>conftest.
$ac_ext <<_ACEOF
2741 /* end confdefs.h. */
2743 # include <limits.h>
2745 # include <assert.h>
2749 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2750 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2752 grep -v '^ *+' conftest.er1
>conftest.err
2754 cat conftest.err
>&5
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); } >/dev
/null
; then
2757 if test -s conftest.err
; then
2758 ac_cpp_err
=$ac_c_preproc_warn_flag
2759 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2766 if test -z "$ac_cpp_err"; then
2769 echo "$as_me: failed program was:" >&5
2770 sed 's/^/| /' conftest.
$ac_ext >&5
2772 # Broken: fails on valid input.
2775 rm -f conftest.err conftest.
$ac_ext
2777 # OK, works on sane cases. Now check whether non-existent headers
2778 # can be detected and how.
2779 cat >conftest.
$ac_ext <<_ACEOF
2782 cat confdefs.h
>>conftest.
$ac_ext
2783 cat >>conftest.
$ac_ext <<_ACEOF
2784 /* end confdefs.h. */
2785 #include <ac_nonexistent.h>
2787 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2788 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2790 grep -v '^ *+' conftest.er1
>conftest.err
2792 cat conftest.err
>&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); } >/dev
/null
; then
2795 if test -s conftest.err
; then
2796 ac_cpp_err
=$ac_c_preproc_warn_flag
2797 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2804 if test -z "$ac_cpp_err"; then
2805 # Broken: success on invalid input.
2808 echo "$as_me: failed program was:" >&5
2809 sed 's/^/| /' conftest.
$ac_ext >&5
2811 # Passes both tests.
2815 rm -f conftest.err conftest.
$ac_ext
2818 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2819 rm -f conftest.err conftest.
$ac_ext
2820 if $ac_preproc_ok; then
2823 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2824 See \`config.log' for more details." >&5
2825 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2826 See \`config.log' for more details." >&2;}
2827 { (exit 1); exit 1; }; }
2831 ac_cpp
='$CPP $CPPFLAGS'
2832 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2833 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2834 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2837 echo "$as_me:$LINENO: checking for egrep" >&5
2838 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2839 if test "${ac_cv_prog_egrep+set}" = set; then
2840 echo $ECHO_N "(cached) $ECHO_C" >&6
2842 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
2843 then ac_cv_prog_egrep
='grep -E'
2844 else ac_cv_prog_egrep
='egrep'
2847 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2848 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2849 EGREP
=$ac_cv_prog_egrep
2852 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2853 # for constant arguments. Useless!
2854 echo "$as_me:$LINENO: checking for working alloca.h" >&5
2855 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
2856 if test "${ac_cv_working_alloca_h+set}" = set; then
2857 echo $ECHO_N "(cached) $ECHO_C" >&6
2859 cat >conftest.
$ac_ext <<_ACEOF
2862 cat confdefs.h
>>conftest.
$ac_ext
2863 cat >>conftest.
$ac_ext <<_ACEOF
2864 /* end confdefs.h. */
2869 char *p = (char *) alloca (2 * sizeof (int));
2874 rm -f conftest.
$ac_objext conftest
$ac_exeext
2875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2876 (eval $ac_link) 2>conftest.er1
2878 grep -v '^ *+' conftest.er1
>conftest.err
2880 cat conftest.err
>&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); } &&
2883 { ac_try
='test -z "$ac_c_werror_flag"
2884 || test ! -s conftest.err'
2885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; } &&
2890 { ac_try
='test -s conftest$ac_exeext'
2891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }; }; then
2896 ac_cv_working_alloca_h
=yes
2898 echo "$as_me: failed program was:" >&5
2899 sed 's/^/| /' conftest.
$ac_ext >&5
2901 ac_cv_working_alloca_h
=no
2903 rm -f conftest.err conftest.
$ac_objext \
2904 conftest
$ac_exeext conftest.
$ac_ext
2906 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
2907 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
2908 if test $ac_cv_working_alloca_h = yes; then
2910 cat >>confdefs.h
<<\_ACEOF
2911 #define HAVE_ALLOCA_H 1
2916 echo "$as_me:$LINENO: checking for alloca" >&5
2917 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
2918 if test "${ac_cv_func_alloca_works+set}" = set; then
2919 echo $ECHO_N "(cached) $ECHO_C" >&6
2921 cat >conftest.
$ac_ext <<_ACEOF
2924 cat confdefs.h
>>conftest.
$ac_ext
2925 cat >>conftest.
$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2928 # define alloca __builtin_alloca
2931 # include <malloc.h>
2932 # define alloca _alloca
2935 # include <alloca.h>
2940 # ifndef alloca /* predefined by HP cc +Olibcalls */
2951 char *p = (char *) alloca (1);
2956 rm -f conftest.
$ac_objext conftest
$ac_exeext
2957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2958 (eval $ac_link) 2>conftest.er1
2960 grep -v '^ *+' conftest.er1
>conftest.err
2962 cat conftest.err
>&5
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); } &&
2965 { ac_try
='test -z "$ac_c_werror_flag"
2966 || test ! -s conftest.err'
2967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); }; } &&
2972 { ac_try
='test -s conftest$ac_exeext'
2973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); }; }; then
2978 ac_cv_func_alloca_works
=yes
2980 echo "$as_me: failed program was:" >&5
2981 sed 's/^/| /' conftest.
$ac_ext >&5
2983 ac_cv_func_alloca_works
=no
2985 rm -f conftest.err conftest.
$ac_objext \
2986 conftest
$ac_exeext conftest.
$ac_ext
2988 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
2989 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
2991 if test $ac_cv_func_alloca_works = yes; then
2993 cat >>confdefs.h
<<\_ACEOF
2994 #define HAVE_ALLOCA 1
2998 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2999 # that cause trouble. Some versions do not even contain alloca or
3000 # contain a buggy version. If you still want to use their alloca,
3001 # use ar to extract alloca.o from them instead of compiling alloca.c.
3003 ALLOCA
=alloca.
$ac_objext
3005 cat >>confdefs.h
<<\_ACEOF
3010 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3011 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3012 if test "${ac_cv_os_cray+set}" = set; then
3013 echo $ECHO_N "(cached) $ECHO_C" >&6
3015 cat >conftest.
$ac_ext <<_ACEOF
3018 cat confdefs.h
>>conftest.
$ac_ext
3019 cat >>conftest.
$ac_ext <<_ACEOF
3020 /* end confdefs.h. */
3021 #if defined(CRAY) && ! defined(CRAY2)
3028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3029 $EGREP "webecray" >/dev
/null
2>&1; then
3037 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3038 echo "${ECHO_T}$ac_cv_os_cray" >&6
3039 if test $ac_cv_os_cray = yes; then
3040 for ac_func
in _getb67 GETB67 getb67
; do
3041 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3042 echo "$as_me:$LINENO: checking for $ac_func" >&5
3043 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3044 if eval "test \"\${$as_ac_var+set}\" = set"; then
3045 echo $ECHO_N "(cached) $ECHO_C" >&6
3047 cat >conftest.
$ac_ext <<_ACEOF
3050 cat confdefs.h
>>conftest.
$ac_ext
3051 cat >>conftest.
$ac_ext <<_ACEOF
3052 /* end confdefs.h. */
3053 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3054 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3055 #define $ac_func innocuous_$ac_func
3057 /* System header to define __stub macros and hopefully few prototypes,
3058 which can conflict with char $ac_func (); below.
3059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3060 <limits.h> exists even on freestanding compilers. */
3063 # include <limits.h>
3065 # include <assert.h>
3070 /* Override any gcc2 internal prototype to avoid an error. */
3075 /* We use char because int might match the return type of a gcc2
3076 builtin and then its argument prototype would still apply. */
3078 /* The GNU C library defines this for functions which it implements
3079 to always fail with ENOSYS. Some functions are actually named
3080 something starting with __ and the normal name is an alias. */
3081 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3084 char (*f) () = $ac_func;
3093 return f != $ac_func;
3098 rm -f conftest.
$ac_objext conftest
$ac_exeext
3099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3100 (eval $ac_link) 2>conftest.er1
3102 grep -v '^ *+' conftest.er1
>conftest.err
3104 cat conftest.err
>&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); } &&
3107 { ac_try
='test -z "$ac_c_werror_flag"
3108 || test ! -s conftest.err'
3109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); }; } &&
3114 { ac_try
='test -s conftest$ac_exeext'
3115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); }; }; then
3120 eval "$as_ac_var=yes"
3122 echo "$as_me: failed program was:" >&5
3123 sed 's/^/| /' conftest.
$ac_ext >&5
3125 eval "$as_ac_var=no"
3127 rm -f conftest.err conftest.
$ac_objext \
3128 conftest
$ac_exeext conftest.
$ac_ext
3130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3131 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3132 if test `eval echo '${'$as_ac_var'}'` = yes; then
3134 cat >>confdefs.h
<<_ACEOF
3135 #define CRAY_STACKSEG_END $ac_func
3144 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3145 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3146 if test "${ac_cv_c_stack_direction+set}" = set; then
3147 echo $ECHO_N "(cached) $ECHO_C" >&6
3149 if test "$cross_compiling" = yes; then
3150 ac_cv_c_stack_direction
=0
3152 cat >conftest.
$ac_ext <<_ACEOF
3155 cat confdefs.h
>>conftest.
$ac_ext
3156 cat >>conftest.
$ac_ext <<_ACEOF
3157 /* end confdefs.h. */
3159 find_stack_direction ()
3161 static char *addr = 0;
3166 return find_stack_direction ();
3169 return (&dummy > addr) ? 1 : -1;
3175 exit (find_stack_direction () < 0);
3178 rm -f conftest
$ac_exeext
3179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3180 (eval $ac_link) 2>&5
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); }; }; then
3189 ac_cv_c_stack_direction
=1
3191 echo "$as_me: program exited with status $ac_status" >&5
3192 echo "$as_me: failed program was:" >&5
3193 sed 's/^/| /' conftest.
$ac_ext >&5
3196 ac_cv_c_stack_direction
=-1
3198 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3201 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
3202 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
3204 cat >>confdefs.h
<<_ACEOF
3205 #define STACK_DIRECTION $ac_cv_c_stack_direction
3212 for ac_func
in strcasecmp
3214 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3215 echo "$as_me:$LINENO: checking for $ac_func" >&5
3216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3217 if eval "test \"\${$as_ac_var+set}\" = set"; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3220 cat >conftest.
$ac_ext <<_ACEOF
3223 cat confdefs.h
>>conftest.
$ac_ext
3224 cat >>conftest.
$ac_ext <<_ACEOF
3225 /* end confdefs.h. */
3226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3228 #define $ac_func innocuous_$ac_func
3230 /* System header to define __stub macros and hopefully few prototypes,
3231 which can conflict with char $ac_func (); below.
3232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3233 <limits.h> exists even on freestanding compilers. */
3236 # include <limits.h>
3238 # include <assert.h>
3243 /* Override any gcc2 internal prototype to avoid an error. */
3248 /* We use char because int might match the return type of a gcc2
3249 builtin and then its argument prototype would still apply. */
3251 /* The GNU C library defines this for functions which it implements
3252 to always fail with ENOSYS. Some functions are actually named
3253 something starting with __ and the normal name is an alias. */
3254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3257 char (*f) () = $ac_func;
3266 return f != $ac_func;
3271 rm -f conftest.
$ac_objext conftest
$ac_exeext
3272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3273 (eval $ac_link) 2>conftest.er1
3275 grep -v '^ *+' conftest.er1
>conftest.err
3277 cat conftest.err
>&5
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); } &&
3280 { ac_try
='test -z "$ac_c_werror_flag"
3281 || test ! -s conftest.err'
3282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); }; } &&
3287 { ac_try
='test -s conftest$ac_exeext'
3288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; }; then
3293 eval "$as_ac_var=yes"
3295 echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.
$ac_ext >&5
3298 eval "$as_ac_var=no"
3300 rm -f conftest.err conftest.
$ac_objext \
3301 conftest
$ac_exeext conftest.
$ac_ext
3303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3304 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3305 if test `eval echo '${'$as_ac_var'}'` = yes; then
3306 cat >>confdefs.h
<<_ACEOF
3307 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3312 "$ac_func.$ac_objext" | \
3313 *" $ac_func.$ac_objext" | \
3314 "$ac_func.$ac_objext "* | \
3315 *" $ac_func.$ac_objext "* ) ;;
3316 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
3325 ac_config_files
="$ac_config_files Makefile"
3326 cat >confcache
<<\_ACEOF
3327 # This file is a shell script that caches the results of configure
3328 # tests run on this system so they can be shared between configure
3329 # scripts and configure runs, see configure's option --config-cache.
3330 # It is not useful on other systems. If it contains results you don't
3331 # want to keep, you may remove or edit it.
3333 # config.status only pays attention to the cache file if you give it
3334 # the --recheck option to rerun configure.
3336 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3337 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3342 # The following way of writing the cache mishandles newlines in values,
3343 # but we know of no workaround that is simple, portable, and efficient.
3344 # So, don't put newlines in cache variables' values.
3345 # Ultrix sh set writes to stderr and can't be redirected directly,
3346 # and sets the high bit in the cache file unless we assign to the vars.
3349 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3351 # `set' does not quote correctly, so add quotes (double-quote
3352 # substitution turns \\\\ into \\, and sed turns \\ into \).
3355 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3358 # `set' quotes correctly as required by POSIX, so do not add quotes.
3360 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3367 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3369 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3371 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
3372 if test -w $cache_file; then
3373 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3374 cat confcache
>$cache_file
3376 echo "not updating unwritable cache $cache_file"
3381 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3382 # Let make expand exec_prefix.
3383 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3385 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3386 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3387 # trailing colons and then remove the whole line if VPATH becomes empty
3388 # (actually we leave an empty line to preserve line numbers).
3389 if test "x$srcdir" = x.
; then
3390 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
3391 s/:*\$(srcdir):*/:/;
3392 s/:*\${srcdir}:*/:/;
3394 s/^\([^=]*=[ ]*\):*/\1/;
3400 DEFS
=-DHAVE_CONFIG_H
3404 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
3405 # 1. Remove the extension, and $U if already installed.
3406 ac_i
=`echo "$ac_i" |
3407 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3409 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
3410 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
3414 LTLIBOBJS
=$ac_ltlibobjs
3418 : ${CONFIG_STATUS=./config.status}
3419 ac_clean_files_save
=$ac_clean_files
3420 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
3421 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3422 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3423 cat >$CONFIG_STATUS <<_ACEOF
3425 # Generated by $as_me.
3426 # Run this file to recreate the current configuration.
3427 # Compiler output produced by configure, useful for debugging
3428 # configure, is in config.log if it exists.
3433 SHELL=\${CONFIG_SHELL-$SHELL}
3436 cat >>$CONFIG_STATUS <<\_ACEOF
3437 ## --------------------- ##
3438 ## M4sh Initialization. ##
3439 ## --------------------- ##
3441 # Be Bourne compatible
3442 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
3445 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3446 # is contrary to our usage. Disable this feature.
3447 alias -g '${1+"$@"}'='"$@"'
3448 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
3451 DUALCASE
=1; export DUALCASE
# for MKS sh
3453 # Support unset when possible.
3454 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
3461 # Work around bugs in pre-3.0 UWIN ksh.
3462 $as_unset ENV MAIL MAILPATH
3469 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3470 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3471 LC_TELEPHONE LC_TIME
3473 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3474 eval $as_var=C
; export $as_var
3480 # Required to use basename.
3481 if expr a
: '\(a\)' >/dev
/null
2>&1; then
3487 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
3488 as_basename
=basename
3494 # Name of the executable.
3495 as_me
=`$as_basename "$0" ||
3496 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3497 X"$0" : 'X\(//\)$' \| \
3498 X"$0" : 'X\(/\)$' \| \
3499 . : '\(.\)' 2>/dev/null ||
3501 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3502 /^X\/\(\/\/\)$/{ s//\1/; q; }
3503 /^X\/\(\/\).*/{ s//\1/; q; }
3507 # PATH needs CR, and LINENO needs CR and PATH.
3508 # Avoid depending upon Character Ranges.
3509 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
3510 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3511 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
3512 as_cr_digits
='0123456789'
3513 as_cr_alnum
=$as_cr_Letters$as_cr_digits
3515 # The user is always right.
3516 if test "${PATH_SEPARATOR+set}" != set; then
3517 echo "#! /bin/sh" >conf$$.sh
3518 echo "exit 0" >>conf$$.sh
3520 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
3531 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
3532 test "x$as_lineno_1" != "x$as_lineno_2" &&
3533 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
3534 # Find who we are. Look in the path if we contain no path at all
3537 *[\\/]* ) as_myself
=$0 ;;
3538 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3542 test -z "$as_dir" && as_dir
=.
3543 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
3548 # We did not find ourselves, most probably we were run as `sh COMMAND'
3549 # in which case we are not to be found in the path.
3550 if test "x$as_myself" = x
; then
3553 if test ! -f "$as_myself"; then
3554 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3555 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3556 { (exit 1); exit 1; }; }
3558 case $CONFIG_SHELL in
3560 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3561 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
3564 test -z "$as_dir" && as_dir
=.
3565 for as_base
in sh bash ksh sh5
; do
3568 if ("$as_dir/$as_base" -c '
3571 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3572 test "x$as_lineno_1" != "x$as_lineno_2" &&
3573 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
3574 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
3575 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
3576 CONFIG_SHELL
=$as_dir/$as_base
3578 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3586 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3587 # uniformly replaced by the line number. The first 'sed' inserts a
3588 # line-number line before each line; the second 'sed' does the real
3589 # work. The second script uses 'N' to pair each line-number line
3590 # with the numbered line, and appends trailing '-' during
3591 # substitution so that $LINENO is not a special case at line end.
3592 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3593 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3594 sed '=' <$as_myself |
3599 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3602 s,^['$as_cr_digits']*\n,,
3604 chmod +x
$as_me.lineno ||
3605 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3606 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3607 { (exit 1); exit 1; }; }
3609 # Don't try to exec as it changes $[0], causing all sort of problems
3610 # (the dirname of $[0] is not the place where we might find the
3611 # original and so on. Autoconf is especially sensible to this).
3613 # Exit status is that of the last command.
3618 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3619 *c
*,-n*) ECHO_N
= ECHO_C
='
3621 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
3622 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
3625 if expr a
: '\(a\)' >/dev
/null
2>&1; then
3631 rm -f conf$$ conf$$.exe conf$$.
file
3633 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
3634 # We could just check for DJGPP; but this test a) works b) is more generic
3635 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3636 if test -f conf$$.exe
; then
3637 # Don't use ln at all; we don't have any links
3642 elif ln conf$$.
file conf$$
2>/dev
/null
; then
3647 rm -f conf$$ conf$$.exe conf$$.
file
3649 if mkdir
-p .
2>/dev
/null
; then
3652 test -d .
/-p && rmdir .
/-p
3656 as_executable_p
="test -f"
3658 # Sed expression to map a string onto a valid CPP name.
3659 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3661 # Sed expression to map a string onto a valid variable name.
3662 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3666 # We need space, tab and new line, in precisely that order.
3676 # Open the log real soon, to keep \$[0] and so on meaningful, and to
3677 # report actual input values of CONFIG_FILES etc. instead of their
3678 # values after options handling. Logging --version etc. is OK.
3682 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3683 ## Running $as_me. ##
3688 This file was extended by $as_me, which was
3689 generated by GNU Autoconf 2.59. Invocation command line was
3691 CONFIG_FILES = $CONFIG_FILES
3692 CONFIG_HEADERS = $CONFIG_HEADERS
3693 CONFIG_LINKS = $CONFIG_LINKS
3694 CONFIG_COMMANDS = $CONFIG_COMMANDS
3698 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3702 # Files that config.status was made for.
3703 if test -n "$ac_config_files"; then
3704 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3707 if test -n "$ac_config_headers"; then
3708 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3711 if test -n "$ac_config_links"; then
3712 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3715 if test -n "$ac_config_commands"; then
3716 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3719 cat >>$CONFIG_STATUS <<\_ACEOF
3722 \`$as_me' instantiates files from templates according to the
3723 current configuration.
3725 Usage: $0 [OPTIONS] [FILE]...
3727 -h, --help print this help, then exit
3728 -V, --version print version number, then exit
3729 -q, --quiet do not print progress messages
3730 -d, --debug don't remove temporary files
3731 --recheck update $as_me by reconfiguring in the same conditions
3732 --file=FILE[:TEMPLATE]
3733 instantiate the configuration file FILE
3734 --header=FILE[:TEMPLATE]
3735 instantiate the configuration header FILE
3737 Configuration files:
3740 Configuration headers:
3743 Report bugs to <bug-autoconf@gnu.org>."
3746 cat >>$CONFIG_STATUS <<_ACEOF
3749 configured by $0, generated by GNU Autoconf 2.59,
3750 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3752 Copyright (C) 2003 Free Software Foundation, Inc.
3753 This config.status script is free software; the Free Software Foundation
3754 gives unlimited permission to copy, distribute and modify it."
3759 cat >>$CONFIG_STATUS <<\_ACEOF
3760 # If no file are specified by the user, then we need to provide default
3761 # value. By we need to know if files were specified by the user.
3767 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
3768 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
3776 *) # This is not an option, so the user has probably given explicit
3779 ac_need_defaults
=false
;;
3783 # Handling of the options.
3785 cat >>$CONFIG_STATUS <<\_ACEOF
3786 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
3788 --version |
--vers* |
-V )
3789 echo "$ac_cs_version"; exit 0 ;;
3791 # Conflict between --help and --header
3792 { { echo "$as_me:$LINENO: error: ambiguous option: $1
3793 Try \`$0 --help' for more information." >&5
3794 echo "$as_me: error: ambiguous option: $1
3795 Try \`$0 --help' for more information." >&2;}
3796 { (exit 1); exit 1; }; };;
3797 --help |
--hel |
-h )
3798 echo "$ac_cs_usage"; exit 0 ;;
3799 --debug |
--d* |
-d )
3801 --file |
--fil |
--fi |
--f )
3803 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
3804 ac_need_defaults
=false
;;
3805 --header |
--heade |
--head |
--hea )
3807 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
3808 ac_need_defaults
=false
;;
3809 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
3810 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
3814 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3815 Try \`$0 --help' for more information." >&5
3816 echo "$as_me: error: unrecognized option: $1
3817 Try \`$0 --help' for more information." >&2;}
3818 { (exit 1); exit 1; }; } ;;
3820 *) ac_config_targets
="$ac_config_targets $1" ;;
3826 ac_configure_extra_args
=
3828 if $ac_cs_silent; then
3830 ac_configure_extra_args
="$ac_configure_extra_args --silent"
3834 cat >>$CONFIG_STATUS <<_ACEOF
3835 if \$ac_cs_recheck; then
3836 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3837 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3846 cat >>$CONFIG_STATUS <<\_ACEOF
3847 for ac_config_target
in $ac_config_targets
3849 case "$ac_config_target" in
3850 # Handling of arguments.
3851 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
3852 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
3853 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3854 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3855 { (exit 1); exit 1; }; };;
3859 # If the user did not use the arguments to specify the items to instantiate,
3860 # then the envvar interface is used. Set only those that are not.
3861 # We use the long form for the default assignment because of an extremely
3862 # bizarre bug on SunOS 4.1.3.
3863 if $ac_need_defaults; then
3864 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
3865 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
3868 # Have a temporary directory for convenience. Make it in the build tree
3869 # simply because there is no reason to put it here, and in addition,
3870 # creating and moving files from /tmp can sometimes cause problems.
3871 # Create a temporary directory, and hook for its removal unless debugging.
3874 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3875 trap '{ (exit 1); exit 1; }' 1 2 13 15
3878 # Create a (secure) tmp directory for tmp files.
3881 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3882 test -n "$tmp" && test -d "$tmp"
3885 tmp
=.
/confstat$$
-$RANDOM
3886 (umask 077 && mkdir
$tmp)
3889 echo "$me: cannot create a temporary directory in ." >&2
3890 { (exit 1); exit 1; }
3895 cat >>$CONFIG_STATUS <<_ACEOF
3898 # CONFIG_FILES section.
3901 # No need to generate the scripts if there are no CONFIG_FILES.
3902 # This happens for instance when ./config.status config.h
3903 if test -n "\$CONFIG_FILES"; then
3904 # Protect against being on the right side of a sed subst in config.status.
3905 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3906 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3907 s,@SHELL@,$SHELL,;t t
3908 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3909 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3910 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3911 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3912 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3913 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3914 s,@exec_prefix@,$exec_prefix,;t t
3915 s,@prefix@,$prefix,;t t
3916 s,@program_transform_name@,$program_transform_name,;t t
3917 s,@bindir@,$bindir,;t t
3918 s,@sbindir@,$sbindir,;t t
3919 s,@libexecdir@,$libexecdir,;t t
3920 s,@datadir@,$datadir,;t t
3921 s,@sysconfdir@,$sysconfdir,;t t
3922 s,@sharedstatedir@,$sharedstatedir,;t t
3923 s,@localstatedir@,$localstatedir,;t t
3924 s,@libdir@,$libdir,;t t
3925 s,@includedir@,$includedir,;t t
3926 s,@oldincludedir@,$oldincludedir,;t t
3927 s,@infodir@,$infodir,;t t
3928 s,@mandir@,$mandir,;t t
3929 s,@build_alias@,$build_alias,;t t
3930 s,@host_alias@,$host_alias,;t t
3931 s,@target_alias@,$target_alias,;t t
3933 s,@ECHO_C@,$ECHO_C,;t t
3934 s,@ECHO_N@,$ECHO_N,;t t
3935 s,@ECHO_T@,$ECHO_T,;t t
3938 s,@CFLAGS@,$CFLAGS,;t t
3939 s,@LDFLAGS@,$LDFLAGS,;t t
3940 s,@CPPFLAGS@,$CPPFLAGS,;t t
3941 s,@ac_ct_CC@,$ac_ct_CC,;t t
3942 s,@EXEEXT@,$EXEEXT,;t t
3943 s,@OBJEXT@,$OBJEXT,;t t
3945 s,@LEXLIB@,$LEXLIB,;t t
3946 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
3948 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
3949 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
3950 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
3951 s,@ALLOCA@,$ALLOCA,;t t
3953 s,@EGREP@,$EGREP,;t t
3954 s,@LIBOBJS@,$LIBOBJS,;t t
3955 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3960 cat >>$CONFIG_STATUS <<\_ACEOF
3961 # Split the substitutions into bite-sized pieces for seds with
3962 # small command number limits, like on Digital OSF/1 and HP-UX.
3964 ac_sed_frag
=1 # Number of current file.
3965 ac_beg
=1 # First line for current file.
3966 ac_end
=$ac_max_sed_lines # Line after last line for current file.
3969 while $ac_more_lines; do
3970 if test $ac_beg -gt 1; then
3971 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
3973 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
3975 if test ! -s $tmp/subs.frag
; then
3978 # The purpose of the label and of the branching condition is to
3979 # speed up the sed processing (if there are no `@' at all, there
3980 # is no need to browse any of the substitutions).
3981 # These are the two extra sed commands mentioned above.
3983 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
3984 if test -z "$ac_sed_cmds"; then
3985 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
3987 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3989 ac_sed_frag
=`expr $ac_sed_frag + 1`
3991 ac_end
=`expr $ac_end + $ac_max_sed_lines`
3994 if test -z "$ac_sed_cmds"; then
3997 fi # test -n "$CONFIG_FILES"
4000 cat >>$CONFIG_STATUS <<\_ACEOF
4001 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
4002 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4004 - |
*:- |
*:-:* ) # input from stdin
4006 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
4007 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
4008 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
4009 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
4010 * ) ac_file_in
=$ac_file.
in ;;
4013 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4014 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
4015 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4016 X"$ac_file" : 'X\(//\)[^/]' \| \
4017 X"$ac_file" : 'X\(//\)$' \| \
4018 X"$ac_file" : 'X\(/\)' \| \
4019 . : '\(.\)' 2>/dev/null ||
4021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4022 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4023 /^X\(\/\/\)$/{ s//\1/; q; }
4024 /^X\(\/\).*/{ s//\1/; q; }
4026 { if $as_mkdir_p; then
4031 while test ! -d "$as_dir"; do
4032 as_dirs
="$as_dir $as_dirs"
4033 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
4034 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4035 X"$as_dir" : 'X\(//\)[^/]' \| \
4036 X"$as_dir" : 'X\(//\)$' \| \
4037 X"$as_dir" : 'X\(/\)' \| \
4038 . : '\(.\)' 2>/dev/null ||
4040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4041 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4042 /^X\(\/\/\)$/{ s//\1/; q; }
4043 /^X\(\/\).*/{ s//\1/; q; }
4046 test ! -n "$as_dirs" || mkdir
$as_dirs
4047 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4048 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4049 { (exit 1); exit 1; }; }; }
4053 if test "$ac_dir" != .
; then
4054 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4055 # A "../" for each directory in $ac_dir_suffix.
4056 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4058 ac_dir_suffix
= ac_top_builddir
=
4062 .
) # No --srcdir option. We are building in place.
4064 if test -z "$ac_top_builddir"; then
4067 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
4069 [\\/]* | ?
:[\\/]* ) # Absolute path.
4070 ac_srcdir
=$srcdir$ac_dir_suffix;
4071 ac_top_srcdir
=$srcdir ;;
4073 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
4074 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
4077 # Do not use `cd foo && pwd` to compute absolute paths, because
4078 # the directories may not exist.
4080 .
) ac_abs_builddir
="$ac_dir";;
4083 .
) ac_abs_builddir
=`pwd`;;
4084 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
4085 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
4088 case $ac_abs_builddir in
4089 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
4091 case ${ac_top_builddir}.
in
4092 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
4093 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
4094 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
4097 case $ac_abs_builddir in
4098 .
) ac_abs_srcdir
=$ac_srcdir;;
4101 .
) ac_abs_srcdir
=$ac_abs_builddir;;
4102 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
4103 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
4106 case $ac_abs_builddir in
4107 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
4109 case $ac_top_srcdir in
4110 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
4111 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
4112 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
4118 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
4119 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
4122 if test x
"$ac_file" != x-
; then
4123 { echo "$as_me:$LINENO: creating $ac_file" >&5
4124 echo "$as_me: creating $ac_file" >&6;}
4127 # Let's still pretend it is `configure' which instantiates (i.e., don't
4128 # use $as_me), people would be surprised to read:
4129 # /* config.h. Generated by config.status. */
4130 if test x
"$ac_file" = x-
; then
4133 configure_input
="$ac_file. "
4135 configure_input
=$configure_input"Generated from `echo $ac_file_in |
4136 sed 's,.*/,,'` by configure."
4138 # First look for the input files in the build tree, otherwise in the
4140 ac_file_inputs
=`IFS=:
4141 for f in $ac_file_in; do
4143 -) echo $tmp/stdin ;;
4145 # Absolute (can't be DOS-style, as IFS=:)
4146 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4147 echo "$as_me: error: cannot find input file: $f" >&2;}
4148 { (exit 1); exit 1; }; }
4151 if test -f "$f"; then
4154 elif test -f "$srcdir/$f"; then
4159 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4160 echo "$as_me: error: cannot find input file: $f" >&2;}
4161 { (exit 1); exit 1; }; }
4164 done` ||
{ (exit 1); exit 1; }
4166 cat >>$CONFIG_STATUS <<_ACEOF
4170 cat >>$CONFIG_STATUS <<\_ACEOF
4172 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
4173 s
,@configure_input@
,$configure_input,;t t
4174 s
,@srcdir@
,$ac_srcdir,;t t
4175 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
4176 s
,@top_srcdir@
,$ac_top_srcdir,;t t
4177 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
4178 s
,@builddir@
,$ac_builddir,;t t
4179 s
,@abs_builddir@
,$ac_abs_builddir,;t t
4180 s
,@top_builddir@
,$ac_top_builddir,;t t
4181 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
4182 s
,@INSTALL@
,$ac_INSTALL,;t t
4183 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4185 if test x"$ac_file" != x-; then
4186 mv $tmp/out $ac_file
4194 cat >>$CONFIG_STATUS <<\_ACEOF
4197 # CONFIG_HEADER section.
4200 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
4201 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4203 # ac_d sets the value in "#define NAME VALUE" lines.
4204 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4205 ac_dB
='[ ].*$,\1#\2'
4208 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4209 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4210 ac_uB
='$,\1#\2define\3'
4214 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
4215 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4217 - |
*:- |
*:-:* ) # input from stdin
4219 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
4220 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
4221 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
4222 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
4223 * ) ac_file_in
=$ac_file.
in ;;
4226 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
4227 echo "$as_me: creating $ac_file" >&6;}
4229 # First look for the input files in the build tree, otherwise in the
4231 ac_file_inputs
=`IFS=:
4232 for f in $ac_file_in; do
4234 -) echo $tmp/stdin ;;
4236 # Absolute (can't be DOS-style, as IFS=:)
4237 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4238 echo "$as_me: error: cannot find input file: $f" >&2;}
4239 { (exit 1); exit 1; }; }
4240 # Do quote $f, to prevent DOS paths from being IFS'd.
4243 if test -f "$f"; then
4246 elif test -f "$srcdir/$f"; then
4251 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4252 echo "$as_me: error: cannot find input file: $f" >&2;}
4253 { (exit 1); exit 1; }; }
4256 done` ||
{ (exit 1); exit 1; }
4257 # Remove the trailing spaces.
4258 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
4262 # Transform confdefs.h into two sed scripts, `conftest.defines' and
4263 # `conftest.undefs', that substitutes the proper values into
4264 # config.h.in to produce config.h. The first handles `#define'
4265 # templates, and the second `#undef' templates.
4266 # And first: Protect against being on the right side of a sed subst in
4267 # config.status. Protect against being in an unquoted here document
4269 rm -f conftest.defines conftest.undefs
4270 # Using a here document instead of a string reduces the quoting nightmare.
4271 # Putting comments in sed scripts is not portable.
4273 # `end' is used to avoid that the second main sed command (meant for
4274 # 0-ary CPP macros) applies to n-ary macro definitions.
4275 # See the Autoconf documentation for `clear'.
4276 cat >confdef2sed.
sed <<\_ACEOF
4281 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4283 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4286 # If some macros were called several times there might be several times
4287 # the same #defines, which is useless. Nevertheless, we may not want to
4288 # sort them, since we want the *last* AC-DEFINE to be honored.
4289 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4290 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4291 rm -f confdef2sed.sed
4293 # This sed command replaces #undef with comments. This is necessary, for
4294 # example, in the case of _POSIX_SOURCE, which is predefined and required
4295 # on some systems where configure will not decide to define it.
4296 cat >>conftest.undefs <<\_ACEOF
4297 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4300 # Break up conftest.defines because some shells have a limit on the size
4301 # of here documents, and old seds have small limits too (100 cmds).
4302 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4303 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4304 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4305 echo ' :' >>$CONFIG_STATUS
4307 while grep . conftest.defines >/dev/null
4309 # Write a limited-size here document to $tmp/defines.sed.
4310 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4311 # Speed up: don't consider the non `#define' lines.
4312 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
4313 # Work around the forget-to-reset-the-flag bug.
4314 echo 't clr' >>$CONFIG_STATUS
4315 echo ': clr' >>$CONFIG_STATUS
4316 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
4318 sed -f $tmp/defines.sed $tmp/in >$tmp/out
4322 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
4323 rm -f conftest.defines
4324 mv conftest.
tail conftest.defines
4326 rm -f conftest.defines
4327 echo ' fi # grep' >>$CONFIG_STATUS
4328 echo >>$CONFIG_STATUS
4330 # Break up conftest.undefs because some shells have a limit on the size
4331 # of here documents, and old seds have small limits too (100 cmds).
4332 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
4334 while grep . conftest.undefs
>/dev
/null
4336 # Write a limited-size here document to $tmp/undefs.sed.
4337 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4338 # Speed up: don't consider the non
`#undef'
4339 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
4340 # Work around the forget-to-reset-the-flag bug.
4341 echo 't clr' >>$CONFIG_STATUS
4342 echo ': clr' >>$CONFIG_STATUS
4343 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4345 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4349 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4350 rm -f conftest.undefs
4351 mv conftest.tail conftest.undefs
4353 rm -f conftest.undefs
4355 cat >>$CONFIG_STATUS <<\_ACEOF
4356 # Let's still pretend it is `configure
' which instantiates (i.e., don't
4357 # use $as_me), people would be surprised to read:
4358 # /* config.h. Generated by config.status. */
4359 if test x
"$ac_file" = x-
; then
4360 echo "/* Generated by configure. */" >$tmp/config.h
4362 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
4364 cat $tmp/in >>$tmp/config.h
4366 if test x
"$ac_file" != x-
; then
4367 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
4368 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4369 echo "$as_me: $ac_file is unchanged" >&6;}
4371 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
4372 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4373 X"$ac_file" : 'X\(//\)[^/]' \| \
4374 X"$ac_file" : 'X\(//\)$' \| \
4375 X"$ac_file" : 'X\(/\)' \| \
4376 . : '\(.\)' 2>/dev/null ||
4378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4379 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4380 /^X\(\/\/\)$/{ s//\1/; q; }
4381 /^X\(\/\).*/{ s//\1/; q; }
4383 { if $as_mkdir_p; then
4388 while test ! -d "$as_dir"; do
4389 as_dirs
="$as_dir $as_dirs"
4390 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
4391 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4392 X"$as_dir" : 'X\(//\)[^/]' \| \
4393 X"$as_dir" : 'X\(//\)$' \| \
4394 X"$as_dir" : 'X\(/\)' \| \
4395 . : '\(.\)' 2>/dev/null ||
4397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4398 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4399 /^X\(\/\/\)$/{ s//\1/; q; }
4400 /^X\(\/\).*/{ s//\1/; q; }
4403 test ! -n "$as_dirs" || mkdir
$as_dirs
4404 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4405 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4406 { (exit 1); exit 1; }; }; }
4409 mv $tmp/config.h
$ac_file
4418 cat >>$CONFIG_STATUS <<\_ACEOF
4420 { (exit 0); exit 0; }
4422 chmod +x
$CONFIG_STATUS
4423 ac_clean_files
=$ac_clean_files_save
4426 # configure is writing to config.log, and then calls config.status.
4427 # config.status does its own redirection, appending to config.log.
4428 # Unfortunately, on DOS this fails, as config.log is still kept open
4429 # by configure, so config.status won't be able to write to it; its
4430 # output is simply discarded. So we exec the FD to /dev/null,
4431 # effectively closing config.log, so it can be properly (re)opened and
4432 # appended to by config.status. When coming back to configure, we
4433 # need to make the FD available again.
4434 if test "$no_create" != yes; then
4436 ac_config_status_args
=
4437 test "$silent" = yes &&
4438 ac_config_status_args
="$ac_config_status_args --quiet"
4440 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
4442 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4443 # would make configure fail if this is the last instruction.
4444 $ac_cs_success ||
{ (exit 1); exit 1; }