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="src/treefuncs.h"
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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT SUBDIRS DOINSTGOB NOINSTGOB CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP YACC LEX LEXLIB LEX_OUTPUT_ROOT RM MV TAR PKG_CONFIG GLIB_CFLAGS GLIB_LIBS YFLAGS 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]
798 --program-prefix=PREFIX prepend PREFIX to installed program names
799 --program-suffix=SUFFIX append SUFFIX to installed program names
800 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
804 if test -n "$ac_init_help"; then
809 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
810 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
811 --enable-maintainer-mode enable make rules and dependencies not useful
812 (and sometimes confusing) to the casual installer
813 --disable-dependency-tracking speeds up one-time build
814 --enable-dependency-tracking do not reject slow dependency extractors
816 Some influential environment variables:
817 CC C compiler command
818 CFLAGS C compiler flags
819 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
820 nonstandard directory <lib dir>
821 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
822 headers in a nonstandard directory <include dir>
825 Use these variables to override the choices made by `configure' or to help
826 it to find libraries and programs with nonstandard names/locations.
831 if test "$ac_init_help" = "recursive"; then
832 # If there are subdirs, report their specific --help.
834 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
835 test -d $ac_dir || continue
838 if test "$ac_dir" != .; then
839 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
840 # A "../" for each directory in $ac_dir_suffix.
841 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
843 ac_dir_suffix= ac_top_builddir=
847 .) # No --srcdir option. We are building in place.
849 if test -z "$ac_top_builddir"; then
852 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
854 [\\/]* | ?:[\\/]* ) # Absolute path.
855 ac_srcdir=$srcdir$ac_dir_suffix;
856 ac_top_srcdir=$srcdir ;;
858 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
859 ac_top_srcdir=$ac_top_builddir$srcdir ;;
862 # Do not use `cd foo && pwd` to compute absolute paths, because
863 # the directories may not exist.
865 .) ac_abs_builddir="$ac_dir";;
868 .) ac_abs_builddir=`pwd`;;
869 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
870 *) ac_abs_builddir=`pwd`/"$ac_dir";;
873 case $ac_abs_builddir in
874 .) ac_abs_top_builddir=${ac_top_builddir}.;;
876 case ${ac_top_builddir}. in
877 .) ac_abs_top_builddir=$ac_abs_builddir;;
878 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
879 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
882 case $ac_abs_builddir in
883 .) ac_abs_srcdir=$ac_srcdir;;
886 .) ac_abs_srcdir=$ac_abs_builddir;;
887 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
888 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
891 case $ac_abs_builddir in
892 .) ac_abs_top_srcdir=$ac_top_srcdir;;
894 case $ac_top_srcdir in
895 .) ac_abs_top_srcdir=$ac_abs_builddir;;
896 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
897 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
902 # Check for guested configure; otherwise get Cygnus style configure.
903 if test -f $ac_srcdir/configure.gnu; then
905 $SHELL $ac_srcdir/configure.gnu --help=recursive
906 elif test -f $ac_srcdir/configure; then
908 $SHELL $ac_srcdir/configure --help=recursive
909 elif test -f $ac_srcdir/configure.ac ||
910 test -f $ac_srcdir/configure.in; then
914 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
920 test -n "$ac_init_help" && exit 0
921 if $ac_init_version; then
924 Copyright (C) 2003 Free Software Foundation, Inc.
925 This configure script is free software; the Free Software Foundation
926 gives unlimited permission to copy, distribute and modify it.
932 This file contains any messages produced by compilers while
933 running configure, to aid debugging if configure makes a mistake.
935 It was created by $as_me, which was
936 generated by GNU Autoconf 2.59. Invocation command line was
947 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
948 uname -m = `(uname -m) 2>/dev/null || echo unknown`
949 uname -r = `(uname -r) 2>/dev/null || echo unknown`
950 uname -s = `(uname -s) 2>/dev/null || echo unknown`
951 uname -v = `(uname -v) 2>/dev/null || echo unknown`
953 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
954 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
956 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
957 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
958 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
959 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
960 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
961 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
962 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
970 test -z "$as_dir" && as_dir=.
986 # Keep a trace of the command line.
987 # Strip out --no-create and --no-recursion so they do not pile up.
988 # Strip out --silent because we don't want to record it for future runs.
989 # Also quote any args containing shell meta-characters.
990 # Make two passes to allow for proper duplicate-argument suppression.
995 ac_must_keep_next=false
1001 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1002 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1003 | -silent | --silent | --silen | --sile | --sil)
1005 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1006 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1009 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1011 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1012 if test $ac_must_keep_next = true; then
1013 ac_must_keep_next=false # Got value, back to normal.
1016 *=* | --config-cache | -C | -disable-* | --disable-* \
1017 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1018 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1019 | -with-* | --with-* | -without-* | --without-* | --x)
1020 case "$ac_configure_args0 " in
1021 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1024 -* ) ac_must_keep_next=true ;;
1027 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1028 # Get rid of the leading space.
1034 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1035 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1037 # When interrupted or exit'd, cleanup temporary files, and complete
1038 # config.log. We remove comments because anyway the quotes in there
1039 # would cause problems or look ugly.
1040 # WARNING: Be sure not to use single quotes in there, as some shells,
1041 # such as our DU 5.0 friend, will then `close' the trap.
1042 trap 'exit_status=$?
1043 # Save into config.log some information that might help in debugging.
1048 ## ---------------- ##
1049 ## Cache variables. ##
1050 ## ---------------- ##
1053 # The following way of writing the cache mishandles newlines in values,
1056 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1059 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1060 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1064 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1071 ## ----------------- ##
1072 ## Output variables. ##
1073 ## ----------------- ##
1076 for ac_var in $ac_subst_vars
1078 eval ac_val=$`echo $ac_var`
1079 echo "$ac_var='"'"'$ac_val'"'"'"
1083 if test -n "$ac_subst_files"; then
1090 for ac_var in $ac_subst_files
1092 eval ac_val=$`echo $ac_var`
1093 echo "$ac_var='"'"'$ac_val'"'"'"
1098 if test -s confdefs.h; then
1105 sed "/^$/d" confdefs.h | sort
1108 test "$ac_signal" != 0 &&
1109 echo "$as_me: caught signal $ac_signal"
1110 echo "$as_me: exit $exit_status"
1112 rm -f core *.core &&
1113 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1116 for ac_signal in 1 2 13 15; do
1117 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1121 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1122 rm -rf conftest* confdefs.h
1123 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1126 # Predefined preprocessor variables.
1128 cat >>confdefs.h <<_ACEOF
1129 #define PACKAGE_NAME "$PACKAGE_NAME"
1133 cat >>confdefs.h <<_ACEOF
1134 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1138 cat >>confdefs.h <<_ACEOF
1139 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1143 cat >>confdefs.h <<_ACEOF
1144 #define PACKAGE_STRING "$PACKAGE_STRING"
1148 cat >>confdefs.h <<_ACEOF
1149 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1153 # Let the site file select an alternate cache file if it wants to.
1154 # Prefer explicitly selected file to automatically selected ones.
1155 if test -z "$CONFIG_SITE"; then
1156 if test "x$prefix" != xNONE; then
1157 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1159 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1162 for ac_site_file in $CONFIG_SITE; do
1163 if test -r "$ac_site_file"; then
1164 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1165 echo "$as_me: loading site script $ac_site_file" >&6;}
1166 sed 's/^/| /' "$ac_site_file" >&5
1171 if test -r "$cache_file"; then
1172 # Some versions of bash will fail to source /dev/null (special
1173 # files actually), so we avoid doing that.
1174 if test -f "$cache_file"; then
1175 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1176 echo "$as_me: loading cache $cache_file" >&6;}
1178 [\\/]* | ?:[\\/]* ) . $cache_file;;
1179 *) . ./$cache_file;;
1183 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1184 echo "$as_me: creating cache $cache_file" >&6;}
1188 # Check that the precious variables saved in the cache have kept the same
1190 ac_cache_corrupted=false
1191 for ac_var in `(set) 2>&1 |
1192 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1193 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1194 eval ac_new_set=\$ac_env_${ac_var}_set
1195 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1196 eval ac_new_val="\$ac_env_${ac_var}_value"
1197 case $ac_old_set,$ac_new_set in
1199 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1200 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1201 ac_cache_corrupted=: ;;
1203 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1204 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1205 ac_cache_corrupted=: ;;
1208 if test "x$ac_old_val" != "x$ac_new_val"; then
1209 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1210 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1211 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1212 echo "$as_me: former value: $ac_old_val" >&2;}
1213 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1214 echo "$as_me: current value: $ac_new_val" >&2;}
1215 ac_cache_corrupted=:
1218 # Pass precious variables to config.status.
1219 if test "$ac_new_set" = set; then
1221 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1222 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1223 *) ac_arg=$ac_var=$ac_new_val ;;
1225 case " $ac_configure_args " in
1226 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1227 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1231 if $ac_cache_corrupted; then
1232 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1233 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1234 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1235 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1236 { (exit 1); exit 1; }; }
1240 ac_cpp='$CPP $CPPFLAGS'
1241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1263 ac_config_headers="$ac_config_headers config.h"
1265 am__api_version="1.8"
1267 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1268 if test -f $ac_dir/install-sh; then
1270 ac_install_sh="$ac_aux_dir/install-sh -c"
1272 elif test -f $ac_dir/install.sh; then
1274 ac_install_sh="$ac_aux_dir/install.sh -c"
1276 elif test -f $ac_dir/shtool; then
1278 ac_install_sh="$ac_aux_dir/shtool install -c"
1282 if test -z "$ac_aux_dir"; then
1283 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1284 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1285 { (exit 1); exit 1; }; }
1287 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1288 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1289 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1291 # Find a good install program. We prefer a C program (faster),
1292 # so one script is as good as another. But avoid the broken or
1293 # incompatible versions:
1294 # SysV /etc/install, /usr/sbin/install
1295 # SunOS /usr/etc/install
1296 # IRIX /sbin/install
1298 # AmigaOS /C/install, which installs bootblocks on floppy discs
1299 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1300 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1301 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1302 # OS/2's system install, which has a completely different semantic
1303 # ./install, which can be erroneously created by make from ./install.sh.
1304 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1305 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1306 if test -z "$INSTALL"; then
1307 if test "${ac_cv_path_install+set}" = set; then
1308 echo $ECHO_N "(cached) $ECHO_C" >&6
1310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1314 test -z "$as_dir" && as_dir=.
1315 # Account for people who put trailing slashes in PATH elements.
1317 ./ | .// | /cC/* | \
1318 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1319 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1322 # OSF1 and SCO ODT 3.0 have their own names for install.
1323 # Don't use installbsd from OSF since it installs stuff as root
1325 for ac_prog in ginstall scoinst install; do
1326 for ac_exec_ext in '' $ac_executable_extensions; do
1327 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1328 if test $ac_prog = install &&
1329 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1330 # AIX install. It has an incompatible calling convention.
1332 elif test $ac_prog = install &&
1333 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1334 # program-specific install script used by HP pwplus--don't use.
1337 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1349 if test "${ac_cv_path_install+set}" = set; then
1350 INSTALL=$ac_cv_path_install
1352 # As a last resort, use the slow shell script. We don't cache a
1353 # path for INSTALL within a source directory, because that will
1354 # break other packages using the cache if that directory is
1355 # removed, or if the path is relative.
1356 INSTALL=$ac_install_sh
1359 echo "$as_me:$LINENO: result: $INSTALL" >&5
1360 echo "${ECHO_T}$INSTALL" >&6
1362 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1363 # It thinks the first close brace ends the variable substitution.
1364 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1366 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1368 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1370 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1371 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1374 echo timestamp > conftest.file
1375 # Do `set' in a subshell so we don't clobber the current shell's
1376 # arguments. Must try -L first in case configure is actually a
1377 # symlink; some systems play weird games with the mod time of symlinks
1378 # (eg FreeBSD returns the mod time of the symlink's containing
1381 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1382 if test "$*" = "X"; then
1384 set X `ls -t $srcdir/configure conftest.file`
1387 if test "$*" != "X $srcdir/configure conftest.file" \
1388 && test "$*" != "X conftest.file $srcdir/configure"; then
1390 # If neither matched, then we have a broken ls. This can happen
1391 # if, for instance, CONFIG_SHELL is bash and it inherits a
1392 # broken ls alias from the environment. This has actually
1393 # happened. Such a system could not be considered "sane".
1394 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1395 alias in your environment" >&5
1396 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1397 alias in your environment" >&2;}
1398 { (exit 1); exit 1; }; }
1401 test "$2" = conftest.file
1407 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1408 Check your system clock" >&5
1409 echo "$as_me: error: newly created file is older than distributed files!
1410 Check your system clock" >&2;}
1411 { (exit 1); exit 1; }; }
1413 echo "$as_me:$LINENO: result: yes" >&5
1414 echo "${ECHO_T}yes" >&6
1415 test "$program_prefix" != NONE &&
1416 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1417 # Use a double $ so make ignores it.
1418 test "$program_suffix" != NONE &&
1419 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1420 # Double any \ or $. echo might interpret backslashes.
1421 # By default was `s,x,x', remove it if useless.
1422 cat <<\_ACEOF >conftest.sed
1423 s/[\\$]/&&/g;s/;s,x,x,$//
1425 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1428 # expand $ac_aux_dir to an absolute path
1429 am_aux_dir=`cd $ac_aux_dir && pwd`
1431 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1432 # Use eval to expand $SHELL
1433 if eval "$MISSING --run true"; then
1434 am_missing_run="$MISSING --run "
1437 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1438 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1441 if mkdir -p -- . 2>/dev/null; then
1442 # Keeping the `.' argument allows $(mkdir_p) to be used without
1443 # argument. Indeed, we sometimes output rules like
1444 # $(mkdir_p) $(somedir)
1445 # where $(somedir) is conditionally defined.
1446 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1447 # expensive solution, as it forces Make to start a sub-shell.)
1448 mkdir_p='mkdir -p -- .'
1450 # On NextStep and OpenStep, the `mkdir' command does not
1451 # recognize any option. It will interpret all options as
1452 # directories to create, and then abort because `.' already
1456 test -d $d && rmdir $d
1458 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1459 if test -f "$ac_aux_dir/mkinstalldirs"; then
1460 mkdir_p='$(mkinstalldirs)'
1462 mkdir_p='$(install_sh) -d'
1466 for ac_prog in gawk mawk nawk awk
1468 # Extract the first word of "$ac_prog", so it can be a program name with args.
1469 set dummy $ac_prog; ac_word=$2
1470 echo "$as_me:$LINENO: checking for $ac_word" >&5
1471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1472 if test "${ac_cv_prog_AWK+set}" = set; then
1473 echo $ECHO_N "(cached) $ECHO_C" >&6
1475 if test -n "$AWK"; then
1476 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1482 test -z "$as_dir" && as_dir=.
1483 for ac_exec_ext in '' $ac_executable_extensions; do
1484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1485 ac_cv_prog_AWK="$ac_prog"
1486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1495 if test -n "$AWK"; then
1496 echo "$as_me:$LINENO: result: $AWK" >&5
1497 echo "${ECHO_T}$AWK" >&6
1499 echo "$as_me:$LINENO: result: no" >&5
1500 echo "${ECHO_T}no" >&6
1503 test -n "$AWK" && break
1506 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1507 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1508 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1509 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1510 echo $ECHO_N "(cached) $ECHO_C" >&6
1512 cat >conftest.make <<\_ACEOF
1514 @echo 'ac_maketemp="$(MAKE)"'
1516 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1517 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1518 if test -n "$ac_maketemp"; then
1519 eval ac_cv_prog_make_${ac_make}_set=yes
1521 eval ac_cv_prog_make_${ac_make}_set=no
1525 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1526 echo "$as_me:$LINENO: result: yes" >&5
1527 echo "${ECHO_T}yes" >&6
1530 echo "$as_me:$LINENO: result: no" >&5
1531 echo "${ECHO_T}no" >&6
1532 SET_MAKE="MAKE=${MAKE-make}"
1535 rm -rf .tst 2>/dev/null
1536 mkdir .tst 2>/dev/null
1537 if test -d .tst; then
1542 rmdir .tst 2>/dev/null
1544 # test to see if srcdir already configured
1545 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1546 test -f $srcdir/config.status; then
1547 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1548 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1549 { (exit 1); exit 1; }; }
1552 # test whether we have cygpath
1553 if test -z "$CYGPATH_W"; then
1554 if (cygpath --version) >/dev/null 2>/dev/null; then
1555 CYGPATH_W='cygpath -w'
1562 # Define the identity of the package.
1567 cat >>confdefs.h <<_ACEOF
1568 #define PACKAGE "$PACKAGE"
1572 cat >>confdefs.h <<_ACEOF
1573 #define VERSION "$VERSION"
1576 # Some tools Automake needs.
1578 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1581 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1584 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1587 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1590 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1593 AMTAR=${AMTAR-"${am_missing_run}tar"}
1595 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1597 # Installed binaries are usually stripped using `strip' when the user
1598 # run `make install-strip'. However `strip' might not be the right
1599 # tool to use in cross-compilation environments, therefore Automake
1600 # will honor the `STRIP' environment variable to overrule this program.
1601 if test "$cross_compiling" != no; then
1602 if test -n "$ac_tool_prefix"; then
1603 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1604 set dummy ${ac_tool_prefix}strip; ac_word=$2
1605 echo "$as_me:$LINENO: checking for $ac_word" >&5
1606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1607 if test "${ac_cv_prog_STRIP+set}" = set; then
1608 echo $ECHO_N "(cached) $ECHO_C" >&6
1610 if test -n "$STRIP"; then
1611 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617 test -z "$as_dir" && as_dir=.
1618 for ac_exec_ext in '' $ac_executable_extensions; do
1619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1620 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1629 STRIP=$ac_cv_prog_STRIP
1630 if test -n "$STRIP"; then
1631 echo "$as_me:$LINENO: result: $STRIP" >&5
1632 echo "${ECHO_T}$STRIP" >&6
1634 echo "$as_me:$LINENO: result: no" >&5
1635 echo "${ECHO_T}no" >&6
1639 if test -z "$ac_cv_prog_STRIP"; then
1641 # Extract the first word of "strip", so it can be a program name with args.
1642 set dummy strip; ac_word=$2
1643 echo "$as_me:$LINENO: checking for $ac_word" >&5
1644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1645 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1646 echo $ECHO_N "(cached) $ECHO_C" >&6
1648 if test -n "$ac_ct_STRIP"; then
1649 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1655 test -z "$as_dir" && as_dir=.
1656 for ac_exec_ext in '' $ac_executable_extensions; do
1657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1658 ac_cv_prog_ac_ct_STRIP="strip"
1659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1665 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1668 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1669 if test -n "$ac_ct_STRIP"; then
1670 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1671 echo "${ECHO_T}$ac_ct_STRIP" >&6
1673 echo "$as_me:$LINENO: result: no" >&5
1674 echo "${ECHO_T}no" >&6
1679 STRIP="$ac_cv_prog_STRIP"
1683 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1685 # We need awk for the "check" target. The system "awk" is bad on
1690 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1691 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1692 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1693 if test "${enable_maintainer_mode+set}" = set; then
1694 enableval="$enable_maintainer_mode"
1695 USE_MAINTAINER_MODE=$enableval
1697 USE_MAINTAINER_MODE=no
1699 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1700 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1703 if test $USE_MAINTAINER_MODE = yes; then
1704 MAINTAINER_MODE_TRUE=
1705 MAINTAINER_MODE_FALSE='#'
1707 MAINTAINER_MODE_TRUE='#'
1708 MAINTAINER_MODE_FALSE=
1711 MAINT=$MAINTAINER_MODE_TRUE
1717 if test -f ../NOINST_GOB ; then
1720 echo "$as_me:$LINENO: result: *** NOT Going to install GOB ***" >&5
1721 echo "${ECHO_T}*** NOT Going to install GOB ***" >&6
1722 SUBDIRS="src examples"
1727 SUBDIRS="src examples doc"
1733 DEPDIR="${am__leading_dot}deps"
1735 ac_config_commands="$ac_config_commands depfiles"
1738 am_make=${MAKE-make}
1739 cat > confinc << 'END'
1744 # If we don't find an include directive, just comment out the code.
1745 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1746 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1750 # First try GNU make style include.
1751 echo "include confinc" > confmf
1752 # We grep out `Entering directory' and `Leaving directory'
1753 # messages which can occur if `w' ends up in MAKEFLAGS.
1754 # In particular we don't look at `^make:' because GNU make might
1755 # be invoked under some other name (usually "gmake"), in which
1756 # case it prints its new name instead of `make'.
1757 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1762 # Now try BSD make style include.
1763 if test "$am__include" = "#"; then
1764 echo '.include "confinc"' > confmf
1765 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1766 am__include=.include
1773 echo "$as_me:$LINENO: result: $_am_result" >&5
1774 echo "${ECHO_T}$_am_result" >&6
1775 rm -f confinc confmf
1777 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1778 if test "${enable_dependency_tracking+set}" = set; then
1779 enableval="$enable_dependency_tracking"
1782 if test "x$enable_dependency_tracking" != xno; then
1783 am_depcomp="$ac_aux_dir/depcomp"
1788 if test "x$enable_dependency_tracking" != xno; then
1799 ac_cpp='$CPP $CPPFLAGS'
1800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1803 if test -n "$ac_tool_prefix"; then
1804 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1805 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1806 echo "$as_me:$LINENO: checking for $ac_word" >&5
1807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1808 if test "${ac_cv_prog_CC+set}" = set; then
1809 echo $ECHO_N "(cached) $ECHO_C" >&6
1811 if test -n "$CC"; then
1812 ac_cv_prog_CC="$CC" # Let the user override the test.
1814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1818 test -z "$as_dir" && as_dir=.
1819 for ac_exec_ext in '' $ac_executable_extensions; do
1820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1821 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1831 if test -n "$CC"; then
1832 echo "$as_me:$LINENO: result: $CC" >&5
1833 echo "${ECHO_T}$CC" >&6
1835 echo "$as_me:$LINENO: result: no" >&5
1836 echo "${ECHO_T}no" >&6
1840 if test -z "$ac_cv_prog_CC"; then
1842 # Extract the first word of "gcc", so it can be a program name with args.
1843 set dummy gcc; ac_word=$2
1844 echo "$as_me:$LINENO: checking for $ac_word" >&5
1845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1846 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1847 echo $ECHO_N "(cached) $ECHO_C" >&6
1849 if test -n "$ac_ct_CC"; then
1850 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1856 test -z "$as_dir" && as_dir=.
1857 for ac_exec_ext in '' $ac_executable_extensions; do
1858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1859 ac_cv_prog_ac_ct_CC="gcc"
1860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1868 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1869 if test -n "$ac_ct_CC"; then
1870 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1871 echo "${ECHO_T}$ac_ct_CC" >&6
1873 echo "$as_me:$LINENO: result: no" >&5
1874 echo "${ECHO_T}no" >&6
1882 if test -z "$CC"; then
1883 if test -n "$ac_tool_prefix"; then
1884 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1885 set dummy ${ac_tool_prefix}cc; ac_word=$2
1886 echo "$as_me:$LINENO: checking for $ac_word" >&5
1887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1888 if test "${ac_cv_prog_CC+set}" = set; then
1889 echo $ECHO_N "(cached) $ECHO_C" >&6
1891 if test -n "$CC"; then
1892 ac_cv_prog_CC="$CC" # Let the user override the test.
1894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1898 test -z "$as_dir" && as_dir=.
1899 for ac_exec_ext in '' $ac_executable_extensions; do
1900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1901 ac_cv_prog_CC="${ac_tool_prefix}cc"
1902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1911 if test -n "$CC"; then
1912 echo "$as_me:$LINENO: result: $CC" >&5
1913 echo "${ECHO_T}$CC" >&6
1915 echo "$as_me:$LINENO: result: no" >&5
1916 echo "${ECHO_T}no" >&6
1920 if test -z "$ac_cv_prog_CC"; then
1922 # Extract the first word of "cc", so it can be a program name with args.
1923 set dummy cc; ac_word=$2
1924 echo "$as_me:$LINENO: checking for $ac_word" >&5
1925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1926 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1927 echo $ECHO_N "(cached) $ECHO_C" >&6
1929 if test -n "$ac_ct_CC"; then
1930 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1936 test -z "$as_dir" && as_dir=.
1937 for ac_exec_ext in '' $ac_executable_extensions; do
1938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1939 ac_cv_prog_ac_ct_CC="cc"
1940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1948 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1949 if test -n "$ac_ct_CC"; then
1950 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1951 echo "${ECHO_T}$ac_ct_CC" >&6
1953 echo "$as_me:$LINENO: result: no" >&5
1954 echo "${ECHO_T}no" >&6
1963 if test -z "$CC"; then
1964 # Extract the first word of "cc", so it can be a program name with args.
1965 set dummy cc; ac_word=$2
1966 echo "$as_me:$LINENO: checking for $ac_word" >&5
1967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1968 if test "${ac_cv_prog_CC+set}" = set; then
1969 echo $ECHO_N "(cached) $ECHO_C" >&6
1971 if test -n "$CC"; then
1972 ac_cv_prog_CC="$CC" # Let the user override the test.
1975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1979 test -z "$as_dir" && as_dir=.
1980 for ac_exec_ext in '' $ac_executable_extensions; do
1981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1982 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1983 ac_prog_rejected=yes
1987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1993 if test $ac_prog_rejected = yes; then
1994 # We found a bogon in the path, so make sure we never use it.
1995 set dummy $ac_cv_prog_CC
1997 if test $# != 0; then
1998 # We chose a different compiler from the bogus one.
1999 # However, it has the same basename, so the bogon will be chosen
2000 # first if we set CC to just the basename; use the full file name.
2002 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2008 if test -n "$CC"; then
2009 echo "$as_me:$LINENO: result: $CC" >&5
2010 echo "${ECHO_T}$CC" >&6
2012 echo "$as_me:$LINENO: result: no" >&5
2013 echo "${ECHO_T}no" >&6
2017 if test -z "$CC"; then
2018 if test -n "$ac_tool_prefix"; then
2021 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2022 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2023 echo "$as_me:$LINENO: checking for $ac_word" >&5
2024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2025 if test "${ac_cv_prog_CC+set}" = set; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
2028 if test -n "$CC"; then
2029 ac_cv_prog_CC="$CC" # Let the user override the test.
2031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2035 test -z "$as_dir" && as_dir=.
2036 for ac_exec_ext in '' $ac_executable_extensions; do
2037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2038 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2048 if test -n "$CC"; then
2049 echo "$as_me:$LINENO: result: $CC" >&5
2050 echo "${ECHO_T}$CC" >&6
2052 echo "$as_me:$LINENO: result: no" >&5
2053 echo "${ECHO_T}no" >&6
2056 test -n "$CC" && break
2059 if test -z "$CC"; then
2063 # Extract the first word of "$ac_prog", so it can be a program name with args.
2064 set dummy $ac_prog; ac_word=$2
2065 echo "$as_me:$LINENO: checking for $ac_word" >&5
2066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2067 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2068 echo $ECHO_N "(cached) $ECHO_C" >&6
2070 if test -n "$ac_ct_CC"; then
2071 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077 test -z "$as_dir" && as_dir=.
2078 for ac_exec_ext in '' $ac_executable_extensions; do
2079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2080 ac_cv_prog_ac_ct_CC="$ac_prog"
2081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2089 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2090 if test -n "$ac_ct_CC"; then
2091 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2092 echo "${ECHO_T}$ac_ct_CC" >&6
2094 echo "$as_me:$LINENO: result: no" >&5
2095 echo "${ECHO_T}no" >&6
2098 test -n "$ac_ct_CC" && break
2107 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2108 See \`config.log' for more details." >&5
2109 echo "$as_me: error: no acceptable C compiler found in \$PATH
2110 See \`config.log' for more details." >&2;}
2111 { (exit 1); exit 1; }; }
2113 # Provide some information about the compiler.
2114 echo "$as_me:$LINENO:" \
2115 "checking for C compiler version" >&5
2116 ac_compiler=`set X $ac_compile; echo $2`
2117 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2118 (eval $ac_compiler --version </dev/null >&5) 2>&5
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); }
2122 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2123 (eval $ac_compiler -v </dev/null >&5) 2>&5
2125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126 (exit $ac_status); }
2127 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2128 (eval $ac_compiler -V </dev/null >&5) 2>&5
2130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131 (exit $ac_status); }
2133 cat >conftest.$ac_ext <<_ACEOF
2136 cat confdefs.h >>conftest.$ac_ext
2137 cat >>conftest.$ac_ext <<_ACEOF
2138 /* end confdefs.h. */
2148 ac_clean_files_save=$ac_clean_files
2149 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2150 # Try to create an executable without -o first, disregard a.out.
2151 # It will help us diagnose broken compilers, and finding out an intuition
2153 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2154 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2155 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2156 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2157 (eval $ac_link_default) 2>&5
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }; then
2161 # Find the output, starting from the most likely. This scheme is
2162 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2165 # Be careful to initialize this variable, since it used to be cached.
2166 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2168 # b.out is created by i960 compilers.
2169 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2171 test -f "$ac_file" || continue
2173 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2176 # This is the source file.
2179 # We found the default executable, but exeext='' is most
2183 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2184 # FIXME: I believe we export ac_cv_exeext for Libtool,
2185 # but it would be cool to find out if it's true. Does anybody
2186 # maintain Libtool? --akim.
2194 echo "$as_me: failed program was:" >&5
2195 sed 's/^/| /' conftest.$ac_ext >&5
2197 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2198 See \`config.log' for more details." >&5
2199 echo "$as_me: error: C compiler cannot create executables
2200 See \`config.log' for more details." >&2;}
2201 { (exit 77); exit 77; }; }
2204 ac_exeext=$ac_cv_exeext
2205 echo "$as_me:$LINENO: result: $ac_file" >&5
2206 echo "${ECHO_T}$ac_file" >&6
2208 # Check the compiler produces executables we can run. If not, either
2209 # the compiler is broken, or we cross compile.
2210 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2211 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2212 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2213 # If not cross compiling, check that we can run a simple program.
2214 if test "$cross_compiling" != yes; then
2215 if { ac_try='./$ac_file'
2216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; }; then
2223 if test "$cross_compiling" = maybe; then
2226 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2227 If you meant to cross compile, use \`--host'.
2228 See \`config.log' for more details." >&5
2229 echo "$as_me: error: cannot run C compiled programs.
2230 If you meant to cross compile, use \`--host'.
2231 See \`config.log' for more details." >&2;}
2232 { (exit 1); exit 1; }; }
2236 echo "$as_me:$LINENO: result: yes" >&5
2237 echo "${ECHO_T}yes" >&6
2239 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2240 ac_clean_files=$ac_clean_files_save
2241 # Check the compiler produces executables we can run. If not, either
2242 # the compiler is broken, or we cross compile.
2243 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2244 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2245 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2246 echo "${ECHO_T}$cross_compiling" >&6
2248 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2249 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2251 (eval $ac_link) 2>&5
2253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254 (exit $ac_status); }; then
2255 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2256 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2257 # work properly (i.e., refer to `conftest.exe'), while it won't with
2259 for ac_file in conftest.exe conftest conftest.*; do
2260 test -f "$ac_file" || continue
2262 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2263 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2270 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2271 See \`config.log' for more details." >&5
2272 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2273 See \`config.log' for more details." >&2;}
2274 { (exit 1); exit 1; }; }
2277 rm -f conftest$ac_cv_exeext
2278 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2279 echo "${ECHO_T}$ac_cv_exeext" >&6
2281 rm -f conftest.$ac_ext
2282 EXEEXT=$ac_cv_exeext
2284 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2285 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2286 if test "${ac_cv_objext+set}" = set; then
2287 echo $ECHO_N "(cached) $ECHO_C" >&6
2289 cat >conftest.$ac_ext <<_ACEOF
2292 cat confdefs.h >>conftest.$ac_ext
2293 cat >>conftest.$ac_ext <<_ACEOF
2294 /* end confdefs.h. */
2304 rm -f conftest.o conftest.obj
2305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2306 (eval $ac_compile) 2>&5
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }; then
2310 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2313 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2318 echo "$as_me: failed program was:" >&5
2319 sed 's/^/| /' conftest.$ac_ext >&5
2321 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2322 See \`config.log' for more details." >&5
2323 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2324 See \`config.log' for more details." >&2;}
2325 { (exit 1); exit 1; }; }
2328 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2330 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2331 echo "${ECHO_T}$ac_cv_objext" >&6
2332 OBJEXT=$ac_cv_objext
2334 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2335 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2336 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2337 echo $ECHO_N "(cached) $ECHO_C" >&6
2339 cat >conftest.$ac_ext <<_ACEOF
2342 cat confdefs.h >>conftest.$ac_ext
2343 cat >>conftest.$ac_ext <<_ACEOF
2344 /* end confdefs.h. */
2357 rm -f conftest.$ac_objext
2358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2359 (eval $ac_compile) 2>conftest.er1
2361 grep -v '^ *+' conftest.er1 >conftest.err
2363 cat conftest.err >&5
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); } &&
2366 { ac_try='test -z "$ac_c_werror_flag"
2367 || test ! -s conftest.err'
2368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }; } &&
2373 { ac_try='test -s conftest.$ac_objext'
2374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); }; }; then
2381 echo "$as_me: failed program was:" >&5
2382 sed 's/^/| /' conftest.$ac_ext >&5
2386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2387 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2390 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2391 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2392 GCC=`test $ac_compiler_gnu = yes && echo yes`
2393 ac_test_CFLAGS=${CFLAGS+set}
2394 ac_save_CFLAGS=$CFLAGS
2396 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2397 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2398 if test "${ac_cv_prog_cc_g+set}" = set; then
2399 echo $ECHO_N "(cached) $ECHO_C" >&6
2401 cat >conftest.$ac_ext <<_ACEOF
2404 cat confdefs.h >>conftest.$ac_ext
2405 cat >>conftest.$ac_ext <<_ACEOF
2406 /* end confdefs.h. */
2416 rm -f conftest.$ac_objext
2417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2418 (eval $ac_compile) 2>conftest.er1
2420 grep -v '^ *+' conftest.er1 >conftest.err
2422 cat conftest.err >&5
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); } &&
2425 { ac_try='test -z "$ac_c_werror_flag"
2426 || test ! -s conftest.err'
2427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431 (exit $ac_status); }; } &&
2432 { ac_try='test -s conftest.$ac_objext'
2433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); }; }; then
2440 echo "$as_me: failed program was:" >&5
2441 sed 's/^/| /' conftest.$ac_ext >&5
2445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2447 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2448 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2449 if test "$ac_test_CFLAGS" = set; then
2450 CFLAGS=$ac_save_CFLAGS
2451 elif test $ac_cv_prog_cc_g = yes; then
2452 if test "$GCC" = yes; then
2458 if test "$GCC" = yes; then
2464 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2465 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2466 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2467 echo $ECHO_N "(cached) $ECHO_C" >&6
2469 ac_cv_prog_cc_stdc=no
2471 cat >conftest.$ac_ext <<_ACEOF
2474 cat confdefs.h >>conftest.$ac_ext
2475 cat >>conftest.$ac_ext <<_ACEOF
2476 /* end confdefs.h. */
2479 #include <sys/types.h>
2480 #include <sys/stat.h>
2481 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2482 struct buf { int x; };
2483 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2484 static char *e (p, i)
2490 static char *f (char * (*g) (char **, int), char **p, ...)
2495 s = g (p, va_arg (v,int));
2500 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2501 function prototypes and stuff, but not '\xHH' hex character constants.
2502 These don't provoke an error unfortunately, instead are silently treated
2503 as 'x'. The following induces an error, until -std1 is added to get
2504 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2505 array size at least. It's necessary to write '\x00'==0 to get something
2506 that's true only with -std1. */
2507 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2509 int test (int i, double x);
2510 struct s1 {int (*f) (int a);};
2511 struct s2 {int (*f) (double a);};
2512 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2518 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2523 # Don't try gcc -ansi; that turns off useful extensions and
2524 # breaks some systems' header files.
2525 # AIX -qlanglvl=ansi
2526 # Ultrix and OSF/1 -std1
2527 # HP-UX 10.20 and later -Ae
2528 # HP-UX older versions -Aa -D_HPUX_SOURCE
2529 # SVR4 -Xc -D__EXTENSIONS__
2530 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2532 CC="$ac_save_CC $ac_arg"
2533 rm -f conftest.$ac_objext
2534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2535 (eval $ac_compile) 2>conftest.er1
2537 grep -v '^ *+' conftest.er1 >conftest.err
2539 cat conftest.err >&5
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); } &&
2542 { ac_try='test -z "$ac_c_werror_flag"
2543 || test ! -s conftest.err'
2544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; } &&
2549 { ac_try='test -s conftest.$ac_objext'
2550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }; }; then
2555 ac_cv_prog_cc_stdc=$ac_arg
2558 echo "$as_me: failed program was:" >&5
2559 sed 's/^/| /' conftest.$ac_ext >&5
2562 rm -f conftest.err conftest.$ac_objext
2564 rm -f conftest.$ac_ext conftest.$ac_objext
2569 case "x$ac_cv_prog_cc_stdc" in
2571 echo "$as_me:$LINENO: result: none needed" >&5
2572 echo "${ECHO_T}none needed" >&6 ;;
2574 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2575 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2576 CC="$CC $ac_cv_prog_cc_stdc" ;;
2579 # Some people use a C++ compiler to compile C. Since we use `exit',
2580 # in C++ we need to declare it. In case someone uses the same compiler
2581 # for both compiling C and C++ we need to have the C++ compiler decide
2582 # the declaration of exit, since it's the most demanding environment.
2583 cat >conftest.$ac_ext <<_ACEOF
2588 rm -f conftest.$ac_objext
2589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2590 (eval $ac_compile) 2>conftest.er1
2592 grep -v '^ *+' conftest.er1 >conftest.err
2594 cat conftest.err >&5
2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); } &&
2597 { ac_try='test -z "$ac_c_werror_flag"
2598 || test ! -s conftest.err'
2599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); }; } &&
2604 { ac_try='test -s conftest.$ac_objext'
2605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); }; }; then
2610 for ac_declaration in \
2612 'extern "C" void std::exit (int) throw (); using std::exit;' \
2613 'extern "C" void std::exit (int); using std::exit;' \
2614 'extern "C" void exit (int) throw ();' \
2615 'extern "C" void exit (int);' \
2618 cat >conftest.$ac_ext <<_ACEOF
2621 cat confdefs.h >>conftest.$ac_ext
2622 cat >>conftest.$ac_ext <<_ACEOF
2623 /* end confdefs.h. */
2634 rm -f conftest.$ac_objext
2635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2636 (eval $ac_compile) 2>conftest.er1
2638 grep -v '^ *+' conftest.er1 >conftest.err
2640 cat conftest.err >&5
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); } &&
2643 { ac_try='test -z "$ac_c_werror_flag"
2644 || test ! -s conftest.err'
2645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); }; } &&
2650 { ac_try='test -s conftest.$ac_objext'
2651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; }; then
2658 echo "$as_me: failed program was:" >&5
2659 sed 's/^/| /' conftest.$ac_ext >&5
2663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2664 cat >conftest.$ac_ext <<_ACEOF
2667 cat confdefs.h >>conftest.$ac_ext
2668 cat >>conftest.$ac_ext <<_ACEOF
2669 /* end confdefs.h. */
2679 rm -f conftest.$ac_objext
2680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2681 (eval $ac_compile) 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); } &&
2688 { ac_try='test -z "$ac_c_werror_flag"
2689 || test ! -s conftest.err'
2690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); }; } &&
2695 { ac_try='test -s conftest.$ac_objext'
2696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); }; }; then
2703 echo "$as_me: failed program was:" >&5
2704 sed 's/^/| /' conftest.$ac_ext >&5
2707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2710 if test -n "$ac_declaration"; then
2711 echo '#ifdef __cplusplus' >>confdefs.h
2712 echo $ac_declaration >>confdefs.h
2713 echo '#endif' >>confdefs.h
2717 echo "$as_me: failed program was:" >&5
2718 sed 's/^/| /' conftest.$ac_ext >&5
2721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2723 ac_cpp='$CPP $CPPFLAGS'
2724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2728 depcc="$CC" am_compiler_list=
2730 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2731 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2732 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2733 echo $ECHO_N "(cached) $ECHO_C" >&6
2735 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2736 # We make a subdir and do the tests there. Otherwise we can end up
2737 # making bogus files that we don't know about and never remove. For
2738 # instance it was reported that on HP-UX the gcc test will end up
2739 # making a dummy file named `D' -- because `-MD' means `put the output
2742 # Copy depcomp to subdir because otherwise we won't find it if we're
2743 # using a relative directory.
2744 cp "$am_depcomp" conftest.dir
2746 # We will build objects and dependencies in a subdirectory because
2747 # it helps to detect inapplicable dependency modes. For instance
2748 # both Tru64's cc and ICC support -MD to output dependencies as a
2749 # side effect of compilation, but ICC will put the dependencies in
2750 # the current directory while Tru64 will put them in the object
2754 am_cv_CC_dependencies_compiler_type=none
2755 if test "$am_compiler_list" = ""; then
2756 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2758 for depmode in $am_compiler_list; do
2759 # Setup a source with many dependencies, because some compilers
2760 # like to wrap large dependency lists on column 80 (with \), and
2761 # we should not choose a depcomp mode which is confused by this.
2763 # We need to recreate these files for each test, as the compiler may
2764 # overwrite some of them when testing with obscure command lines.
2765 # This happens at least with the AIX C compiler.
2767 for i in 1 2 3 4 5 6; do
2768 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2771 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2775 # after this tag, mechanisms are not by side-effect, so they'll
2776 # only be used when explicitly requested
2777 if test "x$enable_dependency_tracking" = xyes; then
2785 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2786 # mode. It turns out that the SunPro C++ compiler does not properly
2787 # handle `-M -o', and we need to detect this.
2788 if depmode=$depmode \
2789 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2790 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2791 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2792 >/dev/null 2>conftest.err &&
2793 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2794 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2795 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2796 # icc doesn't choke on unknown options, it will just issue warnings
2797 # (even with -Werror). So we grep stderr for any message
2798 # that says an option was ignored.
2799 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2800 am_cv_CC_dependencies_compiler_type=$depmode
2809 am_cv_CC_dependencies_compiler_type=none
2813 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2814 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2815 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2820 test "x$enable_dependency_tracking" != xno \
2821 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2823 am__fastdepCC_FALSE='#'
2825 am__fastdepCC_TRUE='#'
2826 am__fastdepCC_FALSE=
2831 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2832 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2833 if test "${ac_cv_search_strerror+set}" = set; then
2834 echo $ECHO_N "(cached) $ECHO_C" >&6
2836 ac_func_search_save_LIBS=$LIBS
2837 ac_cv_search_strerror=no
2838 cat >conftest.$ac_ext <<_ACEOF
2841 cat confdefs.h >>conftest.$ac_ext
2842 cat >>conftest.$ac_ext <<_ACEOF
2843 /* end confdefs.h. */
2845 /* Override any gcc2 internal prototype to avoid an error. */
2849 /* We use char because int might match the return type of a gcc2
2850 builtin and then its argument prototype would still apply. */
2860 rm -f conftest.$ac_objext conftest$ac_exeext
2861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2862 (eval $ac_link) 2>conftest.er1
2864 grep -v '^ *+' conftest.er1 >conftest.err
2866 cat conftest.err >&5
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); } &&
2869 { ac_try='test -z "$ac_c_werror_flag"
2870 || test ! -s conftest.err'
2871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }; } &&
2876 { ac_try='test -s conftest$ac_exeext'
2877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }; }; then
2882 ac_cv_search_strerror="none required"
2884 echo "$as_me: failed program was:" >&5
2885 sed 's/^/| /' conftest.$ac_ext >&5
2888 rm -f conftest.err conftest.$ac_objext \
2889 conftest$ac_exeext conftest.$ac_ext
2890 if test "$ac_cv_search_strerror" = no; then
2891 for ac_lib in cposix; do
2892 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2893 cat >conftest.$ac_ext <<_ACEOF
2896 cat confdefs.h >>conftest.$ac_ext
2897 cat >>conftest.$ac_ext <<_ACEOF
2898 /* end confdefs.h. */
2900 /* Override any gcc2 internal prototype to avoid an error. */
2904 /* We use char because int might match the return type of a gcc2
2905 builtin and then its argument prototype would still apply. */
2915 rm -f conftest.$ac_objext conftest$ac_exeext
2916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2917 (eval $ac_link) 2>conftest.er1
2919 grep -v '^ *+' conftest.er1 >conftest.err
2921 cat conftest.err >&5
2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923 (exit $ac_status); } &&
2924 { ac_try='test -z "$ac_c_werror_flag"
2925 || test ! -s conftest.err'
2926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }; } &&
2931 { ac_try='test -s conftest$ac_exeext'
2932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }; }; then
2937 ac_cv_search_strerror="-l$ac_lib"
2940 echo "$as_me: failed program was:" >&5
2941 sed 's/^/| /' conftest.$ac_ext >&5
2944 rm -f conftest.err conftest.$ac_objext \
2945 conftest$ac_exeext conftest.$ac_ext
2948 LIBS=$ac_func_search_save_LIBS
2950 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2951 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2952 if test "$ac_cv_search_strerror" != no; then
2953 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2958 ac_cpp='$CPP $CPPFLAGS'
2959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2962 if test -n "$ac_tool_prefix"; then
2963 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2964 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2965 echo "$as_me:$LINENO: checking for $ac_word" >&5
2966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2967 if test "${ac_cv_prog_CC+set}" = set; then
2968 echo $ECHO_N "(cached) $ECHO_C" >&6
2970 if test -n "$CC"; then
2971 ac_cv_prog_CC="$CC" # Let the user override the test.
2973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977 test -z "$as_dir" && as_dir=.
2978 for ac_exec_ext in '' $ac_executable_extensions; do
2979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2980 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2990 if test -n "$CC"; then
2991 echo "$as_me:$LINENO: result: $CC" >&5
2992 echo "${ECHO_T}$CC" >&6
2994 echo "$as_me:$LINENO: result: no" >&5
2995 echo "${ECHO_T}no" >&6
2999 if test -z "$ac_cv_prog_CC"; then
3001 # Extract the first word of "gcc", so it can be a program name with args.
3002 set dummy gcc; ac_word=$2
3003 echo "$as_me:$LINENO: checking for $ac_word" >&5
3004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3005 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3006 echo $ECHO_N "(cached) $ECHO_C" >&6
3008 if test -n "$ac_ct_CC"; then
3009 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015 test -z "$as_dir" && as_dir=.
3016 for ac_exec_ext in '' $ac_executable_extensions; do
3017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3018 ac_cv_prog_ac_ct_CC="gcc"
3019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3027 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3028 if test -n "$ac_ct_CC"; then
3029 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3030 echo "${ECHO_T}$ac_ct_CC" >&6
3032 echo "$as_me:$LINENO: result: no" >&5
3033 echo "${ECHO_T}no" >&6
3041 if test -z "$CC"; then
3042 if test -n "$ac_tool_prefix"; then
3043 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3044 set dummy ${ac_tool_prefix}cc; ac_word=$2
3045 echo "$as_me:$LINENO: checking for $ac_word" >&5
3046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3047 if test "${ac_cv_prog_CC+set}" = set; then
3048 echo $ECHO_N "(cached) $ECHO_C" >&6
3050 if test -n "$CC"; then
3051 ac_cv_prog_CC="$CC" # Let the user override the test.
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057 test -z "$as_dir" && as_dir=.
3058 for ac_exec_ext in '' $ac_executable_extensions; do
3059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3060 ac_cv_prog_CC="${ac_tool_prefix}cc"
3061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3070 if test -n "$CC"; then
3071 echo "$as_me:$LINENO: result: $CC" >&5
3072 echo "${ECHO_T}$CC" >&6
3074 echo "$as_me:$LINENO: result: no" >&5
3075 echo "${ECHO_T}no" >&6
3079 if test -z "$ac_cv_prog_CC"; then
3081 # Extract the first word of "cc", so it can be a program name with args.
3082 set dummy cc; ac_word=$2
3083 echo "$as_me:$LINENO: checking for $ac_word" >&5
3084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3085 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3086 echo $ECHO_N "(cached) $ECHO_C" >&6
3088 if test -n "$ac_ct_CC"; then
3089 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095 test -z "$as_dir" && as_dir=.
3096 for ac_exec_ext in '' $ac_executable_extensions; do
3097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3098 ac_cv_prog_ac_ct_CC="cc"
3099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3107 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3108 if test -n "$ac_ct_CC"; then
3109 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3110 echo "${ECHO_T}$ac_ct_CC" >&6
3112 echo "$as_me:$LINENO: result: no" >&5
3113 echo "${ECHO_T}no" >&6
3122 if test -z "$CC"; then
3123 # Extract the first word of "cc", so it can be a program name with args.
3124 set dummy cc; ac_word=$2
3125 echo "$as_me:$LINENO: checking for $ac_word" >&5
3126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3127 if test "${ac_cv_prog_CC+set}" = set; then
3128 echo $ECHO_N "(cached) $ECHO_C" >&6
3130 if test -n "$CC"; then
3131 ac_cv_prog_CC="$CC" # Let the user override the test.
3134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138 test -z "$as_dir" && as_dir=.
3139 for ac_exec_ext in '' $ac_executable_extensions; do
3140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3141 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3142 ac_prog_rejected=yes
3146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3152 if test $ac_prog_rejected = yes; then
3153 # We found a bogon in the path, so make sure we never use it.
3154 set dummy $ac_cv_prog_CC
3156 if test $# != 0; then
3157 # We chose a different compiler from the bogus one.
3158 # However, it has the same basename, so the bogon will be chosen
3159 # first if we set CC to just the basename; use the full file name.
3161 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3167 if test -n "$CC"; then
3168 echo "$as_me:$LINENO: result: $CC" >&5
3169 echo "${ECHO_T}$CC" >&6
3171 echo "$as_me:$LINENO: result: no" >&5
3172 echo "${ECHO_T}no" >&6
3176 if test -z "$CC"; then
3177 if test -n "$ac_tool_prefix"; then
3180 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3181 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3182 echo "$as_me:$LINENO: checking for $ac_word" >&5
3183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3184 if test "${ac_cv_prog_CC+set}" = set; then
3185 echo $ECHO_N "(cached) $ECHO_C" >&6
3187 if test -n "$CC"; then
3188 ac_cv_prog_CC="$CC" # Let the user override the test.
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194 test -z "$as_dir" && as_dir=.
3195 for ac_exec_ext in '' $ac_executable_extensions; do
3196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3197 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3207 if test -n "$CC"; then
3208 echo "$as_me:$LINENO: result: $CC" >&5
3209 echo "${ECHO_T}$CC" >&6
3211 echo "$as_me:$LINENO: result: no" >&5
3212 echo "${ECHO_T}no" >&6
3215 test -n "$CC" && break
3218 if test -z "$CC"; then
3222 # Extract the first word of "$ac_prog", so it can be a program name with args.
3223 set dummy $ac_prog; ac_word=$2
3224 echo "$as_me:$LINENO: checking for $ac_word" >&5
3225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3226 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3227 echo $ECHO_N "(cached) $ECHO_C" >&6
3229 if test -n "$ac_ct_CC"; then
3230 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236 test -z "$as_dir" && as_dir=.
3237 for ac_exec_ext in '' $ac_executable_extensions; do
3238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3239 ac_cv_prog_ac_ct_CC="$ac_prog"
3240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3248 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3249 if test -n "$ac_ct_CC"; then
3250 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3251 echo "${ECHO_T}$ac_ct_CC" >&6
3253 echo "$as_me:$LINENO: result: no" >&5
3254 echo "${ECHO_T}no" >&6
3257 test -n "$ac_ct_CC" && break
3266 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3267 See \`config.log' for more details." >&5
3268 echo "$as_me: error: no acceptable C compiler found in \$PATH
3269 See \`config.log' for more details." >&2;}
3270 { (exit 1); exit 1; }; }
3272 # Provide some information about the compiler.
3273 echo "$as_me:$LINENO:" \
3274 "checking for C compiler version" >&5
3275 ac_compiler=`set X $ac_compile; echo $2`
3276 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3277 (eval $ac_compiler --version </dev/null >&5) 2>&5
3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); }
3281 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3282 (eval $ac_compiler -v </dev/null >&5) 2>&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); }
3286 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3287 (eval $ac_compiler -V </dev/null >&5) 2>&5
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); }
3292 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3293 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3294 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3297 cat >conftest.$ac_ext <<_ACEOF
3300 cat confdefs.h >>conftest.$ac_ext
3301 cat >>conftest.$ac_ext <<_ACEOF
3302 /* end confdefs.h. */
3315 rm -f conftest.$ac_objext
3316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3317 (eval $ac_compile) 2>conftest.er1
3319 grep -v '^ *+' conftest.er1 >conftest.err
3321 cat conftest.err >&5
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); } &&
3324 { ac_try='test -z "$ac_c_werror_flag"
3325 || test ! -s conftest.err'
3326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); }; } &&
3331 { ac_try='test -s conftest.$ac_objext'
3332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); }; }; then
3339 echo "$as_me: failed program was:" >&5
3340 sed 's/^/| /' conftest.$ac_ext >&5
3344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3345 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3348 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3349 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3350 GCC=`test $ac_compiler_gnu = yes && echo yes`
3351 ac_test_CFLAGS=${CFLAGS+set}
3352 ac_save_CFLAGS=$CFLAGS
3354 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3355 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3356 if test "${ac_cv_prog_cc_g+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3359 cat >conftest.$ac_ext <<_ACEOF
3362 cat confdefs.h >>conftest.$ac_ext
3363 cat >>conftest.$ac_ext <<_ACEOF
3364 /* end confdefs.h. */
3374 rm -f conftest.$ac_objext
3375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3376 (eval $ac_compile) 2>conftest.er1
3378 grep -v '^ *+' conftest.er1 >conftest.err
3380 cat conftest.err >&5
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); } &&
3383 { ac_try='test -z "$ac_c_werror_flag"
3384 || test ! -s conftest.err'
3385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); }; } &&
3390 { ac_try='test -s conftest.$ac_objext'
3391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); }; }; then
3398 echo "$as_me: failed program was:" >&5
3399 sed 's/^/| /' conftest.$ac_ext >&5
3403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3405 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3406 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3407 if test "$ac_test_CFLAGS" = set; then
3408 CFLAGS=$ac_save_CFLAGS
3409 elif test $ac_cv_prog_cc_g = yes; then
3410 if test "$GCC" = yes; then
3416 if test "$GCC" = yes; then
3422 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3423 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3424 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3425 echo $ECHO_N "(cached) $ECHO_C" >&6
3427 ac_cv_prog_cc_stdc=no
3429 cat >conftest.$ac_ext <<_ACEOF
3432 cat confdefs.h >>conftest.$ac_ext
3433 cat >>conftest.$ac_ext <<_ACEOF
3434 /* end confdefs.h. */
3437 #include <sys/types.h>
3438 #include <sys/stat.h>
3439 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3440 struct buf { int x; };
3441 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3442 static char *e (p, i)
3448 static char *f (char * (*g) (char **, int), char **p, ...)
3453 s = g (p, va_arg (v,int));
3458 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3459 function prototypes and stuff, but not '\xHH' hex character constants.
3460 These don't provoke an error unfortunately, instead are silently treated
3461 as 'x'. The following induces an error, until -std1 is added to get
3462 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3463 array size at least. It's necessary to write '\x00'==0 to get something
3464 that's true only with -std1. */
3465 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3467 int test (int i, double x);
3468 struct s1 {int (*f) (int a);};
3469 struct s2 {int (*f) (double a);};
3470 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3476 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3481 # Don't try gcc -ansi; that turns off useful extensions and
3482 # breaks some systems' header files.
3483 # AIX -qlanglvl=ansi
3484 # Ultrix and OSF/1 -std1
3485 # HP-UX 10.20 and later -Ae
3486 # HP-UX older versions -Aa -D_HPUX_SOURCE
3487 # SVR4 -Xc -D__EXTENSIONS__
3488 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3490 CC="$ac_save_CC $ac_arg"
3491 rm -f conftest.$ac_objext
3492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3493 (eval $ac_compile) 2>conftest.er1
3495 grep -v '^ *+' conftest.er1 >conftest.err
3497 cat conftest.err >&5
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); } &&
3500 { ac_try='test -z "$ac_c_werror_flag"
3501 || test ! -s conftest.err'
3502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); }; } &&
3507 { ac_try='test -s conftest.$ac_objext'
3508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); }; }; then
3513 ac_cv_prog_cc_stdc=$ac_arg
3516 echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3520 rm -f conftest.err conftest.$ac_objext
3522 rm -f conftest.$ac_ext conftest.$ac_objext
3527 case "x$ac_cv_prog_cc_stdc" in
3529 echo "$as_me:$LINENO: result: none needed" >&5
3530 echo "${ECHO_T}none needed" >&6 ;;
3532 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3533 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3534 CC="$CC $ac_cv_prog_cc_stdc" ;;
3537 # Some people use a C++ compiler to compile C. Since we use `exit',
3538 # in C++ we need to declare it. In case someone uses the same compiler
3539 # for both compiling C and C++ we need to have the C++ compiler decide
3540 # the declaration of exit, since it's the most demanding environment.
3541 cat >conftest.$ac_ext <<_ACEOF
3546 rm -f conftest.$ac_objext
3547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3548 (eval $ac_compile) 2>conftest.er1
3550 grep -v '^ *+' conftest.er1 >conftest.err
3552 cat conftest.err >&5
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); } &&
3555 { ac_try='test -z "$ac_c_werror_flag"
3556 || test ! -s conftest.err'
3557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); }; } &&
3562 { ac_try='test -s conftest.$ac_objext'
3563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); }; }; then
3568 for ac_declaration in \
3570 'extern "C" void std::exit (int) throw (); using std::exit;' \
3571 'extern "C" void std::exit (int); using std::exit;' \
3572 'extern "C" void exit (int) throw ();' \
3573 'extern "C" void exit (int);' \
3576 cat >conftest.$ac_ext <<_ACEOF
3579 cat confdefs.h >>conftest.$ac_ext
3580 cat >>conftest.$ac_ext <<_ACEOF
3581 /* end confdefs.h. */
3592 rm -f conftest.$ac_objext
3593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3594 (eval $ac_compile) 2>conftest.er1
3596 grep -v '^ *+' conftest.er1 >conftest.err
3598 cat conftest.err >&5
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); } &&
3601 { ac_try='test -z "$ac_c_werror_flag"
3602 || test ! -s conftest.err'
3603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); }; } &&
3608 { ac_try='test -s conftest.$ac_objext'
3609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); }; }; then
3616 echo "$as_me: failed program was:" >&5
3617 sed 's/^/| /' conftest.$ac_ext >&5
3621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3622 cat >conftest.$ac_ext <<_ACEOF
3625 cat confdefs.h >>conftest.$ac_ext
3626 cat >>conftest.$ac_ext <<_ACEOF
3627 /* end confdefs.h. */
3637 rm -f conftest.$ac_objext
3638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3639 (eval $ac_compile) 2>conftest.er1
3641 grep -v '^ *+' conftest.er1 >conftest.err
3643 cat conftest.err >&5
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); } &&
3646 { ac_try='test -z "$ac_c_werror_flag"
3647 || test ! -s conftest.err'
3648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); }; } &&
3653 { ac_try='test -s conftest.$ac_objext'
3654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); }; }; then
3661 echo "$as_me: failed program was:" >&5
3662 sed 's/^/| /' conftest.$ac_ext >&5
3665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3668 if test -n "$ac_declaration"; then
3669 echo '#ifdef __cplusplus' >>confdefs.h
3670 echo $ac_declaration >>confdefs.h
3671 echo '#endif' >>confdefs.h
3675 echo "$as_me: failed program was:" >&5
3676 sed 's/^/| /' conftest.$ac_ext >&5
3679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3681 ac_cpp='$CPP $CPPFLAGS'
3682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3686 depcc="$CC" am_compiler_list=
3688 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3689 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3690 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3691 echo $ECHO_N "(cached) $ECHO_C" >&6
3693 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3694 # We make a subdir and do the tests there. Otherwise we can end up
3695 # making bogus files that we don't know about and never remove. For
3696 # instance it was reported that on HP-UX the gcc test will end up
3697 # making a dummy file named `D' -- because `-MD' means `put the output
3700 # Copy depcomp to subdir because otherwise we won't find it if we're
3701 # using a relative directory.
3702 cp "$am_depcomp" conftest.dir
3704 # We will build objects and dependencies in a subdirectory because
3705 # it helps to detect inapplicable dependency modes. For instance
3706 # both Tru64's cc and ICC support -MD to output dependencies as a
3707 # side effect of compilation, but ICC will put the dependencies in
3708 # the current directory while Tru64 will put them in the object
3712 am_cv_CC_dependencies_compiler_type=none
3713 if test "$am_compiler_list" = ""; then
3714 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3716 for depmode in $am_compiler_list; do
3717 # Setup a source with many dependencies, because some compilers
3718 # like to wrap large dependency lists on column 80 (with \), and
3719 # we should not choose a depcomp mode which is confused by this.
3721 # We need to recreate these files for each test, as the compiler may
3722 # overwrite some of them when testing with obscure command lines.
3723 # This happens at least with the AIX C compiler.
3725 for i in 1 2 3 4 5 6; do
3726 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3729 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3733 # after this tag, mechanisms are not by side-effect, so they'll
3734 # only be used when explicitly requested
3735 if test "x$enable_dependency_tracking" = xyes; then
3743 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3744 # mode. It turns out that the SunPro C++ compiler does not properly
3745 # handle `-M -o', and we need to detect this.
3746 if depmode=$depmode \
3747 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3748 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3749 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3750 >/dev/null 2>conftest.err &&
3751 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3752 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3753 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3754 # icc doesn't choke on unknown options, it will just issue warnings
3755 # (even with -Werror). So we grep stderr for any message
3756 # that says an option was ignored.
3757 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3758 am_cv_CC_dependencies_compiler_type=$depmode
3767 am_cv_CC_dependencies_compiler_type=none
3771 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3772 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3773 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3778 test "x$enable_dependency_tracking" != xno \
3779 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3781 am__fastdepCC_FALSE='#'
3783 am__fastdepCC_TRUE='#'
3784 am__fastdepCC_FALSE=
3789 ac_cpp='$CPP $CPPFLAGS'
3790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3793 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3794 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3795 # On Suns, sometimes $CPP names a directory.
3796 if test -n "$CPP" && test -d "$CPP"; then
3799 if test -z "$CPP"; then
3800 if test "${ac_cv_prog_CPP+set}" = set; then
3801 echo $ECHO_N "(cached) $ECHO_C" >&6
3803 # Double quotes because CPP needs to be expanded
3804 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3807 for ac_c_preproc_warn_flag in '' yes
3809 # Use a header file that comes with gcc, so configuring glibc
3810 # with a fresh cross-compiler works.
3811 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3812 # <limits.h> exists even on freestanding compilers.
3813 # On the NeXT, cc -E runs the code through the compiler's parser,
3814 # not just through cpp. "Syntax error" is here to catch this case.
3815 cat >conftest.$ac_ext <<_ACEOF
3818 cat confdefs.h >>conftest.$ac_ext
3819 cat >>conftest.$ac_ext <<_ACEOF
3820 /* end confdefs.h. */
3822 # include <limits.h>
3824 # include <assert.h>
3828 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3829 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3831 grep -v '^ *+' conftest.er1 >conftest.err
3833 cat conftest.err >&5
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); } >/dev/null; then
3836 if test -s conftest.err; then
3837 ac_cpp_err=$ac_c_preproc_warn_flag
3838 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3845 if test -z "$ac_cpp_err"; then
3848 echo "$as_me: failed program was:" >&5
3849 sed 's/^/| /' conftest.$ac_ext >&5
3851 # Broken: fails on valid input.
3854 rm -f conftest.err conftest.$ac_ext
3856 # OK, works on sane cases. Now check whether non-existent headers
3857 # can be detected and how.
3858 cat >conftest.$ac_ext <<_ACEOF
3861 cat confdefs.h >>conftest.$ac_ext
3862 cat >>conftest.$ac_ext <<_ACEOF
3863 /* end confdefs.h. */
3864 #include <ac_nonexistent.h>
3866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3867 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3869 grep -v '^ *+' conftest.er1 >conftest.err
3871 cat conftest.err >&5
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); } >/dev/null; then
3874 if test -s conftest.err; then
3875 ac_cpp_err=$ac_c_preproc_warn_flag
3876 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3883 if test -z "$ac_cpp_err"; then
3884 # Broken: success on invalid input.
3887 echo "$as_me: failed program was:" >&5
3888 sed 's/^/| /' conftest.$ac_ext >&5
3890 # Passes both tests.
3894 rm -f conftest.err conftest.$ac_ext
3897 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3898 rm -f conftest.err conftest.$ac_ext
3899 if $ac_preproc_ok; then
3911 echo "$as_me:$LINENO: result: $CPP" >&5
3912 echo "${ECHO_T}$CPP" >&6
3914 for ac_c_preproc_warn_flag in '' yes
3916 # Use a header file that comes with gcc, so configuring glibc
3917 # with a fresh cross-compiler works.
3918 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3919 # <limits.h> exists even on freestanding compilers.
3920 # On the NeXT, cc -E runs the code through the compiler's parser,
3921 # not just through cpp. "Syntax error" is here to catch this case.
3922 cat >conftest.$ac_ext <<_ACEOF
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h. */
3929 # include <limits.h>
3931 # include <assert.h>
3935 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3936 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3938 grep -v '^ *+' conftest.er1 >conftest.err
3940 cat conftest.err >&5
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); } >/dev/null; then
3943 if test -s conftest.err; then
3944 ac_cpp_err=$ac_c_preproc_warn_flag
3945 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3952 if test -z "$ac_cpp_err"; then
3955 echo "$as_me: failed program was:" >&5
3956 sed 's/^/| /' conftest.$ac_ext >&5
3958 # Broken: fails on valid input.
3961 rm -f conftest.err conftest.$ac_ext
3963 # OK, works on sane cases. Now check whether non-existent headers
3964 # can be detected and how.
3965 cat >conftest.$ac_ext <<_ACEOF
3968 cat confdefs.h >>conftest.$ac_ext
3969 cat >>conftest.$ac_ext <<_ACEOF
3970 /* end confdefs.h. */
3971 #include <ac_nonexistent.h>
3973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3976 grep -v '^ *+' conftest.er1 >conftest.err
3978 cat conftest.err >&5
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); } >/dev/null; then
3981 if test -s conftest.err; then
3982 ac_cpp_err=$ac_c_preproc_warn_flag
3983 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3990 if test -z "$ac_cpp_err"; then
3991 # Broken: success on invalid input.
3994 echo "$as_me: failed program was:" >&5
3995 sed 's/^/| /' conftest.$ac_ext >&5
3997 # Passes both tests.
4001 rm -f conftest.err conftest.$ac_ext
4004 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4005 rm -f conftest.err conftest.$ac_ext
4006 if $ac_preproc_ok; then
4009 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4010 See \`config.log' for more details." >&5
4011 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4012 See \`config.log' for more details." >&2;}
4013 { (exit 1); exit 1; }; }
4017 ac_cpp='$CPP $CPPFLAGS'
4018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4023 echo "$as_me:$LINENO: checking for egrep" >&5
4024 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4025 if test "${ac_cv_prog_egrep+set}" = set; then
4026 echo $ECHO_N "(cached) $ECHO_C" >&6
4028 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4029 then ac_cv_prog_egrep='grep -E'
4030 else ac_cv_prog_egrep='egrep'
4033 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4034 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4035 EGREP=$ac_cv_prog_egrep
4038 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4039 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4040 if test "${ac_cv_header_stdc+set}" = set; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
4043 cat >conftest.$ac_ext <<_ACEOF
4046 cat confdefs.h >>conftest.$ac_ext
4047 cat >>conftest.$ac_ext <<_ACEOF
4048 /* end confdefs.h. */
4062 rm -f conftest.$ac_objext
4063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4064 (eval $ac_compile) 2>conftest.er1
4066 grep -v '^ *+' conftest.er1 >conftest.err
4068 cat conftest.err >&5
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); } &&
4071 { ac_try='test -z "$ac_c_werror_flag"
4072 || test ! -s conftest.err'
4073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; } &&
4078 { ac_try='test -s conftest.$ac_objext'
4079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); }; }; then
4084 ac_cv_header_stdc=yes
4086 echo "$as_me: failed program was:" >&5
4087 sed 's/^/| /' conftest.$ac_ext >&5
4089 ac_cv_header_stdc=no
4091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4093 if test $ac_cv_header_stdc = yes; then
4094 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4095 cat >conftest.$ac_ext <<_ACEOF
4098 cat confdefs.h >>conftest.$ac_ext
4099 cat >>conftest.$ac_ext <<_ACEOF
4100 /* end confdefs.h. */
4104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4105 $EGREP "memchr" >/dev/null 2>&1; then
4108 ac_cv_header_stdc=no
4114 if test $ac_cv_header_stdc = yes; then
4115 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4116 cat >conftest.$ac_ext <<_ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h. */
4125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4126 $EGREP "free" >/dev/null 2>&1; then
4129 ac_cv_header_stdc=no
4135 if test $ac_cv_header_stdc = yes; then
4136 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4137 if test "$cross_compiling" = yes; then
4140 cat >conftest.$ac_ext <<_ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h. */
4147 #if ((' ' & 0x0FF) == 0x020)
4148 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4149 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4151 # define ISLOWER(c) \
4152 (('a' <= (c) && (c) <= 'i') \
4153 || ('j' <= (c) && (c) <= 'r') \
4154 || ('s' <= (c) && (c) <= 'z'))
4155 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4158 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4163 for (i = 0; i < 256; i++)
4164 if (XOR (islower (i), ISLOWER (i))
4165 || toupper (i) != TOUPPER (i))
4170 rm -f conftest$ac_exeext
4171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4172 (eval $ac_link) 2>&5
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); }; }; then
4183 echo "$as_me: program exited with status $ac_status" >&5
4184 echo "$as_me: failed program was:" >&5
4185 sed 's/^/| /' conftest.$ac_ext >&5
4188 ac_cv_header_stdc=no
4190 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4194 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4195 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4196 if test $ac_cv_header_stdc = yes; then
4198 cat >>confdefs.h <<\_ACEOF
4199 #define STDC_HEADERS 1
4204 for ac_prog in 'bison -y' byacc
4206 # Extract the first word of "$ac_prog", so it can be a program name with args.
4207 set dummy $ac_prog; ac_word=$2
4208 echo "$as_me:$LINENO: checking for $ac_word" >&5
4209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4210 if test "${ac_cv_prog_YACC+set}" = set; then
4211 echo $ECHO_N "(cached) $ECHO_C" >&6
4213 if test -n "$YACC"; then
4214 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220 test -z "$as_dir" && as_dir=.
4221 for ac_exec_ext in '' $ac_executable_extensions; do
4222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4223 ac_cv_prog_YACC="$ac_prog"
4224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4232 YACC=$ac_cv_prog_YACC
4233 if test -n "$YACC"; then
4234 echo "$as_me:$LINENO: result: $YACC" >&5
4235 echo "${ECHO_T}$YACC" >&6
4237 echo "$as_me:$LINENO: result: no" >&5
4238 echo "${ECHO_T}no" >&6
4241 test -n "$YACC" && break
4243 test -n "$YACC" || YACC="yacc"
4245 for ac_prog in flex lex
4247 # Extract the first word of "$ac_prog", so it can be a program name with args.
4248 set dummy $ac_prog; ac_word=$2
4249 echo "$as_me:$LINENO: checking for $ac_word" >&5
4250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4251 if test "${ac_cv_prog_LEX+set}" = set; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4254 if test -n "$LEX"; then
4255 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261 test -z "$as_dir" && as_dir=.
4262 for ac_exec_ext in '' $ac_executable_extensions; do
4263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4264 ac_cv_prog_LEX="$ac_prog"
4265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4274 if test -n "$LEX"; then
4275 echo "$as_me:$LINENO: result: $LEX" >&5
4276 echo "${ECHO_T}$LEX" >&6
4278 echo "$as_me:$LINENO: result: no" >&5
4279 echo "${ECHO_T}no" >&6
4282 test -n "$LEX" && break
4284 test -n "$LEX" || LEX=":"
4286 if test -z "$LEXLIB"
4288 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4289 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4290 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4293 ac_check_lib_save_LIBS=$LIBS
4295 cat >conftest.$ac_ext <<_ACEOF
4298 cat confdefs.h >>conftest.$ac_ext
4299 cat >>conftest.$ac_ext <<_ACEOF
4300 /* end confdefs.h. */
4302 /* Override any gcc2 internal prototype to avoid an error. */
4306 /* We use char because int might match the return type of a gcc2
4307 builtin and then its argument prototype would still apply. */
4317 rm -f conftest.$ac_objext conftest$ac_exeext
4318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4319 (eval $ac_link) 2>conftest.er1
4321 grep -v '^ *+' conftest.er1 >conftest.err
4323 cat conftest.err >&5
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); } &&
4326 { ac_try='test -z "$ac_c_werror_flag"
4327 || test ! -s conftest.err'
4328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); }; } &&
4333 { ac_try='test -s conftest$ac_exeext'
4334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); }; }; then
4339 ac_cv_lib_fl_yywrap=yes
4341 echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4344 ac_cv_lib_fl_yywrap=no
4346 rm -f conftest.err conftest.$ac_objext \
4347 conftest$ac_exeext conftest.$ac_ext
4348 LIBS=$ac_check_lib_save_LIBS
4350 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4351 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4352 if test $ac_cv_lib_fl_yywrap = yes; then
4355 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4356 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4357 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4360 ac_check_lib_save_LIBS=$LIBS
4362 cat >conftest.$ac_ext <<_ACEOF
4365 cat confdefs.h >>conftest.$ac_ext
4366 cat >>conftest.$ac_ext <<_ACEOF
4367 /* end confdefs.h. */
4369 /* Override any gcc2 internal prototype to avoid an error. */
4373 /* We use char because int might match the return type of a gcc2
4374 builtin and then its argument prototype would still apply. */
4384 rm -f conftest.$ac_objext conftest$ac_exeext
4385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4386 (eval $ac_link) 2>conftest.er1
4388 grep -v '^ *+' conftest.er1 >conftest.err
4390 cat conftest.err >&5
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); } &&
4393 { ac_try='test -z "$ac_c_werror_flag"
4394 || test ! -s conftest.err'
4395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); }; } &&
4400 { ac_try='test -s conftest$ac_exeext'
4401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); }; }; then
4406 ac_cv_lib_l_yywrap=yes
4408 echo "$as_me: failed program was:" >&5
4409 sed 's/^/| /' conftest.$ac_ext >&5
4411 ac_cv_lib_l_yywrap=no
4413 rm -f conftest.err conftest.$ac_objext \
4414 conftest$ac_exeext conftest.$ac_ext
4415 LIBS=$ac_check_lib_save_LIBS
4417 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4418 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4419 if test $ac_cv_lib_l_yywrap = yes; then
4427 if test "x$LEX" != "x:"; then
4428 echo "$as_me:$LINENO: checking lex output file root" >&5
4429 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4430 if test "${ac_cv_prog_lex_root+set}" = set; then
4431 echo $ECHO_N "(cached) $ECHO_C" >&6
4433 # The minimal lex program is just a single line: %%. But some broken lexes
4434 # (Solaris, I think it was) want two %% lines, so accommodate them.
4435 cat >conftest.l <<_ACEOF
4439 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4440 (eval $LEX conftest.l) 2>&5
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); }
4444 if test -f lex.yy.c; then
4445 ac_cv_prog_lex_root=lex.yy
4446 elif test -f lexyy.c; then
4447 ac_cv_prog_lex_root=lexyy
4449 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4450 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4451 { (exit 1); exit 1; }; }
4454 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4455 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4457 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4459 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4460 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4461 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4462 echo $ECHO_N "(cached) $ECHO_C" >&6
4464 # POSIX says lex can declare yytext either as a pointer or an array; the
4465 # default is implementation-dependent. Figure out which it is, since
4466 # not all implementations provide the %pointer and %array declarations.
4467 ac_cv_prog_lex_yytext_pointer=no
4468 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4470 LIBS="$LIBS $LEXLIB"
4471 cat >conftest.$ac_ext <<_ACEOF
4472 `cat $LEX_OUTPUT_ROOT.c`
4474 rm -f conftest.$ac_objext conftest$ac_exeext
4475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4476 (eval $ac_link) 2>conftest.er1
4478 grep -v '^ *+' conftest.er1 >conftest.err
4480 cat conftest.err >&5
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); } &&
4483 { ac_try='test -z "$ac_c_werror_flag"
4484 || test ! -s conftest.err'
4485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); }; } &&
4490 { ac_try='test -s conftest$ac_exeext'
4491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); }; }; then
4496 ac_cv_prog_lex_yytext_pointer=yes
4498 echo "$as_me: failed program was:" >&5
4499 sed 's/^/| /' conftest.$ac_ext >&5
4502 rm -f conftest.err conftest.$ac_objext \
4503 conftest$ac_exeext conftest.$ac_ext
4505 rm -f "${LEX_OUTPUT_ROOT}.c"
4508 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4509 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4510 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4512 cat >>confdefs.h <<\_ACEOF
4513 #define YYTEXT_POINTER 1
4519 if test "$LEX" = :; then
4520 LEX=${am_missing_run}flex
4522 # Find a good install program. We prefer a C program (faster),
4523 # so one script is as good as another. But avoid the broken or
4524 # incompatible versions:
4525 # SysV /etc/install, /usr/sbin/install
4526 # SunOS /usr/etc/install
4527 # IRIX /sbin/install
4529 # AmigaOS /C/install, which installs bootblocks on floppy discs
4530 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4531 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4532 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4533 # OS/2's system install, which has a completely different semantic
4534 # ./install, which can be erroneously created by make from ./install.sh.
4535 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4536 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4537 if test -z "$INSTALL"; then
4538 if test "${ac_cv_path_install+set}" = set; then
4539 echo $ECHO_N "(cached) $ECHO_C" >&6
4541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 test -z "$as_dir" && as_dir=.
4546 # Account for people who put trailing slashes in PATH elements.
4548 ./ | .// | /cC/* | \
4549 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4550 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4553 # OSF1 and SCO ODT 3.0 have their own names for install.
4554 # Don't use installbsd from OSF since it installs stuff as root
4556 for ac_prog in ginstall scoinst install; do
4557 for ac_exec_ext in '' $ac_executable_extensions; do
4558 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4559 if test $ac_prog = install &&
4560 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4561 # AIX install. It has an incompatible calling convention.
4563 elif test $ac_prog = install &&
4564 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4565 # program-specific install script used by HP pwplus--don't use.
4568 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4580 if test "${ac_cv_path_install+set}" = set; then
4581 INSTALL=$ac_cv_path_install
4583 # As a last resort, use the slow shell script. We don't cache a
4584 # path for INSTALL within a source directory, because that will
4585 # break other packages using the cache if that directory is
4586 # removed, or if the path is relative.
4587 INSTALL=$ac_install_sh
4590 echo "$as_me:$LINENO: result: $INSTALL" >&5
4591 echo "${ECHO_T}$INSTALL" >&6
4593 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4594 # It thinks the first close brace ends the variable substitution.
4595 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4597 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4599 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4602 ac_cpp='$CPP $CPPFLAGS'
4603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4606 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4607 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4608 # On Suns, sometimes $CPP names a directory.
4609 if test -n "$CPP" && test -d "$CPP"; then
4612 if test -z "$CPP"; then
4613 if test "${ac_cv_prog_CPP+set}" = set; then
4614 echo $ECHO_N "(cached) $ECHO_C" >&6
4616 # Double quotes because CPP needs to be expanded
4617 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4620 for ac_c_preproc_warn_flag in '' yes
4622 # Use a header file that comes with gcc, so configuring glibc
4623 # with a fresh cross-compiler works.
4624 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4625 # <limits.h> exists even on freestanding compilers.
4626 # On the NeXT, cc -E runs the code through the compiler's parser,
4627 # not just through cpp. "Syntax error" is here to catch this case.
4628 cat >conftest.$ac_ext <<_ACEOF
4631 cat confdefs.h >>conftest.$ac_ext
4632 cat >>conftest.$ac_ext <<_ACEOF
4633 /* end confdefs.h. */
4635 # include <limits.h>
4637 # include <assert.h>
4641 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4642 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4644 grep -v '^ *+' conftest.er1 >conftest.err
4646 cat conftest.err >&5
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); } >/dev/null; then
4649 if test -s conftest.err; then
4650 ac_cpp_err=$ac_c_preproc_warn_flag
4651 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4658 if test -z "$ac_cpp_err"; then
4661 echo "$as_me: failed program was:" >&5
4662 sed 's/^/| /' conftest.$ac_ext >&5
4664 # Broken: fails on valid input.
4667 rm -f conftest.err conftest.$ac_ext
4669 # OK, works on sane cases. Now check whether non-existent headers
4670 # can be detected and how.
4671 cat >conftest.$ac_ext <<_ACEOF
4674 cat confdefs.h >>conftest.$ac_ext
4675 cat >>conftest.$ac_ext <<_ACEOF
4676 /* end confdefs.h. */
4677 #include <ac_nonexistent.h>
4679 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4680 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4682 grep -v '^ *+' conftest.er1 >conftest.err
4684 cat conftest.err >&5
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); } >/dev/null; then
4687 if test -s conftest.err; then
4688 ac_cpp_err=$ac_c_preproc_warn_flag
4689 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4696 if test -z "$ac_cpp_err"; then
4697 # Broken: success on invalid input.
4700 echo "$as_me: failed program was:" >&5
4701 sed 's/^/| /' conftest.$ac_ext >&5
4703 # Passes both tests.
4707 rm -f conftest.err conftest.$ac_ext
4710 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4711 rm -f conftest.err conftest.$ac_ext
4712 if $ac_preproc_ok; then
4724 echo "$as_me:$LINENO: result: $CPP" >&5
4725 echo "${ECHO_T}$CPP" >&6
4727 for ac_c_preproc_warn_flag in '' yes
4729 # Use a header file that comes with gcc, so configuring glibc
4730 # with a fresh cross-compiler works.
4731 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4732 # <limits.h> exists even on freestanding compilers.
4733 # On the NeXT, cc -E runs the code through the compiler's parser,
4734 # not just through cpp. "Syntax error" is here to catch this case.
4735 cat >conftest.$ac_ext <<_ACEOF
4738 cat confdefs.h >>conftest.$ac_ext
4739 cat >>conftest.$ac_ext <<_ACEOF
4740 /* end confdefs.h. */
4742 # include <limits.h>
4744 # include <assert.h>
4748 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4749 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4751 grep -v '^ *+' conftest.er1 >conftest.err
4753 cat conftest.err >&5
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); } >/dev/null; then
4756 if test -s conftest.err; then
4757 ac_cpp_err=$ac_c_preproc_warn_flag
4758 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4765 if test -z "$ac_cpp_err"; then
4768 echo "$as_me: failed program was:" >&5
4769 sed 's/^/| /' conftest.$ac_ext >&5
4771 # Broken: fails on valid input.
4774 rm -f conftest.err conftest.$ac_ext
4776 # OK, works on sane cases. Now check whether non-existent headers
4777 # can be detected and how.
4778 cat >conftest.$ac_ext <<_ACEOF
4781 cat confdefs.h >>conftest.$ac_ext
4782 cat >>conftest.$ac_ext <<_ACEOF
4783 /* end confdefs.h. */
4784 #include <ac_nonexistent.h>
4786 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4787 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4789 grep -v '^ *+' conftest.er1 >conftest.err
4791 cat conftest.err >&5
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); } >/dev/null; then
4794 if test -s conftest.err; then
4795 ac_cpp_err=$ac_c_preproc_warn_flag
4796 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4803 if test -z "$ac_cpp_err"; then
4804 # Broken: success on invalid input.
4807 echo "$as_me: failed program was:" >&5
4808 sed 's/^/| /' conftest.$ac_ext >&5
4810 # Passes both tests.
4814 rm -f conftest.err conftest.$ac_ext
4817 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4818 rm -f conftest.err conftest.$ac_ext
4819 if $ac_preproc_ok; then
4822 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4823 See \`config.log' for more details." >&5
4824 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4825 See \`config.log' for more details." >&2;}
4826 { (exit 1); exit 1; }; }
4830 ac_cpp='$CPP $CPPFLAGS'
4831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4835 # Extract the first word of "rm", so it can be a program name with args.
4836 set dummy rm; ac_word=$2
4837 echo "$as_me:$LINENO: checking for $ac_word" >&5
4838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4839 if test "${ac_cv_path_RM+set}" = set; then
4840 echo $ECHO_N "(cached) $ECHO_C" >&6
4844 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851 test -z "$as_dir" && as_dir=.
4852 for ac_exec_ext in '' $ac_executable_extensions; do
4853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4854 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4861 test -z "$ac_cv_path_RM" && ac_cv_path_RM="/bin/rm"
4867 if test -n "$RM"; then
4868 echo "$as_me:$LINENO: result: $RM" >&5
4869 echo "${ECHO_T}$RM" >&6
4871 echo "$as_me:$LINENO: result: no" >&5
4872 echo "${ECHO_T}no" >&6
4875 # Extract the first word of "mv", so it can be a program name with args.
4876 set dummy mv; ac_word=$2
4877 echo "$as_me:$LINENO: checking for $ac_word" >&5
4878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4879 if test "${ac_cv_path_MV+set}" = set; then
4880 echo $ECHO_N "(cached) $ECHO_C" >&6
4884 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4891 test -z "$as_dir" && as_dir=.
4892 for ac_exec_ext in '' $ac_executable_extensions; do
4893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4894 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4901 test -z "$ac_cv_path_MV" && ac_cv_path_MV="/bin/mv"
4907 if test -n "$MV"; then
4908 echo "$as_me:$LINENO: result: $MV" >&5
4909 echo "${ECHO_T}$MV" >&6
4911 echo "$as_me:$LINENO: result: no" >&5
4912 echo "${ECHO_T}no" >&6
4915 # Extract the first word of "tar", so it can be a program name with args.
4916 set dummy tar; ac_word=$2
4917 echo "$as_me:$LINENO: checking for $ac_word" >&5
4918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4919 if test "${ac_cv_path_TAR+set}" = set; then
4920 echo $ECHO_N "(cached) $ECHO_C" >&6
4924 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4931 test -z "$as_dir" && as_dir=.
4932 for ac_exec_ext in '' $ac_executable_extensions; do
4933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4934 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4941 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="/bin/tar"
4947 if test -n "$TAR"; then
4948 echo "$as_me:$LINENO: result: $TAR" >&5
4949 echo "${ECHO_T}$TAR" >&6
4951 echo "$as_me:$LINENO: result: no" >&5
4952 echo "${ECHO_T}no" >&6
4958 if test -z "$PKG_CONFIG"; then
4959 # Extract the first word of "pkg-config", so it can be a program name with args.
4960 set dummy pkg-config; ac_word=$2
4961 echo "$as_me:$LINENO: checking for $ac_word" >&5
4962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4963 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4964 echo $ECHO_N "(cached) $ECHO_C" >&6
4968 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4975 test -z "$as_dir" && as_dir=.
4976 for ac_exec_ext in '' $ac_executable_extensions; do
4977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4978 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4985 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
4989 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4991 if test -n "$PKG_CONFIG"; then
4992 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4993 echo "${ECHO_T}$PKG_CONFIG" >&6
4995 echo "$as_me:$LINENO: result: no" >&5
4996 echo "${ECHO_T}no" >&6
5001 if test "$PKG_CONFIG" = "no" ; then
5002 echo "*** The pkg-config script could not be found. Make sure it is"
5003 echo "*** in your path, or set the PKG_CONFIG environment variable"
5004 echo "*** to the full path to pkg-config."
5005 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
5007 PKG_CONFIG_MIN_VERSION=0.9.0
5008 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5009 echo "$as_me:$LINENO: checking for glib-2.0 >= $GLIB_REQUIRED" >&5
5010 echo $ECHO_N "checking for glib-2.0 >= $GLIB_REQUIRED... $ECHO_C" >&6
5012 if $PKG_CONFIG --exists "glib-2.0 >= $GLIB_REQUIRED" ; then
5013 echo "$as_me:$LINENO: result: yes" >&5
5014 echo "${ECHO_T}yes" >&6
5017 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
5018 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
5019 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= $GLIB_REQUIRED"`
5020 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
5021 echo "${ECHO_T}$GLIB_CFLAGS" >&6
5023 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
5024 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
5025 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= $GLIB_REQUIRED"`
5026 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
5027 echo "${ECHO_T}$GLIB_LIBS" >&6
5031 ## If we have a custom action on failure, don't print errors, but
5032 ## do set a variable so people can do so.
5033 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= $GLIB_REQUIRED"`
5034 echo $GLIB_PKG_ERRORS
5040 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
5041 echo "*** See http://www.freedesktop.org/software/pkgconfig"
5045 if test $succeeded = yes; then
5048 { { echo "$as_me:$LINENO: error: Library requirements (glib-2.0 >= $GLIB_REQUIRED) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
5049 echo "$as_me: error: Library requirements (glib-2.0 >= $GLIB_REQUIRED) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
5050 { (exit 1); exit 1; }; }
5063 ac_config_files="$ac_config_files gob2.spec Makefile src/Makefile doc/Makefile examples/Makefile doc/gob2.1"
5064 cat >confcache <<\_ACEOF
5065 # This file is a shell script that caches the results of configure
5066 # tests run on this system so they can be shared between configure
5067 # scripts and configure runs, see configure's option --config-cache.
5068 # It is not useful on other systems. If it contains results you don't
5069 # want to keep, you may remove or edit it.
5071 # config.status only pays attention to the cache file if you give it
5072 # the --recheck option to rerun configure.
5074 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5075 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5080 # The following way of writing the cache mishandles newlines in values,
5081 # but we know of no workaround that is simple, portable, and efficient.
5082 # So, don't put newlines in cache variables' values.
5083 # Ultrix sh set writes to stderr and can't be redirected directly,
5084 # and sets the high bit in the cache file unless we assign to the vars.
5087 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5089 # `set' does not quote correctly, so add quotes (double-quote
5090 # substitution turns \\\\ into \\, and sed turns \\ into \).
5093 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5096 # `set' quotes correctly as required by POSIX, so do not add quotes.
5098 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5105 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5107 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5109 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5110 if test -w $cache_file; then
5111 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5112 cat confcache >$cache_file
5114 echo "not updating unwritable cache $cache_file"
5119 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5120 # Let make expand exec_prefix.
5121 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5123 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5124 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5125 # trailing colons and then remove the whole line if VPATH becomes empty
5126 # (actually we leave an empty line to preserve line numbers).
5127 if test "x$srcdir" = x.; then
5128 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5129 s/:*\$(srcdir):*/:/;
5130 s/:*\${srcdir}:*/:/;
5132 s/^\([^=]*=[ ]*\):*/\1/;
5138 DEFS=-DHAVE_CONFIG_H
5142 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5143 # 1. Remove the extension, and $U if already installed.
5144 ac_i=`echo "$ac_i" |
5145 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5147 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5148 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5152 LTLIBOBJS=$ac_ltlibobjs
5155 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5156 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
5157 Usually this means the macro was only invoked conditionally." >&5
5158 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
5159 Usually this means the macro was only invoked conditionally." >&2;}
5160 { (exit 1); exit 1; }; }
5162 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5163 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5164 Usually this means the macro was only invoked conditionally." >&5
5165 echo "$as_me: error: conditional \"AMDEP\" was never defined.
5166 Usually this means the macro was only invoked conditionally." >&2;}
5167 { (exit 1); exit 1; }; }
5169 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5170 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5171 Usually this means the macro was only invoked conditionally." >&5
5172 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5173 Usually this means the macro was only invoked conditionally." >&2;}
5174 { (exit 1); exit 1; }; }
5176 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5177 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5178 Usually this means the macro was only invoked conditionally." >&5
5179 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5180 Usually this means the macro was only invoked conditionally." >&2;}
5181 { (exit 1); exit 1; }; }
5184 : ${CONFIG_STATUS=./config.status}
5185 ac_clean_files_save=$ac_clean_files
5186 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5187 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5188 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5189 cat >$CONFIG_STATUS <<_ACEOF
5191 # Generated by $as_me.
5192 # Run this file to recreate the current configuration.
5193 # Compiler output produced by configure, useful for debugging
5194 # configure, is in config.log if it exists.
5199 SHELL=\${CONFIG_SHELL-$SHELL}
5202 cat >>$CONFIG_STATUS <<\_ACEOF
5203 ## --------------------- ##
5204 ## M4sh Initialization. ##
5205 ## --------------------- ##
5207 # Be Bourne compatible
5208 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5211 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5212 # is contrary to our usage. Disable this feature.
5213 alias -g '${1+"$@"}'='"$@"'
5214 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5217 DUALCASE=1; export DUALCASE # for MKS sh
5219 # Support unset when possible.
5220 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5227 # Work around bugs in pre-3.0 UWIN ksh.
5228 $as_unset ENV MAIL MAILPATH
5235 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5236 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5237 LC_TELEPHONE LC_TIME
5239 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5240 eval $as_var=C; export $as_var
5246 # Required to use basename.
5247 if expr a : '\(a\)' >/dev/null 2>&1; then
5253 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5254 as_basename=basename
5260 # Name of the executable.
5261 as_me=`$as_basename "$0" ||
5262 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5263 X"$0" : 'X\(//\)$' \| \
5264 X"$0" : 'X\(/\)$' \| \
5265 . : '\(.\)' 2>/dev/null ||
5267 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5268 /^X\/\(\/\/\)$/{ s//\1/; q; }
5269 /^X\/\(\/\).*/{ s//\1/; q; }
5273 # PATH needs CR, and LINENO needs CR and PATH.
5274 # Avoid depending upon Character Ranges.
5275 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5276 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5277 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5278 as_cr_digits='0123456789'
5279 as_cr_alnum=$as_cr_Letters$as_cr_digits
5281 # The user is always right.
5282 if test "${PATH_SEPARATOR+set}" != set; then
5283 echo "#! /bin/sh" >conf$$.sh
5284 echo "exit 0" >>conf$$.sh
5286 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5297 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5298 test "x$as_lineno_1" != "x$as_lineno_2" &&
5299 test "x$as_lineno_3" = "x$as_lineno_2" || {
5300 # Find who we are. Look in the path if we contain no path at all
5303 *[\\/]* ) as_myself=$0 ;;
5304 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308 test -z "$as_dir" && as_dir=.
5309 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5314 # We did not find ourselves, most probably we were run as `sh COMMAND'
5315 # in which case we are not to be found in the path.
5316 if test "x$as_myself" = x; then
5319 if test ! -f "$as_myself"; then
5320 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5321 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5322 { (exit 1); exit 1; }; }
5324 case $CONFIG_SHELL in
5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5330 test -z "$as_dir" && as_dir=.
5331 for as_base in sh bash ksh sh5; do
5334 if ("$as_dir/$as_base" -c '
5337 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5338 test "x$as_lineno_1" != "x$as_lineno_2" &&
5339 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5340 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5341 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5342 CONFIG_SHELL=$as_dir/$as_base
5344 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5352 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5353 # uniformly replaced by the line number. The first 'sed' inserts a
5354 # line-number line before each line; the second 'sed' does the real
5355 # work. The second script uses 'N' to pair each line-number line
5356 # with the numbered line, and appends trailing '-' during
5357 # substitution so that $LINENO is not a special case at line end.
5358 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5359 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5360 sed '=' <$as_myself |
5365 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5368 s,^['$as_cr_digits']*\n,,
5370 chmod +x $as_me.lineno ||
5371 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5372 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5373 { (exit 1); exit 1; }; }
5375 # Don't try to exec as it changes $[0], causing all sort of problems
5376 # (the dirname of $[0] is not the place where we might find the
5377 # original and so on. Autoconf is especially sensible to this).
5379 # Exit status is that of the last command.
5384 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5385 *c*,-n*) ECHO_N= ECHO_C='
5387 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5388 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5391 if expr a : '\(a\)' >/dev/null 2>&1; then
5397 rm -f conf$$ conf$$.exe conf$$.file
5399 if ln -s conf$$.file conf$$ 2>/dev/null; then
5400 # We could just check for DJGPP; but this test a) works b) is more generic
5401 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5402 if test -f conf$$.exe; then
5403 # Don't use ln at all; we don't have any links
5408 elif ln conf$$.file conf$$ 2>/dev/null; then
5413 rm -f conf$$ conf$$.exe conf$$.file
5415 if mkdir -p . 2>/dev/null; then
5418 test -d ./-p && rmdir ./-p
5422 as_executable_p="test -f"
5424 # Sed expression to map a string onto a valid CPP name.
5425 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5427 # Sed expression to map a string onto a valid variable name.
5428 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5432 # We need space, tab and new line, in precisely that order.
5442 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5443 # report actual input values of CONFIG_FILES etc. instead of their
5444 # values after options handling. Logging --version etc. is OK.
5448 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5449 ## Running $as_me. ##
5454 This file was extended by $as_me, which was
5455 generated by GNU Autoconf 2.59. Invocation command line was
5457 CONFIG_FILES = $CONFIG_FILES
5458 CONFIG_HEADERS = $CONFIG_HEADERS
5459 CONFIG_LINKS = $CONFIG_LINKS
5460 CONFIG_COMMANDS = $CONFIG_COMMANDS
5464 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5468 # Files that config.status was made for.
5469 if test -n "$ac_config_files"; then
5470 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5473 if test -n "$ac_config_headers"; then
5474 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5477 if test -n "$ac_config_links"; then
5478 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5481 if test -n "$ac_config_commands"; then
5482 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5485 cat >>$CONFIG_STATUS <<\_ACEOF
5488 \`$as_me' instantiates files from templates according to the
5489 current configuration.
5491 Usage: $0 [OPTIONS] [FILE]...
5493 -h, --help print this help, then exit
5494 -V, --version print version number, then exit
5495 -q, --quiet do not print progress messages
5496 -d, --debug don't remove temporary files
5497 --recheck update $as_me by reconfiguring in the same conditions
5498 --file=FILE[:TEMPLATE]
5499 instantiate the configuration file FILE
5500 --header=FILE[:TEMPLATE]
5501 instantiate the configuration header FILE
5503 Configuration files:
5506 Configuration headers:
5509 Configuration commands:
5512 Report bugs to <bug-autoconf@gnu.org>."
5515 cat >>$CONFIG_STATUS <<_ACEOF
5518 configured by $0, generated by GNU Autoconf 2.59,
5519 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5521 Copyright (C) 2003 Free Software Foundation, Inc.
5522 This config.status script is free software; the Free Software Foundation
5523 gives unlimited permission to copy, distribute and modify it."
5528 cat >>$CONFIG_STATUS <<\_ACEOF
5529 # If no file are specified by the user, then we need to provide default
5530 # value. By we need to know if files were specified by the user.
5536 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5537 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5545 *) # This is not an option, so the user has probably given explicit
5548 ac_need_defaults=false;;
5552 # Handling of the options.
5554 cat >>$CONFIG_STATUS <<\_ACEOF
5555 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5557 --version | --vers* | -V )
5558 echo "$ac_cs_version"; exit 0 ;;
5560 # Conflict between --help and --header
5561 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5562 Try \`$0 --help' for more information." >&5
5563 echo "$as_me: error: ambiguous option: $1
5564 Try \`$0 --help' for more information." >&2;}
5565 { (exit 1); exit 1; }; };;
5566 --help | --hel | -h )
5567 echo "$ac_cs_usage"; exit 0 ;;
5568 --debug | --d* | -d )
5570 --file | --fil | --fi | --f )
5572 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5573 ac_need_defaults=false;;
5574 --header | --heade | --head | --hea )
5576 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5577 ac_need_defaults=false;;
5578 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5579 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5583 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5584 Try \`$0 --help' for more information." >&5
5585 echo "$as_me: error: unrecognized option: $1
5586 Try \`$0 --help' for more information." >&2;}
5587 { (exit 1); exit 1; }; } ;;
5589 *) ac_config_targets="$ac_config_targets $1" ;;
5595 ac_configure_extra_args=
5597 if $ac_cs_silent; then
5599 ac_configure_extra_args="$ac_configure_extra_args --silent"
5603 cat >>$CONFIG_STATUS <<_ACEOF
5604 if \$ac_cs_recheck; then
5605 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5606 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5611 cat >>$CONFIG_STATUS <<_ACEOF
5613 # INIT-COMMANDS section.
5616 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5622 cat >>$CONFIG_STATUS <<\_ACEOF
5623 for ac_config_target in $ac_config_targets
5625 case "$ac_config_target" in
5626 # Handling of arguments.
5627 "gob2.spec" ) CONFIG_FILES="$CONFIG_FILES gob2.spec" ;;
5628 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5629 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5630 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
5631 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
5632 "doc/gob2.1" ) CONFIG_FILES="$CONFIG_FILES doc/gob2.1" ;;
5633 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5634 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5635 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5636 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5637 { (exit 1); exit 1; }; };;
5641 # If the user did not use the arguments to specify the items to instantiate,
5642 # then the envvar interface is used. Set only those that are not.
5643 # We use the long form for the default assignment because of an extremely
5644 # bizarre bug on SunOS 4.1.3.
5645 if $ac_need_defaults; then
5646 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5647 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5648 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5651 # Have a temporary directory for convenience. Make it in the build tree
5652 # simply because there is no reason to put it here, and in addition,
5653 # creating and moving files from /tmp can sometimes cause problems.
5654 # Create a temporary directory, and hook for its removal unless debugging.
5657 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5658 trap '{ (exit 1); exit 1; }' 1 2 13 15
5661 # Create a (secure) tmp directory for tmp files.
5664 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5665 test -n "$tmp" && test -d "$tmp"
5668 tmp=./confstat$$-$RANDOM
5669 (umask 077 && mkdir $tmp)
5672 echo "$me: cannot create a temporary directory in ." >&2
5673 { (exit 1); exit 1; }
5678 cat >>$CONFIG_STATUS <<_ACEOF
5681 # CONFIG_FILES section.
5684 # No need to generate the scripts if there are no CONFIG_FILES.
5685 # This happens for instance when ./config.status config.h
5686 if test -n "\$CONFIG_FILES"; then
5687 # Protect against being on the right side of a sed subst in config.status.
5688 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5689 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5690 s,@SHELL@,$SHELL,;t t
5691 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5692 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5693 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5694 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5695 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5696 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5697 s,@exec_prefix@,$exec_prefix,;t t
5698 s,@prefix@,$prefix,;t t
5699 s,@program_transform_name@,$program_transform_name,;t t
5700 s,@bindir@,$bindir,;t t
5701 s,@sbindir@,$sbindir,;t t
5702 s,@libexecdir@,$libexecdir,;t t
5703 s,@datadir@,$datadir,;t t
5704 s,@sysconfdir@,$sysconfdir,;t t
5705 s,@sharedstatedir@,$sharedstatedir,;t t
5706 s,@localstatedir@,$localstatedir,;t t
5707 s,@libdir@,$libdir,;t t
5708 s,@includedir@,$includedir,;t t
5709 s,@oldincludedir@,$oldincludedir,;t t
5710 s,@infodir@,$infodir,;t t
5711 s,@mandir@,$mandir,;t t
5712 s,@build_alias@,$build_alias,;t t
5713 s,@host_alias@,$host_alias,;t t
5714 s,@target_alias@,$target_alias,;t t
5716 s,@ECHO_C@,$ECHO_C,;t t
5717 s,@ECHO_N@,$ECHO_N,;t t
5718 s,@ECHO_T@,$ECHO_T,;t t
5720 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5721 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5722 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5723 s,@CYGPATH_W@,$CYGPATH_W,;t t
5724 s,@PACKAGE@,$PACKAGE,;t t
5725 s,@VERSION@,$VERSION,;t t
5726 s,@ACLOCAL@,$ACLOCAL,;t t
5727 s,@AUTOCONF@,$AUTOCONF,;t t
5728 s,@AUTOMAKE@,$AUTOMAKE,;t t
5729 s,@AUTOHEADER@,$AUTOHEADER,;t t
5730 s,@MAKEINFO@,$MAKEINFO,;t t
5731 s,@AMTAR@,$AMTAR,;t t
5732 s,@install_sh@,$install_sh,;t t
5733 s,@STRIP@,$STRIP,;t t
5734 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
5735 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
5736 s,@mkdir_p@,$mkdir_p,;t t
5738 s,@SET_MAKE@,$SET_MAKE,;t t
5739 s,@am__leading_dot@,$am__leading_dot,;t t
5740 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
5741 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
5742 s,@MAINT@,$MAINT,;t t
5743 s,@SUBDIRS@,$SUBDIRS,;t t
5744 s,@DOINSTGOB@,$DOINSTGOB,;t t
5745 s,@NOINSTGOB@,$NOINSTGOB,;t t
5747 s,@CFLAGS@,$CFLAGS,;t t
5748 s,@LDFLAGS@,$LDFLAGS,;t t
5749 s,@CPPFLAGS@,$CPPFLAGS,;t t
5750 s,@ac_ct_CC@,$ac_ct_CC,;t t
5751 s,@EXEEXT@,$EXEEXT,;t t
5752 s,@OBJEXT@,$OBJEXT,;t t
5753 s,@DEPDIR@,$DEPDIR,;t t
5754 s,@am__include@,$am__include,;t t
5755 s,@am__quote@,$am__quote,;t t
5756 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
5757 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
5758 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
5759 s,@CCDEPMODE@,$CCDEPMODE,;t t
5760 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
5761 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
5763 s,@EGREP@,$EGREP,;t t
5766 s,@LEXLIB@,$LEXLIB,;t t
5767 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
5771 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
5772 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
5773 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
5774 s,@YFLAGS@,$YFLAGS,;t t
5775 s,@LIBOBJS@,$LIBOBJS,;t t
5776 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5781 cat >>$CONFIG_STATUS <<\_ACEOF
5782 # Split the substitutions into bite-sized pieces for seds with
5783 # small command number limits, like on Digital OSF/1 and HP-UX.
5785 ac_sed_frag=1 # Number of current file.
5786 ac_beg=1 # First line for current file.
5787 ac_end=$ac_max_sed_lines # Line after last line for current file.
5790 while $ac_more_lines; do
5791 if test $ac_beg -gt 1; then
5792 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5794 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5796 if test ! -s $tmp/subs.frag; then
5799 # The purpose of the label and of the branching condition is to
5800 # speed up the sed processing (if there are no `@' at all, there
5801 # is no need to browse any of the substitutions).
5802 # These are the two extra sed commands mentioned above.
5804 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5805 if test -z "$ac_sed_cmds"; then
5806 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5808 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5810 ac_sed_frag=`expr $ac_sed_frag + 1`
5812 ac_end=`expr $ac_end + $ac_max_sed_lines`
5815 if test -z "$ac_sed_cmds"; then
5818 fi # test -n "$CONFIG_FILES"
5821 cat >>$CONFIG_STATUS <<\_ACEOF
5822 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5823 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5825 - | *:- | *:-:* ) # input from stdin
5827 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5828 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5829 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5830 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5831 * ) ac_file_in=$ac_file.in ;;
5834 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5835 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5836 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5837 X"$ac_file" : 'X\(//\)[^/]' \| \
5838 X"$ac_file" : 'X\(//\)$' \| \
5839 X"$ac_file" : 'X\(/\)' \| \
5840 . : '\(.\)' 2>/dev/null ||
5842 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5843 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5844 /^X\(\/\/\)$/{ s//\1/; q; }
5845 /^X\(\/\).*/{ s//\1/; q; }
5847 { if $as_mkdir_p; then
5852 while test ! -d "$as_dir"; do
5853 as_dirs="$as_dir $as_dirs"
5854 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5855 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5856 X"$as_dir" : 'X\(//\)[^/]' \| \
5857 X"$as_dir" : 'X\(//\)$' \| \
5858 X"$as_dir" : 'X\(/\)' \| \
5859 . : '\(.\)' 2>/dev/null ||
5861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5862 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5863 /^X\(\/\/\)$/{ s//\1/; q; }
5864 /^X\(\/\).*/{ s//\1/; q; }
5867 test ! -n "$as_dirs" || mkdir $as_dirs
5868 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5869 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5870 { (exit 1); exit 1; }; }; }
5874 if test "$ac_dir" != .; then
5875 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5876 # A "../" for each directory in $ac_dir_suffix.
5877 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5879 ac_dir_suffix= ac_top_builddir=
5883 .) # No --srcdir option. We are building in place.
5885 if test -z "$ac_top_builddir"; then
5888 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5890 [\\/]* | ?:[\\/]* ) # Absolute path.
5891 ac_srcdir=$srcdir$ac_dir_suffix;
5892 ac_top_srcdir=$srcdir ;;
5894 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5895 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5898 # Do not use `cd foo && pwd` to compute absolute paths, because
5899 # the directories may not exist.
5901 .) ac_abs_builddir="$ac_dir";;
5904 .) ac_abs_builddir=`pwd`;;
5905 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5906 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5909 case $ac_abs_builddir in
5910 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5912 case ${ac_top_builddir}. in
5913 .) ac_abs_top_builddir=$ac_abs_builddir;;
5914 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5915 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5918 case $ac_abs_builddir in
5919 .) ac_abs_srcdir=$ac_srcdir;;
5922 .) ac_abs_srcdir=$ac_abs_builddir;;
5923 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5924 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5927 case $ac_abs_builddir in
5928 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5930 case $ac_top_srcdir in
5931 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5932 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5933 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5939 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5940 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5943 if test x"$ac_file" != x-; then
5944 { echo "$as_me:$LINENO: creating $ac_file" >&5
5945 echo "$as_me: creating $ac_file" >&6;}
5948 # Let's still pretend it is `configure' which instantiates (i.e., don't
5949 # use $as_me), people would be surprised to read:
5950 # /* config.h. Generated by config.status. */
5951 if test x"$ac_file" = x-; then
5954 configure_input="$ac_file. "
5956 configure_input=$configure_input"Generated from `echo $ac_file_in |
5957 sed 's,.*/,,'` by configure."
5959 # First look for the input files in the build tree, otherwise in the
5961 ac_file_inputs=`IFS=:
5962 for f in $ac_file_in; do
5964 -) echo $tmp/stdin ;;
5966 # Absolute (can't be DOS-style, as IFS=:)
5967 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5968 echo "$as_me: error: cannot find input file: $f" >&2;}
5969 { (exit 1); exit 1; }; }
5972 if test -f "$f"; then
5975 elif test -f "$srcdir/$f"; then
5980 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5981 echo "$as_me: error: cannot find input file: $f" >&2;}
5982 { (exit 1); exit 1; }; }
5985 done` || { (exit 1); exit 1; }
5987 cat >>$CONFIG_STATUS <<_ACEOF
5991 cat >>$CONFIG_STATUS <<\_ACEOF
5993 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5994 s,@configure_input@,$configure_input,;t t
5995 s,@srcdir@,$ac_srcdir,;t t
5996 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5997 s,@top_srcdir@,$ac_top_srcdir,;t t
5998 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5999 s,@builddir@,$ac_builddir,;t t
6000 s,@abs_builddir@,$ac_abs_builddir,;t t
6001 s,@top_builddir@,$ac_top_builddir,;t t
6002 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6003 s,@INSTALL@,$ac_INSTALL,;t t
6004 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6006 if test x"$ac_file" != x-; then
6007 mv $tmp/out $ac_file
6015 cat >>$CONFIG_STATUS <<\_ACEOF
6018 # CONFIG_HEADER section.
6021 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6022 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6024 # ac_d sets the value in "#define NAME VALUE" lines.
6025 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6026 ac_dB='[ ].*$,\1#\2'
6029 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6030 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6031 ac_uB='$,\1#\2define\3'
6035 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6036 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6038 - | *:- | *:-:* ) # input from stdin
6040 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6041 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6042 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6043 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6044 * ) ac_file_in=$ac_file.in ;;
6047 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6048 echo "$as_me: creating $ac_file" >&6;}
6050 # First look for the input files in the build tree, otherwise in the
6052 ac_file_inputs=`IFS=:
6053 for f in $ac_file_in; do
6055 -) echo $tmp/stdin ;;
6057 # Absolute (can't be DOS-style, as IFS=:)
6058 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6059 echo "$as_me: error: cannot find input file: $f" >&2;}
6060 { (exit 1); exit 1; }; }
6061 # Do quote $f, to prevent DOS paths from being IFS'd.
6064 if test -f "$f"; then
6067 elif test -f "$srcdir/$f"; then
6072 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6073 echo "$as_me: error: cannot find input file: $f" >&2;}
6074 { (exit 1); exit 1; }; }
6077 done` || { (exit 1); exit 1; }
6078 # Remove the trailing spaces.
6079 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6083 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6084 # `conftest.undefs', that substitutes the proper values into
6085 # config.h.in to produce config.h. The first handles `#define'
6086 # templates, and the second `#undef' templates.
6087 # And first: Protect against being on the right side of a sed subst in
6088 # config.status. Protect against being in an unquoted here document
6090 rm -f conftest.defines conftest.undefs
6091 # Using a here document instead of a string reduces the quoting nightmare.
6092 # Putting comments in sed scripts is not portable.
6094 # `end' is used to avoid that the second main sed command (meant for
6095 # 0-ary CPP macros) applies to n-ary macro definitions.
6096 # See the Autoconf documentation for `clear'.
6097 cat >confdef2sed.sed <<\_ACEOF
6102 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6104 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6107 # If some macros were called several times there might be several times
6108 # the same #defines, which is useless. Nevertheless, we may not want to
6109 # sort them, since we want the *last* AC-DEFINE to be honored.
6110 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6111 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6112 rm -f confdef2sed.sed
6114 # This sed command replaces #undef with comments. This is necessary, for
6115 # example, in the case of _POSIX_SOURCE, which is predefined and required
6116 # on some systems where configure will not decide to define it.
6117 cat >>conftest.undefs <<\_ACEOF
6118 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6121 # Break up conftest.defines because some shells have a limit on the size
6122 # of here documents, and old seds have small limits too (100 cmds).
6123 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6124 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6125 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6126 echo ' :' >>$CONFIG_STATUS
6128 while grep . conftest.defines >/dev/null
6130 # Write a limited-size here document to $tmp/defines.sed.
6131 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6132 # Speed up: don't consider the non `#define' lines.
6133 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6134 # Work around the forget-to-reset-the-flag bug.
6135 echo 't clr' >>$CONFIG_STATUS
6136 echo ': clr' >>$CONFIG_STATUS
6137 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6139 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6143 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6144 rm -f conftest.defines
6145 mv conftest.tail conftest.defines
6147 rm -f conftest.defines
6148 echo ' fi # grep' >>$CONFIG_STATUS
6149 echo >>$CONFIG_STATUS
6151 # Break up conftest.undefs because some shells have a limit on the size
6152 # of here documents, and old seds have small limits too (100 cmds).
6153 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6155 while grep . conftest.undefs >/dev/null
6157 # Write a limited-size here document to $tmp/undefs.sed.
6158 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6159 # Speed up: don't consider the non `#undef'
6160 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6161 # Work around the forget-to-reset-the-flag bug.
6162 echo 't clr' >>$CONFIG_STATUS
6163 echo ': clr' >>$CONFIG_STATUS
6164 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6166 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6170 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6171 rm -f conftest.undefs
6172 mv conftest.tail conftest.undefs
6174 rm -f conftest.undefs
6176 cat >>$CONFIG_STATUS <<\_ACEOF
6177 # Let's still pretend it is `configure' which instantiates (i.e., don't
6178 # use $as_me), people would be surprised to read:
6179 # /* config.h. Generated by config.status. */
6180 if test x"$ac_file" = x-; then
6181 echo "/* Generated by configure. */" >$tmp/config.h
6183 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6185 cat $tmp/in >>$tmp/config.h
6187 if test x"$ac_file" != x-; then
6188 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6189 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6190 echo "$as_me: $ac_file is unchanged" >&6;}
6192 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6193 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6194 X"$ac_file" : 'X\(//\)[^/]' \| \
6195 X"$ac_file" : 'X\(//\)$' \| \
6196 X"$ac_file" : 'X\(/\)' \| \
6197 . : '\(.\)' 2>/dev/null ||
6199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6200 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6201 /^X\(\/\/\)$/{ s//\1/; q; }
6202 /^X\(\/\).*/{ s//\1/; q; }
6204 { if $as_mkdir_p; then
6209 while test ! -d "$as_dir"; do
6210 as_dirs="$as_dir $as_dirs"
6211 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6212 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6213 X"$as_dir" : 'X\(//\)[^/]' \| \
6214 X"$as_dir" : 'X\(//\)$' \| \
6215 X"$as_dir" : 'X\(/\)' \| \
6216 . : '\(.\)' 2>/dev/null ||
6218 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6219 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6220 /^X\(\/\/\)$/{ s//\1/; q; }
6221 /^X\(\/\).*/{ s//\1/; q; }
6224 test ! -n "$as_dirs" || mkdir $as_dirs
6225 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6226 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6227 { (exit 1); exit 1; }; }; }
6230 mv $tmp/config.h $ac_file
6236 # Compute $ac_file's index in $config_headers.
6238 for _am_header in $config_headers :; do
6240 $ac_file | $ac_file:* )
6243 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6246 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
6247 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6248 X$ac_file : 'X\(//\)[^/]' \| \
6249 X$ac_file : 'X\(//\)$' \| \
6250 X$ac_file : 'X\(/\)' \| \
6251 . : '\(.\)' 2>/dev/null ||
6253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6254 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6255 /^X\(\/\/\)$/{ s//\1/; q; }
6256 /^X\(\/\).*/{ s//\1/; q; }
6257 s/.*/./; q'`/stamp-h$_am_stamp_count
6260 cat >>$CONFIG_STATUS <<\_ACEOF
6263 # CONFIG_COMMANDS section.
6265 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6266 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6267 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6268 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6269 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6270 X"$ac_dest" : 'X\(//\)[^/]' \| \
6271 X"$ac_dest" : 'X\(//\)$' \| \
6272 X"$ac_dest" : 'X\(/\)' \| \
6273 . : '\(.\)' 2>/dev/null ||
6275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6276 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6277 /^X\(\/\/\)$/{ s//\1/; q; }
6278 /^X\(\/\).*/{ s//\1/; q; }
6280 { if $as_mkdir_p; then
6285 while test ! -d "$as_dir"; do
6286 as_dirs="$as_dir $as_dirs"
6287 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6288 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6289 X"$as_dir" : 'X\(//\)[^/]' \| \
6290 X"$as_dir" : 'X\(//\)$' \| \
6291 X"$as_dir" : 'X\(/\)' \| \
6292 . : '\(.\)' 2>/dev/null ||
6294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6295 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6296 /^X\(\/\/\)$/{ s//\1/; q; }
6297 /^X\(\/\).*/{ s//\1/; q; }
6300 test ! -n "$as_dirs" || mkdir $as_dirs
6301 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6302 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6303 { (exit 1); exit 1; }; }; }
6307 if test "$ac_dir" != .; then
6308 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6309 # A "../" for each directory in $ac_dir_suffix.
6310 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6312 ac_dir_suffix= ac_top_builddir=
6316 .) # No --srcdir option. We are building in place.
6318 if test -z "$ac_top_builddir"; then
6321 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6323 [\\/]* | ?:[\\/]* ) # Absolute path.
6324 ac_srcdir=$srcdir$ac_dir_suffix;
6325 ac_top_srcdir=$srcdir ;;
6327 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6328 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6331 # Do not use `cd foo && pwd` to compute absolute paths, because
6332 # the directories may not exist.
6334 .) ac_abs_builddir="$ac_dir";;
6337 .) ac_abs_builddir=`pwd`;;
6338 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6339 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6342 case $ac_abs_builddir in
6343 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6345 case ${ac_top_builddir}. in
6346 .) ac_abs_top_builddir=$ac_abs_builddir;;
6347 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6348 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6351 case $ac_abs_builddir in
6352 .) ac_abs_srcdir=$ac_srcdir;;
6355 .) ac_abs_srcdir=$ac_abs_builddir;;
6356 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6357 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6360 case $ac_abs_builddir in
6361 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6363 case $ac_top_srcdir in
6364 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6365 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6366 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6371 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6372 echo "$as_me: executing $ac_dest commands" >&6;}
6374 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
6375 # Strip MF so we end up with the name of the file.
6376 mf=`echo "$mf" | sed -e 's/:.*$//'`
6377 # Check whether this is an Automake generated Makefile or not.
6378 # We used to match only the files named `Makefile.in', but
6379 # some people rename them; so instead we look at the file content.
6380 # Grep'ing the first line is not enough: some people post-process
6381 # each Makefile.in and add a new line on top of each file to say so.
6382 # So let's grep whole file.
6383 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6384 dirpart=`(dirname "$mf") 2>/dev/null ||
6385 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6386 X"$mf" : 'X\(//\)[^/]' \| \
6387 X"$mf" : 'X\(//\)$' \| \
6388 X"$mf" : 'X\(/\)' \| \
6389 . : '\(.\)' 2>/dev/null ||
6391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6392 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6393 /^X\(\/\/\)$/{ s//\1/; q; }
6394 /^X\(\/\).*/{ s//\1/; q; }
6399 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
6400 # Extract the definition of DEP_FILES from the Makefile without
6402 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
6403 test -z "$DEPDIR" && continue
6404 # When using ansi2knr, U may be empty or an underscore; expand it
6405 U=`sed -n -e '/^U = / s///p' < "$mf"`
6406 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
6407 # We invoke sed twice because it is the simplest approach to
6408 # changing $(DEPDIR) to its actual value in the expansion.
6409 for file in `sed -n -e '
6410 /^DEP_FILES = .*\\\\$/ {
6419 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
6420 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6421 # Make sure the directory exists.
6422 test -f "$dirpart/$file" && continue
6423 fdir=`(dirname "$file") 2>/dev/null ||
6424 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6425 X"$file" : 'X\(//\)[^/]' \| \
6426 X"$file" : 'X\(//\)$' \| \
6427 X"$file" : 'X\(/\)' \| \
6428 . : '\(.\)' 2>/dev/null ||
6430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6431 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6432 /^X\(\/\/\)$/{ s//\1/; q; }
6433 /^X\(\/\).*/{ s//\1/; q; }
6435 { if $as_mkdir_p; then
6436 mkdir -p $dirpart/$fdir
6438 as_dir=$dirpart/$fdir
6440 while test ! -d "$as_dir"; do
6441 as_dirs="$as_dir $as_dirs"
6442 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6443 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6444 X"$as_dir" : 'X\(//\)[^/]' \| \
6445 X"$as_dir" : 'X\(//\)$' \| \
6446 X"$as_dir" : 'X\(/\)' \| \
6447 . : '\(.\)' 2>/dev/null ||
6449 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6450 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6451 /^X\(\/\/\)$/{ s//\1/; q; }
6452 /^X\(\/\).*/{ s//\1/; q; }
6455 test ! -n "$as_dirs" || mkdir $as_dirs
6456 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
6457 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
6458 { (exit 1); exit 1; }; }; }
6460 # echo "creating $dirpart/$file"
6461 echo '# dummy' > "$dirpart/$file"
6469 cat >>$CONFIG_STATUS <<\_ACEOF
6471 { (exit 0); exit 0; }
6473 chmod +x $CONFIG_STATUS
6474 ac_clean_files=$ac_clean_files_save
6477 # configure is writing to config.log, and then calls config.status.
6478 # config.status does its own redirection, appending to config.log.
6479 # Unfortunately, on DOS this fails, as config.log is still kept open
6480 # by configure, so config.status won't be able to write to it; its
6481 # output is simply discarded. So we exec the FD to /dev/null,
6482 # effectively closing config.log, so it can be properly (re)opened and
6483 # appended to by config.status. When coming back to configure, we
6484 # need to make the FD available again.
6485 if test "$no_create" != yes; then
6487 ac_config_status_args=
6488 test "$silent" = yes &&
6489 ac_config_status_args="$ac_config_status_args --quiet"
6491 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6493 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6494 # would make configure fail if this is the last instruction.
6495 $ac_cs_success || { (exit 1); exit 1; }