2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for "chrpath" "0.13".
5 # Report bugs to <pere@hungry.com>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
226 as_executable_p="test -f"
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
236 # We need space, tab and new line, in precisely that order.
246 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247 # so uname gets run too.
248 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
255 ac_default_prefix=/usr/local
256 ac_config_libobj_dir=.
261 SHELL=${CONFIG_SHELL-/bin/sh}
263 # Maximum number of lines to put in a shell here document.
264 # This variable seems obsolete. It should probably be removed, and
265 # only ac_max_sed_lines should be used.
266 : ${ac_max_here_lines=38}
268 # Identity of this package.
269 PACKAGE_NAME='"chrpath"'
270 PACKAGE_TARNAME='-chrpath-'
271 PACKAGE_VERSION='"0.13"'
272 PACKAGE_STRING='"chrpath" "0.13"'
273 PACKAGE_BUGREPORT='pere@hungry.com'
275 ac_unique_file="chrpath.c"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
313 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LDRPATH CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LIBOBJS LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name=s,x,x,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
431 -help | --help | --hel | --he | -h)
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 # Obsolete; use --without-fp.
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
561 -site=* | --site=* | --sit=*)
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 -version | --version | --versio | --versi | --vers | -V)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
782 \`configure' configures "chrpath" "0.13" to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
841 --build=BUILD configure for building on BUILD [guessed]
842 --host=HOST cross-compile to build programs to run on HOST [BUILD]
843 --target=TARGET configure for building compilers for TARGET [HOST]
847 if test -n "$ac_init_help"; then
848 case $ac_init_help in
849 short | recursive ) echo "Configuration of "chrpath" "0.13":";;
854 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
855 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
856 --enable-maintainer-mode enable make rules and dependencies not useful
857 (and sometimes confusing) to the casual installer
860 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
861 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
862 Enable coverage testing
864 Some influential environment variables:
865 CC C compiler command
866 CFLAGS C compiler flags
867 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
868 nonstandard directory <lib dir>
869 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
870 headers in a nonstandard directory <include dir>
873 Use these variables to override the choices made by `configure' or to help
874 it to find libraries and programs with nonstandard names/locations.
876 Report bugs to <pere@hungry.com>.
880 if test "$ac_init_help" = "recursive"; then
881 # If there are subdirs, report their specific --help.
883 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
884 test -d $ac_dir || continue
887 if test "$ac_dir" != .; then
888 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
889 # A "../" for each directory in $ac_dir_suffix.
890 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
892 ac_dir_suffix= ac_top_builddir=
896 .) # No --srcdir option. We are building in place.
898 if test -z "$ac_top_builddir"; then
901 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
903 [\\/]* | ?:[\\/]* ) # Absolute path.
904 ac_srcdir=$srcdir$ac_dir_suffix;
905 ac_top_srcdir=$srcdir ;;
907 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
908 ac_top_srcdir=$ac_top_builddir$srcdir ;;
910 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
912 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
913 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
914 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
915 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
918 # Check for guested configure; otherwise get Cygnus style configure.
919 if test -f $ac_srcdir/configure.gnu; then
921 $SHELL $ac_srcdir/configure.gnu --help=recursive
922 elif test -f $ac_srcdir/configure; then
924 $SHELL $ac_srcdir/configure --help=recursive
925 elif test -f $ac_srcdir/configure.ac ||
926 test -f $ac_srcdir/configure.in; then
930 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
936 test -n "$ac_init_help" && exit 0
937 if $ac_init_version; then
939 "chrpath" configure "0.13"
940 generated by GNU Autoconf 2.57
942 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
943 Free Software Foundation, Inc.
944 This configure script is free software; the Free Software Foundation
945 gives unlimited permission to copy, distribute and modify it.
951 This file contains any messages produced by compilers while
952 running configure, to aid debugging if configure makes a mistake.
954 It was created by "chrpath" $as_me "0.13", which was
955 generated by GNU Autoconf 2.57. Invocation command line was
966 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
967 uname -m = `(uname -m) 2>/dev/null || echo unknown`
968 uname -r = `(uname -r) 2>/dev/null || echo unknown`
969 uname -s = `(uname -s) 2>/dev/null || echo unknown`
970 uname -v = `(uname -v) 2>/dev/null || echo unknown`
972 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
973 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
975 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
976 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
977 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
978 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
979 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
980 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
981 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
989 test -z "$as_dir" && as_dir=.
1005 # Keep a trace of the command line.
1006 # Strip out --no-create and --no-recursion so they do not pile up.
1007 # Strip out --silent because we don't want to record it for future runs.
1008 # Also quote any args containing shell meta-characters.
1009 # Make two passes to allow for proper duplicate-argument suppression.
1014 ac_must_keep_next=false
1020 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1021 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1022 | -silent | --silent | --silen | --sile | --sil)
1024 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1025 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1028 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1030 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1031 if test $ac_must_keep_next = true; then
1032 ac_must_keep_next=false # Got value, back to normal.
1035 *=* | --config-cache | -C | -disable-* | --disable-* \
1036 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1037 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1038 | -with-* | --with-* | -without-* | --without-* | --x)
1039 case "$ac_configure_args0 " in
1040 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1043 -* ) ac_must_keep_next=true ;;
1046 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1047 # Get rid of the leading space.
1053 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1054 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1056 # When interrupted or exit'd, cleanup temporary files, and complete
1057 # config.log. We remove comments because anyway the quotes in there
1058 # would cause problems or look ugly.
1059 # WARNING: Be sure not to use single quotes in there, as some shells,
1060 # such as our DU 5.0 friend, will then `close' the trap.
1061 trap 'exit_status=$?
1062 # Save into config.log some information that might help in debugging.
1067 ## ---------------- ##
1068 ## Cache variables. ##
1069 ## ---------------- ##
1072 # The following way of writing the cache mishandles newlines in values,
1075 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1078 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1079 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1083 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1090 ## ----------------- ##
1091 ## Output variables. ##
1092 ## ----------------- ##
1095 for ac_var in $ac_subst_vars
1097 eval ac_val=$`echo $ac_var`
1098 echo "$ac_var='"'"'$ac_val'"'"'"
1102 if test -n "$ac_subst_files"; then
1109 for ac_var in $ac_subst_files
1111 eval ac_val=$`echo $ac_var`
1112 echo "$ac_var='"'"'$ac_val'"'"'"
1117 if test -s confdefs.h; then
1124 sed "/^$/d" confdefs.h | sort
1127 test "$ac_signal" != 0 &&
1128 echo "$as_me: caught signal $ac_signal"
1129 echo "$as_me: exit $exit_status"
1131 rm -f core *.core &&
1132 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1135 for ac_signal in 1 2 13 15; do
1136 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1140 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1141 rm -rf conftest* confdefs.h
1142 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1145 # Predefined preprocessor variables.
1147 cat >>confdefs.h <<_ACEOF
1148 #define PACKAGE_NAME "$PACKAGE_NAME"
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_STRING "$PACKAGE_STRING"
1167 cat >>confdefs.h <<_ACEOF
1168 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1172 # Let the site file select an alternate cache file if it wants to.
1173 # Prefer explicitly selected file to automatically selected ones.
1174 if test -z "$CONFIG_SITE"; then
1175 if test "x$prefix" != xNONE; then
1176 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1178 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1181 for ac_site_file in $CONFIG_SITE; do
1182 if test -r "$ac_site_file"; then
1183 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1184 echo "$as_me: loading site script $ac_site_file" >&6;}
1185 sed 's/^/| /' "$ac_site_file" >&5
1190 if test -r "$cache_file"; then
1191 # Some versions of bash will fail to source /dev/null (special
1192 # files actually), so we avoid doing that.
1193 if test -f "$cache_file"; then
1194 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1195 echo "$as_me: loading cache $cache_file" >&6;}
1197 [\\/]* | ?:[\\/]* ) . $cache_file;;
1198 *) . ./$cache_file;;
1202 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1203 echo "$as_me: creating cache $cache_file" >&6;}
1207 # Check that the precious variables saved in the cache have kept the same
1209 ac_cache_corrupted=false
1210 for ac_var in `(set) 2>&1 |
1211 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1212 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1213 eval ac_new_set=\$ac_env_${ac_var}_set
1214 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1215 eval ac_new_val="\$ac_env_${ac_var}_value"
1216 case $ac_old_set,$ac_new_set in
1218 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1219 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1220 ac_cache_corrupted=: ;;
1222 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1223 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1224 ac_cache_corrupted=: ;;
1227 if test "x$ac_old_val" != "x$ac_new_val"; then
1228 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1229 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1230 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1231 echo "$as_me: former value: $ac_old_val" >&2;}
1232 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1233 echo "$as_me: current value: $ac_new_val" >&2;}
1234 ac_cache_corrupted=:
1237 # Pass precious variables to config.status.
1238 if test "$ac_new_set" = set; then
1240 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1241 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1242 *) ac_arg=$ac_var=$ac_new_val ;;
1244 case " $ac_configure_args " in
1245 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1246 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1250 if $ac_cache_corrupted; then
1251 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1252 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1253 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1254 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1255 { (exit 1); exit 1; }; }
1259 ac_cpp='$CPP $CPPFLAGS'
1260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1292 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1293 if test -f $ac_dir/install-sh; then
1295 ac_install_sh="$ac_aux_dir/install-sh -c"
1297 elif test -f $ac_dir/install.sh; then
1299 ac_install_sh="$ac_aux_dir/install.sh -c"
1301 elif test -f $ac_dir/shtool; then
1303 ac_install_sh="$ac_aux_dir/shtool install -c"
1307 if test -z "$ac_aux_dir"; then
1308 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1309 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1310 { (exit 1); exit 1; }; }
1312 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1313 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1314 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1316 # Make sure we can run config.sub.
1317 $ac_config_sub sun4 >/dev/null 2>&1 ||
1318 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1319 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1320 { (exit 1); exit 1; }; }
1322 echo "$as_me:$LINENO: checking build system type" >&5
1323 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1324 if test "${ac_cv_build+set}" = set; then
1325 echo $ECHO_N "(cached) $ECHO_C" >&6
1327 ac_cv_build_alias=$build_alias
1328 test -z "$ac_cv_build_alias" &&
1329 ac_cv_build_alias=`$ac_config_guess`
1330 test -z "$ac_cv_build_alias" &&
1331 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1332 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1333 { (exit 1); exit 1; }; }
1334 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1335 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1336 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1337 { (exit 1); exit 1; }; }
1340 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1341 echo "${ECHO_T}$ac_cv_build" >&6
1343 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1344 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1345 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1348 echo "$as_me:$LINENO: checking host system type" >&5
1349 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1350 if test "${ac_cv_host+set}" = set; then
1351 echo $ECHO_N "(cached) $ECHO_C" >&6
1353 ac_cv_host_alias=$host_alias
1354 test -z "$ac_cv_host_alias" &&
1355 ac_cv_host_alias=$ac_cv_build_alias
1356 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1357 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1358 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1359 { (exit 1); exit 1; }; }
1362 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1363 echo "${ECHO_T}$ac_cv_host" >&6
1365 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1366 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1367 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1370 echo "$as_me:$LINENO: checking target system type" >&5
1371 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1372 if test "${ac_cv_target+set}" = set; then
1373 echo $ECHO_N "(cached) $ECHO_C" >&6
1375 ac_cv_target_alias=$target_alias
1376 test "x$ac_cv_target_alias" = "x" &&
1377 ac_cv_target_alias=$ac_cv_host_alias
1378 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1379 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1380 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1381 { (exit 1); exit 1; }; }
1384 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1385 echo "${ECHO_T}$ac_cv_target" >&6
1386 target=$ac_cv_target
1387 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1388 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1389 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1392 # The aliases save the names the user supplied, while $host etc.
1393 # will get canonicalized.
1394 test -n "$target_alias" &&
1395 test "$program_prefix$program_suffix$program_transform_name" = \
1397 program_prefix=${target_alias}-
1399 # Find a good install program. We prefer a C program (faster),
1400 # so one script is as good as another. But avoid the broken or
1401 # incompatible versions:
1402 # SysV /etc/install, /usr/sbin/install
1403 # SunOS /usr/etc/install
1404 # IRIX /sbin/install
1406 # AmigaOS /C/install, which installs bootblocks on floppy discs
1407 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1408 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1409 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1410 # ./install, which can be erroneously created by make from ./install.sh.
1411 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1412 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1413 if test -z "$INSTALL"; then
1414 if test "${ac_cv_path_install+set}" = set; then
1415 echo $ECHO_N "(cached) $ECHO_C" >&6
1417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1421 test -z "$as_dir" && as_dir=.
1422 # Account for people who put trailing slashes in PATH elements.
1424 ./ | .// | /cC/* | \
1425 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1428 # OSF1 and SCO ODT 3.0 have their own names for install.
1429 # Don't use installbsd from OSF since it installs stuff as root
1431 for ac_prog in ginstall scoinst install; do
1432 for ac_exec_ext in '' $ac_executable_extensions; do
1433 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1434 if test $ac_prog = install &&
1435 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1436 # AIX install. It has an incompatible calling convention.
1438 elif test $ac_prog = install &&
1439 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1440 # program-specific install script used by HP pwplus--don't use.
1443 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1455 if test "${ac_cv_path_install+set}" = set; then
1456 INSTALL=$ac_cv_path_install
1458 # As a last resort, use the slow shell script. We don't cache a
1459 # path for INSTALL within a source directory, because that will
1460 # break other packages using the cache if that directory is
1461 # removed, or if the path is relative.
1462 INSTALL=$ac_install_sh
1465 echo "$as_me:$LINENO: result: $INSTALL" >&5
1466 echo "${ECHO_T}$INSTALL" >&6
1468 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1469 # It thinks the first close brace ends the variable substitution.
1470 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1472 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1474 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1476 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1477 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1480 echo timestamp > conftestfile
1481 # Do `set' in a subshell so we don't clobber the current shell's
1482 # arguments. Must try -L first in case configure is actually a
1483 # symlink; some systems play weird games with the mod time of symlinks
1484 # (eg FreeBSD returns the mod time of the symlink's containing
1487 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1488 if test "$*" = "X"; then
1490 set X `ls -t $srcdir/configure conftestfile`
1492 if test "$*" != "X $srcdir/configure conftestfile" \
1493 && test "$*" != "X conftestfile $srcdir/configure"; then
1495 # If neither matched, then we have a broken ls. This can happen
1496 # if, for instance, CONFIG_SHELL is bash and it inherits a
1497 # broken ls alias from the environment. This has actually
1498 # happened. Such a system could not be considered "sane".
1499 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1500 alias in your environment" >&5
1501 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1502 alias in your environment" >&2;}
1503 { (exit 1); exit 1; }; }
1506 test "$2" = conftestfile
1512 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1513 Check your system clock" >&5
1514 echo "$as_me: error: newly created file is older than distributed files!
1515 Check your system clock" >&2;}
1516 { (exit 1); exit 1; }; }
1519 echo "$as_me:$LINENO: result: yes" >&5
1520 echo "${ECHO_T}yes" >&6
1521 test "$program_prefix" != NONE &&
1522 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1523 # Use a double $ so make ignores it.
1524 test "$program_suffix" != NONE &&
1525 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1526 # Double any \ or $. echo might interpret backslashes.
1527 # By default was `s,x,x', remove it if useless.
1528 cat <<\_ACEOF >conftest.sed
1529 s/[\\$]/&&/g;s/;s,x,x,$//
1531 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1534 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1535 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1536 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1537 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1538 echo $ECHO_N "(cached) $ECHO_C" >&6
1540 cat >conftest.make <<\_ACEOF
1542 @echo 'ac_maketemp="$(MAKE)"'
1544 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1545 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1546 if test -n "$ac_maketemp"; then
1547 eval ac_cv_prog_make_${ac_make}_set=yes
1549 eval ac_cv_prog_make_${ac_make}_set=no
1553 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1554 echo "$as_me:$LINENO: result: yes" >&5
1555 echo "${ECHO_T}yes" >&6
1558 echo "$as_me:$LINENO: result: no" >&5
1559 echo "${ECHO_T}no" >&6
1560 SET_MAKE="MAKE=${MAKE-make}"
1568 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1569 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1570 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1571 { (exit 1); exit 1; }; }
1574 cat >>confdefs.h <<_ACEOF
1575 #define PACKAGE "$PACKAGE"
1579 cat >>confdefs.h <<_ACEOF
1580 #define VERSION "$VERSION"
1585 missing_dir=`cd $ac_aux_dir && pwd`
1586 echo "$as_me:$LINENO: checking for working aclocal" >&5
1587 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
1588 # Run test in a subshell; some versions of sh will print an error if
1589 # an executable is not found, even if stderr is redirected.
1590 # Redirect stdin to placate older versions of autoconf. Sigh.
1591 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1593 echo "$as_me:$LINENO: result: found" >&5
1594 echo "${ECHO_T}found" >&6
1596 ACLOCAL="$missing_dir/missing aclocal"
1597 echo "$as_me:$LINENO: result: missing" >&5
1598 echo "${ECHO_T}missing" >&6
1601 echo "$as_me:$LINENO: checking for working autoconf" >&5
1602 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1603 # Run test in a subshell; some versions of sh will print an error if
1604 # an executable is not found, even if stderr is redirected.
1605 # Redirect stdin to placate older versions of autoconf. Sigh.
1606 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1608 echo "$as_me:$LINENO: result: found" >&5
1609 echo "${ECHO_T}found" >&6
1611 AUTOCONF="$missing_dir/missing autoconf"
1612 echo "$as_me:$LINENO: result: missing" >&5
1613 echo "${ECHO_T}missing" >&6
1616 echo "$as_me:$LINENO: checking for working automake" >&5
1617 echo $ECHO_N "checking for working automake... $ECHO_C" >&6
1618 # Run test in a subshell; some versions of sh will print an error if
1619 # an executable is not found, even if stderr is redirected.
1620 # Redirect stdin to placate older versions of autoconf. Sigh.
1621 if (automake --version) < /dev/null > /dev/null 2>&1; then
1623 echo "$as_me:$LINENO: result: found" >&5
1624 echo "${ECHO_T}found" >&6
1626 AUTOMAKE="$missing_dir/missing automake"
1627 echo "$as_me:$LINENO: result: missing" >&5
1628 echo "${ECHO_T}missing" >&6
1631 echo "$as_me:$LINENO: checking for working autoheader" >&5
1632 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1633 # Run test in a subshell; some versions of sh will print an error if
1634 # an executable is not found, even if stderr is redirected.
1635 # Redirect stdin to placate older versions of autoconf. Sigh.
1636 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1637 AUTOHEADER=autoheader
1638 echo "$as_me:$LINENO: result: found" >&5
1639 echo "${ECHO_T}found" >&6
1641 AUTOHEADER="$missing_dir/missing autoheader"
1642 echo "$as_me:$LINENO: result: missing" >&5
1643 echo "${ECHO_T}missing" >&6
1646 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1647 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1648 # Run test in a subshell; some versions of sh will print an error if
1649 # an executable is not found, even if stderr is redirected.
1650 # Redirect stdin to placate older versions of autoconf. Sigh.
1651 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1653 echo "$as_me:$LINENO: result: found" >&5
1654 echo "${ECHO_T}found" >&6
1656 MAKEINFO="$missing_dir/missing makeinfo"
1657 echo "$as_me:$LINENO: result: missing" >&5
1658 echo "${ECHO_T}missing" >&6
1665 ac_config_headers="$ac_config_headers config.h"
1667 ac_config_commands="$ac_config_commands default-1"
1670 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1671 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1672 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1673 if test "${enable_maintainer_mode+set}" = set; then
1674 enableval="$enable_maintainer_mode"
1675 USE_MAINTAINER_MODE=$enableval
1677 USE_MAINTAINER_MODE=no
1679 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1680 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1683 if test $USE_MAINTAINER_MODE = yes; then
1684 MAINTAINER_MODE_TRUE=
1685 MAINTAINER_MODE_FALSE='#'
1687 MAINTAINER_MODE_TRUE='#'
1688 MAINTAINER_MODE_FALSE=
1690 MAINT=$MAINTAINER_MODE_TRUE
1702 # Hm, this seem to set runpath on ia64, not rpath
1706 # No idea how to add rpath/runpath on Darwin
1717 ac_cpp='$CPP $CPPFLAGS'
1718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1721 if test -n "$ac_tool_prefix"; then
1722 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1723 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1724 echo "$as_me:$LINENO: checking for $ac_word" >&5
1725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1726 if test "${ac_cv_prog_CC+set}" = set; then
1727 echo $ECHO_N "(cached) $ECHO_C" >&6
1729 if test -n "$CC"; then
1730 ac_cv_prog_CC="$CC" # Let the user override the test.
1732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1736 test -z "$as_dir" && as_dir=.
1737 for ac_exec_ext in '' $ac_executable_extensions; do
1738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1739 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1749 if test -n "$CC"; then
1750 echo "$as_me:$LINENO: result: $CC" >&5
1751 echo "${ECHO_T}$CC" >&6
1753 echo "$as_me:$LINENO: result: no" >&5
1754 echo "${ECHO_T}no" >&6
1758 if test -z "$ac_cv_prog_CC"; then
1760 # Extract the first word of "gcc", so it can be a program name with args.
1761 set dummy gcc; ac_word=$2
1762 echo "$as_me:$LINENO: checking for $ac_word" >&5
1763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1764 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1765 echo $ECHO_N "(cached) $ECHO_C" >&6
1767 if test -n "$ac_ct_CC"; then
1768 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1774 test -z "$as_dir" && as_dir=.
1775 for ac_exec_ext in '' $ac_executable_extensions; do
1776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1777 ac_cv_prog_ac_ct_CC="gcc"
1778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1786 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1787 if test -n "$ac_ct_CC"; then
1788 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1789 echo "${ECHO_T}$ac_ct_CC" >&6
1791 echo "$as_me:$LINENO: result: no" >&5
1792 echo "${ECHO_T}no" >&6
1800 if test -z "$CC"; then
1801 if test -n "$ac_tool_prefix"; then
1802 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1803 set dummy ${ac_tool_prefix}cc; ac_word=$2
1804 echo "$as_me:$LINENO: checking for $ac_word" >&5
1805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1806 if test "${ac_cv_prog_CC+set}" = set; then
1807 echo $ECHO_N "(cached) $ECHO_C" >&6
1809 if test -n "$CC"; then
1810 ac_cv_prog_CC="$CC" # Let the user override the test.
1812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1816 test -z "$as_dir" && as_dir=.
1817 for ac_exec_ext in '' $ac_executable_extensions; do
1818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1819 ac_cv_prog_CC="${ac_tool_prefix}cc"
1820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1829 if test -n "$CC"; then
1830 echo "$as_me:$LINENO: result: $CC" >&5
1831 echo "${ECHO_T}$CC" >&6
1833 echo "$as_me:$LINENO: result: no" >&5
1834 echo "${ECHO_T}no" >&6
1838 if test -z "$ac_cv_prog_CC"; then
1840 # Extract the first word of "cc", so it can be a program name with args.
1841 set dummy cc; ac_word=$2
1842 echo "$as_me:$LINENO: checking for $ac_word" >&5
1843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1844 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1845 echo $ECHO_N "(cached) $ECHO_C" >&6
1847 if test -n "$ac_ct_CC"; then
1848 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1854 test -z "$as_dir" && as_dir=.
1855 for ac_exec_ext in '' $ac_executable_extensions; do
1856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1857 ac_cv_prog_ac_ct_CC="cc"
1858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1866 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1867 if test -n "$ac_ct_CC"; then
1868 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1869 echo "${ECHO_T}$ac_ct_CC" >&6
1871 echo "$as_me:$LINENO: result: no" >&5
1872 echo "${ECHO_T}no" >&6
1881 if test -z "$CC"; then
1882 # Extract the first word of "cc", so it can be a program name with args.
1883 set dummy cc; ac_word=$2
1884 echo "$as_me:$LINENO: checking for $ac_word" >&5
1885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1886 if test "${ac_cv_prog_CC+set}" = set; then
1887 echo $ECHO_N "(cached) $ECHO_C" >&6
1889 if test -n "$CC"; then
1890 ac_cv_prog_CC="$CC" # Let the user override the test.
1893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897 test -z "$as_dir" && as_dir=.
1898 for ac_exec_ext in '' $ac_executable_extensions; do
1899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1900 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1901 ac_prog_rejected=yes
1905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1911 if test $ac_prog_rejected = yes; then
1912 # We found a bogon in the path, so make sure we never use it.
1913 set dummy $ac_cv_prog_CC
1915 if test $# != 0; then
1916 # We chose a different compiler from the bogus one.
1917 # However, it has the same basename, so the bogon will be chosen
1918 # first if we set CC to just the basename; use the full file name.
1920 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1926 if test -n "$CC"; then
1927 echo "$as_me:$LINENO: result: $CC" >&5
1928 echo "${ECHO_T}$CC" >&6
1930 echo "$as_me:$LINENO: result: no" >&5
1931 echo "${ECHO_T}no" >&6
1935 if test -z "$CC"; then
1936 if test -n "$ac_tool_prefix"; then
1939 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1940 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1941 echo "$as_me:$LINENO: checking for $ac_word" >&5
1942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1943 if test "${ac_cv_prog_CC+set}" = set; then
1944 echo $ECHO_N "(cached) $ECHO_C" >&6
1946 if test -n "$CC"; then
1947 ac_cv_prog_CC="$CC" # Let the user override the test.
1949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1953 test -z "$as_dir" && as_dir=.
1954 for ac_exec_ext in '' $ac_executable_extensions; do
1955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1956 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1966 if test -n "$CC"; then
1967 echo "$as_me:$LINENO: result: $CC" >&5
1968 echo "${ECHO_T}$CC" >&6
1970 echo "$as_me:$LINENO: result: no" >&5
1971 echo "${ECHO_T}no" >&6
1974 test -n "$CC" && break
1977 if test -z "$CC"; then
1981 # Extract the first word of "$ac_prog", so it can be a program name with args.
1982 set dummy $ac_prog; ac_word=$2
1983 echo "$as_me:$LINENO: checking for $ac_word" >&5
1984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1985 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1986 echo $ECHO_N "(cached) $ECHO_C" >&6
1988 if test -n "$ac_ct_CC"; then
1989 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995 test -z "$as_dir" && as_dir=.
1996 for ac_exec_ext in '' $ac_executable_extensions; do
1997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1998 ac_cv_prog_ac_ct_CC="$ac_prog"
1999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2007 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2008 if test -n "$ac_ct_CC"; then
2009 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2010 echo "${ECHO_T}$ac_ct_CC" >&6
2012 echo "$as_me:$LINENO: result: no" >&5
2013 echo "${ECHO_T}no" >&6
2016 test -n "$ac_ct_CC" && break
2025 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2026 See \`config.log' for more details." >&5
2027 echo "$as_me: error: no acceptable C compiler found in \$PATH
2028 See \`config.log' for more details." >&2;}
2029 { (exit 1); exit 1; }; }
2031 # Provide some information about the compiler.
2032 echo "$as_me:$LINENO:" \
2033 "checking for C compiler version" >&5
2034 ac_compiler=`set X $ac_compile; echo $2`
2035 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2036 (eval $ac_compiler --version </dev/null >&5) 2>&5
2038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2039 (exit $ac_status); }
2040 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2041 (eval $ac_compiler -v </dev/null >&5) 2>&5
2043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2044 (exit $ac_status); }
2045 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2046 (eval $ac_compiler -V </dev/null >&5) 2>&5
2048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049 (exit $ac_status); }
2051 cat >conftest.$ac_ext <<_ACEOF
2052 #line $LINENO "configure"
2055 cat confdefs.h >>conftest.$ac_ext
2056 cat >>conftest.$ac_ext <<_ACEOF
2057 /* end confdefs.h. */
2067 ac_clean_files_save=$ac_clean_files
2068 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2069 # Try to create an executable without -o first, disregard a.out.
2070 # It will help us diagnose broken compilers, and finding out an intuition
2072 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2073 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2074 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2075 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2076 (eval $ac_link_default) 2>&5
2078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079 (exit $ac_status); }; then
2080 # Find the output, starting from the most likely. This scheme is
2081 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2084 # Be careful to initialize this variable, since it used to be cached.
2085 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2087 # b.out is created by i960 compilers.
2088 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2090 test -f "$ac_file" || continue
2092 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2095 # This is the source file.
2098 # We found the default executable, but exeext='' is most
2102 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2103 # FIXME: I believe we export ac_cv_exeext for Libtool,
2104 # but it would be cool to find out if it's true. Does anybody
2105 # maintain Libtool? --akim.
2113 echo "$as_me: failed program was:" >&5
2114 sed 's/^/| /' conftest.$ac_ext >&5
2116 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2117 See \`config.log' for more details." >&5
2118 echo "$as_me: error: C compiler cannot create executables
2119 See \`config.log' for more details." >&2;}
2120 { (exit 77); exit 77; }; }
2123 ac_exeext=$ac_cv_exeext
2124 echo "$as_me:$LINENO: result: $ac_file" >&5
2125 echo "${ECHO_T}$ac_file" >&6
2127 # Check the compiler produces executables we can run. If not, either
2128 # the compiler is broken, or we cross compile.
2129 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2130 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2131 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2132 # If not cross compiling, check that we can run a simple program.
2133 if test "$cross_compiling" != yes; then
2134 if { ac_try='./$ac_file'
2135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); }; }; then
2142 if test "$cross_compiling" = maybe; then
2145 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2146 If you meant to cross compile, use \`--host'.
2147 See \`config.log' for more details." >&5
2148 echo "$as_me: error: cannot run C compiled programs.
2149 If you meant to cross compile, use \`--host'.
2150 See \`config.log' for more details." >&2;}
2151 { (exit 1); exit 1; }; }
2155 echo "$as_me:$LINENO: result: yes" >&5
2156 echo "${ECHO_T}yes" >&6
2158 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2159 ac_clean_files=$ac_clean_files_save
2160 # Check the compiler produces executables we can run. If not, either
2161 # the compiler is broken, or we cross compile.
2162 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2163 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2164 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2165 echo "${ECHO_T}$cross_compiling" >&6
2167 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2168 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2170 (eval $ac_link) 2>&5
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); }; then
2174 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2175 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2176 # work properly (i.e., refer to `conftest.exe'), while it won't with
2178 for ac_file in conftest.exe conftest conftest.*; do
2179 test -f "$ac_file" || continue
2181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2182 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2189 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2190 See \`config.log' for more details." >&5
2191 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2192 See \`config.log' for more details." >&2;}
2193 { (exit 1); exit 1; }; }
2196 rm -f conftest$ac_cv_exeext
2197 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2198 echo "${ECHO_T}$ac_cv_exeext" >&6
2200 rm -f conftest.$ac_ext
2201 EXEEXT=$ac_cv_exeext
2203 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2204 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2205 if test "${ac_cv_objext+set}" = set; then
2206 echo $ECHO_N "(cached) $ECHO_C" >&6
2208 cat >conftest.$ac_ext <<_ACEOF
2209 #line $LINENO "configure"
2212 cat confdefs.h >>conftest.$ac_ext
2213 cat >>conftest.$ac_ext <<_ACEOF
2214 /* end confdefs.h. */
2224 rm -f conftest.o conftest.obj
2225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2226 (eval $ac_compile) 2>&5
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; then
2230 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2232 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2233 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2238 echo "$as_me: failed program was:" >&5
2239 sed 's/^/| /' conftest.$ac_ext >&5
2241 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2242 See \`config.log' for more details." >&5
2243 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2244 See \`config.log' for more details." >&2;}
2245 { (exit 1); exit 1; }; }
2248 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2250 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2251 echo "${ECHO_T}$ac_cv_objext" >&6
2252 OBJEXT=$ac_cv_objext
2254 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2255 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2256 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
2259 cat >conftest.$ac_ext <<_ACEOF
2260 #line $LINENO "configure"
2263 cat confdefs.h >>conftest.$ac_ext
2264 cat >>conftest.$ac_ext <<_ACEOF
2265 /* end confdefs.h. */
2278 rm -f conftest.$ac_objext
2279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2280 (eval $ac_compile) 2>&5
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); } &&
2284 { ac_try='test -s conftest.$ac_objext'
2285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289 (exit $ac_status); }; }; then
2292 echo "$as_me: failed program was:" >&5
2293 sed 's/^/| /' conftest.$ac_ext >&5
2297 rm -f conftest.$ac_objext conftest.$ac_ext
2298 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2301 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2302 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2303 GCC=`test $ac_compiler_gnu = yes && echo yes`
2304 ac_test_CFLAGS=${CFLAGS+set}
2305 ac_save_CFLAGS=$CFLAGS
2307 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2308 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2309 if test "${ac_cv_prog_cc_g+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
2312 cat >conftest.$ac_ext <<_ACEOF
2313 #line $LINENO "configure"
2316 cat confdefs.h >>conftest.$ac_ext
2317 cat >>conftest.$ac_ext <<_ACEOF
2318 /* end confdefs.h. */
2328 rm -f conftest.$ac_objext
2329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2330 (eval $ac_compile) 2>&5
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); } &&
2334 { ac_try='test -s conftest.$ac_objext'
2335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); }; }; then
2342 echo "$as_me: failed program was:" >&5
2343 sed 's/^/| /' conftest.$ac_ext >&5
2347 rm -f conftest.$ac_objext conftest.$ac_ext
2349 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2350 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2351 if test "$ac_test_CFLAGS" = set; then
2352 CFLAGS=$ac_save_CFLAGS
2353 elif test $ac_cv_prog_cc_g = yes; then
2354 if test "$GCC" = yes; then
2360 if test "$GCC" = yes; then
2366 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2367 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2368 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2369 echo $ECHO_N "(cached) $ECHO_C" >&6
2371 ac_cv_prog_cc_stdc=no
2373 cat >conftest.$ac_ext <<_ACEOF
2374 #line $LINENO "configure"
2377 cat confdefs.h >>conftest.$ac_ext
2378 cat >>conftest.$ac_ext <<_ACEOF
2379 /* end confdefs.h. */
2382 #include <sys/types.h>
2383 #include <sys/stat.h>
2384 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2385 struct buf { int x; };
2386 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2387 static char *e (p, i)
2393 static char *f (char * (*g) (char **, int), char **p, ...)
2398 s = g (p, va_arg (v,int));
2402 int test (int i, double x);
2403 struct s1 {int (*f) (int a);};
2404 struct s2 {int (*f) (double a);};
2405 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2411 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2416 # Don't try gcc -ansi; that turns off useful extensions and
2417 # breaks some systems' header files.
2418 # AIX -qlanglvl=ansi
2419 # Ultrix and OSF/1 -std1
2420 # HP-UX 10.20 and later -Ae
2421 # HP-UX older versions -Aa -D_HPUX_SOURCE
2422 # SVR4 -Xc -D__EXTENSIONS__
2423 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2425 CC="$ac_save_CC $ac_arg"
2426 rm -f conftest.$ac_objext
2427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2428 (eval $ac_compile) 2>&5
2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431 (exit $ac_status); } &&
2432 { ac_try='test -s conftest.$ac_objext'
2433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); }; }; then
2438 ac_cv_prog_cc_stdc=$ac_arg
2441 echo "$as_me: failed program was:" >&5
2442 sed 's/^/| /' conftest.$ac_ext >&5
2445 rm -f conftest.$ac_objext
2447 rm -f conftest.$ac_ext conftest.$ac_objext
2452 case "x$ac_cv_prog_cc_stdc" in
2454 echo "$as_me:$LINENO: result: none needed" >&5
2455 echo "${ECHO_T}none needed" >&6 ;;
2457 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2458 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2459 CC="$CC $ac_cv_prog_cc_stdc" ;;
2462 # Some people use a C++ compiler to compile C. Since we use `exit',
2463 # in C++ we need to declare it. In case someone uses the same compiler
2464 # for both compiling C and C++ we need to have the C++ compiler decide
2465 # the declaration of exit, since it's the most demanding environment.
2466 cat >conftest.$ac_ext <<_ACEOF
2471 rm -f conftest.$ac_objext
2472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2473 (eval $ac_compile) 2>&5
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); } &&
2477 { ac_try='test -s conftest.$ac_objext'
2478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); }; }; then
2483 for ac_declaration in \
2485 'extern "C" void std::exit (int) throw (); using std::exit;' \
2486 'extern "C" void std::exit (int); using std::exit;' \
2487 'extern "C" void exit (int) throw ();' \
2488 'extern "C" void exit (int);' \
2491 cat >conftest.$ac_ext <<_ACEOF
2492 #line $LINENO "configure"
2495 cat confdefs.h >>conftest.$ac_ext
2496 cat >>conftest.$ac_ext <<_ACEOF
2497 /* end confdefs.h. */
2508 rm -f conftest.$ac_objext
2509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2510 (eval $ac_compile) 2>&5
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); } &&
2514 { ac_try='test -s conftest.$ac_objext'
2515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); }; }; then
2522 echo "$as_me: failed program was:" >&5
2523 sed 's/^/| /' conftest.$ac_ext >&5
2527 rm -f conftest.$ac_objext conftest.$ac_ext
2528 cat >conftest.$ac_ext <<_ACEOF
2529 #line $LINENO "configure"
2532 cat confdefs.h >>conftest.$ac_ext
2533 cat >>conftest.$ac_ext <<_ACEOF
2534 /* end confdefs.h. */
2544 rm -f conftest.$ac_objext
2545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2546 (eval $ac_compile) 2>&5
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); } &&
2550 { ac_try='test -s conftest.$ac_objext'
2551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); }; }; then
2558 echo "$as_me: failed program was:" >&5
2559 sed 's/^/| /' conftest.$ac_ext >&5
2562 rm -f conftest.$ac_objext conftest.$ac_ext
2565 if test -n "$ac_declaration"; then
2566 echo '#ifdef __cplusplus' >>confdefs.h
2567 echo $ac_declaration >>confdefs.h
2568 echo '#endif' >>confdefs.h
2572 echo "$as_me: failed program was:" >&5
2573 sed 's/^/| /' conftest.$ac_ext >&5
2576 rm -f conftest.$ac_objext conftest.$ac_ext
2578 ac_cpp='$CPP $CPPFLAGS'
2579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2583 # Find a good install program. We prefer a C program (faster),
2584 # so one script is as good as another. But avoid the broken or
2585 # incompatible versions:
2586 # SysV /etc/install, /usr/sbin/install
2587 # SunOS /usr/etc/install
2588 # IRIX /sbin/install
2590 # AmigaOS /C/install, which installs bootblocks on floppy discs
2591 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2592 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2593 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2594 # ./install, which can be erroneously created by make from ./install.sh.
2595 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2596 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2597 if test -z "$INSTALL"; then
2598 if test "${ac_cv_path_install+set}" = set; then
2599 echo $ECHO_N "(cached) $ECHO_C" >&6
2601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605 test -z "$as_dir" && as_dir=.
2606 # Account for people who put trailing slashes in PATH elements.
2608 ./ | .// | /cC/* | \
2609 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2612 # OSF1 and SCO ODT 3.0 have their own names for install.
2613 # Don't use installbsd from OSF since it installs stuff as root
2615 for ac_prog in ginstall scoinst install; do
2616 for ac_exec_ext in '' $ac_executable_extensions; do
2617 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2618 if test $ac_prog = install &&
2619 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2620 # AIX install. It has an incompatible calling convention.
2622 elif test $ac_prog = install &&
2623 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2624 # program-specific install script used by HP pwplus--don't use.
2627 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2639 if test "${ac_cv_path_install+set}" = set; then
2640 INSTALL=$ac_cv_path_install
2642 # As a last resort, use the slow shell script. We don't cache a
2643 # path for INSTALL within a source directory, because that will
2644 # break other packages using the cache if that directory is
2645 # removed, or if the path is relative.
2646 INSTALL=$ac_install_sh
2649 echo "$as_me:$LINENO: result: $INSTALL" >&5
2650 echo "${ECHO_T}$INSTALL" >&6
2652 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2653 # It thinks the first close brace ends the variable substitution.
2654 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2656 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2658 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2664 ac_cpp='$CPP $CPPFLAGS'
2665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2668 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2669 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2670 # On Suns, sometimes $CPP names a directory.
2671 if test -n "$CPP" && test -d "$CPP"; then
2674 if test -z "$CPP"; then
2675 if test "${ac_cv_prog_CPP+set}" = set; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
2678 # Double quotes because CPP needs to be expanded
2679 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2682 for ac_c_preproc_warn_flag in '' yes
2684 # Use a header file that comes with gcc, so configuring glibc
2685 # with a fresh cross-compiler works.
2686 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2687 # <limits.h> exists even on freestanding compilers.
2688 # On the NeXT, cc -E runs the code through the compiler's parser,
2689 # not just through cpp. "Syntax error" is here to catch this case.
2690 cat >conftest.$ac_ext <<_ACEOF
2691 #line $LINENO "configure"
2694 cat confdefs.h >>conftest.$ac_ext
2695 cat >>conftest.$ac_ext <<_ACEOF
2696 /* end confdefs.h. */
2698 # include <limits.h>
2700 # include <assert.h>
2704 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2705 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2707 grep -v '^ *+' conftest.er1 >conftest.err
2709 cat conftest.err >&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); } >/dev/null; then
2712 if test -s conftest.err; then
2713 ac_cpp_err=$ac_c_preproc_warn_flag
2720 if test -z "$ac_cpp_err"; then
2723 echo "$as_me: failed program was:" >&5
2724 sed 's/^/| /' conftest.$ac_ext >&5
2726 # Broken: fails on valid input.
2729 rm -f conftest.err conftest.$ac_ext
2731 # OK, works on sane cases. Now check whether non-existent headers
2732 # can be detected and how.
2733 cat >conftest.$ac_ext <<_ACEOF
2734 #line $LINENO "configure"
2737 cat confdefs.h >>conftest.$ac_ext
2738 cat >>conftest.$ac_ext <<_ACEOF
2739 /* end confdefs.h. */
2740 #include <ac_nonexistent.h>
2742 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2743 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2745 grep -v '^ *+' conftest.er1 >conftest.err
2747 cat conftest.err >&5
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); } >/dev/null; then
2750 if test -s conftest.err; then
2751 ac_cpp_err=$ac_c_preproc_warn_flag
2758 if test -z "$ac_cpp_err"; then
2759 # Broken: success on invalid input.
2762 echo "$as_me: failed program was:" >&5
2763 sed 's/^/| /' conftest.$ac_ext >&5
2765 # Passes both tests.
2769 rm -f conftest.err conftest.$ac_ext
2772 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2773 rm -f conftest.err conftest.$ac_ext
2774 if $ac_preproc_ok; then
2786 echo "$as_me:$LINENO: result: $CPP" >&5
2787 echo "${ECHO_T}$CPP" >&6
2789 for ac_c_preproc_warn_flag in '' yes
2791 # Use a header file that comes with gcc, so configuring glibc
2792 # with a fresh cross-compiler works.
2793 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2794 # <limits.h> exists even on freestanding compilers.
2795 # On the NeXT, cc -E runs the code through the compiler's parser,
2796 # not just through cpp. "Syntax error" is here to catch this case.
2797 cat >conftest.$ac_ext <<_ACEOF
2798 #line $LINENO "configure"
2801 cat confdefs.h >>conftest.$ac_ext
2802 cat >>conftest.$ac_ext <<_ACEOF
2803 /* end confdefs.h. */
2805 # include <limits.h>
2807 # include <assert.h>
2811 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2812 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2814 grep -v '^ *+' conftest.er1 >conftest.err
2816 cat conftest.err >&5
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); } >/dev/null; then
2819 if test -s conftest.err; then
2820 ac_cpp_err=$ac_c_preproc_warn_flag
2827 if test -z "$ac_cpp_err"; then
2830 echo "$as_me: failed program was:" >&5
2831 sed 's/^/| /' conftest.$ac_ext >&5
2833 # Broken: fails on valid input.
2836 rm -f conftest.err conftest.$ac_ext
2838 # OK, works on sane cases. Now check whether non-existent headers
2839 # can be detected and how.
2840 cat >conftest.$ac_ext <<_ACEOF
2841 #line $LINENO "configure"
2844 cat confdefs.h >>conftest.$ac_ext
2845 cat >>conftest.$ac_ext <<_ACEOF
2846 /* end confdefs.h. */
2847 #include <ac_nonexistent.h>
2849 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2850 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2852 grep -v '^ *+' conftest.er1 >conftest.err
2854 cat conftest.err >&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); } >/dev/null; then
2857 if test -s conftest.err; then
2858 ac_cpp_err=$ac_c_preproc_warn_flag
2865 if test -z "$ac_cpp_err"; then
2866 # Broken: success on invalid input.
2869 echo "$as_me: failed program was:" >&5
2870 sed 's/^/| /' conftest.$ac_ext >&5
2872 # Passes both tests.
2876 rm -f conftest.err conftest.$ac_ext
2879 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2880 rm -f conftest.err conftest.$ac_ext
2881 if $ac_preproc_ok; then
2884 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2885 See \`config.log' for more details." >&5
2886 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2887 See \`config.log' for more details." >&2;}
2888 { (exit 1); exit 1; }; }
2892 ac_cpp='$CPP $CPPFLAGS'
2893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2898 echo "$as_me:$LINENO: checking for egrep" >&5
2899 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2900 if test "${ac_cv_prog_egrep+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2903 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2904 then ac_cv_prog_egrep='grep -E'
2905 else ac_cv_prog_egrep='egrep'
2908 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2909 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2910 EGREP=$ac_cv_prog_egrep
2913 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2914 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2915 if test "${ac_cv_header_stdc+set}" = set; then
2916 echo $ECHO_N "(cached) $ECHO_C" >&6
2918 cat >conftest.$ac_ext <<_ACEOF
2919 #line $LINENO "configure"
2922 cat confdefs.h >>conftest.$ac_ext
2923 cat >>conftest.$ac_ext <<_ACEOF
2924 /* end confdefs.h. */
2938 rm -f conftest.$ac_objext
2939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2940 (eval $ac_compile) 2>&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } &&
2944 { ac_try='test -s conftest.$ac_objext'
2945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); }; }; then
2950 ac_cv_header_stdc=yes
2952 echo "$as_me: failed program was:" >&5
2953 sed 's/^/| /' conftest.$ac_ext >&5
2955 ac_cv_header_stdc=no
2957 rm -f conftest.$ac_objext conftest.$ac_ext
2959 if test $ac_cv_header_stdc = yes; then
2960 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2961 cat >conftest.$ac_ext <<_ACEOF
2962 #line $LINENO "configure"
2965 cat confdefs.h >>conftest.$ac_ext
2966 cat >>conftest.$ac_ext <<_ACEOF
2967 /* end confdefs.h. */
2971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2972 $EGREP "memchr" >/dev/null 2>&1; then
2975 ac_cv_header_stdc=no
2981 if test $ac_cv_header_stdc = yes; then
2982 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2983 cat >conftest.$ac_ext <<_ACEOF
2984 #line $LINENO "configure"
2987 cat confdefs.h >>conftest.$ac_ext
2988 cat >>conftest.$ac_ext <<_ACEOF
2989 /* end confdefs.h. */
2993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2994 $EGREP "free" >/dev/null 2>&1; then
2997 ac_cv_header_stdc=no
3003 if test $ac_cv_header_stdc = yes; then
3004 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3005 if test "$cross_compiling" = yes; then
3008 cat >conftest.$ac_ext <<_ACEOF
3009 #line $LINENO "configure"
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h. */
3016 #if ((' ' & 0x0FF) == 0x020)
3017 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3018 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3020 # define ISLOWER(c) \
3021 (('a' <= (c) && (c) <= 'i') \
3022 || ('j' <= (c) && (c) <= 'r') \
3023 || ('s' <= (c) && (c) <= 'z'))
3024 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3027 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3032 for (i = 0; i < 256; i++)
3033 if (XOR (islower (i), ISLOWER (i))
3034 || toupper (i) != TOUPPER (i))
3039 rm -f conftest$ac_exeext
3040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3041 (eval $ac_link) 2>&5
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); }; }; then
3052 echo "$as_me: program exited with status $ac_status" >&5
3053 echo "$as_me: failed program was:" >&5
3054 sed 's/^/| /' conftest.$ac_ext >&5
3057 ac_cv_header_stdc=no
3059 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3063 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3064 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3065 if test $ac_cv_header_stdc = yes; then
3067 cat >>confdefs.h <<\_ACEOF
3068 #define STDC_HEADERS 1
3073 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3083 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3084 inttypes.h stdint.h unistd.h
3086 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3087 echo "$as_me:$LINENO: checking for $ac_header" >&5
3088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3090 echo $ECHO_N "(cached) $ECHO_C" >&6
3092 cat >conftest.$ac_ext <<_ACEOF
3093 #line $LINENO "configure"
3096 cat confdefs.h >>conftest.$ac_ext
3097 cat >>conftest.$ac_ext <<_ACEOF
3098 /* end confdefs.h. */
3099 $ac_includes_default
3101 #include <$ac_header>
3103 rm -f conftest.$ac_objext
3104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3105 (eval $ac_compile) 2>&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); } &&
3109 { ac_try='test -s conftest.$ac_objext'
3110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); }; }; then
3115 eval "$as_ac_Header=yes"
3117 echo "$as_me: failed program was:" >&5
3118 sed 's/^/| /' conftest.$ac_ext >&5
3120 eval "$as_ac_Header=no"
3122 rm -f conftest.$ac_objext conftest.$ac_ext
3124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3125 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3126 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3127 cat >>confdefs.h <<_ACEOF
3128 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3142 for ac_header in getopt.h elf.h fcntl.h unistd.h link.h sys/link.h
3144 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3146 echo "$as_me:$LINENO: checking for $ac_header" >&5
3147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3149 echo $ECHO_N "(cached) $ECHO_C" >&6
3151 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3152 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3154 # Is the header compilable?
3155 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3156 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3157 cat >conftest.$ac_ext <<_ACEOF
3158 #line $LINENO "configure"
3161 cat confdefs.h >>conftest.$ac_ext
3162 cat >>conftest.$ac_ext <<_ACEOF
3163 /* end confdefs.h. */
3164 $ac_includes_default
3165 #include <$ac_header>
3167 rm -f conftest.$ac_objext
3168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3169 (eval $ac_compile) 2>&5
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); } &&
3173 { ac_try='test -s conftest.$ac_objext'
3174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); }; }; then
3179 ac_header_compiler=yes
3181 echo "$as_me: failed program was:" >&5
3182 sed 's/^/| /' conftest.$ac_ext >&5
3184 ac_header_compiler=no
3186 rm -f conftest.$ac_objext conftest.$ac_ext
3187 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3188 echo "${ECHO_T}$ac_header_compiler" >&6
3190 # Is the header present?
3191 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3192 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3193 cat >conftest.$ac_ext <<_ACEOF
3194 #line $LINENO "configure"
3197 cat confdefs.h >>conftest.$ac_ext
3198 cat >>conftest.$ac_ext <<_ACEOF
3199 /* end confdefs.h. */
3200 #include <$ac_header>
3202 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3203 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3205 grep -v '^ *+' conftest.er1 >conftest.err
3207 cat conftest.err >&5
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); } >/dev/null; then
3210 if test -s conftest.err; then
3211 ac_cpp_err=$ac_c_preproc_warn_flag
3218 if test -z "$ac_cpp_err"; then
3219 ac_header_preproc=yes
3221 echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3224 ac_header_preproc=no
3226 rm -f conftest.err conftest.$ac_ext
3227 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3228 echo "${ECHO_T}$ac_header_preproc" >&6
3230 # So? What about this header?
3231 case $ac_header_compiler:$ac_header_preproc in
3233 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3234 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3235 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3236 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3239 ## ------------------------------------ ##
3240 ## Report this to bug-autoconf@gnu.org. ##
3241 ## ------------------------------------ ##
3244 sed "s/^/$as_me: WARNING: /" >&2
3247 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3248 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3249 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3250 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3252 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3255 ## ------------------------------------ ##
3256 ## Report this to bug-autoconf@gnu.org. ##
3257 ## ------------------------------------ ##
3260 sed "s/^/$as_me: WARNING: /" >&2
3263 echo "$as_me:$LINENO: checking for $ac_header" >&5
3264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3265 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3266 echo $ECHO_N "(cached) $ECHO_C" >&6
3268 eval "$as_ac_Header=$ac_header_preproc"
3270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3271 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3275 cat >>confdefs.h <<_ACEOF
3276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3284 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3285 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3286 if test "${ac_cv_c_const+set}" = set; then
3287 echo $ECHO_N "(cached) $ECHO_C" >&6
3289 cat >conftest.$ac_ext <<_ACEOF
3290 #line $LINENO "configure"
3293 cat confdefs.h >>conftest.$ac_ext
3294 cat >>conftest.$ac_ext <<_ACEOF
3295 /* end confdefs.h. */
3300 /* FIXME: Include the comments suggested by Paul. */
3302 /* Ultrix mips cc rejects this. */
3303 typedef int charset[2];
3305 /* SunOS 4.1.1 cc rejects this. */
3306 char const *const *ccp;
3308 /* NEC SVR4.0.2 mips cc rejects this. */
3309 struct point {int x, y;};
3310 static struct point const zero = {0,0};
3311 /* AIX XL C 1.02.0.0 rejects this.
3312 It does not let you subtract one const X* pointer from another in
3313 an arm of an if-expression whose if-part is not a constant
3315 const char *g = "string";
3316 ccp = &g + (g ? g-g : 0);
3317 /* HPUX 7.0 cc rejects these. */
3320 ccp = (char const *const *) p;
3321 { /* SCO 3.2v4 cc rejects this. */
3323 char const *s = 0 ? (char *) 0 : (char const *) 0;
3327 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3329 const int *foo = &x[0];
3332 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3333 typedef const int *iptr;
3337 { /* AIX XL C 1.02.0.0 rejects this saying
3338 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3339 struct s { int j; const int *ap[3]; };
3340 struct s *b; b->j = 5;
3342 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3351 rm -f conftest.$ac_objext
3352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3353 (eval $ac_compile) 2>&5
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); } &&
3357 { ac_try='test -s conftest.$ac_objext'
3358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); }; }; then
3365 echo "$as_me: failed program was:" >&5
3366 sed 's/^/| /' conftest.$ac_ext >&5
3370 rm -f conftest.$ac_objext conftest.$ac_ext
3372 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3373 echo "${ECHO_T}$ac_cv_c_const" >&6
3374 if test $ac_cv_c_const = no; then
3376 cat >>confdefs.h <<\_ACEOF
3382 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3383 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3384 if test "${ac_cv_c_bigendian+set}" = set; then
3385 echo $ECHO_N "(cached) $ECHO_C" >&6
3387 # See if sys/param.h defines the BYTE_ORDER macro.
3388 cat >conftest.$ac_ext <<_ACEOF
3389 #line $LINENO "configure"
3392 cat confdefs.h >>conftest.$ac_ext
3393 cat >>conftest.$ac_ext <<_ACEOF
3394 /* end confdefs.h. */
3395 #include <sys/types.h>
3396 #include <sys/param.h>
3401 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3409 rm -f conftest.$ac_objext
3410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3411 (eval $ac_compile) 2>&5
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); } &&
3415 { ac_try='test -s conftest.$ac_objext'
3416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); }; }; then
3421 # It does; now see whether it defined to BIG_ENDIAN or not.
3422 cat >conftest.$ac_ext <<_ACEOF
3423 #line $LINENO "configure"
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h. */
3429 #include <sys/types.h>
3430 #include <sys/param.h>
3435 #if BYTE_ORDER != BIG_ENDIAN
3443 rm -f conftest.$ac_objext
3444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3445 (eval $ac_compile) 2>&5
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); } &&
3449 { ac_try='test -s conftest.$ac_objext'
3450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); }; }; then
3455 ac_cv_c_bigendian=yes
3457 echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3460 ac_cv_c_bigendian=no
3462 rm -f conftest.$ac_objext conftest.$ac_ext
3464 echo "$as_me: failed program was:" >&5
3465 sed 's/^/| /' conftest.$ac_ext >&5
3467 # It does not; compile a test program.
3468 if test "$cross_compiling" = yes; then
3469 # try to guess the endianness by grepping values into an object file
3470 ac_cv_c_bigendian=unknown
3471 cat >conftest.$ac_ext <<_ACEOF
3472 #line $LINENO "configure"
3475 cat confdefs.h >>conftest.$ac_ext
3476 cat >>conftest.$ac_ext <<_ACEOF
3477 /* end confdefs.h. */
3478 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3479 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3480 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3481 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3482 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3483 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3487 _ascii (); _ebcdic ();
3492 rm -f conftest.$ac_objext
3493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3494 (eval $ac_compile) 2>&5
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); } &&
3498 { ac_try='test -s conftest.$ac_objext'
3499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); }; }; then
3504 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3505 ac_cv_c_bigendian=yes
3507 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3508 if test "$ac_cv_c_bigendian" = unknown; then
3509 ac_cv_c_bigendian=no
3511 # finding both strings is unlikely to happen, but who knows?
3512 ac_cv_c_bigendian=unknown
3516 echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3520 rm -f conftest.$ac_objext conftest.$ac_ext
3522 cat >conftest.$ac_ext <<_ACEOF
3523 #line $LINENO "configure"
3526 cat confdefs.h >>conftest.$ac_ext
3527 cat >>conftest.$ac_ext <<_ACEOF
3528 /* end confdefs.h. */
3532 /* Are we little or big endian? From Harbison&Steele. */
3536 char c[sizeof (long)];
3539 exit (u.c[sizeof (long) - 1] == 1);
3542 rm -f conftest$ac_exeext
3543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3544 (eval $ac_link) 2>&5
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); }; }; then
3553 ac_cv_c_bigendian=no
3555 echo "$as_me: program exited with status $ac_status" >&5
3556 echo "$as_me: failed program was:" >&5
3557 sed 's/^/| /' conftest.$ac_ext >&5
3560 ac_cv_c_bigendian=yes
3562 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3565 rm -f conftest.$ac_objext conftest.$ac_ext
3567 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3568 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3569 case $ac_cv_c_bigendian in
3572 cat >>confdefs.h <<\_ACEOF
3573 #define WORDS_BIGENDIAN 1
3579 { { echo "$as_me:$LINENO: error: unknown endianness
3580 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3581 echo "$as_me: error: unknown endianness
3582 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3583 { (exit 1); exit 1; }; } ;;
3586 echo "$as_me:$LINENO: checking for void *" >&5
3587 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3588 if test "${ac_cv_type_void_p+set}" = set; then
3589 echo $ECHO_N "(cached) $ECHO_C" >&6
3591 cat >conftest.$ac_ext <<_ACEOF
3592 #line $LINENO "configure"
3595 cat confdefs.h >>conftest.$ac_ext
3596 cat >>conftest.$ac_ext <<_ACEOF
3597 /* end confdefs.h. */
3598 $ac_includes_default
3604 if (sizeof (void *))
3610 rm -f conftest.$ac_objext
3611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3612 (eval $ac_compile) 2>&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); } &&
3616 { ac_try='test -s conftest.$ac_objext'
3617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); }; }; then
3622 ac_cv_type_void_p=yes
3624 echo "$as_me: failed program was:" >&5
3625 sed 's/^/| /' conftest.$ac_ext >&5
3627 ac_cv_type_void_p=no
3629 rm -f conftest.$ac_objext conftest.$ac_ext
3631 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3632 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3634 echo "$as_me:$LINENO: checking size of void *" >&5
3635 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3636 if test "${ac_cv_sizeof_void_p+set}" = set; then
3637 echo $ECHO_N "(cached) $ECHO_C" >&6
3639 if test "$ac_cv_type_void_p" = yes; then
3640 # The cast to unsigned long works around a bug in the HP C Compiler
3641 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3642 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3643 # This bug is HP SR number 8606223364.
3644 if test "$cross_compiling" = yes; then
3645 # Depending upon the size, compute the lo and hi bounds.
3646 cat >conftest.$ac_ext <<_ACEOF
3647 #line $LINENO "configure"
3650 cat confdefs.h >>conftest.$ac_ext
3651 cat >>conftest.$ac_ext <<_ACEOF
3652 /* end confdefs.h. */
3653 $ac_includes_default
3657 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3664 rm -f conftest.$ac_objext
3665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3666 (eval $ac_compile) 2>&5
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); } &&
3670 { ac_try='test -s conftest.$ac_objext'
3671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }; }; then
3678 cat >conftest.$ac_ext <<_ACEOF
3679 #line $LINENO "configure"
3682 cat confdefs.h >>conftest.$ac_ext
3683 cat >>conftest.$ac_ext <<_ACEOF
3684 /* end confdefs.h. */
3685 $ac_includes_default
3689 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3696 rm -f conftest.$ac_objext
3697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3698 (eval $ac_compile) 2>&5
3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701 (exit $ac_status); } &&
3702 { ac_try='test -s conftest.$ac_objext'
3703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); }; }; then
3708 ac_hi=$ac_mid; break
3710 echo "$as_me: failed program was:" >&5
3711 sed 's/^/| /' conftest.$ac_ext >&5
3713 ac_lo=`expr $ac_mid + 1`
3714 if test $ac_lo -le $ac_mid; then
3718 ac_mid=`expr 2 '*' $ac_mid + 1`
3720 rm -f conftest.$ac_objext conftest.$ac_ext
3723 echo "$as_me: failed program was:" >&5
3724 sed 's/^/| /' conftest.$ac_ext >&5
3726 cat >conftest.$ac_ext <<_ACEOF
3727 #line $LINENO "configure"
3730 cat confdefs.h >>conftest.$ac_ext
3731 cat >>conftest.$ac_ext <<_ACEOF
3732 /* end confdefs.h. */
3733 $ac_includes_default
3737 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3744 rm -f conftest.$ac_objext
3745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3746 (eval $ac_compile) 2>&5
3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); } &&
3750 { ac_try='test -s conftest.$ac_objext'
3751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); }; }; then
3758 cat >conftest.$ac_ext <<_ACEOF
3759 #line $LINENO "configure"
3762 cat confdefs.h >>conftest.$ac_ext
3763 cat >>conftest.$ac_ext <<_ACEOF
3764 /* end confdefs.h. */
3765 $ac_includes_default
3769 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3776 rm -f conftest.$ac_objext
3777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3778 (eval $ac_compile) 2>&5
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); } &&
3782 { ac_try='test -s conftest.$ac_objext'
3783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); }; }; then
3788 ac_lo=$ac_mid; break
3790 echo "$as_me: failed program was:" >&5
3791 sed 's/^/| /' conftest.$ac_ext >&5
3793 ac_hi=`expr '(' $ac_mid ')' - 1`
3794 if test $ac_mid -le $ac_hi; then
3798 ac_mid=`expr 2 '*' $ac_mid`
3800 rm -f conftest.$ac_objext conftest.$ac_ext
3803 echo "$as_me: failed program was:" >&5
3804 sed 's/^/| /' conftest.$ac_ext >&5
3808 rm -f conftest.$ac_objext conftest.$ac_ext
3810 rm -f conftest.$ac_objext conftest.$ac_ext
3811 # Binary search between lo and hi bounds.
3812 while test "x$ac_lo" != "x$ac_hi"; do
3813 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3814 cat >conftest.$ac_ext <<_ACEOF
3815 #line $LINENO "configure"
3818 cat confdefs.h >>conftest.$ac_ext
3819 cat >>conftest.$ac_ext <<_ACEOF
3820 /* end confdefs.h. */
3821 $ac_includes_default
3825 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3832 rm -f conftest.$ac_objext
3833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3834 (eval $ac_compile) 2>&5
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); } &&
3838 { ac_try='test -s conftest.$ac_objext'
3839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); }; }; then
3846 echo "$as_me: failed program was:" >&5
3847 sed 's/^/| /' conftest.$ac_ext >&5
3849 ac_lo=`expr '(' $ac_mid ')' + 1`
3851 rm -f conftest.$ac_objext conftest.$ac_ext
3854 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3855 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3856 See \`config.log' for more details." >&5
3857 echo "$as_me: error: cannot compute sizeof (void *), 77
3858 See \`config.log' for more details." >&2;}
3859 { (exit 1); exit 1; }; } ;;
3862 if test "$cross_compiling" = yes; then
3863 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3864 See \`config.log' for more details." >&5
3865 echo "$as_me: error: cannot run test program while cross compiling
3866 See \`config.log' for more details." >&2;}
3867 { (exit 1); exit 1; }; }
3869 cat >conftest.$ac_ext <<_ACEOF
3870 #line $LINENO "configure"
3873 cat confdefs.h >>conftest.$ac_ext
3874 cat >>conftest.$ac_ext <<_ACEOF
3875 /* end confdefs.h. */
3876 $ac_includes_default
3877 long longval () { return (long) (sizeof (void *)); }
3878 unsigned long ulongval () { return (long) (sizeof (void *)); }
3885 FILE *f = fopen ("conftest.val", "w");
3888 if (((long) (sizeof (void *))) < 0)
3890 long i = longval ();
3891 if (i != ((long) (sizeof (void *))))
3893 fprintf (f, "%ld\n", i);
3897 unsigned long i = ulongval ();
3898 if (i != ((long) (sizeof (void *))))
3900 fprintf (f, "%lu\n", i);
3902 exit (ferror (f) || fclose (f) != 0);
3908 rm -f conftest$ac_exeext
3909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3910 (eval $ac_link) 2>&5
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); }; }; then
3919 ac_cv_sizeof_void_p=`cat conftest.val`
3921 echo "$as_me: program exited with status $ac_status" >&5
3922 echo "$as_me: failed program was:" >&5
3923 sed 's/^/| /' conftest.$ac_ext >&5
3926 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3927 See \`config.log' for more details." >&5
3928 echo "$as_me: error: cannot compute sizeof (void *), 77
3929 See \`config.log' for more details." >&2;}
3930 { (exit 1); exit 1; }; }
3932 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3937 ac_cv_sizeof_void_p=0
3940 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3941 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3942 cat >>confdefs.h <<_ACEOF
3943 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3949 for ac_func in getopt_long
3951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3952 echo "$as_me:$LINENO: checking for $ac_func" >&5
3953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3954 if eval "test \"\${$as_ac_var+set}\" = set"; then
3955 echo $ECHO_N "(cached) $ECHO_C" >&6
3957 cat >conftest.$ac_ext <<_ACEOF
3958 #line $LINENO "configure"
3961 cat confdefs.h >>conftest.$ac_ext
3962 cat >>conftest.$ac_ext <<_ACEOF
3963 /* end confdefs.h. */
3964 /* System header to define __stub macros and hopefully few prototypes,
3965 which can conflict with char $ac_func (); below.
3966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3967 <limits.h> exists even on freestanding compilers. */
3969 # include <limits.h>
3971 # include <assert.h>
3973 /* Override any gcc2 internal prototype to avoid an error. */
3978 /* We use char because int might match the return type of a gcc2
3979 builtin and then its argument prototype would still apply. */
3981 /* The GNU C library defines this for functions which it implements
3982 to always fail with ENOSYS. Some functions are actually named
3983 something starting with __ and the normal name is an alias. */
3984 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3987 char (*f) () = $ac_func;
3996 return f != $ac_func;
4001 rm -f conftest.$ac_objext conftest$ac_exeext
4002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4003 (eval $ac_link) 2>&5
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); } &&
4007 { ac_try='test -s conftest$ac_exeext'
4008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); }; }; then
4013 eval "$as_ac_var=yes"
4015 echo "$as_me: failed program was:" >&5
4016 sed 's/^/| /' conftest.$ac_ext >&5
4018 eval "$as_ac_var=no"
4020 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4023 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4024 if test `eval echo '${'$as_ac_var'}'` = yes; then
4025 cat >>confdefs.h <<_ACEOF
4026 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4033 if eval "test x$GCC = xyes"; then
4042 -Wmissing-declarations \
4043 -Wmissing-prototypes \
4049 "$flag" | "$flag "* | *" $flag" | *" $flag "* )
4053 CFLAGS="$CFLAGS $flag"
4061 # Check whether --with-coverage or --without-coverage was given.
4062 if test "${with_coverage+set}" = set; then
4063 withval="$with_coverage"
4066 "-g" | "-g "* | *" -g" | *" -g "* )
4075 "-fprofile-arcs" | "-fprofile-arcs "* | *" -fprofile-arcs" | *" -fprofile-arcs "* )
4079 CFLAGS="$CFLAGS -fprofile-arcs"
4084 "-ftest-coverage" | "-ftest-coverage "* | *" -ftest-coverage" | *" -ftest-coverage "* )
4088 CFLAGS="$CFLAGS -ftest-coverage"
4095 ac_config_files="$ac_config_files Makefile testsuite/Makefile deb/Makefile"
4097 cat >confcache <<\_ACEOF
4098 # This file is a shell script that caches the results of configure
4099 # tests run on this system so they can be shared between configure
4100 # scripts and configure runs, see configure's option --config-cache.
4101 # It is not useful on other systems. If it contains results you don't
4102 # want to keep, you may remove or edit it.
4104 # config.status only pays attention to the cache file if you give it
4105 # the --recheck option to rerun configure.
4107 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4108 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4113 # The following way of writing the cache mishandles newlines in values,
4114 # but we know of no workaround that is simple, portable, and efficient.
4115 # So, don't put newlines in cache variables' values.
4116 # Ultrix sh set writes to stderr and can't be redirected directly,
4117 # and sets the high bit in the cache file unless we assign to the vars.
4120 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4122 # `set' does not quote correctly, so add quotes (double-quote
4123 # substitution turns \\\\ into \\, and sed turns \\ into \).
4126 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4129 # `set' quotes correctly as required by POSIX, so do not add quotes.
4131 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4138 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4140 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4142 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4143 if test -w $cache_file; then
4144 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4145 cat confcache >$cache_file
4147 echo "not updating unwritable cache $cache_file"
4152 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4153 # Let make expand exec_prefix.
4154 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4156 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4157 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4158 # trailing colons and then remove the whole line if VPATH becomes empty
4159 # (actually we leave an empty line to preserve line numbers).
4160 if test "x$srcdir" = x.; then
4161 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4162 s/:*\$(srcdir):*/:/;
4163 s/:*\${srcdir}:*/:/;
4165 s/^\([^=]*=[ ]*\):*/\1/;
4171 DEFS=-DHAVE_CONFIG_H
4175 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4176 # 1. Remove the extension, and $U if already installed.
4177 ac_i=`echo "$ac_i" |
4178 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4180 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4181 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4185 LTLIBOBJS=$ac_ltlibobjs
4189 : ${CONFIG_STATUS=./config.status}
4190 ac_clean_files_save=$ac_clean_files
4191 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4192 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4193 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4194 cat >$CONFIG_STATUS <<_ACEOF
4196 # Generated by $as_me.
4197 # Run this file to recreate the current configuration.
4198 # Compiler output produced by configure, useful for debugging
4199 # configure, is in config.log if it exists.
4204 SHELL=\${CONFIG_SHELL-$SHELL}
4207 cat >>$CONFIG_STATUS <<\_ACEOF
4208 ## --------------------- ##
4209 ## M4sh Initialization. ##
4210 ## --------------------- ##
4212 # Be Bourne compatible
4213 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4216 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4217 # is contrary to our usage. Disable this feature.
4218 alias -g '${1+"$@"}'='"$@"'
4219 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4223 # Support unset when possible.
4224 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4231 # Work around bugs in pre-3.0 UWIN ksh.
4232 $as_unset ENV MAIL MAILPATH
4239 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4240 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4241 LC_TELEPHONE LC_TIME
4243 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
4244 eval $as_var=C; export $as_var
4250 # Required to use basename.
4251 if expr a : '\(a\)' >/dev/null 2>&1; then
4257 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4258 as_basename=basename
4264 # Name of the executable.
4265 as_me=`$as_basename "$0" ||
4266 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4267 X"$0" : 'X\(//\)$' \| \
4268 X"$0" : 'X\(/\)$' \| \
4269 . : '\(.\)' 2>/dev/null ||
4271 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4272 /^X\/\(\/\/\)$/{ s//\1/; q; }
4273 /^X\/\(\/\).*/{ s//\1/; q; }
4277 # PATH needs CR, and LINENO needs CR and PATH.
4278 # Avoid depending upon Character Ranges.
4279 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4280 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4281 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4282 as_cr_digits='0123456789'
4283 as_cr_alnum=$as_cr_Letters$as_cr_digits
4285 # The user is always right.
4286 if test "${PATH_SEPARATOR+set}" != set; then
4287 echo "#! /bin/sh" >conf$$.sh
4288 echo "exit 0" >>conf$$.sh
4290 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4301 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4302 test "x$as_lineno_1" != "x$as_lineno_2" &&
4303 test "x$as_lineno_3" = "x$as_lineno_2" || {
4304 # Find who we are. Look in the path if we contain no path at all
4307 *[\\/]* ) as_myself=$0 ;;
4308 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312 test -z "$as_dir" && as_dir=.
4313 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4318 # We did not find ourselves, most probably we were run as `sh COMMAND'
4319 # in which case we are not to be found in the path.
4320 if test "x$as_myself" = x; then
4323 if test ! -f "$as_myself"; then
4324 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4325 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4326 { (exit 1); exit 1; }; }
4328 case $CONFIG_SHELL in
4330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4331 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4334 test -z "$as_dir" && as_dir=.
4335 for as_base in sh bash ksh sh5; do
4338 if ("$as_dir/$as_base" -c '
4341 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4342 test "x$as_lineno_1" != "x$as_lineno_2" &&
4343 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4344 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4345 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4346 CONFIG_SHELL=$as_dir/$as_base
4348 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4356 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4357 # uniformly replaced by the line number. The first 'sed' inserts a
4358 # line-number line before each line; the second 'sed' does the real
4359 # work. The second script uses 'N' to pair each line-number line
4360 # with the numbered line, and appends trailing '-' during
4361 # substitution so that $LINENO is not a special case at line end.
4362 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4363 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4364 sed '=' <$as_myself |
4369 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4372 s,^['$as_cr_digits']*\n,,
4374 chmod +x $as_me.lineno ||
4375 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4376 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4377 { (exit 1); exit 1; }; }
4379 # Don't try to exec as it changes $[0], causing all sort of problems
4380 # (the dirname of $[0] is not the place where we might find the
4381 # original and so on. Autoconf is especially sensible to this).
4383 # Exit status is that of the last command.
4388 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4389 *c*,-n*) ECHO_N= ECHO_C='
4391 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4392 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4395 if expr a : '\(a\)' >/dev/null 2>&1; then
4401 rm -f conf$$ conf$$.exe conf$$.file
4403 if ln -s conf$$.file conf$$ 2>/dev/null; then
4404 # We could just check for DJGPP; but this test a) works b) is more generic
4405 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4406 if test -f conf$$.exe; then
4407 # Don't use ln at all; we don't have any links
4412 elif ln conf$$.file conf$$ 2>/dev/null; then
4417 rm -f conf$$ conf$$.exe conf$$.file
4419 if mkdir -p . 2>/dev/null; then
4425 as_executable_p="test -f"
4427 # Sed expression to map a string onto a valid CPP name.
4428 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
4430 # Sed expression to map a string onto a valid variable name.
4431 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
4435 # We need space, tab and new line, in precisely that order.
4445 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4446 # report actual input values of CONFIG_FILES etc. instead of their
4447 # values after options handling. Logging --version etc. is OK.
4451 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4452 ## Running $as_me. ##
4457 This file was extended by "chrpath" $as_me "0.13", which was
4458 generated by GNU Autoconf 2.57. Invocation command line was
4460 CONFIG_FILES = $CONFIG_FILES
4461 CONFIG_HEADERS = $CONFIG_HEADERS
4462 CONFIG_LINKS = $CONFIG_LINKS
4463 CONFIG_COMMANDS = $CONFIG_COMMANDS
4467 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4471 # Files that config.status was made for.
4472 if test -n "$ac_config_files"; then
4473 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4476 if test -n "$ac_config_headers"; then
4477 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4480 if test -n "$ac_config_links"; then
4481 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4484 if test -n "$ac_config_commands"; then
4485 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4488 cat >>$CONFIG_STATUS <<\_ACEOF
4491 \`$as_me' instantiates files from templates according to the
4492 current configuration.
4494 Usage: $0 [OPTIONS] [FILE]...
4496 -h, --help print this help, then exit
4497 -V, --version print version number, then exit
4498 -q, --quiet do not print progress messages
4499 -d, --debug don't remove temporary files
4500 --recheck update $as_me by reconfiguring in the same conditions
4501 --file=FILE[:TEMPLATE]
4502 instantiate the configuration file FILE
4503 --header=FILE[:TEMPLATE]
4504 instantiate the configuration header FILE
4506 Configuration files:
4509 Configuration headers:
4512 Configuration commands:
4515 Report bugs to <bug-autoconf@gnu.org>."
4518 cat >>$CONFIG_STATUS <<_ACEOF
4520 "chrpath" config.status "0.13"
4521 configured by $0, generated by GNU Autoconf 2.57,
4522 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4524 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4525 Free Software Foundation, Inc.
4526 This config.status script is free software; the Free Software Foundation
4527 gives unlimited permission to copy, distribute and modify it."
4532 cat >>$CONFIG_STATUS <<\_ACEOF
4533 # If no file are specified by the user, then we need to provide default
4534 # value. By we need to know if files were specified by the user.
4540 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4541 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4549 *) # This is not an option, so the user has probably given explicit
4552 ac_need_defaults=false;;
4556 # Handling of the options.
4558 cat >>$CONFIG_STATUS <<\_ACEOF
4559 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4561 --version | --vers* | -V )
4562 echo "$ac_cs_version"; exit 0 ;;
4564 # Conflict between --help and --header
4565 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4566 Try \`$0 --help' for more information." >&5
4567 echo "$as_me: error: ambiguous option: $1
4568 Try \`$0 --help' for more information." >&2;}
4569 { (exit 1); exit 1; }; };;
4570 --help | --hel | -h )
4571 echo "$ac_cs_usage"; exit 0 ;;
4572 --debug | --d* | -d )
4574 --file | --fil | --fi | --f )
4576 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4577 ac_need_defaults=false;;
4578 --header | --heade | --head | --hea )
4580 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4581 ac_need_defaults=false;;
4582 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4583 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4587 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4588 Try \`$0 --help' for more information." >&5
4589 echo "$as_me: error: unrecognized option: $1
4590 Try \`$0 --help' for more information." >&2;}
4591 { (exit 1); exit 1; }; } ;;
4593 *) ac_config_targets="$ac_config_targets $1" ;;
4599 ac_configure_extra_args=
4601 if $ac_cs_silent; then
4603 ac_configure_extra_args="$ac_configure_extra_args --silent"
4607 cat >>$CONFIG_STATUS <<_ACEOF
4608 if \$ac_cs_recheck; then
4609 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4610 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4615 cat >>$CONFIG_STATUS <<_ACEOF
4617 # INIT-COMMANDS section.
4626 cat >>$CONFIG_STATUS <<\_ACEOF
4627 for ac_config_target in $ac_config_targets
4629 case "$ac_config_target" in
4630 # Handling of arguments.
4631 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4632 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
4633 "deb/Makefile" ) CONFIG_FILES="$CONFIG_FILES deb/Makefile" ;;
4634 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
4635 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4636 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4637 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4638 { (exit 1); exit 1; }; };;
4642 # If the user did not use the arguments to specify the items to instantiate,
4643 # then the envvar interface is used. Set only those that are not.
4644 # We use the long form for the default assignment because of an extremely
4645 # bizarre bug on SunOS 4.1.3.
4646 if $ac_need_defaults; then
4647 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4648 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4649 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4652 # Have a temporary directory for convenience. Make it in the build tree
4653 # simply because there is no reason to put it here, and in addition,
4654 # creating and moving files from /tmp can sometimes cause problems.
4655 # Create a temporary directory, and hook for its removal unless debugging.
4658 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4659 trap '{ (exit 1); exit 1; }' 1 2 13 15
4662 # Create a (secure) tmp directory for tmp files.
4665 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4666 test -n "$tmp" && test -d "$tmp"
4669 tmp=./confstat$$-$RANDOM
4670 (umask 077 && mkdir $tmp)
4673 echo "$me: cannot create a temporary directory in ." >&2
4674 { (exit 1); exit 1; }
4679 cat >>$CONFIG_STATUS <<_ACEOF
4682 # CONFIG_FILES section.
4685 # No need to generate the scripts if there are no CONFIG_FILES.
4686 # This happens for instance when ./config.status config.h
4687 if test -n "\$CONFIG_FILES"; then
4688 # Protect against being on the right side of a sed subst in config.status.
4689 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4690 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4691 s,@SHELL@,$SHELL,;t t
4692 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4693 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4694 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4695 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4696 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4697 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4698 s,@exec_prefix@,$exec_prefix,;t t
4699 s,@prefix@,$prefix,;t t
4700 s,@program_transform_name@,$program_transform_name,;t t
4701 s,@bindir@,$bindir,;t t
4702 s,@sbindir@,$sbindir,;t t
4703 s,@libexecdir@,$libexecdir,;t t
4704 s,@datadir@,$datadir,;t t
4705 s,@sysconfdir@,$sysconfdir,;t t
4706 s,@sharedstatedir@,$sharedstatedir,;t t
4707 s,@localstatedir@,$localstatedir,;t t
4708 s,@libdir@,$libdir,;t t
4709 s,@includedir@,$includedir,;t t
4710 s,@oldincludedir@,$oldincludedir,;t t
4711 s,@infodir@,$infodir,;t t
4712 s,@mandir@,$mandir,;t t
4713 s,@build_alias@,$build_alias,;t t
4714 s,@host_alias@,$host_alias,;t t
4715 s,@target_alias@,$target_alias,;t t
4717 s,@ECHO_C@,$ECHO_C,;t t
4718 s,@ECHO_N@,$ECHO_N,;t t
4719 s,@ECHO_T@,$ECHO_T,;t t
4721 s,@build@,$build,;t t
4722 s,@build_cpu@,$build_cpu,;t t
4723 s,@build_vendor@,$build_vendor,;t t
4724 s,@build_os@,$build_os,;t t
4726 s,@host_cpu@,$host_cpu,;t t
4727 s,@host_vendor@,$host_vendor,;t t
4728 s,@host_os@,$host_os,;t t
4729 s,@target@,$target,;t t
4730 s,@target_cpu@,$target_cpu,;t t
4731 s,@target_vendor@,$target_vendor,;t t
4732 s,@target_os@,$target_os,;t t
4733 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4734 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4735 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4736 s,@PACKAGE@,$PACKAGE,;t t
4737 s,@VERSION@,$VERSION,;t t
4738 s,@ACLOCAL@,$ACLOCAL,;t t
4739 s,@AUTOCONF@,$AUTOCONF,;t t
4740 s,@AUTOMAKE@,$AUTOMAKE,;t t
4741 s,@AUTOHEADER@,$AUTOHEADER,;t t
4742 s,@MAKEINFO@,$MAKEINFO,;t t
4743 s,@SET_MAKE@,$SET_MAKE,;t t
4744 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
4745 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
4746 s,@MAINT@,$MAINT,;t t
4747 s,@LDRPATH@,$LDRPATH,;t t
4749 s,@CFLAGS@,$CFLAGS,;t t
4750 s,@LDFLAGS@,$LDFLAGS,;t t
4751 s,@CPPFLAGS@,$CPPFLAGS,;t t
4752 s,@ac_ct_CC@,$ac_ct_CC,;t t
4753 s,@EXEEXT@,$EXEEXT,;t t
4754 s,@OBJEXT@,$OBJEXT,;t t
4756 s,@EGREP@,$EGREP,;t t
4757 s,@LIBOBJS@,$LIBOBJS,;t t
4758 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4763 cat >>$CONFIG_STATUS <<\_ACEOF
4764 # Split the substitutions into bite-sized pieces for seds with
4765 # small command number limits, like on Digital OSF/1 and HP-UX.
4767 ac_sed_frag=1 # Number of current file.
4768 ac_beg=1 # First line for current file.
4769 ac_end=$ac_max_sed_lines # Line after last line for current file.
4772 while $ac_more_lines; do
4773 if test $ac_beg -gt 1; then
4774 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4776 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4778 if test ! -s $tmp/subs.frag; then
4781 # The purpose of the label and of the branching condition is to
4782 # speed up the sed processing (if there are no `@' at all, there
4783 # is no need to browse any of the substitutions).
4784 # These are the two extra sed commands mentioned above.
4786 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4787 if test -z "$ac_sed_cmds"; then
4788 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4790 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4792 ac_sed_frag=`expr $ac_sed_frag + 1`
4794 ac_end=`expr $ac_end + $ac_max_sed_lines`
4797 if test -z "$ac_sed_cmds"; then
4800 fi # test -n "$CONFIG_FILES"
4803 cat >>$CONFIG_STATUS <<\_ACEOF
4804 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4805 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4807 - | *:- | *:-:* ) # input from stdin
4809 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4810 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4811 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4812 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4813 * ) ac_file_in=$ac_file.in ;;
4816 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4817 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4818 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4819 X"$ac_file" : 'X\(//\)[^/]' \| \
4820 X"$ac_file" : 'X\(//\)$' \| \
4821 X"$ac_file" : 'X\(/\)' \| \
4822 . : '\(.\)' 2>/dev/null ||
4824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4825 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4826 /^X\(\/\/\)$/{ s//\1/; q; }
4827 /^X\(\/\).*/{ s//\1/; q; }
4829 { if $as_mkdir_p; then
4834 while test ! -d "$as_dir"; do
4835 as_dirs="$as_dir $as_dirs"
4836 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4837 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4838 X"$as_dir" : 'X\(//\)[^/]' \| \
4839 X"$as_dir" : 'X\(//\)$' \| \
4840 X"$as_dir" : 'X\(/\)' \| \
4841 . : '\(.\)' 2>/dev/null ||
4843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4844 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4845 /^X\(\/\/\)$/{ s//\1/; q; }
4846 /^X\(\/\).*/{ s//\1/; q; }
4849 test ! -n "$as_dirs" || mkdir $as_dirs
4850 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4851 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4852 { (exit 1); exit 1; }; }; }
4856 if test "$ac_dir" != .; then
4857 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4858 # A "../" for each directory in $ac_dir_suffix.
4859 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4861 ac_dir_suffix= ac_top_builddir=
4865 .) # No --srcdir option. We are building in place.
4867 if test -z "$ac_top_builddir"; then
4870 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4872 [\\/]* | ?:[\\/]* ) # Absolute path.
4873 ac_srcdir=$srcdir$ac_dir_suffix;
4874 ac_top_srcdir=$srcdir ;;
4876 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4877 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4879 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
4881 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
4882 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
4883 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
4884 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
4888 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4889 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4892 if test x"$ac_file" != x-; then
4893 { echo "$as_me:$LINENO: creating $ac_file" >&5
4894 echo "$as_me: creating $ac_file" >&6;}
4897 # Let's still pretend it is `configure' which instantiates (i.e., don't
4898 # use $as_me), people would be surprised to read:
4899 # /* config.h. Generated by config.status. */
4900 if test x"$ac_file" = x-; then
4903 configure_input="$ac_file. "
4905 configure_input=$configure_input"Generated from `echo $ac_file_in |
4906 sed 's,.*/,,'` by configure."
4908 # First look for the input files in the build tree, otherwise in the
4910 ac_file_inputs=`IFS=:
4911 for f in $ac_file_in; do
4913 -) echo $tmp/stdin ;;
4915 # Absolute (can't be DOS-style, as IFS=:)
4916 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4917 echo "$as_me: error: cannot find input file: $f" >&2;}
4918 { (exit 1); exit 1; }; }
4921 if test -f "$f"; then
4924 elif test -f "$srcdir/$f"; then
4929 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4930 echo "$as_me: error: cannot find input file: $f" >&2;}
4931 { (exit 1); exit 1; }; }
4934 done` || { (exit 1); exit 1; }
4936 cat >>$CONFIG_STATUS <<_ACEOF
4940 cat >>$CONFIG_STATUS <<\_ACEOF
4942 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4943 s,@configure_input@,$configure_input,;t t
4944 s,@srcdir@,$ac_srcdir,;t t
4945 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4946 s,@top_srcdir@,$ac_top_srcdir,;t t
4947 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4948 s,@builddir@,$ac_builddir,;t t
4949 s,@abs_builddir@,$ac_abs_builddir,;t t
4950 s,@top_builddir@,$ac_top_builddir,;t t
4951 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4952 s,@INSTALL@,$ac_INSTALL,;t t
4953 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4955 if test x"$ac_file" != x-; then
4956 mv $tmp/out $ac_file
4964 cat >>$CONFIG_STATUS <<\_ACEOF
4967 # CONFIG_HEADER section.
4970 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4971 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4973 # ac_d sets the value in "#define NAME VALUE" lines.
4974 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4975 ac_dB='[ ].*$,\1#\2'
4978 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4979 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4980 ac_uB='$,\1#\2define\3'
4984 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4985 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4987 - | *:- | *:-:* ) # input from stdin
4989 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4990 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4991 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4992 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4993 * ) ac_file_in=$ac_file.in ;;
4996 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4997 echo "$as_me: creating $ac_file" >&6;}
4999 # First look for the input files in the build tree, otherwise in the
5001 ac_file_inputs=`IFS=:
5002 for f in $ac_file_in; do
5004 -) echo $tmp/stdin ;;
5006 # Absolute (can't be DOS-style, as IFS=:)
5007 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5008 echo "$as_me: error: cannot find input file: $f" >&2;}
5009 { (exit 1); exit 1; }; }
5012 if test -f "$f"; then
5015 elif test -f "$srcdir/$f"; then
5020 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5021 echo "$as_me: error: cannot find input file: $f" >&2;}
5022 { (exit 1); exit 1; }; }
5025 done` || { (exit 1); exit 1; }
5026 # Remove the trailing spaces.
5027 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5031 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5032 # `conftest.undefs', that substitutes the proper values into
5033 # config.h.in to produce config.h. The first handles `#define'
5034 # templates, and the second `#undef' templates.
5035 # And first: Protect against being on the right side of a sed subst in
5036 # config.status. Protect against being in an unquoted here document
5038 rm -f conftest.defines conftest.undefs
5039 # Using a here document instead of a string reduces the quoting nightmare.
5040 # Putting comments in sed scripts is not portable.
5042 # `end' is used to avoid that the second main sed command (meant for
5043 # 0-ary CPP macros) applies to n-ary macro definitions.
5044 # See the Autoconf documentation for `clear'.
5045 cat >confdef2sed.sed <<\_ACEOF
5050 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5052 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5055 # If some macros were called several times there might be several times
5056 # the same #defines, which is useless. Nevertheless, we may not want to
5057 # sort them, since we want the *last* AC-DEFINE to be honored.
5058 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5059 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5060 rm -f confdef2sed.sed
5062 # This sed command replaces #undef with comments. This is necessary, for
5063 # example, in the case of _POSIX_SOURCE, which is predefined and required
5064 # on some systems where configure will not decide to define it.
5065 cat >>conftest.undefs <<\_ACEOF
5066 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5069 # Break up conftest.defines because some shells have a limit on the size
5070 # of here documents, and old seds have small limits too (100 cmds).
5071 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5072 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5073 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5074 echo ' :' >>$CONFIG_STATUS
5076 while grep . conftest.defines >/dev/null
5078 # Write a limited-size here document to $tmp/defines.sed.
5079 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5080 # Speed up: don't consider the non `#define' lines.
5081 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5082 # Work around the forget-to-reset-the-flag bug.
5083 echo 't clr' >>$CONFIG_STATUS
5084 echo ': clr' >>$CONFIG_STATUS
5085 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5087 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5091 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5092 rm -f conftest.defines
5093 mv conftest.tail conftest.defines
5095 rm -f conftest.defines
5096 echo ' fi # grep' >>$CONFIG_STATUS
5097 echo >>$CONFIG_STATUS
5099 # Break up conftest.undefs because some shells have a limit on the size
5100 # of here documents, and old seds have small limits too (100 cmds).
5101 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5103 while grep . conftest.undefs >/dev/null
5105 # Write a limited-size here document to $tmp/undefs.sed.
5106 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5107 # Speed up: don't consider the non `#undef'
5108 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5109 # Work around the forget-to-reset-the-flag bug.
5110 echo 't clr' >>$CONFIG_STATUS
5111 echo ': clr' >>$CONFIG_STATUS
5112 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5114 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5118 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5119 rm -f conftest.undefs
5120 mv conftest.tail conftest.undefs
5122 rm -f conftest.undefs
5124 cat >>$CONFIG_STATUS <<\_ACEOF
5125 # Let's still pretend it is `configure' which instantiates (i.e., don't
5126 # use $as_me), people would be surprised to read:
5127 # /* config.h. Generated by config.status. */
5128 if test x"$ac_file" = x-; then
5129 echo "/* Generated by configure. */" >$tmp/config.h
5131 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5133 cat $tmp/in >>$tmp/config.h
5135 if test x"$ac_file" != x-; then
5136 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5137 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5138 echo "$as_me: $ac_file is unchanged" >&6;}
5140 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5141 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5142 X"$ac_file" : 'X\(//\)[^/]' \| \
5143 X"$ac_file" : 'X\(//\)$' \| \
5144 X"$ac_file" : 'X\(/\)' \| \
5145 . : '\(.\)' 2>/dev/null ||
5147 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5148 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5149 /^X\(\/\/\)$/{ s//\1/; q; }
5150 /^X\(\/\).*/{ s//\1/; q; }
5152 { if $as_mkdir_p; then
5157 while test ! -d "$as_dir"; do
5158 as_dirs="$as_dir $as_dirs"
5159 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5160 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5161 X"$as_dir" : 'X\(//\)[^/]' \| \
5162 X"$as_dir" : 'X\(//\)$' \| \
5163 X"$as_dir" : 'X\(/\)' \| \
5164 . : '\(.\)' 2>/dev/null ||
5166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5167 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5168 /^X\(\/\/\)$/{ s//\1/; q; }
5169 /^X\(\/\).*/{ s//\1/; q; }
5172 test ! -n "$as_dirs" || mkdir $as_dirs
5173 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5174 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5175 { (exit 1); exit 1; }; }; }
5178 mv $tmp/config.h $ac_file
5186 cat >>$CONFIG_STATUS <<\_ACEOF
5189 # CONFIG_COMMANDS section.
5191 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5192 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5193 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5194 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5195 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5196 X"$ac_dest" : 'X\(//\)[^/]' \| \
5197 X"$ac_dest" : 'X\(//\)$' \| \
5198 X"$ac_dest" : 'X\(/\)' \| \
5199 . : '\(.\)' 2>/dev/null ||
5201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5202 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5203 /^X\(\/\/\)$/{ s//\1/; q; }
5204 /^X\(\/\).*/{ s//\1/; q; }
5208 if test "$ac_dir" != .; then
5209 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5210 # A "../" for each directory in $ac_dir_suffix.
5211 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5213 ac_dir_suffix= ac_top_builddir=
5217 .) # No --srcdir option. We are building in place.
5219 if test -z "$ac_top_builddir"; then
5222 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5224 [\\/]* | ?:[\\/]* ) # Absolute path.
5225 ac_srcdir=$srcdir$ac_dir_suffix;
5226 ac_top_srcdir=$srcdir ;;
5228 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5229 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5231 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5233 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5234 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
5235 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5236 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5239 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5240 echo "$as_me: executing $ac_dest commands" >&6;}
5242 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
5247 cat >>$CONFIG_STATUS <<\_ACEOF
5249 { (exit 0); exit 0; }
5251 chmod +x $CONFIG_STATUS
5252 ac_clean_files=$ac_clean_files_save
5255 # configure is writing to config.log, and then calls config.status.
5256 # config.status does its own redirection, appending to config.log.
5257 # Unfortunately, on DOS this fails, as config.log is still kept open
5258 # by configure, so config.status won't be able to write to it; its
5259 # output is simply discarded. So we exec the FD to /dev/null,
5260 # effectively closing config.log, so it can be properly (re)opened and
5261 # appended to by config.status. When coming back to configure, we
5262 # need to make the FD available again.
5263 if test "$no_create" != yes; then
5265 ac_config_status_args=
5266 test "$silent" = yes &&
5267 ac_config_status_args="$ac_config_status_args --quiet"
5269 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5271 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5272 # would make configure fail if this is the last instruction.
5273 $ac_cs_success || { (exit 1); exit 1; }
5277 if test ! -d debian ; then
5281 echo "Configure status:"
5282 echo "-----------------"
5284 echo " CFLAGS = $CFLAGS"
5285 echo " LDRPATH= $LDRPATH"