2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.54.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
39 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
41 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
42 eval $as_var=C; export $as_var
48 # Required to use basename.
49 if expr a : '\(a\)' >/dev/null 2>&1; then
55 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 # Name of the executable.
63 as_me=`$as_basename "$0" ||
64 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
65 X"$0" : 'X\(//\)$' \| \
66 X"$0" : 'X\(/\)$' \| \
67 . : '\(.\)' 2>/dev/null ||
69 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
70 /^X\/\(\/\/\)$/{ s//\1/; q; }
71 /^X\/\(\/\).*/{ s//\1/; q; }
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
88 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
125 case $CONFIG_SHELL in
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
135 if ("$as_dir/$as_base" -c '
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
142 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
143 CONFIG_SHELL=$as_dir/$as_base
145 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
154 # uniformly replaced by the line number. The first 'sed' inserts a
155 # line-number line before each line; the second 'sed' does the real
156 # work. The second script uses 'N' to pair each line-number line
157 # with the numbered line, and appends trailing '-' during
158 # substitution so that $LINENO is not a special case at line end.
159 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
160 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
161 sed '=' <$as_myself |
166 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
169 s,^['$as_cr_digits']*\n,,
171 chmod +x $as_me.lineno ||
172 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
173 { (exit 1); exit 1; }; }
175 # Don't try to exec as it changes $[0], causing all sort of problems
176 # (the dirname of $[0] is not the place where we might find the
177 # original and so on. Autoconf is especially sensible to this).
179 # Exit status is that of the last command.
184 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185 *c*,-n*) ECHO_N= ECHO_C='
187 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
188 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
191 if expr a : '\(a\)' >/dev/null 2>&1; then
197 rm -f conf$$ conf$$.exe conf$$.file
199 if ln -s conf$$.file conf$$ 2>/dev/null; then
200 # We could just check for DJGPP; but this test a) works b) is more generic
201 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
202 if test -f conf$$.exe; then
203 # Don't use ln at all; we don't have any links
208 elif ln conf$$.file conf$$ 2>/dev/null; then
213 rm -f conf$$ conf$$.exe conf$$.file
215 if mkdir -p . 2>/dev/null; then
221 as_executable_p="test -f"
223 # Sed expression to map a string onto a valid CPP name.
224 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
226 # Sed expression to map a string onto a valid variable name.
227 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231 # We need space, tab and new line, in precisely that order.
241 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
242 # so uname gets run too.
243 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250 ac_default_prefix=/usr/local
251 ac_config_libobj_dir=.
256 SHELL=${CONFIG_SHELL-/bin/sh}
258 # Maximum number of lines to put in a shell here document.
259 # This variable seems obsolete. It should probably be removed, and
260 # only ac_max_sed_lines should be used.
261 : ${ac_max_here_lines=38}
263 # Identity of this package.
270 ac_unique_file="packihx.c"
271 # Factoring default headers for most tests.
272 ac_includes_default="\
275 # include <sys/types.h>
278 # include <sys/stat.h>
289 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <strings.h>
298 # include <inttypes.h>
308 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LIBOBJS LTLIBOBJS'
311 # Initialize some variables set by options.
313 ac_init_version=false
314 # The variables have the same names as the options, with
315 # dashes changed to underlines.
323 program_transform_name=s,x,x,
331 # Installation directory options.
332 # These are left unexpanded so users can "make install exec_prefix=/foo"
333 # and all the variables that are supposed to be based on exec_prefix
334 # by default will actually change.
335 # Use braces instead of parens because sh, perl, etc. also accept them.
336 bindir='${exec_prefix}/bin'
337 sbindir='${exec_prefix}/sbin'
338 libexecdir='${exec_prefix}/libexec'
339 datadir='${prefix}/share'
340 sysconfdir='${prefix}/etc'
341 sharedstatedir='${prefix}/com'
342 localstatedir='${prefix}/var'
343 libdir='${exec_prefix}/lib'
344 includedir='${prefix}/include'
345 oldincludedir='/usr/include'
346 infodir='${prefix}/info'
347 mandir='${prefix}/man'
352 # If the previous option needs an argument, assign it.
353 if test -n "$ac_prev"; then
354 eval "$ac_prev=\$ac_option"
359 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
361 # Accept the important Cygnus configure options, so we can diagnose typos.
365 -bindir | --bindir | --bindi | --bind | --bin | --bi)
367 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
370 -build | --build | --buil | --bui | --bu)
371 ac_prev=build_alias ;;
372 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
373 build_alias=$ac_optarg ;;
375 -cache-file | --cache-file | --cache-fil | --cache-fi \
376 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
377 ac_prev=cache_file ;;
378 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
379 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
380 cache_file=$ac_optarg ;;
383 cache_file=config.cache ;;
385 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
387 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
389 datadir=$ac_optarg ;;
391 -disable-* | --disable-*)
392 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
393 # Reject names that are not valid shell variable names.
394 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
395 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
396 { (exit 1); exit 1; }; }
397 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
398 eval "enable_$ac_feature=no" ;;
400 -enable-* | --enable-*)
401 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
402 # Reject names that are not valid shell variable names.
403 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
405 { (exit 1); exit 1; }; }
406 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
408 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
411 eval "enable_$ac_feature='$ac_optarg'" ;;
413 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
414 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
415 | --exec | --exe | --ex)
416 ac_prev=exec_prefix ;;
417 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
418 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
419 | --exec=* | --exe=* | --ex=*)
420 exec_prefix=$ac_optarg ;;
422 -gas | --gas | --ga | --g)
423 # Obsolete; use --with-gas.
426 -help | --help | --hel | --he | -h)
428 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
429 ac_init_help=recursive ;;
430 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
431 ac_init_help=short ;;
433 -host | --host | --hos | --ho)
434 ac_prev=host_alias ;;
435 -host=* | --host=* | --hos=* | --ho=*)
436 host_alias=$ac_optarg ;;
438 -includedir | --includedir | --includedi | --included | --include \
439 | --includ | --inclu | --incl | --inc)
440 ac_prev=includedir ;;
441 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
442 | --includ=* | --inclu=* | --incl=* | --inc=*)
443 includedir=$ac_optarg ;;
445 -infodir | --infodir | --infodi | --infod | --info | --inf)
447 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
448 infodir=$ac_optarg ;;
450 -libdir | --libdir | --libdi | --libd)
452 -libdir=* | --libdir=* | --libdi=* | --libd=*)
455 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
456 | --libexe | --libex | --libe)
457 ac_prev=libexecdir ;;
458 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
459 | --libexe=* | --libex=* | --libe=*)
460 libexecdir=$ac_optarg ;;
462 -localstatedir | --localstatedir | --localstatedi | --localstated \
463 | --localstate | --localstat | --localsta | --localst \
464 | --locals | --local | --loca | --loc | --lo)
465 ac_prev=localstatedir ;;
466 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
467 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
468 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
469 localstatedir=$ac_optarg ;;
471 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
473 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477 # Obsolete; use --without-fp.
480 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
481 | --no-cr | --no-c | -n)
484 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
485 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
488 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
489 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
490 | --oldin | --oldi | --old | --ol | --o)
491 ac_prev=oldincludedir ;;
492 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
493 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
494 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
495 oldincludedir=$ac_optarg ;;
497 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
499 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
502 -program-prefix | --program-prefix | --program-prefi | --program-pref \
503 | --program-pre | --program-pr | --program-p)
504 ac_prev=program_prefix ;;
505 -program-prefix=* | --program-prefix=* | --program-prefi=* \
506 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
507 program_prefix=$ac_optarg ;;
509 -program-suffix | --program-suffix | --program-suffi | --program-suff \
510 | --program-suf | --program-su | --program-s)
511 ac_prev=program_suffix ;;
512 -program-suffix=* | --program-suffix=* | --program-suffi=* \
513 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
514 program_suffix=$ac_optarg ;;
516 -program-transform-name | --program-transform-name \
517 | --program-transform-nam | --program-transform-na \
518 | --program-transform-n | --program-transform- \
519 | --program-transform | --program-transfor \
520 | --program-transfo | --program-transf \
521 | --program-trans | --program-tran \
522 | --progr-tra | --program-tr | --program-t)
523 ac_prev=program_transform_name ;;
524 -program-transform-name=* | --program-transform-name=* \
525 | --program-transform-nam=* | --program-transform-na=* \
526 | --program-transform-n=* | --program-transform-=* \
527 | --program-transform=* | --program-transfor=* \
528 | --program-transfo=* | --program-transf=* \
529 | --program-trans=* | --program-tran=* \
530 | --progr-tra=* | --program-tr=* | --program-t=*)
531 program_transform_name=$ac_optarg ;;
533 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
534 | -silent | --silent | --silen | --sile | --sil)
537 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
539 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
541 sbindir=$ac_optarg ;;
543 -sharedstatedir | --sharedstatedir | --sharedstatedi \
544 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
545 | --sharedst | --shareds | --shared | --share | --shar \
547 ac_prev=sharedstatedir ;;
548 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
549 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
550 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
552 sharedstatedir=$ac_optarg ;;
554 -site | --site | --sit)
556 -site=* | --site=* | --sit=*)
559 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
561 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
564 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
565 | --syscon | --sysco | --sysc | --sys | --sy)
566 ac_prev=sysconfdir ;;
567 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
568 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
569 sysconfdir=$ac_optarg ;;
571 -target | --target | --targe | --targ | --tar | --ta | --t)
572 ac_prev=target_alias ;;
573 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
574 target_alias=$ac_optarg ;;
576 -v | -verbose | --verbose | --verbos | --verbo | --verb)
579 -version | --version | --versio | --versi | --vers | -V)
583 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
584 # Reject names that are not valid shell variable names.
585 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
586 { echo "$as_me: error: invalid package name: $ac_package" >&2
587 { (exit 1); exit 1; }; }
588 ac_package=`echo $ac_package| sed 's/-/_/g'`
590 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
593 eval "with_$ac_package='$ac_optarg'" ;;
595 -without-* | --without-*)
596 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
597 # Reject names that are not valid shell variable names.
598 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
599 { echo "$as_me: error: invalid package name: $ac_package" >&2
600 { (exit 1); exit 1; }; }
601 ac_package=`echo $ac_package | sed 's/-/_/g'`
602 eval "with_$ac_package=no" ;;
605 # Obsolete; use --with-x.
608 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
609 | --x-incl | --x-inc | --x-in | --x-i)
610 ac_prev=x_includes ;;
611 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
612 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
613 x_includes=$ac_optarg ;;
615 -x-libraries | --x-libraries | --x-librarie | --x-librari \
616 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
617 ac_prev=x_libraries ;;
618 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
619 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
620 x_libraries=$ac_optarg ;;
622 -*) { echo "$as_me: error: unrecognized option: $ac_option
623 Try \`$0 --help' for more information." >&2
624 { (exit 1); exit 1; }; }
628 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
629 # Reject names that are not valid shell variable names.
630 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
631 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
632 { (exit 1); exit 1; }; }
633 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
634 eval "$ac_envvar='$ac_optarg'"
638 # FIXME: should be removed in autoconf 3.0.
639 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
640 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
641 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
642 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 if test -n "$ac_prev"; then
649 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
650 { echo "$as_me: error: missing argument to $ac_option" >&2
651 { (exit 1); exit 1; }; }
654 # Be sure to have absolute paths.
655 for ac_var in exec_prefix prefix
657 eval ac_val=$`echo $ac_var`
659 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
660 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
661 { (exit 1); exit 1; }; };;
665 # Be sure to have absolute paths.
666 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
667 localstatedir libdir includedir oldincludedir infodir mandir
669 eval ac_val=$`echo $ac_var`
671 [\\/$]* | ?:[\\/]* ) ;;
672 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
673 { (exit 1); exit 1; }; };;
677 # There might be people who depend on the old broken behavior: `$host'
678 # used to hold the argument of --host etc.
679 # FIXME: To remove some day.
684 # FIXME: To remove some day.
685 if test "x$host_alias" != x; then
686 if test "x$build_alias" = x; then
687 cross_compiling=maybe
688 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
689 If a cross compiler is detected then cross compile mode will be used." >&2
690 elif test "x$build_alias" != "x$host_alias"; then
696 test -n "$host_alias" && ac_tool_prefix=$host_alias-
698 test "$silent" = yes && exec 6>/dev/null
701 # Find the source files, if location was not specified.
702 if test -z "$srcdir"; then
703 ac_srcdir_defaulted=yes
704 # Try the directory containing this script, then its parent.
705 ac_confdir=`(dirname "$0") 2>/dev/null ||
706 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
707 X"$0" : 'X\(//\)[^/]' \| \
708 X"$0" : 'X\(//\)$' \| \
709 X"$0" : 'X\(/\)' \| \
710 . : '\(.\)' 2>/dev/null ||
712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
713 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
714 /^X\(\/\/\)$/{ s//\1/; q; }
715 /^X\(\/\).*/{ s//\1/; q; }
718 if test ! -r $srcdir/$ac_unique_file; then
722 ac_srcdir_defaulted=no
724 if test ! -r $srcdir/$ac_unique_file; then
725 if test "$ac_srcdir_defaulted" = yes; then
726 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
727 { (exit 1); exit 1; }; }
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
730 { (exit 1); exit 1; }; }
733 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
734 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
735 { (exit 1); exit 1; }; }
736 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
737 ac_env_build_alias_set=${build_alias+set}
738 ac_env_build_alias_value=$build_alias
739 ac_cv_env_build_alias_set=${build_alias+set}
740 ac_cv_env_build_alias_value=$build_alias
741 ac_env_host_alias_set=${host_alias+set}
742 ac_env_host_alias_value=$host_alias
743 ac_cv_env_host_alias_set=${host_alias+set}
744 ac_cv_env_host_alias_value=$host_alias
745 ac_env_target_alias_set=${target_alias+set}
746 ac_env_target_alias_value=$target_alias
747 ac_cv_env_target_alias_set=${target_alias+set}
748 ac_cv_env_target_alias_value=$target_alias
749 ac_env_CC_set=${CC+set}
751 ac_cv_env_CC_set=${CC+set}
752 ac_cv_env_CC_value=$CC
753 ac_env_CFLAGS_set=${CFLAGS+set}
754 ac_env_CFLAGS_value=$CFLAGS
755 ac_cv_env_CFLAGS_set=${CFLAGS+set}
756 ac_cv_env_CFLAGS_value=$CFLAGS
757 ac_env_LDFLAGS_set=${LDFLAGS+set}
758 ac_env_LDFLAGS_value=$LDFLAGS
759 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
760 ac_cv_env_LDFLAGS_value=$LDFLAGS
761 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
762 ac_env_CPPFLAGS_value=$CPPFLAGS
763 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
764 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
765 ac_env_CPP_set=${CPP+set}
766 ac_env_CPP_value=$CPP
767 ac_cv_env_CPP_set=${CPP+set}
768 ac_cv_env_CPP_value=$CPP
771 # Report the --help message.
773 if test "$ac_init_help" = "long"; then
774 # Omit some internal or obsolete options to make the list less imposing.
775 # This message is too long to be a string in the A/UX 3.1 sh.
777 \`configure' configures this package to adapt to many kinds of systems.
779 Usage: $0 [OPTION]... [VAR=VALUE]...
781 To assign environment variables (e.g., CC, CFLAGS...), specify them as
782 VAR=VALUE. See below for descriptions of some of the useful variables.
784 Defaults for the options are specified in brackets.
787 -h, --help display this help and exit
788 --help=short display options specific to this package
789 --help=recursive display the short help of all the included packages
790 -V, --version display version information and exit
791 -q, --quiet, --silent do not print \`checking...' messages
792 --cache-file=FILE cache test results in FILE [disabled]
793 -C, --config-cache alias for \`--cache-file=config.cache'
794 -n, --no-create do not create output files
795 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800 Installation directories:
801 --prefix=PREFIX install architecture-independent files in PREFIX
803 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
806 By default, \`make install' will install all the files in
807 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
808 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
809 for instance \`--prefix=\$HOME'.
811 For better control, use the options below.
813 Fine tuning of the installation directories:
814 --bindir=DIR user executables [EPREFIX/bin]
815 --sbindir=DIR system admin executables [EPREFIX/sbin]
816 --libexecdir=DIR program executables [EPREFIX/libexec]
817 --datadir=DIR read-only architecture-independent data [PREFIX/share]
818 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
819 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
820 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
821 --libdir=DIR object code libraries [EPREFIX/lib]
822 --includedir=DIR C header files [PREFIX/include]
823 --oldincludedir=DIR C header files for non-gcc [/usr/include]
824 --infodir=DIR info documentation [PREFIX/info]
825 --mandir=DIR man documentation [PREFIX/man]
832 if test -n "$ac_init_help"; then
836 Some influential environment variables:
837 CC C compiler command
838 CFLAGS C compiler flags
839 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
840 nonstandard directory <lib dir>
841 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
842 headers in a nonstandard directory <include dir>
845 Use these variables to override the choices made by `configure' or to help
846 it to find libraries and programs with nonstandard names/locations.
851 if test "$ac_init_help" = "recursive"; then
852 # If there are subdirs, report their specific --help.
854 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
855 test -d $ac_dir || continue
858 if test "$ac_dir" != .; then
859 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
860 # A "../" for each directory in $ac_dir_suffix.
861 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
863 ac_dir_suffix= ac_top_builddir=
867 .) # No --srcdir option. We are building in place.
869 if test -z "$ac_top_builddir"; then
872 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
874 [\\/]* | ?:[\\/]* ) # Absolute path.
875 ac_srcdir=$srcdir$ac_dir_suffix;
876 ac_top_srcdir=$srcdir ;;
878 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
879 ac_top_srcdir=$ac_top_builddir$srcdir ;;
881 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
883 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
884 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
885 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
886 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
889 # Check for guested configure; otherwise get Cygnus style configure.
890 if test -f $ac_srcdir/configure.gnu; then
892 $SHELL $ac_srcdir/configure.gnu --help=recursive
893 elif test -f $ac_srcdir/configure; then
895 $SHELL $ac_srcdir/configure --help=recursive
896 elif test -f $ac_srcdir/configure.ac ||
897 test -f $ac_srcdir/configure.in; then
901 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
907 test -n "$ac_init_help" && exit 0
908 if $ac_init_version; then
911 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
912 Free Software Foundation, Inc.
913 This configure script is free software; the Free Software Foundation
914 gives unlimited permission to copy, distribute and modify it.
920 This file contains any messages produced by compilers while
921 running configure, to aid debugging if configure makes a mistake.
923 It was created by $as_me, which was
924 generated by GNU Autoconf 2.54. Invocation command line was
935 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
936 uname -m = `(uname -m) 2>/dev/null || echo unknown`
937 uname -r = `(uname -r) 2>/dev/null || echo unknown`
938 uname -s = `(uname -s) 2>/dev/null || echo unknown`
939 uname -v = `(uname -v) 2>/dev/null || echo unknown`
941 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
942 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
944 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
945 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
946 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
947 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
948 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
949 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
950 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
958 test -z "$as_dir" && as_dir=.
974 # Keep a trace of the command line.
975 # Strip out --no-create and --no-recursion so they do not pile up.
976 # Also quote any args containing shell meta-characters.
982 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
983 | --no-cr | --no-c | -n ) continue ;;
984 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
985 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
987 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
988 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
990 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
991 # Get rid of the leading space.
995 # When interrupted or exit'd, cleanup temporary files, and complete
996 # config.log. We remove comments because anyway the quotes in there
997 # would cause problems or look ugly.
998 # WARNING: Be sure not to use single quotes in there, as some shells,
999 # such as our DU 5.0 friend, will then `close' the trap.
1000 trap 'exit_status=$?
1001 # Save into config.log some information that might help in debugging.
1006 ## ---------------- ##
1007 ## Cache variables. ##
1008 ## ---------------- ##
1011 # The following way of writing the cache mishandles newlines in values,
1014 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1017 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1018 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1022 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1029 ## ----------------- ##
1030 ## Output variables. ##
1031 ## ----------------- ##
1034 for ac_var in $ac_subst_vars
1036 eval ac_val=$`echo $ac_var`
1037 echo "$ac_var='"'"'$ac_val'"'"'"
1041 if test -n "$ac_subst_files"; then
1048 for ac_var in $ac_subst_files
1050 eval ac_val=$`echo $ac_var`
1051 echo "$ac_var='"'"'$ac_val'"'"'"
1056 if test -s confdefs.h; then
1063 sed "/^$/d" confdefs.h | sort
1066 test "$ac_signal" != 0 &&
1067 echo "$as_me: caught signal $ac_signal"
1068 echo "$as_me: exit $exit_status"
1070 rm -f core core.* *.core &&
1071 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1074 for ac_signal in 1 2 13 15; do
1075 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1079 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1080 rm -rf conftest* confdefs.h
1081 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1084 # Predefined preprocessor variables.
1086 cat >>confdefs.h <<_ACEOF
1087 #define PACKAGE_NAME "$PACKAGE_NAME"
1091 cat >>confdefs.h <<_ACEOF
1092 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1096 cat >>confdefs.h <<_ACEOF
1097 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1101 cat >>confdefs.h <<_ACEOF
1102 #define PACKAGE_STRING "$PACKAGE_STRING"
1106 cat >>confdefs.h <<_ACEOF
1107 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1111 # Let the site file select an alternate cache file if it wants to.
1112 # Prefer explicitly selected file to automatically selected ones.
1113 if test -z "$CONFIG_SITE"; then
1114 if test "x$prefix" != xNONE; then
1115 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1117 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1120 for ac_site_file in $CONFIG_SITE; do
1121 if test -r "$ac_site_file"; then
1122 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1123 echo "$as_me: loading site script $ac_site_file" >&6;}
1124 sed 's/^/| /' "$ac_site_file" >&5
1129 if test -r "$cache_file"; then
1130 # Some versions of bash will fail to source /dev/null (special
1131 # files actually), so we avoid doing that.
1132 if test -f "$cache_file"; then
1133 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1134 echo "$as_me: loading cache $cache_file" >&6;}
1136 [\\/]* | ?:[\\/]* ) . $cache_file;;
1137 *) . ./$cache_file;;
1141 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1142 echo "$as_me: creating cache $cache_file" >&6;}
1146 # Check that the precious variables saved in the cache have kept the same
1148 ac_cache_corrupted=false
1149 for ac_var in `(set) 2>&1 |
1150 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1151 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1152 eval ac_new_set=\$ac_env_${ac_var}_set
1153 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1154 eval ac_new_val="\$ac_env_${ac_var}_value"
1155 case $ac_old_set,$ac_new_set in
1157 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1158 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1159 ac_cache_corrupted=: ;;
1161 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1162 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1163 ac_cache_corrupted=: ;;
1166 if test "x$ac_old_val" != "x$ac_new_val"; then
1167 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1168 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1169 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1170 echo "$as_me: former value: $ac_old_val" >&2;}
1171 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1172 echo "$as_me: current value: $ac_new_val" >&2;}
1173 ac_cache_corrupted=:
1176 # Pass precious variables to config.status.
1177 if test "$ac_new_set" = set; then
1179 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1180 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1181 *) ac_arg=$ac_var=$ac_new_val ;;
1183 case " $ac_configure_args " in
1184 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1185 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1189 if $ac_cache_corrupted; then
1190 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1191 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1192 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1193 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1194 { (exit 1); exit 1; }; }
1198 ac_cpp='$CPP $CPPFLAGS'
1199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1221 ac_config_headers="$ac_config_headers config.h:config_in.h"
1226 ac_cpp='$CPP $CPPFLAGS'
1227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1230 if test -n "$ac_tool_prefix"; then
1231 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1232 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1233 echo "$as_me:$LINENO: checking for $ac_word" >&5
1234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1235 if test "${ac_cv_prog_CC+set}" = set; then
1236 echo $ECHO_N "(cached) $ECHO_C" >&6
1238 if test -n "$CC"; then
1239 ac_cv_prog_CC="$CC" # Let the user override the test.
1241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1245 test -z "$as_dir" && as_dir=.
1246 for ac_exec_ext in '' $ac_executable_extensions; do
1247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1248 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1258 if test -n "$CC"; then
1259 echo "$as_me:$LINENO: result: $CC" >&5
1260 echo "${ECHO_T}$CC" >&6
1262 echo "$as_me:$LINENO: result: no" >&5
1263 echo "${ECHO_T}no" >&6
1267 if test -z "$ac_cv_prog_CC"; then
1269 # Extract the first word of "gcc", so it can be a program name with args.
1270 set dummy gcc; ac_word=$2
1271 echo "$as_me:$LINENO: checking for $ac_word" >&5
1272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1273 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1274 echo $ECHO_N "(cached) $ECHO_C" >&6
1276 if test -n "$ac_ct_CC"; then
1277 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1283 test -z "$as_dir" && as_dir=.
1284 for ac_exec_ext in '' $ac_executable_extensions; do
1285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1286 ac_cv_prog_ac_ct_CC="gcc"
1287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1295 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1296 if test -n "$ac_ct_CC"; then
1297 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1298 echo "${ECHO_T}$ac_ct_CC" >&6
1300 echo "$as_me:$LINENO: result: no" >&5
1301 echo "${ECHO_T}no" >&6
1309 if test -z "$CC"; then
1310 if test -n "$ac_tool_prefix"; then
1311 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1312 set dummy ${ac_tool_prefix}cc; ac_word=$2
1313 echo "$as_me:$LINENO: checking for $ac_word" >&5
1314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1315 if test "${ac_cv_prog_CC+set}" = set; then
1316 echo $ECHO_N "(cached) $ECHO_C" >&6
1318 if test -n "$CC"; then
1319 ac_cv_prog_CC="$CC" # Let the user override the test.
1321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1325 test -z "$as_dir" && as_dir=.
1326 for ac_exec_ext in '' $ac_executable_extensions; do
1327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1328 ac_cv_prog_CC="${ac_tool_prefix}cc"
1329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1338 if test -n "$CC"; then
1339 echo "$as_me:$LINENO: result: $CC" >&5
1340 echo "${ECHO_T}$CC" >&6
1342 echo "$as_me:$LINENO: result: no" >&5
1343 echo "${ECHO_T}no" >&6
1347 if test -z "$ac_cv_prog_CC"; then
1349 # Extract the first word of "cc", so it can be a program name with args.
1350 set dummy cc; ac_word=$2
1351 echo "$as_me:$LINENO: checking for $ac_word" >&5
1352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1353 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1354 echo $ECHO_N "(cached) $ECHO_C" >&6
1356 if test -n "$ac_ct_CC"; then
1357 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1363 test -z "$as_dir" && as_dir=.
1364 for ac_exec_ext in '' $ac_executable_extensions; do
1365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1366 ac_cv_prog_ac_ct_CC="cc"
1367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1375 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1376 if test -n "$ac_ct_CC"; then
1377 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1378 echo "${ECHO_T}$ac_ct_CC" >&6
1380 echo "$as_me:$LINENO: result: no" >&5
1381 echo "${ECHO_T}no" >&6
1390 if test -z "$CC"; then
1391 # Extract the first word of "cc", so it can be a program name with args.
1392 set dummy cc; ac_word=$2
1393 echo "$as_me:$LINENO: checking for $ac_word" >&5
1394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1395 if test "${ac_cv_prog_CC+set}" = set; then
1396 echo $ECHO_N "(cached) $ECHO_C" >&6
1398 if test -n "$CC"; then
1399 ac_cv_prog_CC="$CC" # Let the user override the test.
1402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1406 test -z "$as_dir" && as_dir=.
1407 for ac_exec_ext in '' $ac_executable_extensions; do
1408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1409 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1410 ac_prog_rejected=yes
1414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1420 if test $ac_prog_rejected = yes; then
1421 # We found a bogon in the path, so make sure we never use it.
1422 set dummy $ac_cv_prog_CC
1424 if test $# != 0; then
1425 # We chose a different compiler from the bogus one.
1426 # However, it has the same basename, so the bogon will be chosen
1427 # first if we set CC to just the basename; use the full file name.
1429 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1435 if test -n "$CC"; then
1436 echo "$as_me:$LINENO: result: $CC" >&5
1437 echo "${ECHO_T}$CC" >&6
1439 echo "$as_me:$LINENO: result: no" >&5
1440 echo "${ECHO_T}no" >&6
1444 if test -z "$CC"; then
1445 if test -n "$ac_tool_prefix"; then
1448 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1449 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1450 echo "$as_me:$LINENO: checking for $ac_word" >&5
1451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1452 if test "${ac_cv_prog_CC+set}" = set; then
1453 echo $ECHO_N "(cached) $ECHO_C" >&6
1455 if test -n "$CC"; then
1456 ac_cv_prog_CC="$CC" # Let the user override the test.
1458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1462 test -z "$as_dir" && as_dir=.
1463 for ac_exec_ext in '' $ac_executable_extensions; do
1464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1465 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1475 if test -n "$CC"; then
1476 echo "$as_me:$LINENO: result: $CC" >&5
1477 echo "${ECHO_T}$CC" >&6
1479 echo "$as_me:$LINENO: result: no" >&5
1480 echo "${ECHO_T}no" >&6
1483 test -n "$CC" && break
1486 if test -z "$CC"; then
1490 # Extract the first word of "$ac_prog", so it can be a program name with args.
1491 set dummy $ac_prog; ac_word=$2
1492 echo "$as_me:$LINENO: checking for $ac_word" >&5
1493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1494 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1495 echo $ECHO_N "(cached) $ECHO_C" >&6
1497 if test -n "$ac_ct_CC"; then
1498 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1504 test -z "$as_dir" && as_dir=.
1505 for ac_exec_ext in '' $ac_executable_extensions; do
1506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1507 ac_cv_prog_ac_ct_CC="$ac_prog"
1508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1516 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1517 if test -n "$ac_ct_CC"; then
1518 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1519 echo "${ECHO_T}$ac_ct_CC" >&6
1521 echo "$as_me:$LINENO: result: no" >&5
1522 echo "${ECHO_T}no" >&6
1525 test -n "$ac_ct_CC" && break
1534 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1535 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1536 { (exit 1); exit 1; }; }
1538 # Provide some information about the compiler.
1539 echo "$as_me:$LINENO:" \
1540 "checking for C compiler version" >&5
1541 ac_compiler=`set X $ac_compile; echo $2`
1542 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1543 (eval $ac_compiler --version </dev/null >&5) 2>&5
1545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1546 (exit $ac_status); }
1547 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1548 (eval $ac_compiler -v </dev/null >&5) 2>&5
1550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1551 (exit $ac_status); }
1552 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1553 (eval $ac_compiler -V </dev/null >&5) 2>&5
1555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1556 (exit $ac_status); }
1558 cat >conftest.$ac_ext <<_ACEOF
1559 #line $LINENO "configure"
1560 #include "confdefs.h"
1570 ac_clean_files_save=$ac_clean_files
1571 ac_clean_files="$ac_clean_files a.out a.exe"
1572 # Try to create an executable without -o first, disregard a.out.
1573 # It will help us diagnose broken compilers, and finding out an intuition
1575 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1576 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1577 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1578 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1579 (eval $ac_link_default) 2>&5
1581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1582 (exit $ac_status); }; then
1583 # Find the output, starting from the most likely. This scheme is
1584 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1587 # Be careful to initialize this variable, since it used to be cached.
1588 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1590 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
1591 test -f "$ac_file" || continue
1593 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1594 a.out ) # We found the default executable, but exeext='' is most
1597 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1598 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1605 echo "$as_me: failed program was:" >&5
1606 cat conftest.$ac_ext >&5
1607 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1608 check \`config.log' for details." >&5
1609 echo "$as_me: error: C compiler cannot create executables
1610 check \`config.log' for details." >&2;}
1611 { (exit 77); exit 77; }; }
1614 ac_exeext=$ac_cv_exeext
1615 echo "$as_me:$LINENO: result: $ac_file" >&5
1616 echo "${ECHO_T}$ac_file" >&6
1618 # Check the compiler produces executables we can run. If not, either
1619 # the compiler is broken, or we cross compile.
1620 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1621 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1622 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1623 # If not cross compiling, check that we can run a simple program.
1624 if test "$cross_compiling" != yes; then
1625 if { ac_try='./$ac_file'
1626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1630 (exit $ac_status); }; }; then
1633 if test "$cross_compiling" = maybe; then
1636 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1637 If you meant to cross compile, use \`--host'." >&5
1638 echo "$as_me: error: cannot run C compiled programs.
1639 If you meant to cross compile, use \`--host'." >&2;}
1640 { (exit 1); exit 1; }; }
1644 echo "$as_me:$LINENO: result: yes" >&5
1645 echo "${ECHO_T}yes" >&6
1647 rm -f a.out a.exe conftest$ac_cv_exeext
1648 ac_clean_files=$ac_clean_files_save
1649 # Check the compiler produces executables we can run. If not, either
1650 # the compiler is broken, or we cross compile.
1651 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1652 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1653 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1654 echo "${ECHO_T}$cross_compiling" >&6
1656 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1657 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1659 (eval $ac_link) 2>&5
1661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1662 (exit $ac_status); }; then
1663 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1664 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1665 # work properly (i.e., refer to `conftest.exe'), while it won't with
1667 for ac_file in conftest.exe conftest conftest.*; do
1668 test -f "$ac_file" || continue
1670 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1671 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1678 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1679 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1680 { (exit 1); exit 1; }; }
1683 rm -f conftest$ac_cv_exeext
1684 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1685 echo "${ECHO_T}$ac_cv_exeext" >&6
1687 rm -f conftest.$ac_ext
1688 EXEEXT=$ac_cv_exeext
1690 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1691 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1692 if test "${ac_cv_objext+set}" = set; then
1693 echo $ECHO_N "(cached) $ECHO_C" >&6
1695 cat >conftest.$ac_ext <<_ACEOF
1696 #line $LINENO "configure"
1697 #include "confdefs.h"
1707 rm -f conftest.o conftest.obj
1708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1709 (eval $ac_compile) 2>&5
1711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1712 (exit $ac_status); }; then
1713 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1715 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1716 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1721 echo "$as_me: failed program was:" >&5
1722 cat conftest.$ac_ext >&5
1723 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1724 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1725 { (exit 1); exit 1; }; }
1728 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1730 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1731 echo "${ECHO_T}$ac_cv_objext" >&6
1732 OBJEXT=$ac_cv_objext
1734 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1735 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1736 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1737 echo $ECHO_N "(cached) $ECHO_C" >&6
1739 cat >conftest.$ac_ext <<_ACEOF
1740 #line $LINENO "configure"
1741 #include "confdefs.h"
1754 rm -f conftest.$ac_objext
1755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1756 (eval $ac_compile) 2>&5
1758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1759 (exit $ac_status); } &&
1760 { ac_try='test -s conftest.$ac_objext'
1761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1765 (exit $ac_status); }; }; then
1768 echo "$as_me: failed program was:" >&5
1769 cat conftest.$ac_ext >&5
1772 rm -f conftest.$ac_objext conftest.$ac_ext
1773 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1776 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1777 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1778 GCC=`test $ac_compiler_gnu = yes && echo yes`
1779 ac_test_CFLAGS=${CFLAGS+set}
1780 ac_save_CFLAGS=$CFLAGS
1782 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1783 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1784 if test "${ac_cv_prog_cc_g+set}" = set; then
1785 echo $ECHO_N "(cached) $ECHO_C" >&6
1787 cat >conftest.$ac_ext <<_ACEOF
1788 #line $LINENO "configure"
1789 #include "confdefs.h"
1799 rm -f conftest.$ac_objext
1800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1801 (eval $ac_compile) 2>&5
1803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1804 (exit $ac_status); } &&
1805 { ac_try='test -s conftest.$ac_objext'
1806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1810 (exit $ac_status); }; }; then
1813 echo "$as_me: failed program was:" >&5
1814 cat conftest.$ac_ext >&5
1817 rm -f conftest.$ac_objext conftest.$ac_ext
1819 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1820 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1821 if test "$ac_test_CFLAGS" = set; then
1822 CFLAGS=$ac_save_CFLAGS
1823 elif test $ac_cv_prog_cc_g = yes; then
1824 if test "$GCC" = yes; then
1830 if test "$GCC" = yes; then
1836 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1837 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1838 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1839 echo $ECHO_N "(cached) $ECHO_C" >&6
1841 ac_cv_prog_cc_stdc=no
1843 cat >conftest.$ac_ext <<_ACEOF
1844 #line $LINENO "configure"
1845 #include "confdefs.h"
1848 #include <sys/types.h>
1849 #include <sys/stat.h>
1850 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1851 struct buf { int x; };
1852 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1853 static char *e (p, i)
1859 static char *f (char * (*g) (char **, int), char **p, ...)
1864 s = g (p, va_arg (v,int));
1868 int test (int i, double x);
1869 struct s1 {int (*f) (int a);};
1870 struct s2 {int (*f) (double a);};
1871 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1877 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1882 # Don't try gcc -ansi; that turns off useful extensions and
1883 # breaks some systems' header files.
1884 # AIX -qlanglvl=ansi
1885 # Ultrix and OSF/1 -std1
1886 # HP-UX 10.20 and later -Ae
1887 # HP-UX older versions -Aa -D_HPUX_SOURCE
1888 # SVR4 -Xc -D__EXTENSIONS__
1889 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1891 CC="$ac_save_CC $ac_arg"
1892 rm -f conftest.$ac_objext
1893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1894 (eval $ac_compile) 2>&5
1896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1897 (exit $ac_status); } &&
1898 { ac_try='test -s conftest.$ac_objext'
1899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1903 (exit $ac_status); }; }; then
1904 ac_cv_prog_cc_stdc=$ac_arg
1907 echo "$as_me: failed program was:" >&5
1908 cat conftest.$ac_ext >&5
1910 rm -f conftest.$ac_objext
1912 rm -f conftest.$ac_ext conftest.$ac_objext
1917 case "x$ac_cv_prog_cc_stdc" in
1919 echo "$as_me:$LINENO: result: none needed" >&5
1920 echo "${ECHO_T}none needed" >&6 ;;
1922 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
1923 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1924 CC="$CC $ac_cv_prog_cc_stdc" ;;
1927 # Some people use a C++ compiler to compile C. Since we use `exit',
1928 # in C++ we need to declare it. In case someone uses the same compiler
1929 # for both compiling C and C++ we need to have the C++ compiler decide
1930 # the declaration of exit, since it's the most demanding environment.
1931 cat >conftest.$ac_ext <<_ACEOF
1936 rm -f conftest.$ac_objext
1937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1938 (eval $ac_compile) 2>&5
1940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941 (exit $ac_status); } &&
1942 { ac_try='test -s conftest.$ac_objext'
1943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1947 (exit $ac_status); }; }; then
1948 for ac_declaration in \
1950 '#include <stdlib.h>' \
1951 'extern "C" void std::exit (int) throw (); using std::exit;' \
1952 'extern "C" void std::exit (int); using std::exit;' \
1953 'extern "C" void exit (int) throw ();' \
1954 'extern "C" void exit (int);' \
1957 cat >conftest.$ac_ext <<_ACEOF
1958 #line $LINENO "configure"
1959 #include "confdefs.h"
1970 rm -f conftest.$ac_objext
1971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1972 (eval $ac_compile) 2>&5
1974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1975 (exit $ac_status); } &&
1976 { ac_try='test -s conftest.$ac_objext'
1977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1981 (exit $ac_status); }; }; then
1984 echo "$as_me: failed program was:" >&5
1985 cat conftest.$ac_ext >&5
1988 rm -f conftest.$ac_objext conftest.$ac_ext
1989 cat >conftest.$ac_ext <<_ACEOF
1990 #line $LINENO "configure"
1991 #include "confdefs.h"
2001 rm -f conftest.$ac_objext
2002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2003 (eval $ac_compile) 2>&5
2005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006 (exit $ac_status); } &&
2007 { ac_try='test -s conftest.$ac_objext'
2008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2012 (exit $ac_status); }; }; then
2015 echo "$as_me: failed program was:" >&5
2016 cat conftest.$ac_ext >&5
2018 rm -f conftest.$ac_objext conftest.$ac_ext
2021 if test -n "$ac_declaration"; then
2022 echo '#ifdef __cplusplus' >>confdefs.h
2023 echo $ac_declaration >>confdefs.h
2024 echo '#endif' >>confdefs.h
2028 echo "$as_me: failed program was:" >&5
2029 cat conftest.$ac_ext >&5
2031 rm -f conftest.$ac_objext conftest.$ac_ext
2033 ac_cpp='$CPP $CPPFLAGS'
2034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2039 # Defaults are for gcc on a 32 bit machine
2040 if test "$ac_cv_prog_cc_cross" = "yes"; then
2041 { echo "$as_me:$LINENO: WARNING: \"Cannot determine the sizeof basic types while cross compiling. Using gcc on a 32 bit machine defaults.\"" >&5
2042 echo "$as_me: WARNING: \"Cannot determine the sizeof basic types while cross compiling. Using gcc on a 32 bit machine defaults.\"" >&2;}
2047 ac_cpp='$CPP $CPPFLAGS'
2048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2051 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2052 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2053 # On Suns, sometimes $CPP names a directory.
2054 if test -n "$CPP" && test -d "$CPP"; then
2057 if test -z "$CPP"; then
2058 if test "${ac_cv_prog_CPP+set}" = set; then
2059 echo $ECHO_N "(cached) $ECHO_C" >&6
2061 # Double quotes because CPP needs to be expanded
2062 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2065 for ac_c_preproc_warn_flag in '' yes
2067 # Use a header file that comes with gcc, so configuring glibc
2068 # with a fresh cross-compiler works.
2069 # On the NeXT, cc -E runs the code through the compiler's parser,
2070 # not just through cpp. "Syntax error" is here to catch this case.
2071 cat >conftest.$ac_ext <<_ACEOF
2072 #line $LINENO "configure"
2073 #include "confdefs.h"
2077 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2078 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2080 grep -v '^ *+' conftest.er1 >conftest.err
2082 cat conftest.err >&5
2083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084 (exit $ac_status); } >/dev/null; then
2085 if test -s conftest.err; then
2086 ac_cpp_err=$ac_c_preproc_warn_flag
2093 if test -z "$ac_cpp_err"; then
2096 echo "$as_me: failed program was:" >&5
2097 cat conftest.$ac_ext >&5
2098 # Broken: fails on valid input.
2101 rm -f conftest.err conftest.$ac_ext
2103 # OK, works on sane cases. Now check whether non-existent headers
2104 # can be detected and how.
2105 cat >conftest.$ac_ext <<_ACEOF
2106 #line $LINENO "configure"
2107 #include "confdefs.h"
2108 #include <ac_nonexistent.h>
2110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2113 grep -v '^ *+' conftest.er1 >conftest.err
2115 cat conftest.err >&5
2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117 (exit $ac_status); } >/dev/null; then
2118 if test -s conftest.err; then
2119 ac_cpp_err=$ac_c_preproc_warn_flag
2126 if test -z "$ac_cpp_err"; then
2127 # Broken: success on invalid input.
2130 echo "$as_me: failed program was:" >&5
2131 cat conftest.$ac_ext >&5
2132 # Passes both tests.
2136 rm -f conftest.err conftest.$ac_ext
2139 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2140 rm -f conftest.err conftest.$ac_ext
2141 if $ac_preproc_ok; then
2153 echo "$as_me:$LINENO: result: $CPP" >&5
2154 echo "${ECHO_T}$CPP" >&6
2156 for ac_c_preproc_warn_flag in '' yes
2158 # Use a header file that comes with gcc, so configuring glibc
2159 # with a fresh cross-compiler works.
2160 # On the NeXT, cc -E runs the code through the compiler's parser,
2161 # not just through cpp. "Syntax error" is here to catch this case.
2162 cat >conftest.$ac_ext <<_ACEOF
2163 #line $LINENO "configure"
2164 #include "confdefs.h"
2168 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2169 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2171 grep -v '^ *+' conftest.er1 >conftest.err
2173 cat conftest.err >&5
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); } >/dev/null; then
2176 if test -s conftest.err; then
2177 ac_cpp_err=$ac_c_preproc_warn_flag
2184 if test -z "$ac_cpp_err"; then
2187 echo "$as_me: failed program was:" >&5
2188 cat conftest.$ac_ext >&5
2189 # Broken: fails on valid input.
2192 rm -f conftest.err conftest.$ac_ext
2194 # OK, works on sane cases. Now check whether non-existent headers
2195 # can be detected and how.
2196 cat >conftest.$ac_ext <<_ACEOF
2197 #line $LINENO "configure"
2198 #include "confdefs.h"
2199 #include <ac_nonexistent.h>
2201 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2202 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2204 grep -v '^ *+' conftest.er1 >conftest.err
2206 cat conftest.err >&5
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); } >/dev/null; then
2209 if test -s conftest.err; then
2210 ac_cpp_err=$ac_c_preproc_warn_flag
2217 if test -z "$ac_cpp_err"; then
2218 # Broken: success on invalid input.
2221 echo "$as_me: failed program was:" >&5
2222 cat conftest.$ac_ext >&5
2223 # Passes both tests.
2227 rm -f conftest.err conftest.$ac_ext
2230 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2231 rm -f conftest.err conftest.$ac_ext
2232 if $ac_preproc_ok; then
2235 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2236 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2237 { (exit 1); exit 1; }; }
2241 ac_cpp='$CPP $CPPFLAGS'
2242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2247 echo "$as_me:$LINENO: checking for egrep" >&5
2248 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2249 if test "${ac_cv_prog_egrep+set}" = set; then
2250 echo $ECHO_N "(cached) $ECHO_C" >&6
2252 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2253 then ac_cv_prog_egrep='grep -E'
2254 else ac_cv_prog_egrep='egrep'
2257 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2258 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2259 EGREP=$ac_cv_prog_egrep
2262 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2263 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2264 if test "${ac_cv_header_stdc+set}" = set; then
2265 echo $ECHO_N "(cached) $ECHO_C" >&6
2267 cat >conftest.$ac_ext <<_ACEOF
2268 #line $LINENO "configure"
2269 #include "confdefs.h"
2276 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2277 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2279 grep -v '^ *+' conftest.er1 >conftest.err
2281 cat conftest.err >&5
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); } >/dev/null; then
2284 if test -s conftest.err; then
2285 ac_cpp_err=$ac_c_preproc_warn_flag
2292 if test -z "$ac_cpp_err"; then
2293 ac_cv_header_stdc=yes
2295 echo "$as_me: failed program was:" >&5
2296 cat conftest.$ac_ext >&5
2297 ac_cv_header_stdc=no
2299 rm -f conftest.err conftest.$ac_ext
2301 if test $ac_cv_header_stdc = yes; then
2302 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2303 cat >conftest.$ac_ext <<_ACEOF
2304 #line $LINENO "configure"
2305 #include "confdefs.h"
2309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2310 $EGREP "memchr" >/dev/null 2>&1; then
2313 ac_cv_header_stdc=no
2319 if test $ac_cv_header_stdc = yes; then
2320 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2321 cat >conftest.$ac_ext <<_ACEOF
2322 #line $LINENO "configure"
2323 #include "confdefs.h"
2327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2328 $EGREP "free" >/dev/null 2>&1; then
2331 ac_cv_header_stdc=no
2337 if test $ac_cv_header_stdc = yes; then
2338 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2339 if test "$cross_compiling" = yes; then
2342 cat >conftest.$ac_ext <<_ACEOF
2343 #line $LINENO "configure"
2344 #include "confdefs.h"
2346 #if ((' ' & 0x0FF) == 0x020)
2347 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2348 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2350 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2351 || ('j' <= (c) && (c) <= 'r') \
2352 || ('s' <= (c) && (c) <= 'z'))
2353 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2356 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2361 for (i = 0; i < 256; i++)
2362 if (XOR (islower (i), ISLOWER (i))
2363 || toupper (i) != TOUPPER (i))
2368 rm -f conftest$ac_exeext
2369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2370 (eval $ac_link) 2>&5
2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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: program exited with status $ac_status" >&5
2382 echo "$as_me: failed program was:" >&5
2383 cat conftest.$ac_ext >&5
2385 ac_cv_header_stdc=no
2387 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2391 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2392 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2393 if test $ac_cv_header_stdc = yes; then
2395 cat >>confdefs.h <<\_ACEOF
2396 #define STDC_HEADERS 1
2401 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2411 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2412 inttypes.h stdint.h unistd.h
2414 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2415 echo "$as_me:$LINENO: checking for $ac_header" >&5
2416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2418 echo $ECHO_N "(cached) $ECHO_C" >&6
2420 cat >conftest.$ac_ext <<_ACEOF
2421 #line $LINENO "configure"
2422 #include "confdefs.h"
2423 $ac_includes_default
2425 #include <$ac_header>
2427 rm -f conftest.$ac_objext
2428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2429 (eval $ac_compile) 2>&5
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); } &&
2433 { ac_try='test -s conftest.$ac_objext'
2434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }; }; then
2439 eval "$as_ac_Header=yes"
2441 echo "$as_me: failed program was:" >&5
2442 cat conftest.$ac_ext >&5
2443 eval "$as_ac_Header=no"
2445 rm -f conftest.$ac_objext conftest.$ac_ext
2447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2450 cat >>confdefs.h <<_ACEOF
2451 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2459 echo "$as_me:$LINENO: checking for char" >&5
2460 echo $ECHO_N "checking for char... $ECHO_C" >&6
2461 if test "${ac_cv_type_char+set}" = set; then
2462 echo $ECHO_N "(cached) $ECHO_C" >&6
2464 cat >conftest.$ac_ext <<_ACEOF
2465 #line $LINENO "configure"
2466 #include "confdefs.h"
2467 $ac_includes_default
2479 rm -f conftest.$ac_objext
2480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2481 (eval $ac_compile) 2>&5
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); } &&
2485 { ac_try='test -s conftest.$ac_objext'
2486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); }; }; then
2493 echo "$as_me: failed program was:" >&5
2494 cat conftest.$ac_ext >&5
2497 rm -f conftest.$ac_objext conftest.$ac_ext
2499 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
2500 echo "${ECHO_T}$ac_cv_type_char" >&6
2502 echo "$as_me:$LINENO: checking size of char" >&5
2503 echo $ECHO_N "checking size of char... $ECHO_C" >&6
2504 if test "${ac_cv_sizeof_char+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2507 if test "$ac_cv_type_char" = yes; then
2508 # The cast to unsigned long works around a bug in the HP C Compiler
2509 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
2510 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
2511 # This bug is HP SR number 8606223364.
2512 if test "$cross_compiling" = yes; then
2513 # Depending upon the size, compute the lo and hi bounds.
2514 cat >conftest.$ac_ext <<_ACEOF
2515 #line $LINENO "configure"
2516 #include "confdefs.h"
2517 $ac_includes_default
2521 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
2528 rm -f conftest.$ac_objext
2529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2530 (eval $ac_compile) 2>&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); } &&
2534 { ac_try='test -s conftest.$ac_objext'
2535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; }; then
2542 cat >conftest.$ac_ext <<_ACEOF
2543 #line $LINENO "configure"
2544 #include "confdefs.h"
2545 $ac_includes_default
2549 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
2556 rm -f conftest.$ac_objext
2557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2558 (eval $ac_compile) 2>&5
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); } &&
2562 { ac_try='test -s conftest.$ac_objext'
2563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }; }; then
2568 ac_hi=$ac_mid; break
2570 echo "$as_me: failed program was:" >&5
2571 cat conftest.$ac_ext >&5
2572 ac_lo=`expr $ac_mid + 1`
2573 if test $ac_lo -le $ac_mid; then
2577 ac_mid=`expr 2 '*' $ac_mid + 1`
2579 rm -f conftest.$ac_objext conftest.$ac_ext
2582 echo "$as_me: failed program was:" >&5
2583 cat conftest.$ac_ext >&5
2584 cat >conftest.$ac_ext <<_ACEOF
2585 #line $LINENO "configure"
2586 #include "confdefs.h"
2587 $ac_includes_default
2591 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
2598 rm -f conftest.$ac_objext
2599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2600 (eval $ac_compile) 2>&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
2612 cat >conftest.$ac_ext <<_ACEOF
2613 #line $LINENO "configure"
2614 #include "confdefs.h"
2615 $ac_includes_default
2619 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
2626 rm -f conftest.$ac_objext
2627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2628 (eval $ac_compile) 2>&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); } &&
2632 { ac_try='test -s conftest.$ac_objext'
2633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); }; }; then
2638 ac_lo=$ac_mid; break
2640 echo "$as_me: failed program was:" >&5
2641 cat conftest.$ac_ext >&5
2642 ac_hi=`expr '(' $ac_mid ')' - 1`
2643 if test $ac_mid -le $ac_hi; then
2647 ac_mid=`expr 2 '*' $ac_mid`
2649 rm -f conftest.$ac_objext conftest.$ac_ext
2652 echo "$as_me: failed program was:" >&5
2653 cat conftest.$ac_ext >&5
2656 rm -f conftest.$ac_objext conftest.$ac_ext
2658 rm -f conftest.$ac_objext conftest.$ac_ext
2659 # Binary search between lo and hi bounds.
2660 while test "x$ac_lo" != "x$ac_hi"; do
2661 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
2662 cat >conftest.$ac_ext <<_ACEOF
2663 #line $LINENO "configure"
2664 #include "confdefs.h"
2665 $ac_includes_default
2669 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
2676 rm -f conftest.$ac_objext
2677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2678 (eval $ac_compile) 2>&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); } &&
2682 { ac_try='test -s conftest.$ac_objext'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; }; then
2690 echo "$as_me: failed program was:" >&5
2691 cat conftest.$ac_ext >&5
2692 ac_lo=`expr '(' $ac_mid ')' + 1`
2694 rm -f conftest.$ac_objext conftest.$ac_ext
2697 ?*) ac_cv_sizeof_char=$ac_lo;;
2698 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
2699 echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
2700 { (exit 1); exit 1; }; } ;;
2703 if test "$cross_compiling" = yes; then
2704 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
2705 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
2706 { (exit 1); exit 1; }; }
2708 cat >conftest.$ac_ext <<_ACEOF
2709 #line $LINENO "configure"
2710 #include "confdefs.h"
2711 $ac_includes_default
2712 long longval () { return (long) (sizeof (char)); }
2713 unsigned long ulongval () { return (long) (sizeof (char)); }
2720 FILE *f = fopen ("conftest.val", "w");
2723 if (((long) (sizeof (char))) < 0)
2725 long i = longval ();
2726 if (i != ((long) (sizeof (char))))
2728 fprintf (f, "%ld\n", i);
2732 unsigned long i = ulongval ();
2733 if (i != ((long) (sizeof (char))))
2735 fprintf (f, "%lu\n", i);
2737 exit (ferror (f) || fclose (f) != 0);
2743 rm -f conftest$ac_exeext
2744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2745 (eval $ac_link) 2>&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); }; }; then
2754 ac_cv_sizeof_char=`cat conftest.val`
2756 echo "$as_me: program exited with status $ac_status" >&5
2757 echo "$as_me: failed program was:" >&5
2758 cat conftest.$ac_ext >&5
2760 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
2761 echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
2762 { (exit 1); exit 1; }; }
2764 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2772 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
2773 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
2774 cat >>confdefs.h <<_ACEOF
2775 #define SIZEOF_CHAR $ac_cv_sizeof_char
2779 echo "$as_me:$LINENO: checking for short" >&5
2780 echo $ECHO_N "checking for short... $ECHO_C" >&6
2781 if test "${ac_cv_type_short+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2784 cat >conftest.$ac_ext <<_ACEOF
2785 #line $LINENO "configure"
2786 #include "confdefs.h"
2787 $ac_includes_default
2799 rm -f conftest.$ac_objext
2800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2801 (eval $ac_compile) 2>&5
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); } &&
2805 { ac_try='test -s conftest.$ac_objext'
2806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); }; }; then
2811 ac_cv_type_short=yes
2813 echo "$as_me: failed program was:" >&5
2814 cat conftest.$ac_ext >&5
2817 rm -f conftest.$ac_objext conftest.$ac_ext
2819 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
2820 echo "${ECHO_T}$ac_cv_type_short" >&6
2822 echo "$as_me:$LINENO: checking size of short" >&5
2823 echo $ECHO_N "checking size of short... $ECHO_C" >&6
2824 if test "${ac_cv_sizeof_short+set}" = set; then
2825 echo $ECHO_N "(cached) $ECHO_C" >&6
2827 if test "$ac_cv_type_short" = yes; then
2828 # The cast to unsigned long works around a bug in the HP C Compiler
2829 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
2830 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
2831 # This bug is HP SR number 8606223364.
2832 if test "$cross_compiling" = yes; then
2833 # Depending upon the size, compute the lo and hi bounds.
2834 cat >conftest.$ac_ext <<_ACEOF
2835 #line $LINENO "configure"
2836 #include "confdefs.h"
2837 $ac_includes_default
2841 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
2848 rm -f conftest.$ac_objext
2849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2850 (eval $ac_compile) 2>&5
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); } &&
2854 { ac_try='test -s conftest.$ac_objext'
2855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); }; }; then
2862 cat >conftest.$ac_ext <<_ACEOF
2863 #line $LINENO "configure"
2864 #include "confdefs.h"
2865 $ac_includes_default
2869 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
2876 rm -f conftest.$ac_objext
2877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2878 (eval $ac_compile) 2>&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); } &&
2882 { ac_try='test -s conftest.$ac_objext'
2883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; }; then
2888 ac_hi=$ac_mid; break
2890 echo "$as_me: failed program was:" >&5
2891 cat conftest.$ac_ext >&5
2892 ac_lo=`expr $ac_mid + 1`
2893 if test $ac_lo -le $ac_mid; then
2897 ac_mid=`expr 2 '*' $ac_mid + 1`
2899 rm -f conftest.$ac_objext conftest.$ac_ext
2902 echo "$as_me: failed program was:" >&5
2903 cat conftest.$ac_ext >&5
2904 cat >conftest.$ac_ext <<_ACEOF
2905 #line $LINENO "configure"
2906 #include "confdefs.h"
2907 $ac_includes_default
2911 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
2918 rm -f conftest.$ac_objext
2919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2920 (eval $ac_compile) 2>&5
2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923 (exit $ac_status); } &&
2924 { ac_try='test -s conftest.$ac_objext'
2925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); }; }; then
2932 cat >conftest.$ac_ext <<_ACEOF
2933 #line $LINENO "configure"
2934 #include "confdefs.h"
2935 $ac_includes_default
2939 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
2946 rm -f conftest.$ac_objext
2947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2948 (eval $ac_compile) 2>&5
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); } &&
2952 { ac_try='test -s conftest.$ac_objext'
2953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); }; }; then
2958 ac_lo=$ac_mid; break
2960 echo "$as_me: failed program was:" >&5
2961 cat conftest.$ac_ext >&5
2962 ac_hi=`expr '(' $ac_mid ')' - 1`
2963 if test $ac_mid -le $ac_hi; then
2967 ac_mid=`expr 2 '*' $ac_mid`
2969 rm -f conftest.$ac_objext conftest.$ac_ext
2972 echo "$as_me: failed program was:" >&5
2973 cat conftest.$ac_ext >&5
2976 rm -f conftest.$ac_objext conftest.$ac_ext
2978 rm -f conftest.$ac_objext conftest.$ac_ext
2979 # Binary search between lo and hi bounds.
2980 while test "x$ac_lo" != "x$ac_hi"; do
2981 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
2982 cat >conftest.$ac_ext <<_ACEOF
2983 #line $LINENO "configure"
2984 #include "confdefs.h"
2985 $ac_includes_default
2989 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
2996 rm -f conftest.$ac_objext
2997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2998 (eval $ac_compile) 2>&5
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); } &&
3002 { ac_try='test -s conftest.$ac_objext'
3003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); }; }; then
3010 echo "$as_me: failed program was:" >&5
3011 cat conftest.$ac_ext >&5
3012 ac_lo=`expr '(' $ac_mid ')' + 1`
3014 rm -f conftest.$ac_objext conftest.$ac_ext
3017 ?*) ac_cv_sizeof_short=$ac_lo;;
3018 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
3019 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
3020 { (exit 1); exit 1; }; } ;;
3023 if test "$cross_compiling" = yes; then
3024 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
3025 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3026 { (exit 1); exit 1; }; }
3028 cat >conftest.$ac_ext <<_ACEOF
3029 #line $LINENO "configure"
3030 #include "confdefs.h"
3031 $ac_includes_default
3032 long longval () { return (long) (sizeof (short)); }
3033 unsigned long ulongval () { return (long) (sizeof (short)); }
3040 FILE *f = fopen ("conftest.val", "w");
3043 if (((long) (sizeof (short))) < 0)
3045 long i = longval ();
3046 if (i != ((long) (sizeof (short))))
3048 fprintf (f, "%ld\n", i);
3052 unsigned long i = ulongval ();
3053 if (i != ((long) (sizeof (short))))
3055 fprintf (f, "%lu\n", i);
3057 exit (ferror (f) || fclose (f) != 0);
3063 rm -f conftest$ac_exeext
3064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3065 (eval $ac_link) 2>&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); }; }; then
3074 ac_cv_sizeof_short=`cat conftest.val`
3076 echo "$as_me: program exited with status $ac_status" >&5
3077 echo "$as_me: failed program was:" >&5
3078 cat conftest.$ac_ext >&5
3080 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
3081 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
3082 { (exit 1); exit 1; }; }
3084 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3089 ac_cv_sizeof_short=0
3092 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3093 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3094 cat >>confdefs.h <<_ACEOF
3095 #define SIZEOF_SHORT $ac_cv_sizeof_short
3099 echo "$as_me:$LINENO: checking for int" >&5
3100 echo $ECHO_N "checking for int... $ECHO_C" >&6
3101 if test "${ac_cv_type_int+set}" = set; then
3102 echo $ECHO_N "(cached) $ECHO_C" >&6
3104 cat >conftest.$ac_ext <<_ACEOF
3105 #line $LINENO "configure"
3106 #include "confdefs.h"
3107 $ac_includes_default
3119 rm -f conftest.$ac_objext
3120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3121 (eval $ac_compile) 2>&5
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); } &&
3125 { ac_try='test -s conftest.$ac_objext'
3126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130 (exit $ac_status); }; }; then
3133 echo "$as_me: failed program was:" >&5
3134 cat conftest.$ac_ext >&5
3137 rm -f conftest.$ac_objext conftest.$ac_ext
3139 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
3140 echo "${ECHO_T}$ac_cv_type_int" >&6
3142 echo "$as_me:$LINENO: checking size of int" >&5
3143 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3144 if test "${ac_cv_sizeof_int+set}" = set; then
3145 echo $ECHO_N "(cached) $ECHO_C" >&6
3147 if test "$ac_cv_type_int" = yes; then
3148 # The cast to unsigned long works around a bug in the HP C Compiler
3149 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3150 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3151 # This bug is HP SR number 8606223364.
3152 if test "$cross_compiling" = yes; then
3153 # Depending upon the size, compute the lo and hi bounds.
3154 cat >conftest.$ac_ext <<_ACEOF
3155 #line $LINENO "configure"
3156 #include "confdefs.h"
3157 $ac_includes_default
3161 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
3168 rm -f conftest.$ac_objext
3169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3170 (eval $ac_compile) 2>&5
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); } &&
3174 { ac_try='test -s conftest.$ac_objext'
3175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); }; }; then
3182 cat >conftest.$ac_ext <<_ACEOF
3183 #line $LINENO "configure"
3184 #include "confdefs.h"
3185 $ac_includes_default
3189 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
3196 rm -f conftest.$ac_objext
3197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3198 (eval $ac_compile) 2>&5
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); } &&
3202 { ac_try='test -s conftest.$ac_objext'
3203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); }; }; then
3208 ac_hi=$ac_mid; break
3210 echo "$as_me: failed program was:" >&5
3211 cat conftest.$ac_ext >&5
3212 ac_lo=`expr $ac_mid + 1`
3213 if test $ac_lo -le $ac_mid; then
3217 ac_mid=`expr 2 '*' $ac_mid + 1`
3219 rm -f conftest.$ac_objext conftest.$ac_ext
3222 echo "$as_me: failed program was:" >&5
3223 cat conftest.$ac_ext >&5
3224 cat >conftest.$ac_ext <<_ACEOF
3225 #line $LINENO "configure"
3226 #include "confdefs.h"
3227 $ac_includes_default
3231 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
3238 rm -f conftest.$ac_objext
3239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3240 (eval $ac_compile) 2>&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); } &&
3244 { ac_try='test -s conftest.$ac_objext'
3245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); }; }; then
3252 cat >conftest.$ac_ext <<_ACEOF
3253 #line $LINENO "configure"
3254 #include "confdefs.h"
3255 $ac_includes_default
3259 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
3266 rm -f conftest.$ac_objext
3267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3268 (eval $ac_compile) 2>&5
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); } &&
3272 { ac_try='test -s conftest.$ac_objext'
3273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); }; }; then
3278 ac_lo=$ac_mid; break
3280 echo "$as_me: failed program was:" >&5
3281 cat conftest.$ac_ext >&5
3282 ac_hi=`expr '(' $ac_mid ')' - 1`
3283 if test $ac_mid -le $ac_hi; then
3287 ac_mid=`expr 2 '*' $ac_mid`
3289 rm -f conftest.$ac_objext conftest.$ac_ext
3292 echo "$as_me: failed program was:" >&5
3293 cat conftest.$ac_ext >&5
3296 rm -f conftest.$ac_objext conftest.$ac_ext
3298 rm -f conftest.$ac_objext conftest.$ac_ext
3299 # Binary search between lo and hi bounds.
3300 while test "x$ac_lo" != "x$ac_hi"; do
3301 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3302 cat >conftest.$ac_ext <<_ACEOF
3303 #line $LINENO "configure"
3304 #include "confdefs.h"
3305 $ac_includes_default
3309 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
3316 rm -f conftest.$ac_objext
3317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3318 (eval $ac_compile) 2>&5
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); } &&
3322 { ac_try='test -s conftest.$ac_objext'
3323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }; }; then
3330 echo "$as_me: failed program was:" >&5
3331 cat conftest.$ac_ext >&5
3332 ac_lo=`expr '(' $ac_mid ')' + 1`
3334 rm -f conftest.$ac_objext conftest.$ac_ext
3337 ?*) ac_cv_sizeof_int=$ac_lo;;
3338 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
3339 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
3340 { (exit 1); exit 1; }; } ;;
3343 if test "$cross_compiling" = yes; then
3344 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
3345 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3346 { (exit 1); exit 1; }; }
3348 cat >conftest.$ac_ext <<_ACEOF
3349 #line $LINENO "configure"
3350 #include "confdefs.h"
3351 $ac_includes_default
3352 long longval () { return (long) (sizeof (int)); }
3353 unsigned long ulongval () { return (long) (sizeof (int)); }
3360 FILE *f = fopen ("conftest.val", "w");
3363 if (((long) (sizeof (int))) < 0)
3365 long i = longval ();
3366 if (i != ((long) (sizeof (int))))
3368 fprintf (f, "%ld\n", i);
3372 unsigned long i = ulongval ();
3373 if (i != ((long) (sizeof (int))))
3375 fprintf (f, "%lu\n", i);
3377 exit (ferror (f) || fclose (f) != 0);
3383 rm -f conftest$ac_exeext
3384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3385 (eval $ac_link) 2>&5
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; }; then
3394 ac_cv_sizeof_int=`cat conftest.val`
3396 echo "$as_me: program exited with status $ac_status" >&5
3397 echo "$as_me: failed program was:" >&5
3398 cat conftest.$ac_ext >&5
3400 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
3401 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
3402 { (exit 1); exit 1; }; }
3404 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3412 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3413 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3414 cat >>confdefs.h <<_ACEOF
3415 #define SIZEOF_INT $ac_cv_sizeof_int
3419 echo "$as_me:$LINENO: checking for long" >&5
3420 echo $ECHO_N "checking for long... $ECHO_C" >&6
3421 if test "${ac_cv_type_long+set}" = set; then
3422 echo $ECHO_N "(cached) $ECHO_C" >&6
3424 cat >conftest.$ac_ext <<_ACEOF
3425 #line $LINENO "configure"
3426 #include "confdefs.h"
3427 $ac_includes_default
3439 rm -f conftest.$ac_objext
3440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3441 (eval $ac_compile) 2>&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); } &&
3445 { ac_try='test -s conftest.$ac_objext'
3446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); }; }; then
3453 echo "$as_me: failed program was:" >&5
3454 cat conftest.$ac_ext >&5
3457 rm -f conftest.$ac_objext conftest.$ac_ext
3459 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
3460 echo "${ECHO_T}$ac_cv_type_long" >&6
3462 echo "$as_me:$LINENO: checking size of long" >&5
3463 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3464 if test "${ac_cv_sizeof_long+set}" = set; then
3465 echo $ECHO_N "(cached) $ECHO_C" >&6
3467 if test "$ac_cv_type_long" = yes; then
3468 # The cast to unsigned long works around a bug in the HP C Compiler
3469 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3470 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3471 # This bug is HP SR number 8606223364.
3472 if test "$cross_compiling" = yes; then
3473 # Depending upon the size, compute the lo and hi bounds.
3474 cat >conftest.$ac_ext <<_ACEOF
3475 #line $LINENO "configure"
3476 #include "confdefs.h"
3477 $ac_includes_default
3481 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
3488 rm -f conftest.$ac_objext
3489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3490 (eval $ac_compile) 2>&5
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); } &&
3494 { ac_try='test -s conftest.$ac_objext'
3495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); }; }; then
3502 cat >conftest.$ac_ext <<_ACEOF
3503 #line $LINENO "configure"
3504 #include "confdefs.h"
3505 $ac_includes_default
3509 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
3516 rm -f conftest.$ac_objext
3517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3518 (eval $ac_compile) 2>&5
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); } &&
3522 { ac_try='test -s conftest.$ac_objext'
3523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }; }; then
3528 ac_hi=$ac_mid; break
3530 echo "$as_me: failed program was:" >&5
3531 cat conftest.$ac_ext >&5
3532 ac_lo=`expr $ac_mid + 1`
3533 if test $ac_lo -le $ac_mid; then
3537 ac_mid=`expr 2 '*' $ac_mid + 1`
3539 rm -f conftest.$ac_objext conftest.$ac_ext
3542 echo "$as_me: failed program was:" >&5
3543 cat conftest.$ac_ext >&5
3544 cat >conftest.$ac_ext <<_ACEOF
3545 #line $LINENO "configure"
3546 #include "confdefs.h"
3547 $ac_includes_default
3551 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
3558 rm -f conftest.$ac_objext
3559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3560 (eval $ac_compile) 2>&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); } &&
3564 { ac_try='test -s conftest.$ac_objext'
3565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); }; }; then
3572 cat >conftest.$ac_ext <<_ACEOF
3573 #line $LINENO "configure"
3574 #include "confdefs.h"
3575 $ac_includes_default
3579 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
3586 rm -f conftest.$ac_objext
3587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3588 (eval $ac_compile) 2>&5
3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591 (exit $ac_status); } &&
3592 { ac_try='test -s conftest.$ac_objext'
3593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); }; }; then
3598 ac_lo=$ac_mid; break
3600 echo "$as_me: failed program was:" >&5
3601 cat conftest.$ac_ext >&5
3602 ac_hi=`expr '(' $ac_mid ')' - 1`
3603 if test $ac_mid -le $ac_hi; then
3607 ac_mid=`expr 2 '*' $ac_mid`
3609 rm -f conftest.$ac_objext conftest.$ac_ext
3612 echo "$as_me: failed program was:" >&5
3613 cat conftest.$ac_ext >&5
3616 rm -f conftest.$ac_objext conftest.$ac_ext
3618 rm -f conftest.$ac_objext conftest.$ac_ext
3619 # Binary search between lo and hi bounds.
3620 while test "x$ac_lo" != "x$ac_hi"; do
3621 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3622 cat >conftest.$ac_ext <<_ACEOF
3623 #line $LINENO "configure"
3624 #include "confdefs.h"
3625 $ac_includes_default
3629 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
3636 rm -f conftest.$ac_objext
3637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3638 (eval $ac_compile) 2>&5
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); } &&
3642 { ac_try='test -s conftest.$ac_objext'
3643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); }; }; then
3650 echo "$as_me: failed program was:" >&5
3651 cat conftest.$ac_ext >&5
3652 ac_lo=`expr '(' $ac_mid ')' + 1`
3654 rm -f conftest.$ac_objext conftest.$ac_ext
3657 ?*) ac_cv_sizeof_long=$ac_lo;;
3658 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
3659 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
3660 { (exit 1); exit 1; }; } ;;
3663 if test "$cross_compiling" = yes; then
3664 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
3665 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3666 { (exit 1); exit 1; }; }
3668 cat >conftest.$ac_ext <<_ACEOF
3669 #line $LINENO "configure"
3670 #include "confdefs.h"
3671 $ac_includes_default
3672 long longval () { return (long) (sizeof (long)); }
3673 unsigned long ulongval () { return (long) (sizeof (long)); }
3680 FILE *f = fopen ("conftest.val", "w");
3683 if (((long) (sizeof (long))) < 0)
3685 long i = longval ();
3686 if (i != ((long) (sizeof (long))))
3688 fprintf (f, "%ld\n", i);
3692 unsigned long i = ulongval ();
3693 if (i != ((long) (sizeof (long))))
3695 fprintf (f, "%lu\n", i);
3697 exit (ferror (f) || fclose (f) != 0);
3703 rm -f conftest$ac_exeext
3704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3705 (eval $ac_link) 2>&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); }; }; then
3714 ac_cv_sizeof_long=`cat conftest.val`
3716 echo "$as_me: program exited with status $ac_status" >&5
3717 echo "$as_me: failed program was:" >&5
3718 cat conftest.$ac_ext >&5
3720 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
3721 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
3722 { (exit 1); exit 1; }; }
3724 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3732 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3733 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3734 cat >>confdefs.h <<_ACEOF
3735 #define SIZEOF_LONG $ac_cv_sizeof_long
3739 echo "$as_me:$LINENO: checking for long long" >&5
3740 echo $ECHO_N "checking for long long... $ECHO_C" >&6
3741 if test "${ac_cv_type_long_long+set}" = set; then
3742 echo $ECHO_N "(cached) $ECHO_C" >&6
3744 cat >conftest.$ac_ext <<_ACEOF
3745 #line $LINENO "configure"
3746 #include "confdefs.h"
3747 $ac_includes_default
3751 if ((long long *) 0)
3753 if (sizeof (long long))
3759 rm -f conftest.$ac_objext
3760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3761 (eval $ac_compile) 2>&5
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); } &&
3765 { ac_try='test -s conftest.$ac_objext'
3766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); }; }; then
3771 ac_cv_type_long_long=yes
3773 echo "$as_me: failed program was:" >&5
3774 cat conftest.$ac_ext >&5
3775 ac_cv_type_long_long=no
3777 rm -f conftest.$ac_objext conftest.$ac_ext
3779 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
3780 echo "${ECHO_T}$ac_cv_type_long_long" >&6
3782 echo "$as_me:$LINENO: checking size of long long" >&5
3783 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3784 if test "${ac_cv_sizeof_long_long+set}" = set; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3787 if test "$ac_cv_type_long_long" = yes; then
3788 # The cast to unsigned long works around a bug in the HP C Compiler
3789 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3790 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3791 # This bug is HP SR number 8606223364.
3792 if test "$cross_compiling" = yes; then
3793 # Depending upon the size, compute the lo and hi bounds.
3794 cat >conftest.$ac_ext <<_ACEOF
3795 #line $LINENO "configure"
3796 #include "confdefs.h"
3797 $ac_includes_default
3801 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
3808 rm -f conftest.$ac_objext
3809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3810 (eval $ac_compile) 2>&5
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); } &&
3814 { ac_try='test -s conftest.$ac_objext'
3815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); }; }; then
3822 cat >conftest.$ac_ext <<_ACEOF
3823 #line $LINENO "configure"
3824 #include "confdefs.h"
3825 $ac_includes_default
3829 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
3836 rm -f conftest.$ac_objext
3837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3838 (eval $ac_compile) 2>&5
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); } &&
3842 { ac_try='test -s conftest.$ac_objext'
3843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847 (exit $ac_status); }; }; then
3848 ac_hi=$ac_mid; break
3850 echo "$as_me: failed program was:" >&5
3851 cat conftest.$ac_ext >&5
3852 ac_lo=`expr $ac_mid + 1`
3853 if test $ac_lo -le $ac_mid; then
3857 ac_mid=`expr 2 '*' $ac_mid + 1`
3859 rm -f conftest.$ac_objext conftest.$ac_ext
3862 echo "$as_me: failed program was:" >&5
3863 cat conftest.$ac_ext >&5
3864 cat >conftest.$ac_ext <<_ACEOF
3865 #line $LINENO "configure"
3866 #include "confdefs.h"
3867 $ac_includes_default
3871 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
3878 rm -f conftest.$ac_objext
3879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3880 (eval $ac_compile) 2>&5
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); } &&
3884 { ac_try='test -s conftest.$ac_objext'
3885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); }; }; then
3892 cat >conftest.$ac_ext <<_ACEOF
3893 #line $LINENO "configure"
3894 #include "confdefs.h"
3895 $ac_includes_default
3899 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
3906 rm -f conftest.$ac_objext
3907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3908 (eval $ac_compile) 2>&5
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); } &&
3912 { ac_try='test -s conftest.$ac_objext'
3913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); }; }; then
3918 ac_lo=$ac_mid; break
3920 echo "$as_me: failed program was:" >&5
3921 cat conftest.$ac_ext >&5
3922 ac_hi=`expr '(' $ac_mid ')' - 1`
3923 if test $ac_mid -le $ac_hi; then
3927 ac_mid=`expr 2 '*' $ac_mid`
3929 rm -f conftest.$ac_objext conftest.$ac_ext
3932 echo "$as_me: failed program was:" >&5
3933 cat conftest.$ac_ext >&5
3936 rm -f conftest.$ac_objext conftest.$ac_ext
3938 rm -f conftest.$ac_objext conftest.$ac_ext
3939 # Binary search between lo and hi bounds.
3940 while test "x$ac_lo" != "x$ac_hi"; do
3941 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3942 cat >conftest.$ac_ext <<_ACEOF
3943 #line $LINENO "configure"
3944 #include "confdefs.h"
3945 $ac_includes_default
3949 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
3956 rm -f conftest.$ac_objext
3957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3958 (eval $ac_compile) 2>&5
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); } &&
3962 { ac_try='test -s conftest.$ac_objext'
3963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); }; }; then
3970 echo "$as_me: failed program was:" >&5
3971 cat conftest.$ac_ext >&5
3972 ac_lo=`expr '(' $ac_mid ')' + 1`
3974 rm -f conftest.$ac_objext conftest.$ac_ext
3977 ?*) ac_cv_sizeof_long_long=$ac_lo;;
3978 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
3979 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
3980 { (exit 1); exit 1; }; } ;;
3983 if test "$cross_compiling" = yes; then
3984 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
3985 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3986 { (exit 1); exit 1; }; }
3988 cat >conftest.$ac_ext <<_ACEOF
3989 #line $LINENO "configure"
3990 #include "confdefs.h"
3991 $ac_includes_default
3992 long longval () { return (long) (sizeof (long long)); }
3993 unsigned long ulongval () { return (long) (sizeof (long long)); }
4000 FILE *f = fopen ("conftest.val", "w");
4003 if (((long) (sizeof (long long))) < 0)
4005 long i = longval ();
4006 if (i != ((long) (sizeof (long long))))
4008 fprintf (f, "%ld\n", i);
4012 unsigned long i = ulongval ();
4013 if (i != ((long) (sizeof (long long))))
4015 fprintf (f, "%lu\n", i);
4017 exit (ferror (f) || fclose (f) != 0);
4023 rm -f conftest$ac_exeext
4024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4025 (eval $ac_link) 2>&5
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033 (exit $ac_status); }; }; then
4034 ac_cv_sizeof_long_long=`cat conftest.val`
4036 echo "$as_me: program exited with status $ac_status" >&5
4037 echo "$as_me: failed program was:" >&5
4038 cat conftest.$ac_ext >&5
4040 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
4041 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
4042 { (exit 1); exit 1; }; }
4044 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4049 ac_cv_sizeof_long_long=0
4052 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
4053 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
4054 cat >>confdefs.h <<_ACEOF
4055 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4062 if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev/null; then
4066 if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev/null; then
4070 if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev/null; then
4074 if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev/null; then
4078 if expr "$ac_cv_sizeof_long_long" '>=' "$1" >/dev/null; then
4085 echo "$as_me:$LINENO: checking type name for byte" >&5
4086 echo $ECHO_N "checking type name for byte... $ECHO_C" >&6
4087 TYPE_BYTE=`type_name 1`
4088 echo "$as_me:$LINENO: result: $TYPE_BYTE" >&5
4089 echo "${ECHO_T}$TYPE_BYTE" >&6
4090 echo "$as_me:$LINENO: checking type name for word" >&5
4091 echo $ECHO_N "checking type name for word... $ECHO_C" >&6
4092 TYPE_WORD=`type_name 2`
4093 echo "$as_me:$LINENO: result: $TYPE_WORD" >&5
4094 echo "${ECHO_T}$TYPE_WORD" >&6
4095 cat >>confdefs.h <<_ACEOF
4096 #define TYPE_BYTE $TYPE_BYTE
4099 cat >>confdefs.h <<_ACEOF
4100 #define TYPE_WORD $TYPE_WORD
4104 ac_config_files="$ac_config_files Makefile"
4105 cat >confcache <<\_ACEOF
4106 # This file is a shell script that caches the results of configure
4107 # tests run on this system so they can be shared between configure
4108 # scripts and configure runs, see configure's option --config-cache.
4109 # It is not useful on other systems. If it contains results you don't
4110 # want to keep, you may remove or edit it.
4112 # config.status only pays attention to the cache file if you give it
4113 # the --recheck option to rerun configure.
4115 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4116 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4121 # The following way of writing the cache mishandles newlines in values,
4122 # but we know of no workaround that is simple, portable, and efficient.
4123 # So, don't put newlines in cache variables' values.
4124 # Ultrix sh set writes to stderr and can't be redirected directly,
4125 # and sets the high bit in the cache file unless we assign to the vars.
4128 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4130 # `set' does not quote correctly, so add quotes (double-quote
4131 # substitution turns \\\\ into \\, and sed turns \\ into \).
4134 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4137 # `set' quotes correctly as required by POSIX, so do not add quotes.
4139 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4146 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4148 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4150 if cmp -s $cache_file confcache; then :; else
4151 if test -w $cache_file; then
4152 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4153 cat confcache >$cache_file
4155 echo "not updating unwritable cache $cache_file"
4160 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4161 # Let make expand exec_prefix.
4162 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4164 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4165 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4166 # trailing colons and then remove the whole line if VPATH becomes empty
4167 # (actually we leave an empty line to preserve line numbers).
4168 if test "x$srcdir" = x.; then
4169 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4170 s/:*\$(srcdir):*/:/;
4171 s/:*\${srcdir}:*/:/;
4173 s/^\([^=]*=[ ]*\):*/\1/;
4179 DEFS=-DHAVE_CONFIG_H
4183 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4184 # 1. Remove the extension, and $U if already installed.
4185 ac_i=`echo "$ac_i" |
4186 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4188 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4189 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4193 LTLIBOBJS=$ac_ltlibobjs
4197 : ${CONFIG_STATUS=./config.status}
4198 ac_clean_files_save=$ac_clean_files
4199 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4200 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4201 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4202 cat >$CONFIG_STATUS <<_ACEOF
4204 # Generated by $as_me.
4205 # Run this file to recreate the current configuration.
4206 # Compiler output produced by configure, useful for debugging
4207 # configure, is in config.log if it exists.
4210 SHELL=\${CONFIG_SHELL-$SHELL}
4213 cat >>$CONFIG_STATUS <<\_ACEOF
4214 ## --------------------- ##
4215 ## M4sh Initialization. ##
4216 ## --------------------- ##
4218 # Be Bourne compatible
4219 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4222 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4223 # is contrary to our usage. Disable this feature.
4224 alias -g '${1+"$@"}'='"$@"'
4225 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4229 # Support unset when possible.
4230 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4237 # Work around bugs in pre-3.0 UWIN ksh.
4238 $as_unset ENV MAIL MAILPATH
4244 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
4246 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
4247 eval $as_var=C; export $as_var
4253 # Required to use basename.
4254 if expr a : '\(a\)' >/dev/null 2>&1; then
4260 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4261 as_basename=basename
4267 # Name of the executable.
4268 as_me=`$as_basename "$0" ||
4269 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4270 X"$0" : 'X\(//\)$' \| \
4271 X"$0" : 'X\(/\)$' \| \
4272 . : '\(.\)' 2>/dev/null ||
4274 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4275 /^X\/\(\/\/\)$/{ s//\1/; q; }
4276 /^X\/\(\/\).*/{ s//\1/; q; }
4280 # PATH needs CR, and LINENO needs CR and PATH.
4281 # Avoid depending upon Character Ranges.
4282 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4283 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4284 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4285 as_cr_digits='0123456789'
4286 as_cr_alnum=$as_cr_Letters$as_cr_digits
4288 # The user is always right.
4289 if test "${PATH_SEPARATOR+set}" != set; then
4290 echo "#! /bin/sh" >conftest.sh
4291 echo "exit 0" >>conftest.sh
4292 chmod +x conftest.sh
4293 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
4304 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4305 test "x$as_lineno_1" != "x$as_lineno_2" &&
4306 test "x$as_lineno_3" = "x$as_lineno_2" || {
4307 # Find who we are. Look in the path if we contain no path at all
4310 *[\\/]* ) as_myself=$0 ;;
4311 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315 test -z "$as_dir" && as_dir=.
4316 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4321 # We did not find ourselves, most probably we were run as `sh COMMAND'
4322 # in which case we are not to be found in the path.
4323 if test "x$as_myself" = x; then
4326 if test ! -f "$as_myself"; then
4327 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4328 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4329 { (exit 1); exit 1; }; }
4331 case $CONFIG_SHELL in
4333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4334 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4337 test -z "$as_dir" && as_dir=.
4338 for as_base in sh bash ksh sh5; do
4341 if ("$as_dir/$as_base" -c '
4344 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4345 test "x$as_lineno_1" != "x$as_lineno_2" &&
4346 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4347 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4348 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4349 CONFIG_SHELL=$as_dir/$as_base
4351 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4359 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4360 # uniformly replaced by the line number. The first 'sed' inserts a
4361 # line-number line before each line; the second 'sed' does the real
4362 # work. The second script uses 'N' to pair each line-number line
4363 # with the numbered line, and appends trailing '-' during
4364 # substitution so that $LINENO is not a special case at line end.
4365 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4366 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4367 sed '=' <$as_myself |
4372 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4375 s,^['$as_cr_digits']*\n,,
4377 chmod +x $as_me.lineno ||
4378 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4379 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4380 { (exit 1); exit 1; }; }
4382 # Don't try to exec as it changes $[0], causing all sort of problems
4383 # (the dirname of $[0] is not the place where we might find the
4384 # original and so on. Autoconf is especially sensible to this).
4386 # Exit status is that of the last command.
4391 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4392 *c*,-n*) ECHO_N= ECHO_C='
4394 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4395 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4398 if expr a : '\(a\)' >/dev/null 2>&1; then
4404 rm -f conf$$ conf$$.exe conf$$.file
4406 if ln -s conf$$.file conf$$ 2>/dev/null; then
4407 # We could just check for DJGPP; but this test a) works b) is more generic
4408 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4409 if test -f conf$$.exe; then
4410 # Don't use ln at all; we don't have any links
4415 elif ln conf$$.file conf$$ 2>/dev/null; then
4420 rm -f conf$$ conf$$.exe conf$$.file
4422 if mkdir -p . 2>/dev/null; then
4428 as_executable_p="test -f"
4430 # Sed expression to map a string onto a valid CPP name.
4431 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
4433 # Sed expression to map a string onto a valid variable name.
4434 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
4438 # We need space, tab and new line, in precisely that order.
4448 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4449 # report actual input values of CONFIG_FILES etc. instead of their
4450 # values after options handling. Logging --version etc. is OK.
4454 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4455 ## Running $as_me. ##
4460 This file was extended by $as_me, which was
4461 generated by GNU Autoconf 2.54. Invocation command line was
4463 CONFIG_FILES = $CONFIG_FILES
4464 CONFIG_HEADERS = $CONFIG_HEADERS
4465 CONFIG_LINKS = $CONFIG_LINKS
4466 CONFIG_COMMANDS = $CONFIG_COMMANDS
4470 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4474 # Files that config.status was made for.
4475 if test -n "$ac_config_files"; then
4476 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4479 if test -n "$ac_config_headers"; then
4480 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4483 if test -n "$ac_config_links"; then
4484 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4487 if test -n "$ac_config_commands"; then
4488 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4491 cat >>$CONFIG_STATUS <<\_ACEOF
4494 \`$as_me' instantiates files from templates according to the
4495 current configuration.
4497 Usage: $0 [OPTIONS] [FILE]...
4499 -h, --help print this help, then exit
4500 -V, --version print version number, then exit
4501 -d, --debug don't remove temporary files
4502 --recheck update $as_me by reconfiguring in the same conditions
4503 --file=FILE[:TEMPLATE]
4504 instantiate the configuration file FILE
4505 --header=FILE[:TEMPLATE]
4506 instantiate the configuration header FILE
4508 Configuration files:
4511 Configuration headers:
4514 Report bugs to <bug-autoconf@gnu.org>."
4517 cat >>$CONFIG_STATUS <<_ACEOF
4520 configured by $0, generated by GNU Autoconf 2.54,
4521 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4523 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4524 Free Software Foundation, Inc.
4525 This config.status script is free software; the Free Software Foundation
4526 gives unlimited permission to copy, distribute and modify it."
4530 cat >>$CONFIG_STATUS <<\_ACEOF
4531 # If no file are specified by the user, then we need to provide default
4532 # value. By we need to know if files were specified by the user.
4538 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4539 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4547 *) # This is not an option, so the user has probably given explicit
4550 ac_need_defaults=false;;
4554 # Handling of the options.
4556 cat >>$CONFIG_STATUS <<_ACEOF
4557 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4558 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
4559 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
4561 cat >>$CONFIG_STATUS <<\_ACEOF
4562 --version | --vers* | -V )
4563 echo "$ac_cs_version"; exit 0 ;;
4565 # Conflict between --help and --header
4566 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4567 Try \`$0 --help' for more information." >&5
4568 echo "$as_me: error: ambiguous option: $1
4569 Try \`$0 --help' for more information." >&2;}
4570 { (exit 1); exit 1; }; };;
4571 --help | --hel | -h )
4572 echo "$ac_cs_usage"; exit 0 ;;
4573 --debug | --d* | -d )
4575 --file | --fil | --fi | --f )
4577 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4578 ac_need_defaults=false;;
4579 --header | --heade | --head | --hea )
4581 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4582 ac_need_defaults=false;;
4585 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4586 Try \`$0 --help' for more information." >&5
4587 echo "$as_me: error: unrecognized option: $1
4588 Try \`$0 --help' for more information." >&2;}
4589 { (exit 1); exit 1; }; } ;;
4591 *) ac_config_targets="$ac_config_targets $1" ;;
4603 cat >>$CONFIG_STATUS <<\_ACEOF
4604 for ac_config_target in $ac_config_targets
4606 case "$ac_config_target" in
4607 # Handling of arguments.
4608 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4609 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config_in.h" ;;
4610 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4611 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4612 { (exit 1); exit 1; }; };;
4616 # If the user did not use the arguments to specify the items to instantiate,
4617 # then the envvar interface is used. Set only those that are not.
4618 # We use the long form for the default assignment because of an extremely
4619 # bizarre bug on SunOS 4.1.3.
4620 if $ac_need_defaults; then
4621 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4622 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4625 # Create a temporary directory, and hook for its removal unless debugging.
4628 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4629 trap '{ (exit 1); exit 1; }' 1 2 13 15
4632 # Create a (secure) tmp directory for tmp files.
4635 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
4636 test -n "$tmp" && test -d "$tmp"
4639 tmp=$TMPDIR/cs$$-$RANDOM
4640 (umask 077 && mkdir $tmp)
4643 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4644 { (exit 1); exit 1; }
4649 cat >>$CONFIG_STATUS <<_ACEOF
4652 # CONFIG_FILES section.
4655 # No need to generate the scripts if there are no CONFIG_FILES.
4656 # This happens for instance when ./config.status config.h
4657 if test -n "\$CONFIG_FILES"; then
4658 # Protect against being on the right side of a sed subst in config.status.
4659 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4660 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4661 s,@SHELL@,$SHELL,;t t
4662 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4663 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4664 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4665 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4666 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4667 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4668 s,@exec_prefix@,$exec_prefix,;t t
4669 s,@prefix@,$prefix,;t t
4670 s,@program_transform_name@,$program_transform_name,;t t
4671 s,@bindir@,$bindir,;t t
4672 s,@sbindir@,$sbindir,;t t
4673 s,@libexecdir@,$libexecdir,;t t
4674 s,@datadir@,$datadir,;t t
4675 s,@sysconfdir@,$sysconfdir,;t t
4676 s,@sharedstatedir@,$sharedstatedir,;t t
4677 s,@localstatedir@,$localstatedir,;t t
4678 s,@libdir@,$libdir,;t t
4679 s,@includedir@,$includedir,;t t
4680 s,@oldincludedir@,$oldincludedir,;t t
4681 s,@infodir@,$infodir,;t t
4682 s,@mandir@,$mandir,;t t
4683 s,@build_alias@,$build_alias,;t t
4684 s,@host_alias@,$host_alias,;t t
4685 s,@target_alias@,$target_alias,;t t
4687 s,@ECHO_C@,$ECHO_C,;t t
4688 s,@ECHO_N@,$ECHO_N,;t t
4689 s,@ECHO_T@,$ECHO_T,;t t
4692 s,@CFLAGS@,$CFLAGS,;t t
4693 s,@LDFLAGS@,$LDFLAGS,;t t
4694 s,@CPPFLAGS@,$CPPFLAGS,;t t
4695 s,@ac_ct_CC@,$ac_ct_CC,;t t
4696 s,@EXEEXT@,$EXEEXT,;t t
4697 s,@OBJEXT@,$OBJEXT,;t t
4699 s,@EGREP@,$EGREP,;t t
4700 s,@LIBOBJS@,$LIBOBJS,;t t
4701 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4706 cat >>$CONFIG_STATUS <<\_ACEOF
4707 # Split the substitutions into bite-sized pieces for seds with
4708 # small command number limits, like on Digital OSF/1 and HP-UX.
4710 ac_sed_frag=1 # Number of current file.
4711 ac_beg=1 # First line for current file.
4712 ac_end=$ac_max_sed_lines # Line after last line for current file.
4715 while $ac_more_lines; do
4716 if test $ac_beg -gt 1; then
4717 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4719 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4721 if test ! -s $tmp/subs.frag; then
4724 # The purpose of the label and of the branching condition is to
4725 # speed up the sed processing (if there are no `@' at all, there
4726 # is no need to browse any of the substitutions).
4727 # These are the two extra sed commands mentioned above.
4729 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4730 if test -z "$ac_sed_cmds"; then
4731 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4733 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4735 ac_sed_frag=`expr $ac_sed_frag + 1`
4737 ac_end=`expr $ac_end + $ac_max_sed_lines`
4740 if test -z "$ac_sed_cmds"; then
4743 fi # test -n "$CONFIG_FILES"
4746 cat >>$CONFIG_STATUS <<\_ACEOF
4747 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4748 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4750 - | *:- | *:-:* ) # input from stdin
4752 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4753 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4754 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4755 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4756 * ) ac_file_in=$ac_file.in ;;
4759 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4760 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4761 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4762 X"$ac_file" : 'X\(//\)[^/]' \| \
4763 X"$ac_file" : 'X\(//\)$' \| \
4764 X"$ac_file" : 'X\(/\)' \| \
4765 . : '\(.\)' 2>/dev/null ||
4767 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4768 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4769 /^X\(\/\/\)$/{ s//\1/; q; }
4770 /^X\(\/\).*/{ s//\1/; q; }
4772 { if $as_mkdir_p; then
4777 while test ! -d "$as_dir"; do
4778 as_dirs="$as_dir $as_dirs"
4779 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4780 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4781 X"$as_dir" : 'X\(//\)[^/]' \| \
4782 X"$as_dir" : 'X\(//\)$' \| \
4783 X"$as_dir" : 'X\(/\)' \| \
4784 . : '\(.\)' 2>/dev/null ||
4786 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4787 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4788 /^X\(\/\/\)$/{ s//\1/; q; }
4789 /^X\(\/\).*/{ s//\1/; q; }
4792 test ! -n "$as_dirs" || mkdir $as_dirs
4793 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4794 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4795 { (exit 1); exit 1; }; }; }
4799 if test "$ac_dir" != .; then
4800 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4801 # A "../" for each directory in $ac_dir_suffix.
4802 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4804 ac_dir_suffix= ac_top_builddir=
4808 .) # No --srcdir option. We are building in place.
4810 if test -z "$ac_top_builddir"; then
4813 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4815 [\\/]* | ?:[\\/]* ) # Absolute path.
4816 ac_srcdir=$srcdir$ac_dir_suffix;
4817 ac_top_srcdir=$srcdir ;;
4819 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4820 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4822 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
4824 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
4825 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
4826 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
4827 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
4831 if test x"$ac_file" != x-; then
4832 { echo "$as_me:$LINENO: creating $ac_file" >&5
4833 echo "$as_me: creating $ac_file" >&6;}
4836 # Let's still pretend it is `configure' which instantiates (i.e., don't
4837 # use $as_me), people would be surprised to read:
4838 # /* config.h. Generated by config.status. */
4839 if test x"$ac_file" = x-; then
4842 configure_input="$ac_file. "
4844 configure_input=$configure_input"Generated from `echo $ac_file_in |
4845 sed 's,.*/,,'` by configure."
4847 # First look for the input files in the build tree, otherwise in the
4849 ac_file_inputs=`IFS=:
4850 for f in $ac_file_in; do
4852 -) echo $tmp/stdin ;;
4854 # Absolute (can't be DOS-style, as IFS=:)
4855 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4856 echo "$as_me: error: cannot find input file: $f" >&2;}
4857 { (exit 1); exit 1; }; }
4860 if test -f "$f"; then
4863 elif test -f "$srcdir/$f"; then
4868 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4869 echo "$as_me: error: cannot find input file: $f" >&2;}
4870 { (exit 1); exit 1; }; }
4873 done` || { (exit 1); exit 1; }
4875 cat >>$CONFIG_STATUS <<_ACEOF
4879 cat >>$CONFIG_STATUS <<\_ACEOF
4881 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4882 s,@configure_input@,$configure_input,;t t
4883 s,@srcdir@,$ac_srcdir,;t t
4884 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4885 s,@top_srcdir@,$ac_top_srcdir,;t t
4886 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4887 s,@builddir@,$ac_builddir,;t t
4888 s,@abs_builddir@,$ac_abs_builddir,;t t
4889 s,@top_builddir@,$ac_top_builddir,;t t
4890 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4891 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4893 if test x"$ac_file" != x-; then
4894 mv $tmp/out $ac_file
4902 cat >>$CONFIG_STATUS <<\_ACEOF
4905 # CONFIG_HEADER section.
4908 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4909 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4911 # ac_d sets the value in "#define NAME VALUE" lines.
4912 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4913 ac_dB='[ ].*$,\1#\2'
4916 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4917 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4918 ac_uB='$,\1#\2define\3'
4922 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4923 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4925 - | *:- | *:-:* ) # input from stdin
4927 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4928 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4929 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4930 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4931 * ) ac_file_in=$ac_file.in ;;
4934 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4935 echo "$as_me: creating $ac_file" >&6;}
4937 # First look for the input files in the build tree, otherwise in the
4939 ac_file_inputs=`IFS=:
4940 for f in $ac_file_in; do
4942 -) echo $tmp/stdin ;;
4944 # Absolute (can't be DOS-style, as IFS=:)
4945 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4946 echo "$as_me: error: cannot find input file: $f" >&2;}
4947 { (exit 1); exit 1; }; }
4950 if test -f "$f"; then
4953 elif test -f "$srcdir/$f"; then
4958 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4959 echo "$as_me: error: cannot find input file: $f" >&2;}
4960 { (exit 1); exit 1; }; }
4963 done` || { (exit 1); exit 1; }
4964 # Remove the trailing spaces.
4965 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
4969 # Transform confdefs.h into two sed scripts, `conftest.defines' and
4970 # `conftest.undefs', that substitutes the proper values into
4971 # config.h.in to produce config.h. The first handles `#define'
4972 # templates, and the second `#undef' templates.
4973 # And first: Protect against being on the right side of a sed subst in
4974 # config.status. Protect against being in an unquoted here document
4976 rm -f conftest.defines conftest.undefs
4977 # Using a here document instead of a string reduces the quoting nightmare.
4978 # Putting comments in sed scripts is not portable.
4980 # `end' is used to avoid that the second main sed command (meant for
4981 # 0-ary CPP macros) applies to n-ary macro definitions.
4982 # See the Autoconf documentation for `clear'.
4983 cat >confdef2sed.sed <<\_ACEOF
4988 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4990 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4993 # If some macros were called several times there might be several times
4994 # the same #defines, which is useless. Nevertheless, we may not want to
4995 # sort them, since we want the *last* AC-DEFINE to be honored.
4996 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4997 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4998 rm -f confdef2sed.sed
5000 # This sed command replaces #undef with comments. This is necessary, for
5001 # example, in the case of _POSIX_SOURCE, which is predefined and required
5002 # on some systems where configure will not decide to define it.
5003 cat >>conftest.undefs <<\_ACEOF
5004 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5007 # Break up conftest.defines because some shells have a limit on the size
5008 # of here documents, and old seds have small limits too (100 cmds).
5009 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5010 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5011 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5012 echo ' :' >>$CONFIG_STATUS
5014 while grep . conftest.defines >/dev/null
5016 # Write a limited-size here document to $tmp/defines.sed.
5017 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5018 # Speed up: don't consider the non `#define' lines.
5019 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5020 # Work around the forget-to-reset-the-flag bug.
5021 echo 't clr' >>$CONFIG_STATUS
5022 echo ': clr' >>$CONFIG_STATUS
5023 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5025 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5029 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5030 rm -f conftest.defines
5031 mv conftest.tail conftest.defines
5033 rm -f conftest.defines
5034 echo ' fi # grep' >>$CONFIG_STATUS
5035 echo >>$CONFIG_STATUS
5037 # Break up conftest.undefs because some shells have a limit on the size
5038 # of here documents, and old seds have small limits too (100 cmds).
5039 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5041 while grep . conftest.undefs >/dev/null
5043 # Write a limited-size here document to $tmp/undefs.sed.
5044 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5045 # Speed up: don't consider the non `#undef'
5046 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5047 # Work around the forget-to-reset-the-flag bug.
5048 echo 't clr' >>$CONFIG_STATUS
5049 echo ': clr' >>$CONFIG_STATUS
5050 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5052 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5056 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5057 rm -f conftest.undefs
5058 mv conftest.tail conftest.undefs
5060 rm -f conftest.undefs
5062 cat >>$CONFIG_STATUS <<\_ACEOF
5063 # Let's still pretend it is `configure' which instantiates (i.e., don't
5064 # use $as_me), people would be surprised to read:
5065 # /* config.h. Generated by config.status. */
5066 if test x"$ac_file" = x-; then
5067 echo "/* Generated by configure. */" >$tmp/config.h
5069 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5071 cat $tmp/in >>$tmp/config.h
5073 if test x"$ac_file" != x-; then
5074 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
5075 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5076 echo "$as_me: $ac_file is unchanged" >&6;}
5078 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5079 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5080 X"$ac_file" : 'X\(//\)[^/]' \| \
5081 X"$ac_file" : 'X\(//\)$' \| \
5082 X"$ac_file" : 'X\(/\)' \| \
5083 . : '\(.\)' 2>/dev/null ||
5085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5086 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5087 /^X\(\/\/\)$/{ s//\1/; q; }
5088 /^X\(\/\).*/{ s//\1/; q; }
5090 { if $as_mkdir_p; then
5095 while test ! -d "$as_dir"; do
5096 as_dirs="$as_dir $as_dirs"
5097 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5098 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5099 X"$as_dir" : 'X\(//\)[^/]' \| \
5100 X"$as_dir" : 'X\(//\)$' \| \
5101 X"$as_dir" : 'X\(/\)' \| \
5102 . : '\(.\)' 2>/dev/null ||
5104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5105 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5106 /^X\(\/\/\)$/{ s//\1/; q; }
5107 /^X\(\/\).*/{ s//\1/; q; }
5110 test ! -n "$as_dirs" || mkdir $as_dirs
5111 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5112 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5113 { (exit 1); exit 1; }; }; }
5116 mv $tmp/config.h $ac_file
5125 cat >>$CONFIG_STATUS <<\_ACEOF
5127 { (exit 0); exit 0; }
5129 chmod +x $CONFIG_STATUS
5130 ac_clean_files=$ac_clean_files_save
5133 # configure is writing to config.log, and then calls config.status.
5134 # config.status does its own redirection, appending to config.log.
5135 # Unfortunately, on DOS this fails, as config.log is still kept open
5136 # by configure, so config.status won't be able to write to it; its
5137 # output is simply discarded. So we exec the FD to /dev/null,
5138 # effectively closing config.log, so it can be properly (re)opened and
5139 # appended to by config.status. When coming back to configure, we
5140 # need to make the FD available again.
5141 if test "$no_create" != yes; then
5144 $SHELL $CONFIG_STATUS || ac_cs_success=false
5146 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5147 # would make configure fail if this is the last instruction.
5148 $ac_cs_success || { (exit 1); exit 1; }