2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
273 ac_unique_file="gettext.c"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
311 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 SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT build build_cpu build_vendor build_os host host_cpu host_vendor host_os RANLIB ac_ct_RANLIB CPP EGREP ALLOCA GLIBC21 LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB LIBINTL_DEP INCINTL LIBOBJS LTLIBOBJS'
314 # Initialize some variables set by options.
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name=s,x,x,
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
429 -help | --help | --hel | --he | -h)
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 # Obsolete; use --without-fp.
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
559 -site=* | --site=* | --sit=*)
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 -version | --version | --versio | --versi | --vers | -V)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
608 # Obsolete; use --with-x.
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
774 # Report the --help message.
776 if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
780 \`configure' configures this package to adapt to many kinds of systems.
782 Usage: $0 [OPTION]... [VAR=VALUE]...
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
787 Defaults for the options are specified in brackets.
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
814 For better control, use the options below.
816 Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
834 --build=BUILD configure for building on BUILD [guessed]
835 --host=HOST cross-compile to build programs to run on HOST [BUILD]
839 if test -n "$ac_init_help"; then
844 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
845 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
846 --disable-nls do not use Native Language Support
847 --disable-rpath do not hardcode runtime library paths
850 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
851 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
852 --with-gnu-ld assume the C compiler uses GNU ld default=no
853 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
854 --without-libiconv-prefix don't search for libiconv in includedir and libdir
855 --with-included-gettext use the GNU gettext library included here
856 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
857 --without-libintl-prefix don't search for libintl in includedir and libdir
859 Some influential environment variables:
860 CC C compiler command
861 CFLAGS C compiler flags
862 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
863 nonstandard directory <lib dir>
864 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
865 headers in a nonstandard directory <include dir>
868 Use these variables to override the choices made by `configure' or to help
869 it to find libraries and programs with nonstandard names/locations.
874 if test "$ac_init_help" = "recursive"; then
875 # If there are subdirs, report their specific --help.
877 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
878 test -d $ac_dir || continue
881 if test "$ac_dir" != .; then
882 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
883 # A "../" for each directory in $ac_dir_suffix.
884 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
886 ac_dir_suffix= ac_top_builddir=
890 .) # No --srcdir option. We are building in place.
892 if test -z "$ac_top_builddir"; then
895 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
897 [\\/]* | ?:[\\/]* ) # Absolute path.
898 ac_srcdir=$srcdir$ac_dir_suffix;
899 ac_top_srcdir=$srcdir ;;
901 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
902 ac_top_srcdir=$ac_top_builddir$srcdir ;;
904 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
906 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
907 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
908 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
909 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
912 # Check for guested configure; otherwise get Cygnus style configure.
913 if test -f $ac_srcdir/configure.gnu; then
915 $SHELL $ac_srcdir/configure.gnu --help=recursive
916 elif test -f $ac_srcdir/configure; then
918 $SHELL $ac_srcdir/configure --help=recursive
919 elif test -f $ac_srcdir/configure.ac ||
920 test -f $ac_srcdir/configure.in; then
924 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
930 test -n "$ac_init_help" && exit 0
931 if $ac_init_version; then
934 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
935 Free Software Foundation, Inc.
936 This configure script is free software; the Free Software Foundation
937 gives unlimited permission to copy, distribute and modify it.
943 This file contains any messages produced by compilers while
944 running configure, to aid debugging if configure makes a mistake.
946 It was created by $as_me, which was
947 generated by GNU Autoconf 2.57. Invocation command line was
958 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
959 uname -m = `(uname -m) 2>/dev/null || echo unknown`
960 uname -r = `(uname -r) 2>/dev/null || echo unknown`
961 uname -s = `(uname -s) 2>/dev/null || echo unknown`
962 uname -v = `(uname -v) 2>/dev/null || echo unknown`
964 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
965 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
967 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
968 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
969 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
970 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
971 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
972 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
973 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
981 test -z "$as_dir" && as_dir=.
997 # Keep a trace of the command line.
998 # Strip out --no-create and --no-recursion so they do not pile up.
999 # Strip out --silent because we don't want to record it for future runs.
1000 # Also quote any args containing shell meta-characters.
1001 # Make two passes to allow for proper duplicate-argument suppression.
1006 ac_must_keep_next=false
1012 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1013 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1014 | -silent | --silent | --silen | --sile | --sil)
1016 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1017 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1020 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1022 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1023 if test $ac_must_keep_next = true; then
1024 ac_must_keep_next=false # Got value, back to normal.
1027 *=* | --config-cache | -C | -disable-* | --disable-* \
1028 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1029 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1030 | -with-* | --with-* | -without-* | --without-* | --x)
1031 case "$ac_configure_args0 " in
1032 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1035 -* ) ac_must_keep_next=true ;;
1038 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1039 # Get rid of the leading space.
1045 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1046 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1048 # When interrupted or exit'd, cleanup temporary files, and complete
1049 # config.log. We remove comments because anyway the quotes in there
1050 # would cause problems or look ugly.
1051 # WARNING: Be sure not to use single quotes in there, as some shells,
1052 # such as our DU 5.0 friend, will then `close' the trap.
1053 trap 'exit_status=$?
1054 # Save into config.log some information that might help in debugging.
1059 ## ---------------- ##
1060 ## Cache variables. ##
1061 ## ---------------- ##
1064 # The following way of writing the cache mishandles newlines in values,
1067 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1070 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1071 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1075 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1082 ## ----------------- ##
1083 ## Output variables. ##
1084 ## ----------------- ##
1087 for ac_var in $ac_subst_vars
1089 eval ac_val=$`echo $ac_var`
1090 echo "$ac_var='"'"'$ac_val'"'"'"
1094 if test -n "$ac_subst_files"; then
1101 for ac_var in $ac_subst_files
1103 eval ac_val=$`echo $ac_var`
1104 echo "$ac_var='"'"'$ac_val'"'"'"
1109 if test -s confdefs.h; then
1116 sed "/^$/d" confdefs.h | sort
1119 test "$ac_signal" != 0 &&
1120 echo "$as_me: caught signal $ac_signal"
1121 echo "$as_me: exit $exit_status"
1123 rm -f core *.core &&
1124 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1127 for ac_signal in 1 2 13 15; do
1128 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1132 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1133 rm -rf conftest* confdefs.h
1134 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1137 # Predefined preprocessor variables.
1139 cat >>confdefs.h <<_ACEOF
1140 #define PACKAGE_NAME "$PACKAGE_NAME"
1144 cat >>confdefs.h <<_ACEOF
1145 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1149 cat >>confdefs.h <<_ACEOF
1150 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1154 cat >>confdefs.h <<_ACEOF
1155 #define PACKAGE_STRING "$PACKAGE_STRING"
1159 cat >>confdefs.h <<_ACEOF
1160 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1164 # Let the site file select an alternate cache file if it wants to.
1165 # Prefer explicitly selected file to automatically selected ones.
1166 if test -z "$CONFIG_SITE"; then
1167 if test "x$prefix" != xNONE; then
1168 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1170 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1173 for ac_site_file in $CONFIG_SITE; do
1174 if test -r "$ac_site_file"; then
1175 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1176 echo "$as_me: loading site script $ac_site_file" >&6;}
1177 sed 's/^/| /' "$ac_site_file" >&5
1182 if test -r "$cache_file"; then
1183 # Some versions of bash will fail to source /dev/null (special
1184 # files actually), so we avoid doing that.
1185 if test -f "$cache_file"; then
1186 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1187 echo "$as_me: loading cache $cache_file" >&6;}
1189 [\\/]* | ?:[\\/]* ) . $cache_file;;
1190 *) . ./$cache_file;;
1194 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1195 echo "$as_me: creating cache $cache_file" >&6;}
1199 # Check that the precious variables saved in the cache have kept the same
1201 ac_cache_corrupted=false
1202 for ac_var in `(set) 2>&1 |
1203 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1204 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1205 eval ac_new_set=\$ac_env_${ac_var}_set
1206 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1207 eval ac_new_val="\$ac_env_${ac_var}_value"
1208 case $ac_old_set,$ac_new_set in
1210 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1211 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1212 ac_cache_corrupted=: ;;
1214 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1215 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1216 ac_cache_corrupted=: ;;
1219 if test "x$ac_old_val" != "x$ac_new_val"; then
1220 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1221 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1222 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1223 echo "$as_me: former value: $ac_old_val" >&2;}
1224 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1225 echo "$as_me: current value: $ac_new_val" >&2;}
1226 ac_cache_corrupted=:
1229 # Pass precious variables to config.status.
1230 if test "$ac_new_set" = set; then
1232 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1233 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1234 *) ac_arg=$ac_var=$ac_new_val ;;
1236 case " $ac_configure_args " in
1237 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1238 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1242 if $ac_cache_corrupted; then
1243 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1244 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1245 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1246 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1247 { (exit 1); exit 1; }; }
1251 ac_cpp='$CPP $CPPFLAGS'
1252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1275 ac_config_headers="$ac_config_headers config.h"
1278 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1279 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1280 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1281 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1282 echo $ECHO_N "(cached) $ECHO_C" >&6
1284 cat >conftest.make <<\_ACEOF
1286 @echo 'ac_maketemp="$(MAKE)"'
1288 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1289 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1290 if test -n "$ac_maketemp"; then
1291 eval ac_cv_prog_make_${ac_make}_set=yes
1293 eval ac_cv_prog_make_${ac_make}_set=no
1297 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1298 echo "$as_me:$LINENO: result: yes" >&5
1299 echo "${ECHO_T}yes" >&6
1302 echo "$as_me:$LINENO: result: no" >&5
1303 echo "${ECHO_T}no" >&6
1304 SET_MAKE="MAKE=${MAKE-make}"
1308 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1309 if test -f $ac_dir/install-sh; then
1311 ac_install_sh="$ac_aux_dir/install-sh -c"
1313 elif test -f $ac_dir/install.sh; then
1315 ac_install_sh="$ac_aux_dir/install.sh -c"
1317 elif test -f $ac_dir/shtool; then
1319 ac_install_sh="$ac_aux_dir/shtool install -c"
1323 if test -z "$ac_aux_dir"; then
1324 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1325 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1326 { (exit 1); exit 1; }; }
1328 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1329 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1330 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1332 # Find a good install program. We prefer a C program (faster),
1333 # so one script is as good as another. But avoid the broken or
1334 # incompatible versions:
1335 # SysV /etc/install, /usr/sbin/install
1336 # SunOS /usr/etc/install
1337 # IRIX /sbin/install
1339 # AmigaOS /C/install, which installs bootblocks on floppy discs
1340 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1341 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1342 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1343 # ./install, which can be erroneously created by make from ./install.sh.
1344 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1345 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1346 if test -z "$INSTALL"; then
1347 if test "${ac_cv_path_install+set}" = set; then
1348 echo $ECHO_N "(cached) $ECHO_C" >&6
1350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1354 test -z "$as_dir" && as_dir=.
1355 # Account for people who put trailing slashes in PATH elements.
1357 ./ | .// | /cC/* | \
1358 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1361 # OSF1 and SCO ODT 3.0 have their own names for install.
1362 # Don't use installbsd from OSF since it installs stuff as root
1364 for ac_prog in ginstall scoinst install; do
1365 for ac_exec_ext in '' $ac_executable_extensions; do
1366 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1367 if test $ac_prog = install &&
1368 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1369 # AIX install. It has an incompatible calling convention.
1371 elif test $ac_prog = install &&
1372 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1373 # program-specific install script used by HP pwplus--don't use.
1376 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1388 if test "${ac_cv_path_install+set}" = set; then
1389 INSTALL=$ac_cv_path_install
1391 # As a last resort, use the slow shell script. We don't cache a
1392 # path for INSTALL within a source directory, because that will
1393 # break other packages using the cache if that directory is
1394 # removed, or if the path is relative.
1395 INSTALL=$ac_install_sh
1398 echo "$as_me:$LINENO: result: $INSTALL" >&5
1399 echo "${ECHO_T}$INSTALL" >&6
1401 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1402 # It thinks the first close brace ends the variable substitution.
1403 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1405 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1407 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1411 if test -n "$ac_aux_dir"; then
1412 case "$ac_aux_dir" in
1413 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
1414 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
1417 if test -z "$MKINSTALLDIRS"; then
1418 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
1423 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
1424 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
1425 # Check whether --enable-nls or --disable-nls was given.
1426 if test "${enable_nls+set}" = set; then
1427 enableval="$enable_nls"
1432 echo "$as_me:$LINENO: result: $USE_NLS" >&5
1433 echo "${ECHO_T}$USE_NLS" >&6
1440 # Prepare PATH_SEPARATOR.
1441 # The user is always right.
1442 if test "${PATH_SEPARATOR+set}" != set; then
1443 echo "#! /bin/sh" >conf$$.sh
1444 echo "exit 0" >>conf$$.sh
1446 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
1454 # Find out how to test for executable files. Don't use a zero-byte file,
1455 # as systems may use methods other than mode bits to determine executability.
1456 cat >conf$$.file <<_ASEOF
1460 chmod +x conf$$.file
1461 if test -x conf$$.file >/dev/null 2>&1; then
1462 ac_executable_p="test -x"
1464 ac_executable_p="test -f"
1468 # Extract the first word of "msgfmt", so it can be a program name with args.
1469 set dummy msgfmt; ac_word=$2
1470 echo "$as_me:$LINENO: checking for $ac_word" >&5
1471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1472 if test "${ac_cv_path_MSGFMT+set}" = set; then
1473 echo $ECHO_N "(cached) $ECHO_C" >&6
1477 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
1480 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
1481 for ac_dir in $PATH; do
1483 test -z "$ac_dir" && ac_dir=.
1484 for ac_exec_ext in '' $ac_executable_extensions; do
1485 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
1486 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
1487 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
1488 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
1495 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
1499 MSGFMT="$ac_cv_path_MSGFMT"
1500 if test "$MSGFMT" != ":"; then
1501 echo "$as_me:$LINENO: result: $MSGFMT" >&5
1502 echo "${ECHO_T}$MSGFMT" >&6
1504 echo "$as_me:$LINENO: result: no" >&5
1505 echo "${ECHO_T}no" >&6
1508 # Extract the first word of "gmsgfmt", so it can be a program name with args.
1509 set dummy gmsgfmt; ac_word=$2
1510 echo "$as_me:$LINENO: checking for $ac_word" >&5
1511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1512 if test "${ac_cv_path_GMSGFMT+set}" = set; then
1513 echo $ECHO_N "(cached) $ECHO_C" >&6
1517 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
1520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1524 test -z "$as_dir" && as_dir=.
1525 for ac_exec_ext in '' $ac_executable_extensions; do
1526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1527 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
1528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1534 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
1538 GMSGFMT=$ac_cv_path_GMSGFMT
1540 if test -n "$GMSGFMT"; then
1541 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
1542 echo "${ECHO_T}$GMSGFMT" >&6
1544 echo "$as_me:$LINENO: result: no" >&5
1545 echo "${ECHO_T}no" >&6
1550 # Prepare PATH_SEPARATOR.
1551 # The user is always right.
1552 if test "${PATH_SEPARATOR+set}" != set; then
1553 echo "#! /bin/sh" >conf$$.sh
1554 echo "exit 0" >>conf$$.sh
1556 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
1564 # Find out how to test for executable files. Don't use a zero-byte file,
1565 # as systems may use methods other than mode bits to determine executability.
1566 cat >conf$$.file <<_ASEOF
1570 chmod +x conf$$.file
1571 if test -x conf$$.file >/dev/null 2>&1; then
1572 ac_executable_p="test -x"
1574 ac_executable_p="test -f"
1578 # Extract the first word of "xgettext", so it can be a program name with args.
1579 set dummy xgettext; ac_word=$2
1580 echo "$as_me:$LINENO: checking for $ac_word" >&5
1581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1582 if test "${ac_cv_path_XGETTEXT+set}" = set; then
1583 echo $ECHO_N "(cached) $ECHO_C" >&6
1587 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
1590 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
1591 for ac_dir in $PATH; do
1593 test -z "$ac_dir" && ac_dir=.
1594 for ac_exec_ext in '' $ac_executable_extensions; do
1595 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
1596 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
1597 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
1598 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
1605 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
1609 XGETTEXT="$ac_cv_path_XGETTEXT"
1610 if test "$XGETTEXT" != ":"; then
1611 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
1612 echo "${ECHO_T}$XGETTEXT" >&6
1614 echo "$as_me:$LINENO: result: no" >&5
1615 echo "${ECHO_T}no" >&6
1621 # Prepare PATH_SEPARATOR.
1622 # The user is always right.
1623 if test "${PATH_SEPARATOR+set}" != set; then
1624 echo "#! /bin/sh" >conf$$.sh
1625 echo "exit 0" >>conf$$.sh
1627 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
1635 # Find out how to test for executable files. Don't use a zero-byte file,
1636 # as systems may use methods other than mode bits to determine executability.
1637 cat >conf$$.file <<_ASEOF
1641 chmod +x conf$$.file
1642 if test -x conf$$.file >/dev/null 2>&1; then
1643 ac_executable_p="test -x"
1645 ac_executable_p="test -f"
1649 # Extract the first word of "msgmerge", so it can be a program name with args.
1650 set dummy msgmerge; ac_word=$2
1651 echo "$as_me:$LINENO: checking for $ac_word" >&5
1652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1653 if test "${ac_cv_path_MSGMERGE+set}" = set; then
1654 echo $ECHO_N "(cached) $ECHO_C" >&6
1658 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
1661 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
1662 for ac_dir in $PATH; do
1664 test -z "$ac_dir" && ac_dir=.
1665 for ac_exec_ext in '' $ac_executable_extensions; do
1666 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
1667 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
1668 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
1675 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
1679 MSGMERGE="$ac_cv_path_MSGMERGE"
1680 if test "$MSGMERGE" != ":"; then
1681 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
1682 echo "${ECHO_T}$MSGMERGE" >&6
1684 echo "$as_me:$LINENO: result: no" >&5
1685 echo "${ECHO_T}no" >&6
1689 if test "$GMSGFMT" != ":"; then
1690 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
1691 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
1694 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
1695 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
1696 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
1701 if test "$XGETTEXT" != ":"; then
1702 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
1703 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
1706 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
1707 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
1713 ac_config_commands="$ac_config_commands default-1"
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 # Make sure we can run config.sub.
2584 $ac_config_sub sun4 >/dev/null 2>&1 ||
2585 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2586 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2587 { (exit 1); exit 1; }; }
2589 echo "$as_me:$LINENO: checking build system type" >&5
2590 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2591 if test "${ac_cv_build+set}" = set; then
2592 echo $ECHO_N "(cached) $ECHO_C" >&6
2594 ac_cv_build_alias=$build_alias
2595 test -z "$ac_cv_build_alias" &&
2596 ac_cv_build_alias=`$ac_config_guess`
2597 test -z "$ac_cv_build_alias" &&
2598 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2599 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2600 { (exit 1); exit 1; }; }
2601 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2602 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2603 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2604 { (exit 1); exit 1; }; }
2607 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2608 echo "${ECHO_T}$ac_cv_build" >&6
2610 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2611 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2612 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2615 echo "$as_me:$LINENO: checking host system type" >&5
2616 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2617 if test "${ac_cv_host+set}" = set; then
2618 echo $ECHO_N "(cached) $ECHO_C" >&6
2620 ac_cv_host_alias=$host_alias
2621 test -z "$ac_cv_host_alias" &&
2622 ac_cv_host_alias=$ac_cv_build_alias
2623 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2624 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2625 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2626 { (exit 1); exit 1; }; }
2629 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2630 echo "${ECHO_T}$ac_cv_host" >&6
2632 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2633 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2634 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2637 if test -n "$ac_tool_prefix"; then
2638 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2639 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2640 echo "$as_me:$LINENO: checking for $ac_word" >&5
2641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2642 if test "${ac_cv_prog_RANLIB+set}" = set; then
2643 echo $ECHO_N "(cached) $ECHO_C" >&6
2645 if test -n "$RANLIB"; then
2646 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 test -z "$as_dir" && as_dir=.
2653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2655 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2664 RANLIB=$ac_cv_prog_RANLIB
2665 if test -n "$RANLIB"; then
2666 echo "$as_me:$LINENO: result: $RANLIB" >&5
2667 echo "${ECHO_T}$RANLIB" >&6
2669 echo "$as_me:$LINENO: result: no" >&5
2670 echo "${ECHO_T}no" >&6
2674 if test -z "$ac_cv_prog_RANLIB"; then
2675 ac_ct_RANLIB=$RANLIB
2676 # Extract the first word of "ranlib", so it can be a program name with args.
2677 set dummy ranlib; ac_word=$2
2678 echo "$as_me:$LINENO: checking for $ac_word" >&5
2679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2680 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2683 if test -n "$ac_ct_RANLIB"; then
2684 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 test -z "$as_dir" && as_dir=.
2691 for ac_exec_ext in '' $ac_executable_extensions; do
2692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2693 ac_cv_prog_ac_ct_RANLIB="ranlib"
2694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2700 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2703 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2704 if test -n "$ac_ct_RANLIB"; then
2705 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2706 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2708 echo "$as_me:$LINENO: result: no" >&5
2709 echo "${ECHO_T}no" >&6
2712 RANLIB=$ac_ct_RANLIB
2714 RANLIB="$ac_cv_prog_RANLIB"
2719 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2720 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2721 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2722 echo $ECHO_N "(cached) $ECHO_C" >&6
2724 ac_check_lib_save_LIBS=$LIBS
2725 LIBS="-lcposix $LIBS"
2726 cat >conftest.$ac_ext <<_ACEOF
2727 #line $LINENO "configure"
2730 cat confdefs.h >>conftest.$ac_ext
2731 cat >>conftest.$ac_ext <<_ACEOF
2732 /* end confdefs.h. */
2734 /* Override any gcc2 internal prototype to avoid an error. */
2738 /* We use char because int might match the return type of a gcc2
2739 builtin and then its argument prototype would still apply. */
2749 rm -f conftest.$ac_objext conftest$ac_exeext
2750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2751 (eval $ac_link) 2>&5
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); } &&
2755 { ac_try='test -s conftest$ac_exeext'
2756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }; }; then
2761 ac_cv_lib_cposix_strerror=yes
2763 echo "$as_me: failed program was:" >&5
2764 sed 's/^/| /' conftest.$ac_ext >&5
2766 ac_cv_lib_cposix_strerror=no
2768 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2769 LIBS=$ac_check_lib_save_LIBS
2771 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2772 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2773 if test $ac_cv_lib_cposix_strerror = yes; then
2774 LIBS="$LIBS -lcposix"
2780 ac_cpp='$CPP $CPPFLAGS'
2781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2784 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2785 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2786 # On Suns, sometimes $CPP names a directory.
2787 if test -n "$CPP" && test -d "$CPP"; then
2790 if test -z "$CPP"; then
2791 if test "${ac_cv_prog_CPP+set}" = set; then
2792 echo $ECHO_N "(cached) $ECHO_C" >&6
2794 # Double quotes because CPP needs to be expanded
2795 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2798 for ac_c_preproc_warn_flag in '' yes
2800 # Use a header file that comes with gcc, so configuring glibc
2801 # with a fresh cross-compiler works.
2802 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2803 # <limits.h> exists even on freestanding compilers.
2804 # On the NeXT, cc -E runs the code through the compiler's parser,
2805 # not just through cpp. "Syntax error" is here to catch this case.
2806 cat >conftest.$ac_ext <<_ACEOF
2807 #line $LINENO "configure"
2810 cat confdefs.h >>conftest.$ac_ext
2811 cat >>conftest.$ac_ext <<_ACEOF
2812 /* end confdefs.h. */
2814 # include <limits.h>
2816 # include <assert.h>
2820 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2821 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2823 grep -v '^ *+' conftest.er1 >conftest.err
2825 cat conftest.err >&5
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); } >/dev/null; then
2828 if test -s conftest.err; then
2829 ac_cpp_err=$ac_c_preproc_warn_flag
2836 if test -z "$ac_cpp_err"; then
2839 echo "$as_me: failed program was:" >&5
2840 sed 's/^/| /' conftest.$ac_ext >&5
2842 # Broken: fails on valid input.
2845 rm -f conftest.err conftest.$ac_ext
2847 # OK, works on sane cases. Now check whether non-existent headers
2848 # can be detected and how.
2849 cat >conftest.$ac_ext <<_ACEOF
2850 #line $LINENO "configure"
2853 cat confdefs.h >>conftest.$ac_ext
2854 cat >>conftest.$ac_ext <<_ACEOF
2855 /* end confdefs.h. */
2856 #include <ac_nonexistent.h>
2858 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2861 grep -v '^ *+' conftest.er1 >conftest.err
2863 cat conftest.err >&5
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); } >/dev/null; then
2866 if test -s conftest.err; then
2867 ac_cpp_err=$ac_c_preproc_warn_flag
2874 if test -z "$ac_cpp_err"; then
2875 # Broken: success on invalid input.
2878 echo "$as_me: failed program was:" >&5
2879 sed 's/^/| /' conftest.$ac_ext >&5
2881 # Passes both tests.
2885 rm -f conftest.err conftest.$ac_ext
2888 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2889 rm -f conftest.err conftest.$ac_ext
2890 if $ac_preproc_ok; then
2902 echo "$as_me:$LINENO: result: $CPP" >&5
2903 echo "${ECHO_T}$CPP" >&6
2905 for ac_c_preproc_warn_flag in '' yes
2907 # Use a header file that comes with gcc, so configuring glibc
2908 # with a fresh cross-compiler works.
2909 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2910 # <limits.h> exists even on freestanding compilers.
2911 # On the NeXT, cc -E runs the code through the compiler's parser,
2912 # not just through cpp. "Syntax error" is here to catch this case.
2913 cat >conftest.$ac_ext <<_ACEOF
2914 #line $LINENO "configure"
2917 cat confdefs.h >>conftest.$ac_ext
2918 cat >>conftest.$ac_ext <<_ACEOF
2919 /* end confdefs.h. */
2921 # include <limits.h>
2923 # include <assert.h>
2927 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2928 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2930 grep -v '^ *+' conftest.er1 >conftest.err
2932 cat conftest.err >&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); } >/dev/null; then
2935 if test -s conftest.err; then
2936 ac_cpp_err=$ac_c_preproc_warn_flag
2943 if test -z "$ac_cpp_err"; then
2946 echo "$as_me: failed program was:" >&5
2947 sed 's/^/| /' conftest.$ac_ext >&5
2949 # Broken: fails on valid input.
2952 rm -f conftest.err conftest.$ac_ext
2954 # OK, works on sane cases. Now check whether non-existent headers
2955 # can be detected and how.
2956 cat >conftest.$ac_ext <<_ACEOF
2957 #line $LINENO "configure"
2960 cat confdefs.h >>conftest.$ac_ext
2961 cat >>conftest.$ac_ext <<_ACEOF
2962 /* end confdefs.h. */
2963 #include <ac_nonexistent.h>
2965 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2966 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2968 grep -v '^ *+' conftest.er1 >conftest.err
2970 cat conftest.err >&5
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); } >/dev/null; then
2973 if test -s conftest.err; then
2974 ac_cpp_err=$ac_c_preproc_warn_flag
2981 if test -z "$ac_cpp_err"; then
2982 # Broken: success on invalid input.
2985 echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2988 # Passes both tests.
2992 rm -f conftest.err conftest.$ac_ext
2995 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2996 rm -f conftest.err conftest.$ac_ext
2997 if $ac_preproc_ok; then
3000 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3001 See \`config.log' for more details." >&5
3002 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3003 See \`config.log' for more details." >&2;}
3004 { (exit 1); exit 1; }; }
3008 ac_cpp='$CPP $CPPFLAGS'
3009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3014 echo "$as_me:$LINENO: checking for egrep" >&5
3015 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3016 if test "${ac_cv_prog_egrep+set}" = set; then
3017 echo $ECHO_N "(cached) $ECHO_C" >&6
3019 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3020 then ac_cv_prog_egrep='grep -E'
3021 else ac_cv_prog_egrep='egrep'
3024 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3025 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3026 EGREP=$ac_cv_prog_egrep
3029 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3030 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3031 if test "${ac_cv_header_stdc+set}" = set; then
3032 echo $ECHO_N "(cached) $ECHO_C" >&6
3034 cat >conftest.$ac_ext <<_ACEOF
3035 #line $LINENO "configure"
3038 cat confdefs.h >>conftest.$ac_ext
3039 cat >>conftest.$ac_ext <<_ACEOF
3040 /* end confdefs.h. */
3054 rm -f conftest.$ac_objext
3055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3056 (eval $ac_compile) 2>&5
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); } &&
3060 { ac_try='test -s conftest.$ac_objext'
3061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); }; }; then
3066 ac_cv_header_stdc=yes
3068 echo "$as_me: failed program was:" >&5
3069 sed 's/^/| /' conftest.$ac_ext >&5
3071 ac_cv_header_stdc=no
3073 rm -f conftest.$ac_objext conftest.$ac_ext
3075 if test $ac_cv_header_stdc = yes; then
3076 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3077 cat >conftest.$ac_ext <<_ACEOF
3078 #line $LINENO "configure"
3081 cat confdefs.h >>conftest.$ac_ext
3082 cat >>conftest.$ac_ext <<_ACEOF
3083 /* end confdefs.h. */
3087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3088 $EGREP "memchr" >/dev/null 2>&1; then
3091 ac_cv_header_stdc=no
3097 if test $ac_cv_header_stdc = yes; then
3098 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3099 cat >conftest.$ac_ext <<_ACEOF
3100 #line $LINENO "configure"
3103 cat confdefs.h >>conftest.$ac_ext
3104 cat >>conftest.$ac_ext <<_ACEOF
3105 /* end confdefs.h. */
3109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3110 $EGREP "free" >/dev/null 2>&1; then
3113 ac_cv_header_stdc=no
3119 if test $ac_cv_header_stdc = yes; then
3120 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3121 if test "$cross_compiling" = yes; then
3124 cat >conftest.$ac_ext <<_ACEOF
3125 #line $LINENO "configure"
3128 cat confdefs.h >>conftest.$ac_ext
3129 cat >>conftest.$ac_ext <<_ACEOF
3130 /* end confdefs.h. */
3132 #if ((' ' & 0x0FF) == 0x020)
3133 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3134 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3136 # define ISLOWER(c) \
3137 (('a' <= (c) && (c) <= 'i') \
3138 || ('j' <= (c) && (c) <= 'r') \
3139 || ('s' <= (c) && (c) <= 'z'))
3140 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3143 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3148 for (i = 0; i < 256; i++)
3149 if (XOR (islower (i), ISLOWER (i))
3150 || toupper (i) != TOUPPER (i))
3155 rm -f conftest$ac_exeext
3156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3157 (eval $ac_link) 2>&5
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); }; }; then
3168 echo "$as_me: program exited with status $ac_status" >&5
3169 echo "$as_me: failed program was:" >&5
3170 sed 's/^/| /' conftest.$ac_ext >&5
3173 ac_cv_header_stdc=no
3175 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3179 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3180 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3181 if test $ac_cv_header_stdc = yes; then
3183 cat >>confdefs.h <<\_ACEOF
3184 #define STDC_HEADERS 1
3189 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3190 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3191 if test "${ac_cv_c_const+set}" = set; then
3192 echo $ECHO_N "(cached) $ECHO_C" >&6
3194 cat >conftest.$ac_ext <<_ACEOF
3195 #line $LINENO "configure"
3198 cat confdefs.h >>conftest.$ac_ext
3199 cat >>conftest.$ac_ext <<_ACEOF
3200 /* end confdefs.h. */
3205 /* FIXME: Include the comments suggested by Paul. */
3207 /* Ultrix mips cc rejects this. */
3208 typedef int charset[2];
3210 /* SunOS 4.1.1 cc rejects this. */
3211 char const *const *ccp;
3213 /* NEC SVR4.0.2 mips cc rejects this. */
3214 struct point {int x, y;};
3215 static struct point const zero = {0,0};
3216 /* AIX XL C 1.02.0.0 rejects this.
3217 It does not let you subtract one const X* pointer from another in
3218 an arm of an if-expression whose if-part is not a constant
3220 const char *g = "string";
3221 ccp = &g + (g ? g-g : 0);
3222 /* HPUX 7.0 cc rejects these. */
3225 ccp = (char const *const *) p;
3226 { /* SCO 3.2v4 cc rejects this. */
3228 char const *s = 0 ? (char *) 0 : (char const *) 0;
3232 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3234 const int *foo = &x[0];
3237 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3238 typedef const int *iptr;
3242 { /* AIX XL C 1.02.0.0 rejects this saying
3243 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3244 struct s { int j; const int *ap[3]; };
3245 struct s *b; b->j = 5;
3247 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3256 rm -f conftest.$ac_objext
3257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3258 (eval $ac_compile) 2>&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); } &&
3262 { ac_try='test -s conftest.$ac_objext'
3263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); }; }; then
3270 echo "$as_me: failed program was:" >&5
3271 sed 's/^/| /' conftest.$ac_ext >&5
3275 rm -f conftest.$ac_objext conftest.$ac_ext
3277 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3278 echo "${ECHO_T}$ac_cv_c_const" >&6
3279 if test $ac_cv_c_const = no; then
3281 cat >>confdefs.h <<\_ACEOF
3287 echo "$as_me:$LINENO: checking for inline" >&5
3288 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3289 if test "${ac_cv_c_inline+set}" = set; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3293 for ac_kw in inline __inline__ __inline; do
3294 cat >conftest.$ac_ext <<_ACEOF
3295 #line $LINENO "configure"
3298 cat confdefs.h >>conftest.$ac_ext
3299 cat >>conftest.$ac_ext <<_ACEOF
3300 /* end confdefs.h. */
3303 static $ac_kw foo_t static_foo () {return 0; }
3304 $ac_kw foo_t foo () {return 0; }
3308 rm -f conftest.$ac_objext
3309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3310 (eval $ac_compile) 2>&5
3312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); } &&
3314 { ac_try='test -s conftest.$ac_objext'
3315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); }; }; then
3320 ac_cv_c_inline=$ac_kw; break
3322 echo "$as_me: failed program was:" >&5
3323 sed 's/^/| /' conftest.$ac_ext >&5
3326 rm -f conftest.$ac_objext conftest.$ac_ext
3330 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3331 echo "${ECHO_T}$ac_cv_c_inline" >&6
3332 case $ac_cv_c_inline in
3335 cat >>confdefs.h <<\_ACEOF
3339 *) cat >>confdefs.h <<_ACEOF
3340 #define inline $ac_cv_c_inline
3345 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3355 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3356 inttypes.h stdint.h unistd.h
3358 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3359 echo "$as_me:$LINENO: checking for $ac_header" >&5
3360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3362 echo $ECHO_N "(cached) $ECHO_C" >&6
3364 cat >conftest.$ac_ext <<_ACEOF
3365 #line $LINENO "configure"
3368 cat confdefs.h >>conftest.$ac_ext
3369 cat >>conftest.$ac_ext <<_ACEOF
3370 /* end confdefs.h. */
3371 $ac_includes_default
3373 #include <$ac_header>
3375 rm -f conftest.$ac_objext
3376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3377 (eval $ac_compile) 2>&5
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); } &&
3381 { ac_try='test -s conftest.$ac_objext'
3382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); }; }; then
3387 eval "$as_ac_Header=yes"
3389 echo "$as_me: failed program was:" >&5
3390 sed 's/^/| /' conftest.$ac_ext >&5
3392 eval "$as_ac_Header=no"
3394 rm -f conftest.$ac_objext conftest.$ac_ext
3396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3397 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3399 cat >>confdefs.h <<_ACEOF
3400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3408 echo "$as_me:$LINENO: checking for off_t" >&5
3409 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3410 if test "${ac_cv_type_off_t+set}" = set; then
3411 echo $ECHO_N "(cached) $ECHO_C" >&6
3413 cat >conftest.$ac_ext <<_ACEOF
3414 #line $LINENO "configure"
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h. */
3420 $ac_includes_default
3432 rm -f conftest.$ac_objext
3433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3434 (eval $ac_compile) 2>&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); } &&
3438 { ac_try='test -s conftest.$ac_objext'
3439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); }; }; then
3444 ac_cv_type_off_t=yes
3446 echo "$as_me: failed program was:" >&5
3447 sed 's/^/| /' conftest.$ac_ext >&5
3451 rm -f conftest.$ac_objext conftest.$ac_ext
3453 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3454 echo "${ECHO_T}$ac_cv_type_off_t" >&6
3455 if test $ac_cv_type_off_t = yes; then
3459 cat >>confdefs.h <<_ACEOF
3465 echo "$as_me:$LINENO: checking for size_t" >&5
3466 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3467 if test "${ac_cv_type_size_t+set}" = set; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3470 cat >conftest.$ac_ext <<_ACEOF
3471 #line $LINENO "configure"
3474 cat confdefs.h >>conftest.$ac_ext
3475 cat >>conftest.$ac_ext <<_ACEOF
3476 /* end confdefs.h. */
3477 $ac_includes_default
3483 if (sizeof (size_t))
3489 rm -f conftest.$ac_objext
3490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3491 (eval $ac_compile) 2>&5
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); } &&
3495 { ac_try='test -s conftest.$ac_objext'
3496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); }; }; then
3501 ac_cv_type_size_t=yes
3503 echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3506 ac_cv_type_size_t=no
3508 rm -f conftest.$ac_objext conftest.$ac_ext
3510 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3511 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3512 if test $ac_cv_type_size_t = yes; then
3516 cat >>confdefs.h <<_ACEOF
3517 #define size_t unsigned
3522 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3523 # for constant arguments. Useless!
3524 echo "$as_me:$LINENO: checking for working alloca.h" >&5
3525 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3526 if test "${ac_cv_working_alloca_h+set}" = set; then
3527 echo $ECHO_N "(cached) $ECHO_C" >&6
3529 cat >conftest.$ac_ext <<_ACEOF
3530 #line $LINENO "configure"
3533 cat confdefs.h >>conftest.$ac_ext
3534 cat >>conftest.$ac_ext <<_ACEOF
3535 /* end confdefs.h. */
3540 char *p = (char *) alloca (2 * sizeof (int));
3545 rm -f conftest.$ac_objext conftest$ac_exeext
3546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3547 (eval $ac_link) 2>&5
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); } &&
3551 { ac_try='test -s conftest$ac_exeext'
3552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); }; }; then
3557 ac_cv_working_alloca_h=yes
3559 echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3562 ac_cv_working_alloca_h=no
3564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3566 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3567 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3568 if test $ac_cv_working_alloca_h = yes; then
3570 cat >>confdefs.h <<\_ACEOF
3571 #define HAVE_ALLOCA_H 1
3576 echo "$as_me:$LINENO: checking for alloca" >&5
3577 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3578 if test "${ac_cv_func_alloca_works+set}" = set; then
3579 echo $ECHO_N "(cached) $ECHO_C" >&6
3581 cat >conftest.$ac_ext <<_ACEOF
3582 #line $LINENO "configure"
3585 cat confdefs.h >>conftest.$ac_ext
3586 cat >>conftest.$ac_ext <<_ACEOF
3587 /* end confdefs.h. */
3589 # define alloca __builtin_alloca
3592 # include <malloc.h>
3593 # define alloca _alloca
3596 # include <alloca.h>
3601 # ifndef alloca /* predefined by HP cc +Olibcalls */
3612 char *p = (char *) alloca (1);
3617 rm -f conftest.$ac_objext conftest$ac_exeext
3618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3619 (eval $ac_link) 2>&5
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); } &&
3623 { ac_try='test -s conftest$ac_exeext'
3624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); }; }; then
3629 ac_cv_func_alloca_works=yes
3631 echo "$as_me: failed program was:" >&5
3632 sed 's/^/| /' conftest.$ac_ext >&5
3634 ac_cv_func_alloca_works=no
3636 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3638 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3639 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3641 if test $ac_cv_func_alloca_works = yes; then
3643 cat >>confdefs.h <<\_ACEOF
3644 #define HAVE_ALLOCA 1
3648 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3649 # that cause trouble. Some versions do not even contain alloca or
3650 # contain a buggy version. If you still want to use their alloca,
3651 # use ar to extract alloca.o from them instead of compiling alloca.c.
3653 ALLOCA=alloca.$ac_objext
3655 cat >>confdefs.h <<\_ACEOF
3660 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3661 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3662 if test "${ac_cv_os_cray+set}" = set; then
3663 echo $ECHO_N "(cached) $ECHO_C" >&6
3665 cat >conftest.$ac_ext <<_ACEOF
3666 #line $LINENO "configure"
3669 cat confdefs.h >>conftest.$ac_ext
3670 cat >>conftest.$ac_ext <<_ACEOF
3671 /* end confdefs.h. */
3672 #if defined(CRAY) && ! defined(CRAY2)
3679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3680 $EGREP "webecray" >/dev/null 2>&1; then
3688 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3689 echo "${ECHO_T}$ac_cv_os_cray" >&6
3690 if test $ac_cv_os_cray = yes; then
3691 for ac_func in _getb67 GETB67 getb67; do
3692 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3693 echo "$as_me:$LINENO: checking for $ac_func" >&5
3694 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3695 if eval "test \"\${$as_ac_var+set}\" = set"; then
3696 echo $ECHO_N "(cached) $ECHO_C" >&6
3698 cat >conftest.$ac_ext <<_ACEOF
3699 #line $LINENO "configure"
3702 cat confdefs.h >>conftest.$ac_ext
3703 cat >>conftest.$ac_ext <<_ACEOF
3704 /* end confdefs.h. */
3705 /* System header to define __stub macros and hopefully few prototypes,
3706 which can conflict with char $ac_func (); below.
3707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3708 <limits.h> exists even on freestanding compilers. */
3710 # include <limits.h>
3712 # include <assert.h>
3714 /* Override any gcc2 internal prototype to avoid an error. */
3719 /* We use char because int might match the return type of a gcc2
3720 builtin and then its argument prototype would still apply. */
3722 /* The GNU C library defines this for functions which it implements
3723 to always fail with ENOSYS. Some functions are actually named
3724 something starting with __ and the normal name is an alias. */
3725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3728 char (*f) () = $ac_func;
3737 return f != $ac_func;
3742 rm -f conftest.$ac_objext conftest$ac_exeext
3743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3744 (eval $ac_link) 2>&5
3746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); } &&
3748 { ac_try='test -s conftest$ac_exeext'
3749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); }; }; then
3754 eval "$as_ac_var=yes"
3756 echo "$as_me: failed program was:" >&5
3757 sed 's/^/| /' conftest.$ac_ext >&5
3759 eval "$as_ac_var=no"
3761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3764 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3765 if test `eval echo '${'$as_ac_var'}'` = yes; then
3767 cat >>confdefs.h <<_ACEOF
3768 #define CRAY_STACKSEG_END $ac_func
3777 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3778 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3779 if test "${ac_cv_c_stack_direction+set}" = set; then
3780 echo $ECHO_N "(cached) $ECHO_C" >&6
3782 if test "$cross_compiling" = yes; then
3783 ac_cv_c_stack_direction=0
3785 cat >conftest.$ac_ext <<_ACEOF
3786 #line $LINENO "configure"
3789 cat confdefs.h >>conftest.$ac_ext
3790 cat >>conftest.$ac_ext <<_ACEOF
3791 /* end confdefs.h. */
3793 find_stack_direction ()
3795 static char *addr = 0;
3800 return find_stack_direction ();
3803 return (&dummy > addr) ? 1 : -1;
3809 exit (find_stack_direction () < 0);
3812 rm -f conftest$ac_exeext
3813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3814 (eval $ac_link) 2>&5
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); }; }; then
3823 ac_cv_c_stack_direction=1
3825 echo "$as_me: program exited with status $ac_status" >&5
3826 echo "$as_me: failed program was:" >&5
3827 sed 's/^/| /' conftest.$ac_ext >&5
3830 ac_cv_c_stack_direction=-1
3832 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3835 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
3836 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
3838 cat >>confdefs.h <<_ACEOF
3839 #define STACK_DIRECTION $ac_cv_c_stack_direction
3847 for ac_header in stdlib.h unistd.h
3849 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3851 echo "$as_me:$LINENO: checking for $ac_header" >&5
3852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3857 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3859 # Is the header compilable?
3860 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3861 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3862 cat >conftest.$ac_ext <<_ACEOF
3863 #line $LINENO "configure"
3866 cat confdefs.h >>conftest.$ac_ext
3867 cat >>conftest.$ac_ext <<_ACEOF
3868 /* end confdefs.h. */
3869 $ac_includes_default
3870 #include <$ac_header>
3872 rm -f conftest.$ac_objext
3873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3874 (eval $ac_compile) 2>&5
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); } &&
3878 { ac_try='test -s conftest.$ac_objext'
3879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); }; }; then
3884 ac_header_compiler=yes
3886 echo "$as_me: failed program was:" >&5
3887 sed 's/^/| /' conftest.$ac_ext >&5
3889 ac_header_compiler=no
3891 rm -f conftest.$ac_objext conftest.$ac_ext
3892 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3893 echo "${ECHO_T}$ac_header_compiler" >&6
3895 # Is the header present?
3896 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3897 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3898 cat >conftest.$ac_ext <<_ACEOF
3899 #line $LINENO "configure"
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h. */
3905 #include <$ac_header>
3907 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3908 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3910 grep -v '^ *+' conftest.er1 >conftest.err
3912 cat conftest.err >&5
3913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914 (exit $ac_status); } >/dev/null; then
3915 if test -s conftest.err; then
3916 ac_cpp_err=$ac_c_preproc_warn_flag
3923 if test -z "$ac_cpp_err"; then
3924 ac_header_preproc=yes
3926 echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3929 ac_header_preproc=no
3931 rm -f conftest.err conftest.$ac_ext
3932 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3933 echo "${ECHO_T}$ac_header_preproc" >&6
3935 # So? What about this header?
3936 case $ac_header_compiler:$ac_header_preproc in
3938 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3939 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3941 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3944 ## ------------------------------------ ##
3945 ## Report this to bug-autoconf@gnu.org. ##
3946 ## ------------------------------------ ##
3949 sed "s/^/$as_me: WARNING: /" >&2
3952 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3953 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3954 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3955 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3956 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3957 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3960 ## ------------------------------------ ##
3961 ## Report this to bug-autoconf@gnu.org. ##
3962 ## ------------------------------------ ##
3965 sed "s/^/$as_me: WARNING: /" >&2
3968 echo "$as_me:$LINENO: checking for $ac_header" >&5
3969 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3971 echo $ECHO_N "(cached) $ECHO_C" >&6
3973 eval "$as_ac_Header=$ac_header_preproc"
3975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3976 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3979 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3980 cat >>confdefs.h <<_ACEOF
3981 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3989 for ac_func in getpagesize
3991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3992 echo "$as_me:$LINENO: checking for $ac_func" >&5
3993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3994 if eval "test \"\${$as_ac_var+set}\" = set"; then
3995 echo $ECHO_N "(cached) $ECHO_C" >&6
3997 cat >conftest.$ac_ext <<_ACEOF
3998 #line $LINENO "configure"
4001 cat confdefs.h >>conftest.$ac_ext
4002 cat >>conftest.$ac_ext <<_ACEOF
4003 /* end confdefs.h. */
4004 /* System header to define __stub macros and hopefully few prototypes,
4005 which can conflict with char $ac_func (); below.
4006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4007 <limits.h> exists even on freestanding compilers. */
4009 # include <limits.h>
4011 # include <assert.h>
4013 /* Override any gcc2 internal prototype to avoid an error. */
4018 /* We use char because int might match the return type of a gcc2
4019 builtin and then its argument prototype would still apply. */
4021 /* The GNU C library defines this for functions which it implements
4022 to always fail with ENOSYS. Some functions are actually named
4023 something starting with __ and the normal name is an alias. */
4024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4027 char (*f) () = $ac_func;
4036 return f != $ac_func;
4041 rm -f conftest.$ac_objext conftest$ac_exeext
4042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4043 (eval $ac_link) 2>&5
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); } &&
4047 { ac_try='test -s conftest$ac_exeext'
4048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); }; }; then
4053 eval "$as_ac_var=yes"
4055 echo "$as_me: failed program was:" >&5
4056 sed 's/^/| /' conftest.$ac_ext >&5
4058 eval "$as_ac_var=no"
4060 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4063 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4064 if test `eval echo '${'$as_ac_var'}'` = yes; then
4065 cat >>confdefs.h <<_ACEOF
4066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4072 echo "$as_me:$LINENO: checking for working mmap" >&5
4073 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4074 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4075 echo $ECHO_N "(cached) $ECHO_C" >&6
4077 if test "$cross_compiling" = yes; then
4078 ac_cv_func_mmap_fixed_mapped=no
4080 cat >conftest.$ac_ext <<_ACEOF
4081 #line $LINENO "configure"
4084 cat confdefs.h >>conftest.$ac_ext
4085 cat >>conftest.$ac_ext <<_ACEOF
4086 /* end confdefs.h. */
4087 $ac_includes_default
4088 /* malloc might have been renamed as rpl_malloc. */
4091 /* Thanks to Mike Haertel and Jim Avera for this test.
4092 Here is a matrix of mmap possibilities:
4093 mmap private not fixed
4094 mmap private fixed at somewhere currently unmapped
4095 mmap private fixed at somewhere already mapped
4096 mmap shared not fixed
4097 mmap shared fixed at somewhere currently unmapped
4098 mmap shared fixed at somewhere already mapped
4099 For private mappings, we should verify that changes cannot be read()
4100 back from the file, nor mmap's back from the file at a different
4101 address. (There have been systems where private was not correctly
4102 implemented like the infamous i386 svr4.0, and systems where the
4103 VM page cache was not coherent with the file system buffer cache
4104 like early versions of FreeBSD and possibly contemporary NetBSD.)
4105 For shared mappings, we should conversely verify that changes get
4106 propagated back to all the places they're supposed to be.
4108 Grep wants private fixed already mapped.
4109 The main things grep needs to know about mmap are:
4110 * does it exist and is it safe to write into the mmap'd area
4111 * how to use it (BSD variants) */
4114 #include <sys/mman.h>
4116 #if !STDC_HEADERS && !HAVE_STDLIB_H
4120 /* This mess was copied from the GNU getpagesize.h. */
4121 #if !HAVE_GETPAGESIZE
4122 /* Assume that all systems that can run configure have sys/param.h. */
4123 # if !HAVE_SYS_PARAM_H
4124 # define HAVE_SYS_PARAM_H 1
4127 # ifdef _SC_PAGESIZE
4128 # define getpagesize() sysconf(_SC_PAGESIZE)
4129 # else /* no _SC_PAGESIZE */
4130 # if HAVE_SYS_PARAM_H
4131 # include <sys/param.h>
4132 # ifdef EXEC_PAGESIZE
4133 # define getpagesize() EXEC_PAGESIZE
4134 # else /* no EXEC_PAGESIZE */
4136 # define getpagesize() NBPG * CLSIZE
4139 # endif /* no CLSIZE */
4140 # else /* no NBPG */
4142 # define getpagesize() NBPC
4143 # else /* no NBPC */
4145 # define getpagesize() PAGESIZE
4146 # endif /* PAGESIZE */
4147 # endif /* no NBPC */
4148 # endif /* no NBPG */
4149 # endif /* no EXEC_PAGESIZE */
4150 # else /* no HAVE_SYS_PARAM_H */
4151 # define getpagesize() 8192 /* punt totally */
4152 # endif /* no HAVE_SYS_PARAM_H */
4153 # endif /* no _SC_PAGESIZE */
4155 #endif /* no HAVE_GETPAGESIZE */
4160 char *data, *data2, *data3;
4164 pagesize = getpagesize ();
4166 /* First, make a file with some known garbage in it. */
4167 data = (char *) malloc (pagesize);
4170 for (i = 0; i < pagesize; ++i)
4171 *(data + i) = rand ();
4173 fd = creat ("conftest.mmap", 0600);
4176 if (write (fd, data, pagesize) != pagesize)
4180 /* Next, try to mmap the file at a fixed address which already has
4181 something else allocated at it. If we can, also make sure that
4182 we see the same garbage. */
4183 fd = open ("conftest.mmap", O_RDWR);
4186 data2 = (char *) malloc (2 * pagesize);
4189 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4190 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4191 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4193 for (i = 0; i < pagesize; ++i)
4194 if (*(data + i) != *(data2 + i))
4197 /* Finally, make sure that changes to the mapped area do not
4198 percolate back to the file as seen by read(). (This is a bug on
4199 some variants of i386 svr4.0.) */
4200 for (i = 0; i < pagesize; ++i)
4201 *(data2 + i) = *(data2 + i) + 1;
4202 data3 = (char *) malloc (pagesize);
4205 if (read (fd, data3, pagesize) != pagesize)
4207 for (i = 0; i < pagesize; ++i)
4208 if (*(data + i) != *(data3 + i))
4214 rm -f conftest$ac_exeext
4215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4216 (eval $ac_link) 2>&5
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); }; }; then
4225 ac_cv_func_mmap_fixed_mapped=yes
4227 echo "$as_me: program exited with status $ac_status" >&5
4228 echo "$as_me: failed program was:" >&5
4229 sed 's/^/| /' conftest.$ac_ext >&5
4232 ac_cv_func_mmap_fixed_mapped=no
4234 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4237 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4238 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4239 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4241 cat >>confdefs.h <<\_ACEOF
4249 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
4250 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
4251 if test "${ac_cv_gnu_library_2_1+set}" = set; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4254 cat >conftest.$ac_ext <<_ACEOF
4255 #line $LINENO "configure"
4258 cat confdefs.h >>conftest.$ac_ext
4259 cat >>conftest.$ac_ext <<_ACEOF
4260 /* end confdefs.h. */
4262 #include <features.h>
4263 #ifdef __GNU_LIBRARY__
4264 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
4270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4271 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
4272 ac_cv_gnu_library_2_1=yes
4274 ac_cv_gnu_library_2_1=no
4281 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
4282 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
4284 GLIBC21="$ac_cv_gnu_library_2_1"
4289 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
4290 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
4291 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
4292 echo $ECHO_N "(cached) $ECHO_C" >&6
4295 if test "$cross_compiling" = yes; then
4297 # Guess based on the CPU.
4299 alpha* | i3456786 | m68k | s390*)
4300 gt_cv_int_divbyzero_sigfpe="guessing yes";;
4302 gt_cv_int_divbyzero_sigfpe="guessing no";;
4306 cat >conftest.$ac_ext <<_ACEOF
4307 #line $LINENO "configure"
4310 cat confdefs.h >>conftest.$ac_ext
4311 cat >>conftest.$ac_ext <<_ACEOF
4312 /* end confdefs.h. */
4319 sigfpe_handler (int sig)
4321 sigfpe_handler (sig) int sig;
4324 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
4325 exit (sig != SIGFPE);
4335 signal (SIGFPE, sigfpe_handler);
4336 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
4337 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
4338 signal (SIGTRAP, sigfpe_handler);
4340 /* Linux/SPARC yields signal SIGILL. */
4341 #if defined (__sparc__) && defined (__linux__)
4342 signal (SIGILL, sigfpe_handler);
4351 rm -f conftest$ac_exeext
4352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4353 (eval $ac_link) 2>&5
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); }; }; then
4362 gt_cv_int_divbyzero_sigfpe=yes
4364 echo "$as_me: program exited with status $ac_status" >&5
4365 echo "$as_me: failed program was:" >&5
4366 sed 's/^/| /' conftest.$ac_ext >&5
4369 gt_cv_int_divbyzero_sigfpe=no
4371 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4375 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
4376 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
4377 case "$gt_cv_int_divbyzero_sigfpe" in
4382 cat >>confdefs.h <<_ACEOF
4383 #define INTDIV0_RAISES_SIGFPE $value
4388 echo "$as_me:$LINENO: checking for inttypes.h" >&5
4389 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
4390 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
4391 echo $ECHO_N "(cached) $ECHO_C" >&6
4393 cat >conftest.$ac_ext <<_ACEOF
4394 #line $LINENO "configure"
4397 cat confdefs.h >>conftest.$ac_ext
4398 cat >>conftest.$ac_ext <<_ACEOF
4399 /* end confdefs.h. */
4400 #include <sys/types.h>
4401 #include <inttypes.h>
4405 uintmax_t i = (uintmax_t) -1;
4410 rm -f conftest.$ac_objext
4411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4412 (eval $ac_compile) 2>&5
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); } &&
4416 { ac_try='test -s conftest.$ac_objext'
4417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); }; }; then
4422 jm_ac_cv_header_inttypes_h=yes
4424 echo "$as_me: failed program was:" >&5
4425 sed 's/^/| /' conftest.$ac_ext >&5
4427 jm_ac_cv_header_inttypes_h=no
4429 rm -f conftest.$ac_objext conftest.$ac_ext
4431 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
4432 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
4433 if test $jm_ac_cv_header_inttypes_h = yes; then
4435 cat >>confdefs.h <<_ACEOF
4436 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
4442 echo "$as_me:$LINENO: checking for stdint.h" >&5
4443 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
4444 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
4447 cat >conftest.$ac_ext <<_ACEOF
4448 #line $LINENO "configure"
4451 cat confdefs.h >>conftest.$ac_ext
4452 cat >>conftest.$ac_ext <<_ACEOF
4453 /* end confdefs.h. */
4454 #include <sys/types.h>
4459 uintmax_t i = (uintmax_t) -1;
4464 rm -f conftest.$ac_objext
4465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4466 (eval $ac_compile) 2>&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); } &&
4470 { ac_try='test -s conftest.$ac_objext'
4471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); }; }; then
4476 jm_ac_cv_header_stdint_h=yes
4478 echo "$as_me: failed program was:" >&5
4479 sed 's/^/| /' conftest.$ac_ext >&5
4481 jm_ac_cv_header_stdint_h=no
4483 rm -f conftest.$ac_objext conftest.$ac_ext
4485 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
4486 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
4487 if test $jm_ac_cv_header_stdint_h = yes; then
4489 cat >>confdefs.h <<_ACEOF
4490 #define HAVE_STDINT_H_WITH_UINTMAX 1
4496 echo "$as_me:$LINENO: checking for unsigned long long" >&5
4497 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
4498 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
4499 echo $ECHO_N "(cached) $ECHO_C" >&6
4501 cat >conftest.$ac_ext <<_ACEOF
4502 #line $LINENO "configure"
4505 cat confdefs.h >>conftest.$ac_ext
4506 cat >>conftest.$ac_ext <<_ACEOF
4507 /* end confdefs.h. */
4508 unsigned long long ull = 1; int i = 63;
4512 unsigned long long ullmax = (unsigned long long) -1;
4513 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
4518 rm -f conftest.$ac_objext conftest$ac_exeext
4519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4520 (eval $ac_link) 2>&5
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); } &&
4524 { ac_try='test -s conftest$ac_exeext'
4525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529 (exit $ac_status); }; }; then
4530 ac_cv_type_unsigned_long_long=yes
4532 echo "$as_me: failed program was:" >&5
4533 sed 's/^/| /' conftest.$ac_ext >&5
4535 ac_cv_type_unsigned_long_long=no
4537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4539 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
4540 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
4541 if test $ac_cv_type_unsigned_long_long = yes; then
4543 cat >>confdefs.h <<\_ACEOF
4544 #define HAVE_UNSIGNED_LONG_LONG 1
4552 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
4554 test $ac_cv_type_unsigned_long_long = yes \
4555 && ac_type='unsigned long long' \
4556 || ac_type='unsigned long'
4558 cat >>confdefs.h <<_ACEOF
4559 #define uintmax_t $ac_type
4564 cat >>confdefs.h <<\_ACEOF
4565 #define HAVE_UINTMAX_T 1
4571 echo "$as_me:$LINENO: checking for inttypes.h" >&5
4572 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
4573 if test "${gt_cv_header_inttypes_h+set}" = set; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6
4577 cat >conftest.$ac_ext <<_ACEOF
4578 #line $LINENO "configure"
4581 cat confdefs.h >>conftest.$ac_ext
4582 cat >>conftest.$ac_ext <<_ACEOF
4583 /* end confdefs.h. */
4584 #include <sys/types.h>
4585 #include <inttypes.h>
4594 rm -f conftest.$ac_objext
4595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4596 (eval $ac_compile) 2>&5
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); } &&
4600 { ac_try='test -s conftest.$ac_objext'
4601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); }; }; then
4606 gt_cv_header_inttypes_h=yes
4608 echo "$as_me: failed program was:" >&5
4609 sed 's/^/| /' conftest.$ac_ext >&5
4611 gt_cv_header_inttypes_h=no
4613 rm -f conftest.$ac_objext conftest.$ac_ext
4616 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
4617 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
4618 if test $gt_cv_header_inttypes_h = yes; then
4620 cat >>confdefs.h <<_ACEOF
4621 #define HAVE_INTTYPES_H 1
4628 if test $gt_cv_header_inttypes_h = yes; then
4629 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
4630 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
4631 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
4632 echo $ECHO_N "(cached) $ECHO_C" >&6
4635 cat >conftest.$ac_ext <<_ACEOF
4636 #line $LINENO "configure"
4639 cat confdefs.h >>conftest.$ac_ext
4640 cat >>conftest.$ac_ext <<_ACEOF
4641 /* end confdefs.h. */
4642 #include <inttypes.h>
4655 rm -f conftest.$ac_objext
4656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4657 (eval $ac_compile) 2>&5
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); } &&
4661 { ac_try='test -s conftest.$ac_objext'
4662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); }; }; then
4667 gt_cv_inttypes_pri_broken=no
4669 echo "$as_me: failed program was:" >&5
4670 sed 's/^/| /' conftest.$ac_ext >&5
4672 gt_cv_inttypes_pri_broken=yes
4674 rm -f conftest.$ac_objext conftest.$ac_ext
4677 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
4678 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
4680 if test "$gt_cv_inttypes_pri_broken" = yes; then
4682 cat >>confdefs.h <<_ACEOF
4683 #define PRI_MACROS_BROKEN 1
4689 if test "X$prefix" = "XNONE"; then
4690 acl_final_prefix="$ac_default_prefix"
4692 acl_final_prefix="$prefix"
4694 if test "X$exec_prefix" = "XNONE"; then
4695 acl_final_exec_prefix='${prefix}'
4697 acl_final_exec_prefix="$exec_prefix"
4699 acl_save_prefix="$prefix"
4700 prefix="$acl_final_prefix"
4701 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
4702 prefix="$acl_save_prefix"
4705 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4706 if test "${with_gnu_ld+set}" = set; then
4707 withval="$with_gnu_ld"
4708 test "$withval" = no || with_gnu_ld=yes
4712 # Prepare PATH_SEPARATOR.
4713 # The user is always right.
4714 if test "${PATH_SEPARATOR+set}" != set; then
4715 echo "#! /bin/sh" >conf$$.sh
4716 echo "exit 0" >>conf$$.sh
4718 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4726 if test "$GCC" = yes; then
4727 # Check if gcc -print-prog-name=ld gives a path.
4728 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4729 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4732 # gcc leaves a trailing carriage return which upsets mingw
4733 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4735 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4738 # Accept absolute paths.
4739 [\\/]* | [A-Za-z]:[\\/]*)
4740 re_direlt='/[^/][^/]*/\.\./'
4741 # Canonicalize the path of ld
4742 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4743 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4744 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4746 test -z "$LD" && LD="$ac_prog"
4749 # If it fails, then pretend we aren't using GCC.
4753 # If it is relative, then search for the first ld in PATH.
4757 elif test "$with_gnu_ld" = yes; then
4758 echo "$as_me:$LINENO: checking for GNU ld" >&5
4759 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4761 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4762 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4764 if test "${acl_cv_path_LD+set}" = set; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4767 if test -z "$LD"; then
4768 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4769 for ac_dir in $PATH; do
4770 test -z "$ac_dir" && ac_dir=.
4771 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4772 acl_cv_path_LD="$ac_dir/$ac_prog"
4773 # Check to see if the program is GNU ld. I'd rather use --version,
4774 # but apparently some GNU ld's only accept -v.
4775 # Break only if it was the GNU/non-GNU ld that we prefer.
4776 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4777 test "$with_gnu_ld" != no && break
4779 test "$with_gnu_ld" != yes && break
4785 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4789 LD="$acl_cv_path_LD"
4790 if test -n "$LD"; then
4791 echo "$as_me:$LINENO: result: $LD" >&5
4792 echo "${ECHO_T}$LD" >&6
4794 echo "$as_me:$LINENO: result: no" >&5
4795 echo "${ECHO_T}no" >&6
4797 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4798 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4799 { (exit 1); exit 1; }; }
4800 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4801 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4802 if test "${acl_cv_prog_gnu_ld+set}" = set; then
4803 echo $ECHO_N "(cached) $ECHO_C" >&6
4805 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4806 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4807 acl_cv_prog_gnu_ld=yes
4809 acl_cv_prog_gnu_ld=no
4812 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
4813 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
4814 with_gnu_ld=$acl_cv_prog_gnu_ld
4818 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
4819 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
4820 if test "${acl_cv_rpath+set}" = set; then
4821 echo $ECHO_N "(cached) $ECHO_C" >&6
4824 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4825 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4831 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
4832 echo "${ECHO_T}$acl_cv_rpath" >&6
4834 libext="$acl_cv_libext"
4835 shlibext="$acl_cv_shlibext"
4836 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4837 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4838 hardcode_direct="$acl_cv_hardcode_direct"
4839 hardcode_minus_L="$acl_cv_hardcode_minus_L"
4840 # Check whether --enable-rpath or --disable-rpath was given.
4841 if test "${enable_rpath+set}" = set; then
4842 enableval="$enable_rpath"
4856 acl_save_prefix="$prefix"
4857 prefix="$acl_final_prefix"
4858 acl_save_exec_prefix="$exec_prefix"
4859 exec_prefix="$acl_final_exec_prefix"
4861 eval additional_includedir=\"$includedir\"
4862 eval additional_libdir=\"$libdir\"
4864 exec_prefix="$acl_save_exec_prefix"
4865 prefix="$acl_save_prefix"
4868 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
4869 if test "${with_libiconv_prefix+set}" = set; then
4870 withval="$with_libiconv_prefix"
4872 if test "X$withval" = "Xno"; then
4875 if test "X$withval" = "X"; then
4877 acl_save_prefix="$prefix"
4878 prefix="$acl_final_prefix"
4879 acl_save_exec_prefix="$exec_prefix"
4880 exec_prefix="$acl_final_exec_prefix"
4882 eval additional_includedir=\"$includedir\"
4883 eval additional_libdir=\"$libdir\"
4885 exec_prefix="$acl_save_exec_prefix"
4886 prefix="$acl_save_prefix"
4889 additional_includedir="$withval/include"
4890 additional_libdir="$withval/lib"
4900 names_already_handled=
4901 names_next_round='iconv '
4902 while test -n "$names_next_round"; do
4903 names_this_round="$names_next_round"
4905 for name in $names_this_round; do
4907 for n in $names_already_handled; do
4908 if test "$n" = "$name"; then
4913 if test -z "$already_handled"; then
4914 names_already_handled="$names_already_handled $name"
4915 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4916 eval value=\"\$HAVE_LIB$uppername\"
4917 if test -n "$value"; then
4918 if test "$value" = yes; then
4919 eval value=\"\$LIB$uppername\"
4920 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
4921 eval value=\"\$LTLIB$uppername\"
4922 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
4931 if test $use_additional = yes; then
4932 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
4933 found_dir="$additional_libdir"
4934 found_so="$additional_libdir/lib$name.$shlibext"
4935 if test -f "$additional_libdir/lib$name.la"; then
4936 found_la="$additional_libdir/lib$name.la"
4939 if test -f "$additional_libdir/lib$name.$libext"; then
4940 found_dir="$additional_libdir"
4941 found_a="$additional_libdir/lib$name.$libext"
4942 if test -f "$additional_libdir/lib$name.la"; then
4943 found_la="$additional_libdir/lib$name.la"
4948 if test "X$found_dir" = "X"; then
4949 for x in $LDFLAGS $LTLIBICONV; do
4951 acl_save_prefix="$prefix"
4952 prefix="$acl_final_prefix"
4953 acl_save_exec_prefix="$exec_prefix"
4954 exec_prefix="$acl_final_exec_prefix"
4956 exec_prefix="$acl_save_exec_prefix"
4957 prefix="$acl_save_prefix"
4961 dir=`echo "X$x" | sed -e 's/^X-L//'`
4962 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
4964 found_so="$dir/lib$name.$shlibext"
4965 if test -f "$dir/lib$name.la"; then
4966 found_la="$dir/lib$name.la"
4969 if test -f "$dir/lib$name.$libext"; then
4971 found_a="$dir/lib$name.$libext"
4972 if test -f "$dir/lib$name.la"; then
4973 found_la="$dir/lib$name.la"
4979 if test "X$found_dir" != "X"; then
4984 if test "X$found_dir" != "X"; then
4985 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
4986 if test "X$found_so" != "X"; then
4987 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
4988 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4991 for x in $ltrpathdirs; do
4992 if test "X$x" = "X$found_dir"; then
4997 if test -z "$haveit"; then
4998 ltrpathdirs="$ltrpathdirs $found_dir"
5000 if test "$hardcode_direct" = yes; then
5001 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5003 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5004 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5006 for x in $rpathdirs; do
5007 if test "X$x" = "X$found_dir"; then
5012 if test -z "$haveit"; then
5013 rpathdirs="$rpathdirs $found_dir"
5017 for x in $LDFLAGS $LIBICONV; do
5019 acl_save_prefix="$prefix"
5020 prefix="$acl_final_prefix"
5021 acl_save_exec_prefix="$exec_prefix"
5022 exec_prefix="$acl_final_exec_prefix"
5024 exec_prefix="$acl_save_exec_prefix"
5025 prefix="$acl_save_prefix"
5027 if test "X$x" = "X-L$found_dir"; then
5032 if test -z "$haveit"; then
5033 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5035 if test "$hardcode_minus_L" != no; then
5036 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5038 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5044 if test "X$found_a" != "X"; then
5045 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5047 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5050 additional_includedir=
5051 case "$found_dir" in
5053 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5054 additional_includedir="$basedir/include"
5057 if test "X$additional_includedir" != "X"; then
5058 if test "X$additional_includedir" != "X/usr/include"; then
5060 if test "X$additional_includedir" = "X/usr/local/include"; then
5061 if test -n "$GCC"; then
5063 linux*) haveit=yes;;
5067 if test -z "$haveit"; then
5068 for x in $CPPFLAGS $INCICONV; do
5070 acl_save_prefix="$prefix"
5071 prefix="$acl_final_prefix"
5072 acl_save_exec_prefix="$exec_prefix"
5073 exec_prefix="$acl_final_exec_prefix"
5075 exec_prefix="$acl_save_exec_prefix"
5076 prefix="$acl_save_prefix"
5078 if test "X$x" = "X-I$additional_includedir"; then
5083 if test -z "$haveit"; then
5084 if test -d "$additional_includedir"; then
5085 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5091 if test -n "$found_la"; then
5092 save_libdir="$libdir"
5094 */* | *\\*) . "$found_la" ;;
5095 *) . "./$found_la" ;;
5097 libdir="$save_libdir"
5098 for dep in $dependency_libs; do
5101 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5102 if test "X$additional_libdir" != "X/usr/lib"; then
5104 if test "X$additional_libdir" = "X/usr/local/lib"; then
5105 if test -n "$GCC"; then
5107 linux*) haveit=yes;;
5111 if test -z "$haveit"; then
5113 for x in $LDFLAGS $LIBICONV; do
5115 acl_save_prefix="$prefix"
5116 prefix="$acl_final_prefix"
5117 acl_save_exec_prefix="$exec_prefix"
5118 exec_prefix="$acl_final_exec_prefix"
5120 exec_prefix="$acl_save_exec_prefix"
5121 prefix="$acl_save_prefix"
5123 if test "X$x" = "X-L$additional_libdir"; then
5128 if test -z "$haveit"; then
5129 if test -d "$additional_libdir"; then
5130 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5134 for x in $LDFLAGS $LTLIBICONV; do
5136 acl_save_prefix="$prefix"
5137 prefix="$acl_final_prefix"
5138 acl_save_exec_prefix="$exec_prefix"
5139 exec_prefix="$acl_final_exec_prefix"
5141 exec_prefix="$acl_save_exec_prefix"
5142 prefix="$acl_save_prefix"
5144 if test "X$x" = "X-L$additional_libdir"; then
5149 if test -z "$haveit"; then
5150 if test -d "$additional_libdir"; then
5151 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5158 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5159 if test "$enable_rpath" != no; then
5161 for x in $rpathdirs; do
5162 if test "X$x" = "X$dir"; then
5167 if test -z "$haveit"; then
5168 rpathdirs="$rpathdirs $dir"
5171 for x in $ltrpathdirs; do
5172 if test "X$x" = "X$dir"; then
5177 if test -z "$haveit"; then
5178 ltrpathdirs="$ltrpathdirs $dir"
5183 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5186 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5189 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5190 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5196 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5197 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5203 if test "X$rpathdirs" != "X"; then
5204 if test -n "$hardcode_libdir_separator"; then
5206 for found_dir in $rpathdirs; do
5207 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5209 acl_save_libdir="$libdir"
5211 eval flag=\"$hardcode_libdir_flag_spec\"
5212 libdir="$acl_save_libdir"
5213 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5215 for found_dir in $rpathdirs; do
5216 acl_save_libdir="$libdir"
5218 eval flag=\"$hardcode_libdir_flag_spec\"
5219 libdir="$acl_save_libdir"
5220 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5224 if test "X$ltrpathdirs" != "X"; then
5225 for found_dir in $ltrpathdirs; do
5226 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5243 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
5244 stdlib.h string.h unistd.h sys/param.h
5246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5248 echo "$as_me:$LINENO: checking for $ac_header" >&5
5249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5251 echo $ECHO_N "(cached) $ECHO_C" >&6
5253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5254 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5256 # Is the header compilable?
5257 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5258 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5259 cat >conftest.$ac_ext <<_ACEOF
5260 #line $LINENO "configure"
5263 cat confdefs.h >>conftest.$ac_ext
5264 cat >>conftest.$ac_ext <<_ACEOF
5265 /* end confdefs.h. */
5266 $ac_includes_default
5267 #include <$ac_header>
5269 rm -f conftest.$ac_objext
5270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5271 (eval $ac_compile) 2>&5
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); } &&
5275 { ac_try='test -s conftest.$ac_objext'
5276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); }; }; then
5281 ac_header_compiler=yes
5283 echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5286 ac_header_compiler=no
5288 rm -f conftest.$ac_objext conftest.$ac_ext
5289 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5290 echo "${ECHO_T}$ac_header_compiler" >&6
5292 # Is the header present?
5293 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5294 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5295 cat >conftest.$ac_ext <<_ACEOF
5296 #line $LINENO "configure"
5299 cat confdefs.h >>conftest.$ac_ext
5300 cat >>conftest.$ac_ext <<_ACEOF
5301 /* end confdefs.h. */
5302 #include <$ac_header>
5304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5305 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5307 grep -v '^ *+' conftest.er1 >conftest.err
5309 cat conftest.err >&5
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); } >/dev/null; then
5312 if test -s conftest.err; then
5313 ac_cpp_err=$ac_c_preproc_warn_flag
5320 if test -z "$ac_cpp_err"; then
5321 ac_header_preproc=yes
5323 echo "$as_me: failed program was:" >&5
5324 sed 's/^/| /' conftest.$ac_ext >&5
5326 ac_header_preproc=no
5328 rm -f conftest.err conftest.$ac_ext
5329 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5330 echo "${ECHO_T}$ac_header_preproc" >&6
5332 # So? What about this header?
5333 case $ac_header_compiler:$ac_header_preproc in
5335 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5336 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5341 ## ------------------------------------ ##
5342 ## Report this to bug-autoconf@gnu.org. ##
5343 ## ------------------------------------ ##
5346 sed "s/^/$as_me: WARNING: /" >&2
5349 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5350 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5351 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5352 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5354 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5357 ## ------------------------------------ ##
5358 ## Report this to bug-autoconf@gnu.org. ##
5359 ## ------------------------------------ ##
5362 sed "s/^/$as_me: WARNING: /" >&2
5365 echo "$as_me:$LINENO: checking for $ac_header" >&5
5366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5368 echo $ECHO_N "(cached) $ECHO_C" >&6
5370 eval "$as_ac_Header=$ac_header_preproc"
5372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5377 cat >>confdefs.h <<_ACEOF
5378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5407 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
5408 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
5409 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
5412 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5413 echo "$as_me:$LINENO: checking for $ac_func" >&5
5414 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5415 if eval "test \"\${$as_ac_var+set}\" = set"; then
5416 echo $ECHO_N "(cached) $ECHO_C" >&6
5418 cat >conftest.$ac_ext <<_ACEOF
5419 #line $LINENO "configure"
5422 cat confdefs.h >>conftest.$ac_ext
5423 cat >>conftest.$ac_ext <<_ACEOF
5424 /* end confdefs.h. */
5425 /* System header to define __stub macros and hopefully few prototypes,
5426 which can conflict with char $ac_func (); below.
5427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5428 <limits.h> exists even on freestanding compilers. */
5430 # include <limits.h>
5432 # include <assert.h>
5434 /* Override any gcc2 internal prototype to avoid an error. */
5439 /* We use char because int might match the return type of a gcc2
5440 builtin and then its argument prototype would still apply. */
5442 /* The GNU C library defines this for functions which it implements
5443 to always fail with ENOSYS. Some functions are actually named
5444 something starting with __ and the normal name is an alias. */
5445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5448 char (*f) () = $ac_func;
5457 return f != $ac_func;
5462 rm -f conftest.$ac_objext conftest$ac_exeext
5463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5464 (eval $ac_link) 2>&5
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); } &&
5468 { ac_try='test -s conftest$ac_exeext'
5469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); }; }; then
5474 eval "$as_ac_var=yes"
5476 echo "$as_me: failed program was:" >&5
5477 sed 's/^/| /' conftest.$ac_ext >&5
5479 eval "$as_ac_var=no"
5481 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5484 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5485 if test `eval echo '${'$as_ac_var'}'` = yes; then
5486 cat >>confdefs.h <<_ACEOF
5487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5499 am_save_CPPFLAGS="$CPPFLAGS"
5501 for element in $INCICONV; do
5503 for x in $CPPFLAGS; do
5505 acl_save_prefix="$prefix"
5506 prefix="$acl_final_prefix"
5507 acl_save_exec_prefix="$exec_prefix"
5508 exec_prefix="$acl_final_exec_prefix"
5510 exec_prefix="$acl_save_exec_prefix"
5511 prefix="$acl_save_prefix"
5513 if test "X$x" = "X$element"; then
5518 if test -z "$haveit"; then
5519 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5524 echo "$as_me:$LINENO: checking for iconv" >&5
5525 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
5526 if test "${am_cv_func_iconv+set}" = set; then
5527 echo $ECHO_N "(cached) $ECHO_C" >&6
5530 am_cv_func_iconv="no, consider installing GNU libiconv"
5532 cat >conftest.$ac_ext <<_ACEOF
5533 #line $LINENO "configure"
5536 cat confdefs.h >>conftest.$ac_ext
5537 cat >>conftest.$ac_ext <<_ACEOF
5538 /* end confdefs.h. */
5544 iconv_t cd = iconv_open("","");
5545 iconv(cd,NULL,NULL,NULL,NULL);
5551 rm -f conftest.$ac_objext conftest$ac_exeext
5552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5553 (eval $ac_link) 2>&5
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); } &&
5557 { ac_try='test -s conftest$ac_exeext'
5558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562 (exit $ac_status); }; }; then
5563 am_cv_func_iconv=yes
5565 echo "$as_me: failed program was:" >&5
5566 sed 's/^/| /' conftest.$ac_ext >&5
5569 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5570 if test "$am_cv_func_iconv" != yes; then
5571 am_save_LIBS="$LIBS"
5572 LIBS="$LIBS $LIBICONV"
5573 cat >conftest.$ac_ext <<_ACEOF
5574 #line $LINENO "configure"
5577 cat confdefs.h >>conftest.$ac_ext
5578 cat >>conftest.$ac_ext <<_ACEOF
5579 /* end confdefs.h. */
5585 iconv_t cd = iconv_open("","");
5586 iconv(cd,NULL,NULL,NULL,NULL);
5592 rm -f conftest.$ac_objext conftest$ac_exeext
5593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5594 (eval $ac_link) 2>&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); } &&
5598 { ac_try='test -s conftest$ac_exeext'
5599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); }; }; then
5605 am_cv_func_iconv=yes
5607 echo "$as_me: failed program was:" >&5
5608 sed 's/^/| /' conftest.$ac_ext >&5
5611 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5612 LIBS="$am_save_LIBS"
5616 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
5617 echo "${ECHO_T}$am_cv_func_iconv" >&6
5618 if test "$am_cv_func_iconv" = yes; then
5620 cat >>confdefs.h <<\_ACEOF
5621 #define HAVE_ICONV 1
5625 if test "$am_cv_lib_iconv" = yes; then
5626 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
5627 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
5628 echo "$as_me:$LINENO: result: $LIBICONV" >&5
5629 echo "${ECHO_T}$LIBICONV" >&6
5631 CPPFLAGS="$am_save_CPPFLAGS"
5638 if test "$am_cv_func_iconv" = yes; then
5639 echo "$as_me:$LINENO: checking for iconv declaration" >&5
5640 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
5641 if test "${am_cv_proto_iconv+set}" = set; then
5642 echo $ECHO_N "(cached) $ECHO_C" >&6
5645 cat >conftest.$ac_ext <<_ACEOF
5646 #line $LINENO "configure"
5649 cat confdefs.h >>conftest.$ac_ext
5650 cat >>conftest.$ac_ext <<_ACEOF
5651 /* end confdefs.h. */
5659 #if defined(__STDC__) || defined(__cplusplus)
5660 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5673 rm -f conftest.$ac_objext
5674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5675 (eval $ac_compile) 2>&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); } &&
5679 { ac_try='test -s conftest.$ac_objext'
5680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); }; }; then
5685 am_cv_proto_iconv_arg1=""
5687 echo "$as_me: failed program was:" >&5
5688 sed 's/^/| /' conftest.$ac_ext >&5
5690 am_cv_proto_iconv_arg1="const"
5692 rm -f conftest.$ac_objext conftest.$ac_ext
5693 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
5696 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5697 echo "$as_me:$LINENO: result: ${ac_t:-
5698 }$am_cv_proto_iconv" >&5
5699 echo "${ECHO_T}${ac_t:-
5700 }$am_cv_proto_iconv" >&6
5702 cat >>confdefs.h <<_ACEOF
5703 #define ICONV_CONST $am_cv_proto_iconv_arg1
5709 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
5710 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
5711 if test "${am_cv_langinfo_codeset+set}" = set; then
5712 echo $ECHO_N "(cached) $ECHO_C" >&6
5714 cat >conftest.$ac_ext <<_ACEOF
5715 #line $LINENO "configure"
5718 cat confdefs.h >>conftest.$ac_ext
5719 cat >>conftest.$ac_ext <<_ACEOF
5720 /* end confdefs.h. */
5721 #include <langinfo.h>
5725 char* cs = nl_langinfo(CODESET);
5730 rm -f conftest.$ac_objext conftest$ac_exeext
5731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5732 (eval $ac_link) 2>&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); } &&
5736 { ac_try='test -s conftest$ac_exeext'
5737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); }; }; then
5742 am_cv_langinfo_codeset=yes
5744 echo "$as_me: failed program was:" >&5
5745 sed 's/^/| /' conftest.$ac_ext >&5
5747 am_cv_langinfo_codeset=no
5749 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5752 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
5753 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
5754 if test $am_cv_langinfo_codeset = yes; then
5756 cat >>confdefs.h <<\_ACEOF
5757 #define HAVE_LANGINFO_CODESET 1
5762 if test $ac_cv_header_locale_h = yes; then
5764 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
5765 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
5766 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
5767 echo $ECHO_N "(cached) $ECHO_C" >&6
5769 cat >conftest.$ac_ext <<_ACEOF
5770 #line $LINENO "configure"
5773 cat confdefs.h >>conftest.$ac_ext
5774 cat >>conftest.$ac_ext <<_ACEOF
5775 /* end confdefs.h. */
5785 rm -f conftest.$ac_objext conftest$ac_exeext
5786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5787 (eval $ac_link) 2>&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); } &&
5791 { ac_try='test -s conftest$ac_exeext'
5792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); }; }; then
5797 am_cv_val_LC_MESSAGES=yes
5799 echo "$as_me: failed program was:" >&5
5800 sed 's/^/| /' conftest.$ac_ext >&5
5802 am_cv_val_LC_MESSAGES=no
5804 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5806 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
5807 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
5808 if test $am_cv_val_LC_MESSAGES = yes; then
5810 cat >>confdefs.h <<\_ACEOF
5811 #define HAVE_LC_MESSAGES 1
5818 for ac_prog in bison
5820 # Extract the first word of "$ac_prog", so it can be a program name with args.
5821 set dummy $ac_prog; ac_word=$2
5822 echo "$as_me:$LINENO: checking for $ac_word" >&5
5823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5824 if test "${ac_cv_prog_INTLBISON+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
5827 if test -n "$INTLBISON"; then
5828 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
5830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834 test -z "$as_dir" && as_dir=.
5835 for ac_exec_ext in '' $ac_executable_extensions; do
5836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5837 ac_cv_prog_INTLBISON="$ac_prog"
5838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5846 INTLBISON=$ac_cv_prog_INTLBISON
5847 if test -n "$INTLBISON"; then
5848 echo "$as_me:$LINENO: result: $INTLBISON" >&5
5849 echo "${ECHO_T}$INTLBISON" >&6
5851 echo "$as_me:$LINENO: result: no" >&5
5852 echo "${ECHO_T}no" >&6
5855 test -n "$INTLBISON" && break
5858 if test -z "$INTLBISON"; then
5861 echo "$as_me:$LINENO: checking version of bison" >&5
5862 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
5863 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5864 case $ac_prog_version in
5865 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5866 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
5867 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5868 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5870 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5871 echo "${ECHO_T}$ac_prog_version" >&6
5873 if test $ac_verc_fail = yes; then
5892 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5893 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5894 # Check whether --enable-nls or --disable-nls was given.
5895 if test "${enable_nls+set}" = set; then
5896 enableval="$enable_nls"
5901 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5902 echo "${ECHO_T}$USE_NLS" >&6
5907 BUILD_INCLUDED_LIBINTL=no
5908 USE_INCLUDED_LIBINTL=no
5914 if test "$USE_NLS" = "yes"; then
5915 gt_use_preinstalled_gnugettext=no
5917 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
5918 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
5920 # Check whether --with-included-gettext or --without-included-gettext was given.
5921 if test "${with_included_gettext+set}" = set; then
5922 withval="$with_included_gettext"
5923 nls_cv_force_use_gnu_gettext=$withval
5925 nls_cv_force_use_gnu_gettext=no
5927 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
5928 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
5930 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
5931 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
5938 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
5939 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
5940 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
5941 echo $ECHO_N "(cached) $ECHO_C" >&6
5943 cat >conftest.$ac_ext <<_ACEOF
5944 #line $LINENO "configure"
5947 cat confdefs.h >>conftest.$ac_ext
5948 cat >>conftest.$ac_ext <<_ACEOF
5949 /* end confdefs.h. */
5950 #include <libintl.h>
5951 extern int _nl_msg_cat_cntr;
5952 extern int *_nl_domain_bindings;
5956 bindtextdomain ("", "");
5957 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5962 rm -f conftest.$ac_objext conftest$ac_exeext
5963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5964 (eval $ac_link) 2>&5
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); } &&
5968 { ac_try='test -s conftest$ac_exeext'
5969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); }; }; then
5974 gt_cv_func_gnugettext1_libc=yes
5976 echo "$as_me: failed program was:" >&5
5977 sed 's/^/| /' conftest.$ac_ext >&5
5979 gt_cv_func_gnugettext1_libc=no
5981 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5983 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
5984 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
5986 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5992 acl_save_prefix="$prefix"
5993 prefix="$acl_final_prefix"
5994 acl_save_exec_prefix="$exec_prefix"
5995 exec_prefix="$acl_final_exec_prefix"
5997 eval additional_includedir=\"$includedir\"
5998 eval additional_libdir=\"$libdir\"
6000 exec_prefix="$acl_save_exec_prefix"
6001 prefix="$acl_save_prefix"
6004 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
6005 if test "${with_libintl_prefix+set}" = set; then
6006 withval="$with_libintl_prefix"
6008 if test "X$withval" = "Xno"; then
6011 if test "X$withval" = "X"; then
6013 acl_save_prefix="$prefix"
6014 prefix="$acl_final_prefix"
6015 acl_save_exec_prefix="$exec_prefix"
6016 exec_prefix="$acl_final_exec_prefix"
6018 eval additional_includedir=\"$includedir\"
6019 eval additional_libdir=\"$libdir\"
6021 exec_prefix="$acl_save_exec_prefix"
6022 prefix="$acl_save_prefix"
6025 additional_includedir="$withval/include"
6026 additional_libdir="$withval/lib"
6036 names_already_handled=
6037 names_next_round='intl '
6038 while test -n "$names_next_round"; do
6039 names_this_round="$names_next_round"
6041 for name in $names_this_round; do
6043 for n in $names_already_handled; do
6044 if test "$n" = "$name"; then
6049 if test -z "$already_handled"; then
6050 names_already_handled="$names_already_handled $name"
6051 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6052 eval value=\"\$HAVE_LIB$uppername\"
6053 if test -n "$value"; then
6054 if test "$value" = yes; then
6055 eval value=\"\$LIB$uppername\"
6056 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6057 eval value=\"\$LTLIB$uppername\"
6058 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6067 if test $use_additional = yes; then
6068 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6069 found_dir="$additional_libdir"
6070 found_so="$additional_libdir/lib$name.$shlibext"
6071 if test -f "$additional_libdir/lib$name.la"; then
6072 found_la="$additional_libdir/lib$name.la"
6075 if test -f "$additional_libdir/lib$name.$libext"; then
6076 found_dir="$additional_libdir"
6077 found_a="$additional_libdir/lib$name.$libext"
6078 if test -f "$additional_libdir/lib$name.la"; then
6079 found_la="$additional_libdir/lib$name.la"
6084 if test "X$found_dir" = "X"; then
6085 for x in $LDFLAGS $LTLIBINTL; do
6087 acl_save_prefix="$prefix"
6088 prefix="$acl_final_prefix"
6089 acl_save_exec_prefix="$exec_prefix"
6090 exec_prefix="$acl_final_exec_prefix"
6092 exec_prefix="$acl_save_exec_prefix"
6093 prefix="$acl_save_prefix"
6097 dir=`echo "X$x" | sed -e 's/^X-L//'`
6098 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6100 found_so="$dir/lib$name.$shlibext"
6101 if test -f "$dir/lib$name.la"; then
6102 found_la="$dir/lib$name.la"
6105 if test -f "$dir/lib$name.$libext"; then
6107 found_a="$dir/lib$name.$libext"
6108 if test -f "$dir/lib$name.la"; then
6109 found_la="$dir/lib$name.la"
6115 if test "X$found_dir" != "X"; then
6120 if test "X$found_dir" != "X"; then
6121 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6122 if test "X$found_so" != "X"; then
6123 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6124 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6127 for x in $ltrpathdirs; do
6128 if test "X$x" = "X$found_dir"; then
6133 if test -z "$haveit"; then
6134 ltrpathdirs="$ltrpathdirs $found_dir"
6136 if test "$hardcode_direct" = yes; then
6137 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6139 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6140 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6142 for x in $rpathdirs; do
6143 if test "X$x" = "X$found_dir"; then
6148 if test -z "$haveit"; then
6149 rpathdirs="$rpathdirs $found_dir"
6153 for x in $LDFLAGS $LIBINTL; do
6155 acl_save_prefix="$prefix"
6156 prefix="$acl_final_prefix"
6157 acl_save_exec_prefix="$exec_prefix"
6158 exec_prefix="$acl_final_exec_prefix"
6160 exec_prefix="$acl_save_exec_prefix"
6161 prefix="$acl_save_prefix"
6163 if test "X$x" = "X-L$found_dir"; then
6168 if test -z "$haveit"; then
6169 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6171 if test "$hardcode_minus_L" != no; then
6172 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6174 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6180 if test "X$found_a" != "X"; then
6181 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6183 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6186 additional_includedir=
6187 case "$found_dir" in
6189 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6190 additional_includedir="$basedir/include"
6193 if test "X$additional_includedir" != "X"; then
6194 if test "X$additional_includedir" != "X/usr/include"; then
6196 if test "X$additional_includedir" = "X/usr/local/include"; then
6197 if test -n "$GCC"; then
6199 linux*) haveit=yes;;
6203 if test -z "$haveit"; then
6204 for x in $CPPFLAGS $INCINTL; do
6206 acl_save_prefix="$prefix"
6207 prefix="$acl_final_prefix"
6208 acl_save_exec_prefix="$exec_prefix"
6209 exec_prefix="$acl_final_exec_prefix"
6211 exec_prefix="$acl_save_exec_prefix"
6212 prefix="$acl_save_prefix"
6214 if test "X$x" = "X-I$additional_includedir"; then
6219 if test -z "$haveit"; then
6220 if test -d "$additional_includedir"; then
6221 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6227 if test -n "$found_la"; then
6228 save_libdir="$libdir"
6230 */* | *\\*) . "$found_la" ;;
6231 *) . "./$found_la" ;;
6233 libdir="$save_libdir"
6234 for dep in $dependency_libs; do
6237 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6238 if test "X$additional_libdir" != "X/usr/lib"; then
6240 if test "X$additional_libdir" = "X/usr/local/lib"; then
6241 if test -n "$GCC"; then
6243 linux*) haveit=yes;;
6247 if test -z "$haveit"; then
6249 for x in $LDFLAGS $LIBINTL; do
6251 acl_save_prefix="$prefix"
6252 prefix="$acl_final_prefix"
6253 acl_save_exec_prefix="$exec_prefix"
6254 exec_prefix="$acl_final_exec_prefix"
6256 exec_prefix="$acl_save_exec_prefix"
6257 prefix="$acl_save_prefix"
6259 if test "X$x" = "X-L$additional_libdir"; then
6264 if test -z "$haveit"; then
6265 if test -d "$additional_libdir"; then
6266 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6270 for x in $LDFLAGS $LTLIBINTL; do
6272 acl_save_prefix="$prefix"
6273 prefix="$acl_final_prefix"
6274 acl_save_exec_prefix="$exec_prefix"
6275 exec_prefix="$acl_final_exec_prefix"
6277 exec_prefix="$acl_save_exec_prefix"
6278 prefix="$acl_save_prefix"
6280 if test "X$x" = "X-L$additional_libdir"; then
6285 if test -z "$haveit"; then
6286 if test -d "$additional_libdir"; then
6287 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6294 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6295 if test "$enable_rpath" != no; then
6297 for x in $rpathdirs; do
6298 if test "X$x" = "X$dir"; then
6303 if test -z "$haveit"; then
6304 rpathdirs="$rpathdirs $dir"
6307 for x in $ltrpathdirs; do
6308 if test "X$x" = "X$dir"; then
6313 if test -z "$haveit"; then
6314 ltrpathdirs="$ltrpathdirs $dir"
6319 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6322 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6325 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6326 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6332 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6333 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6339 if test "X$rpathdirs" != "X"; then
6340 if test -n "$hardcode_libdir_separator"; then
6342 for found_dir in $rpathdirs; do
6343 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6345 acl_save_libdir="$libdir"
6347 eval flag=\"$hardcode_libdir_flag_spec\"
6348 libdir="$acl_save_libdir"
6349 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6351 for found_dir in $rpathdirs; do
6352 acl_save_libdir="$libdir"
6354 eval flag=\"$hardcode_libdir_flag_spec\"
6355 libdir="$acl_save_libdir"
6356 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6360 if test "X$ltrpathdirs" != "X"; then
6361 for found_dir in $ltrpathdirs; do
6362 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6366 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
6367 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
6368 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
6369 echo $ECHO_N "(cached) $ECHO_C" >&6
6371 gt_save_CPPFLAGS="$CPPFLAGS"
6372 CPPFLAGS="$CPPFLAGS $INCINTL"
6373 gt_save_LIBS="$LIBS"
6374 LIBS="$LIBS $LIBINTL"
6375 cat >conftest.$ac_ext <<_ACEOF
6376 #line $LINENO "configure"
6379 cat confdefs.h >>conftest.$ac_ext
6380 cat >>conftest.$ac_ext <<_ACEOF
6381 /* end confdefs.h. */
6382 #include <libintl.h>
6383 extern int _nl_msg_cat_cntr;
6388 const char *_nl_expand_alias ();
6392 bindtextdomain ("", "");
6393 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
6398 rm -f conftest.$ac_objext conftest$ac_exeext
6399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6400 (eval $ac_link) 2>&5
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); } &&
6404 { ac_try='test -s conftest$ac_exeext'
6405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); }; }; then
6410 gt_cv_func_gnugettext1_libintl=yes
6412 echo "$as_me: failed program was:" >&5
6413 sed 's/^/| /' conftest.$ac_ext >&5
6415 gt_cv_func_gnugettext1_libintl=no
6417 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6418 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
6419 LIBS="$LIBS $LIBICONV"
6420 cat >conftest.$ac_ext <<_ACEOF
6421 #line $LINENO "configure"
6424 cat confdefs.h >>conftest.$ac_ext
6425 cat >>conftest.$ac_ext <<_ACEOF
6426 /* end confdefs.h. */
6427 #include <libintl.h>
6428 extern int _nl_msg_cat_cntr;
6433 const char *_nl_expand_alias ();
6437 bindtextdomain ("", "");
6438 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
6443 rm -f conftest.$ac_objext conftest$ac_exeext
6444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6445 (eval $ac_link) 2>&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); } &&
6449 { ac_try='test -s conftest$ac_exeext'
6450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); }; }; then
6455 LIBINTL="$LIBINTL $LIBICONV"
6456 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6457 gt_cv_func_gnugettext1_libintl=yes
6460 echo "$as_me: failed program was:" >&5
6461 sed 's/^/| /' conftest.$ac_ext >&5
6464 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6466 CPPFLAGS="$gt_save_CPPFLAGS"
6467 LIBS="$gt_save_LIBS"
6469 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
6470 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
6473 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6474 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6475 && test "$PACKAGE" != gettext-runtime \
6476 && test "$PACKAGE" != gettext-tools; }; then
6477 gt_use_preinstalled_gnugettext=yes
6485 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
6486 nls_cv_use_gnu_gettext=yes
6490 if test "$nls_cv_use_gnu_gettext" = "yes"; then
6491 BUILD_INCLUDED_LIBINTL=yes
6492 USE_INCLUDED_LIBINTL=yes
6493 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
6494 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
6495 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
6498 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6499 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6504 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6505 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6507 cat >>confdefs.h <<\_ACEOF
6508 #define ENABLE_NLS 1
6516 echo "$as_me:$LINENO: checking whether to use NLS" >&5
6517 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
6518 echo "$as_me:$LINENO: result: $USE_NLS" >&5
6519 echo "${ECHO_T}$USE_NLS" >&6
6520 if test "$USE_NLS" = "yes"; then
6521 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
6522 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
6523 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6524 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6525 gt_source="external libintl"
6530 gt_source="included intl directory"
6532 echo "$as_me:$LINENO: result: $gt_source" >&5
6533 echo "${ECHO_T}$gt_source" >&6
6536 if test "$USE_NLS" = "yes"; then
6538 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6539 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6540 echo "$as_me:$LINENO: checking how to link with libintl" >&5
6541 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
6542 echo "$as_me:$LINENO: result: $LIBINTL" >&5
6543 echo "${ECHO_T}$LIBINTL" >&6
6545 for element in $INCINTL; do
6547 for x in $CPPFLAGS; do
6549 acl_save_prefix="$prefix"
6550 prefix="$acl_final_prefix"
6551 acl_save_exec_prefix="$exec_prefix"
6552 exec_prefix="$acl_final_exec_prefix"
6554 exec_prefix="$acl_save_exec_prefix"
6555 prefix="$acl_save_prefix"
6557 if test "X$x" = "X$element"; then
6562 if test -z "$haveit"; then
6563 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6570 cat >>confdefs.h <<\_ACEOF
6571 #define HAVE_GETTEXT 1
6575 cat >>confdefs.h <<\_ACEOF
6576 #define HAVE_DCGETTEXT 1
6585 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
6586 BUILD_INCLUDED_LIBINTL=yes
6594 nls_cv_header_libgt=
6605 if test "$USE_INCLUDED_LIBINTL" = yes; then
6606 INTLOBJS="\$(GETTOBJS)"
6610 INTL_LIBTOOL_SUFFIX_PREFIX=
6622 # This replaces the extensive use of DEFS in the original Makefile.in.
6624 cat >>confdefs.h <<\_ACEOF
6625 #define IN_LIBINTL 1
6629 cat >>confdefs.h <<\_ACEOF
6630 #define IN_LIBRARY 1
6634 cat >>confdefs.h <<\_ACEOF
6635 #define DEPENDS_ON_LIBICONV 1
6639 cat >>confdefs.h <<\_ACEOF
6640 #define ENABLE_RELOCATABLE 1
6644 cat >>confdefs.h <<\_ACEOF
6645 #define NO_XMALLOC 1
6649 cat >>confdefs.h <<\_ACEOF
6650 #define set_relocation_prefix libintl_set_relocation_prefix
6654 cat >>confdefs.h <<\_ACEOF
6655 #define relocate libintl_relocate
6659 # Additional info for config.intl.
6665 case $USE_INCLUDED_LIBINTL in
6667 LIBINTL_DEP='${top_builddir}/intl/libintl.a'
6668 INCINTL='-I${top_builddir}/intl'
6672 ac_config_files="$ac_config_files Makefile config.intl"
6674 cat >confcache <<\_ACEOF
6675 # This file is a shell script that caches the results of configure
6676 # tests run on this system so they can be shared between configure
6677 # scripts and configure runs, see configure's option --config-cache.
6678 # It is not useful on other systems. If it contains results you don't
6679 # want to keep, you may remove or edit it.
6681 # config.status only pays attention to the cache file if you give it
6682 # the --recheck option to rerun configure.
6684 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6685 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6690 # The following way of writing the cache mishandles newlines in values,
6691 # but we know of no workaround that is simple, portable, and efficient.
6692 # So, don't put newlines in cache variables' values.
6693 # Ultrix sh set writes to stderr and can't be redirected directly,
6694 # and sets the high bit in the cache file unless we assign to the vars.
6697 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6699 # `set' does not quote correctly, so add quotes (double-quote
6700 # substitution turns \\\\ into \\, and sed turns \\ into \).
6703 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6706 # `set' quotes correctly as required by POSIX, so do not add quotes.
6708 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6715 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6717 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6719 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6720 if test -w $cache_file; then
6721 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6722 cat confcache >$cache_file
6724 echo "not updating unwritable cache $cache_file"
6729 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6730 # Let make expand exec_prefix.
6731 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6733 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6734 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6735 # trailing colons and then remove the whole line if VPATH becomes empty
6736 # (actually we leave an empty line to preserve line numbers).
6737 if test "x$srcdir" = x.; then
6738 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6739 s/:*\$(srcdir):*/:/;
6740 s/:*\${srcdir}:*/:/;
6742 s/^\([^=]*=[ ]*\):*/\1/;
6748 DEFS=-DHAVE_CONFIG_H
6752 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6753 # 1. Remove the extension, and $U if already installed.
6754 ac_i=`echo "$ac_i" |
6755 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6757 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6758 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6762 LTLIBOBJS=$ac_ltlibobjs
6766 : ${CONFIG_STATUS=./config.status}
6767 ac_clean_files_save=$ac_clean_files
6768 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6769 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6770 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6771 cat >$CONFIG_STATUS <<_ACEOF
6773 # Generated by $as_me.
6774 # Run this file to recreate the current configuration.
6775 # Compiler output produced by configure, useful for debugging
6776 # configure, is in config.log if it exists.
6781 SHELL=\${CONFIG_SHELL-$SHELL}
6784 cat >>$CONFIG_STATUS <<\_ACEOF
6785 ## --------------------- ##
6786 ## M4sh Initialization. ##
6787 ## --------------------- ##
6789 # Be Bourne compatible
6790 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6793 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6794 # is contrary to our usage. Disable this feature.
6795 alias -g '${1+"$@"}'='"$@"'
6796 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6800 # Support unset when possible.
6801 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6808 # Work around bugs in pre-3.0 UWIN ksh.
6809 $as_unset ENV MAIL MAILPATH
6816 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6817 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6818 LC_TELEPHONE LC_TIME
6820 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6821 eval $as_var=C; export $as_var
6827 # Required to use basename.
6828 if expr a : '\(a\)' >/dev/null 2>&1; then
6834 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6835 as_basename=basename
6841 # Name of the executable.
6842 as_me=`$as_basename "$0" ||
6843 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6844 X"$0" : 'X\(//\)$' \| \
6845 X"$0" : 'X\(/\)$' \| \
6846 . : '\(.\)' 2>/dev/null ||
6848 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6849 /^X\/\(\/\/\)$/{ s//\1/; q; }
6850 /^X\/\(\/\).*/{ s//\1/; q; }
6854 # PATH needs CR, and LINENO needs CR and PATH.
6855 # Avoid depending upon Character Ranges.
6856 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6857 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6858 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6859 as_cr_digits='0123456789'
6860 as_cr_alnum=$as_cr_Letters$as_cr_digits
6862 # The user is always right.
6863 if test "${PATH_SEPARATOR+set}" != set; then
6864 echo "#! /bin/sh" >conf$$.sh
6865 echo "exit 0" >>conf$$.sh
6867 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6878 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6879 test "x$as_lineno_1" != "x$as_lineno_2" &&
6880 test "x$as_lineno_3" = "x$as_lineno_2" || {
6881 # Find who we are. Look in the path if we contain no path at all
6884 *[\\/]* ) as_myself=$0 ;;
6885 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6889 test -z "$as_dir" && as_dir=.
6890 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6895 # We did not find ourselves, most probably we were run as `sh COMMAND'
6896 # in which case we are not to be found in the path.
6897 if test "x$as_myself" = x; then
6900 if test ! -f "$as_myself"; then
6901 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6902 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6903 { (exit 1); exit 1; }; }
6905 case $CONFIG_SHELL in
6907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6911 test -z "$as_dir" && as_dir=.
6912 for as_base in sh bash ksh sh5; do
6915 if ("$as_dir/$as_base" -c '
6918 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6919 test "x$as_lineno_1" != "x$as_lineno_2" &&
6920 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6921 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6922 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6923 CONFIG_SHELL=$as_dir/$as_base
6925 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6933 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6934 # uniformly replaced by the line number. The first 'sed' inserts a
6935 # line-number line before each line; the second 'sed' does the real
6936 # work. The second script uses 'N' to pair each line-number line
6937 # with the numbered line, and appends trailing '-' during
6938 # substitution so that $LINENO is not a special case at line end.
6939 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6940 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6941 sed '=' <$as_myself |
6946 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6949 s,^['$as_cr_digits']*\n,,
6951 chmod +x $as_me.lineno ||
6952 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6953 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6954 { (exit 1); exit 1; }; }
6956 # Don't try to exec as it changes $[0], causing all sort of problems
6957 # (the dirname of $[0] is not the place where we might find the
6958 # original and so on. Autoconf is especially sensible to this).
6960 # Exit status is that of the last command.
6965 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6966 *c*,-n*) ECHO_N= ECHO_C='
6968 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6969 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6972 if expr a : '\(a\)' >/dev/null 2>&1; then
6978 rm -f conf$$ conf$$.exe conf$$.file
6980 if ln -s conf$$.file conf$$ 2>/dev/null; then
6981 # We could just check for DJGPP; but this test a) works b) is more generic
6982 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6983 if test -f conf$$.exe; then
6984 # Don't use ln at all; we don't have any links
6989 elif ln conf$$.file conf$$ 2>/dev/null; then
6994 rm -f conf$$ conf$$.exe conf$$.file
6996 if mkdir -p . 2>/dev/null; then
7002 as_executable_p="test -f"
7004 # Sed expression to map a string onto a valid CPP name.
7005 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7007 # Sed expression to map a string onto a valid variable name.
7008 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7012 # We need space, tab and new line, in precisely that order.
7022 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7023 # report actual input values of CONFIG_FILES etc. instead of their
7024 # values after options handling. Logging --version etc. is OK.
7028 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7029 ## Running $as_me. ##
7034 This file was extended by $as_me, which was
7035 generated by GNU Autoconf 2.57. Invocation command line was
7037 CONFIG_FILES = $CONFIG_FILES
7038 CONFIG_HEADERS = $CONFIG_HEADERS
7039 CONFIG_LINKS = $CONFIG_LINKS
7040 CONFIG_COMMANDS = $CONFIG_COMMANDS
7044 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7048 # Files that config.status was made for.
7049 if test -n "$ac_config_files"; then
7050 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7053 if test -n "$ac_config_headers"; then
7054 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7057 if test -n "$ac_config_links"; then
7058 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7061 if test -n "$ac_config_commands"; then
7062 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7065 cat >>$CONFIG_STATUS <<\_ACEOF
7068 \`$as_me' instantiates files from templates according to the
7069 current configuration.
7071 Usage: $0 [OPTIONS] [FILE]...
7073 -h, --help print this help, then exit
7074 -V, --version print version number, then exit
7075 -q, --quiet do not print progress messages
7076 -d, --debug don't remove temporary files
7077 --recheck update $as_me by reconfiguring in the same conditions
7078 --file=FILE[:TEMPLATE]
7079 instantiate the configuration file FILE
7080 --header=FILE[:TEMPLATE]
7081 instantiate the configuration header FILE
7083 Configuration files:
7086 Configuration headers:
7089 Configuration commands:
7092 Report bugs to <bug-autoconf@gnu.org>."
7095 cat >>$CONFIG_STATUS <<_ACEOF
7098 configured by $0, generated by GNU Autoconf 2.57,
7099 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7101 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7102 Free Software Foundation, Inc.
7103 This config.status script is free software; the Free Software Foundation
7104 gives unlimited permission to copy, distribute and modify it."
7109 cat >>$CONFIG_STATUS <<\_ACEOF
7110 # If no file are specified by the user, then we need to provide default
7111 # value. By we need to know if files were specified by the user.
7117 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7118 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7126 *) # This is not an option, so the user has probably given explicit
7129 ac_need_defaults=false;;
7133 # Handling of the options.
7135 cat >>$CONFIG_STATUS <<\_ACEOF
7136 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7138 --version | --vers* | -V )
7139 echo "$ac_cs_version"; exit 0 ;;
7141 # Conflict between --help and --header
7142 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7143 Try \`$0 --help' for more information." >&5
7144 echo "$as_me: error: ambiguous option: $1
7145 Try \`$0 --help' for more information." >&2;}
7146 { (exit 1); exit 1; }; };;
7147 --help | --hel | -h )
7148 echo "$ac_cs_usage"; exit 0 ;;
7149 --debug | --d* | -d )
7151 --file | --fil | --fi | --f )
7153 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7154 ac_need_defaults=false;;
7155 --header | --heade | --head | --hea )
7157 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7158 ac_need_defaults=false;;
7159 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7160 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7164 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7165 Try \`$0 --help' for more information." >&5
7166 echo "$as_me: error: unrecognized option: $1
7167 Try \`$0 --help' for more information." >&2;}
7168 { (exit 1); exit 1; }; } ;;
7170 *) ac_config_targets="$ac_config_targets $1" ;;
7176 ac_configure_extra_args=
7178 if $ac_cs_silent; then
7180 ac_configure_extra_args="$ac_configure_extra_args --silent"
7184 cat >>$CONFIG_STATUS <<_ACEOF
7185 if \$ac_cs_recheck; then
7186 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7187 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7192 cat >>$CONFIG_STATUS <<_ACEOF
7194 # INIT-COMMANDS section.
7197 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
7198 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
7200 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
7201 # Capture the value of LINGUAS because we need it to compute CATALOGS.
7202 LINGUAS="${LINGUAS-%UNSET%}"
7209 cat >>$CONFIG_STATUS <<\_ACEOF
7210 for ac_config_target in $ac_config_targets
7212 case "$ac_config_target" in
7213 # Handling of arguments.
7214 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7215 "config.intl" ) CONFIG_FILES="$CONFIG_FILES config.intl" ;;
7216 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
7217 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7218 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7219 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7220 { (exit 1); exit 1; }; };;
7224 # If the user did not use the arguments to specify the items to instantiate,
7225 # then the envvar interface is used. Set only those that are not.
7226 # We use the long form for the default assignment because of an extremely
7227 # bizarre bug on SunOS 4.1.3.
7228 if $ac_need_defaults; then
7229 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7230 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7231 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7234 # Have a temporary directory for convenience. Make it in the build tree
7235 # simply because there is no reason to put it here, and in addition,
7236 # creating and moving files from /tmp can sometimes cause problems.
7237 # Create a temporary directory, and hook for its removal unless debugging.
7240 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7241 trap '{ (exit 1); exit 1; }' 1 2 13 15
7244 # Create a (secure) tmp directory for tmp files.
7247 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7248 test -n "$tmp" && test -d "$tmp"
7251 tmp=./confstat$$-$RANDOM
7252 (umask 077 && mkdir $tmp)
7255 echo "$me: cannot create a temporary directory in ." >&2
7256 { (exit 1); exit 1; }
7261 cat >>$CONFIG_STATUS <<_ACEOF
7264 # CONFIG_FILES section.
7267 # No need to generate the scripts if there are no CONFIG_FILES.
7268 # This happens for instance when ./config.status config.h
7269 if test -n "\$CONFIG_FILES"; then
7270 # Protect against being on the right side of a sed subst in config.status.
7271 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7272 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7273 s,@SHELL@,$SHELL,;t t
7274 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7275 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7276 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7277 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7278 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7279 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7280 s,@exec_prefix@,$exec_prefix,;t t
7281 s,@prefix@,$prefix,;t t
7282 s,@program_transform_name@,$program_transform_name,;t t
7283 s,@bindir@,$bindir,;t t
7284 s,@sbindir@,$sbindir,;t t
7285 s,@libexecdir@,$libexecdir,;t t
7286 s,@datadir@,$datadir,;t t
7287 s,@sysconfdir@,$sysconfdir,;t t
7288 s,@sharedstatedir@,$sharedstatedir,;t t
7289 s,@localstatedir@,$localstatedir,;t t
7290 s,@libdir@,$libdir,;t t
7291 s,@includedir@,$includedir,;t t
7292 s,@oldincludedir@,$oldincludedir,;t t
7293 s,@infodir@,$infodir,;t t
7294 s,@mandir@,$mandir,;t t
7295 s,@build_alias@,$build_alias,;t t
7296 s,@host_alias@,$host_alias,;t t
7297 s,@target_alias@,$target_alias,;t t
7299 s,@ECHO_C@,$ECHO_C,;t t
7300 s,@ECHO_N@,$ECHO_N,;t t
7301 s,@ECHO_T@,$ECHO_T,;t t
7303 s,@SET_MAKE@,$SET_MAKE,;t t
7304 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7305 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7306 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7307 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
7308 s,@USE_NLS@,$USE_NLS,;t t
7309 s,@MSGFMT@,$MSGFMT,;t t
7310 s,@GMSGFMT@,$GMSGFMT,;t t
7311 s,@XGETTEXT@,$XGETTEXT,;t t
7312 s,@MSGMERGE@,$MSGMERGE,;t t
7314 s,@CFLAGS@,$CFLAGS,;t t
7315 s,@LDFLAGS@,$LDFLAGS,;t t
7316 s,@CPPFLAGS@,$CPPFLAGS,;t t
7317 s,@ac_ct_CC@,$ac_ct_CC,;t t
7318 s,@EXEEXT@,$EXEEXT,;t t
7319 s,@OBJEXT@,$OBJEXT,;t t
7320 s,@build@,$build,;t t
7321 s,@build_cpu@,$build_cpu,;t t
7322 s,@build_vendor@,$build_vendor,;t t
7323 s,@build_os@,$build_os,;t t
7325 s,@host_cpu@,$host_cpu,;t t
7326 s,@host_vendor@,$host_vendor,;t t
7327 s,@host_os@,$host_os,;t t
7328 s,@RANLIB@,$RANLIB,;t t
7329 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7331 s,@EGREP@,$EGREP,;t t
7332 s,@ALLOCA@,$ALLOCA,;t t
7333 s,@GLIBC21@,$GLIBC21,;t t
7334 s,@LIBICONV@,$LIBICONV,;t t
7335 s,@LTLIBICONV@,$LTLIBICONV,;t t
7336 s,@INTLBISON@,$INTLBISON,;t t
7337 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
7338 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
7339 s,@CATOBJEXT@,$CATOBJEXT,;t t
7340 s,@DATADIRNAME@,$DATADIRNAME,;t t
7341 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
7342 s,@GENCAT@,$GENCAT,;t t
7343 s,@INTLOBJS@,$INTLOBJS,;t t
7344 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
7345 s,@INTLLIBS@,$INTLLIBS,;t t
7346 s,@LIBINTL@,$LIBINTL,;t t
7347 s,@LTLIBINTL@,$LTLIBINTL,;t t
7348 s,@POSUB@,$POSUB,;t t
7349 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
7350 s,@INCINTL@,$INCINTL,;t t
7351 s,@LIBOBJS@,$LIBOBJS,;t t
7352 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7357 cat >>$CONFIG_STATUS <<\_ACEOF
7358 # Split the substitutions into bite-sized pieces for seds with
7359 # small command number limits, like on Digital OSF/1 and HP-UX.
7361 ac_sed_frag=1 # Number of current file.
7362 ac_beg=1 # First line for current file.
7363 ac_end=$ac_max_sed_lines # Line after last line for current file.
7366 while $ac_more_lines; do
7367 if test $ac_beg -gt 1; then
7368 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7370 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7372 if test ! -s $tmp/subs.frag; then
7375 # The purpose of the label and of the branching condition is to
7376 # speed up the sed processing (if there are no `@' at all, there
7377 # is no need to browse any of the substitutions).
7378 # These are the two extra sed commands mentioned above.
7380 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7381 if test -z "$ac_sed_cmds"; then
7382 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7384 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7386 ac_sed_frag=`expr $ac_sed_frag + 1`
7388 ac_end=`expr $ac_end + $ac_max_sed_lines`
7391 if test -z "$ac_sed_cmds"; then
7394 fi # test -n "$CONFIG_FILES"
7397 cat >>$CONFIG_STATUS <<\_ACEOF
7398 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7399 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7401 - | *:- | *:-:* ) # input from stdin
7403 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7404 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7405 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7406 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7407 * ) ac_file_in=$ac_file.in ;;
7410 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7411 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7412 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7413 X"$ac_file" : 'X\(//\)[^/]' \| \
7414 X"$ac_file" : 'X\(//\)$' \| \
7415 X"$ac_file" : 'X\(/\)' \| \
7416 . : '\(.\)' 2>/dev/null ||
7418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7419 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7420 /^X\(\/\/\)$/{ s//\1/; q; }
7421 /^X\(\/\).*/{ s//\1/; q; }
7423 { if $as_mkdir_p; then
7428 while test ! -d "$as_dir"; do
7429 as_dirs="$as_dir $as_dirs"
7430 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7431 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7432 X"$as_dir" : 'X\(//\)[^/]' \| \
7433 X"$as_dir" : 'X\(//\)$' \| \
7434 X"$as_dir" : 'X\(/\)' \| \
7435 . : '\(.\)' 2>/dev/null ||
7437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7438 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7439 /^X\(\/\/\)$/{ s//\1/; q; }
7440 /^X\(\/\).*/{ s//\1/; q; }
7443 test ! -n "$as_dirs" || mkdir $as_dirs
7444 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7445 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7446 { (exit 1); exit 1; }; }; }
7450 if test "$ac_dir" != .; then
7451 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7452 # A "../" for each directory in $ac_dir_suffix.
7453 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7455 ac_dir_suffix= ac_top_builddir=
7459 .) # No --srcdir option. We are building in place.
7461 if test -z "$ac_top_builddir"; then
7464 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7466 [\\/]* | ?:[\\/]* ) # Absolute path.
7467 ac_srcdir=$srcdir$ac_dir_suffix;
7468 ac_top_srcdir=$srcdir ;;
7470 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7471 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7473 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7475 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7476 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7477 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7478 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7482 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7483 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7486 if test x"$ac_file" != x-; then
7487 { echo "$as_me:$LINENO: creating $ac_file" >&5
7488 echo "$as_me: creating $ac_file" >&6;}
7491 # Let's still pretend it is `configure' which instantiates (i.e., don't
7492 # use $as_me), people would be surprised to read:
7493 # /* config.h. Generated by config.status. */
7494 if test x"$ac_file" = x-; then
7497 configure_input="$ac_file. "
7499 configure_input=$configure_input"Generated from `echo $ac_file_in |
7500 sed 's,.*/,,'` by configure."
7502 # First look for the input files in the build tree, otherwise in the
7504 ac_file_inputs=`IFS=:
7505 for f in $ac_file_in; do
7507 -) echo $tmp/stdin ;;
7509 # Absolute (can't be DOS-style, as IFS=:)
7510 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7511 echo "$as_me: error: cannot find input file: $f" >&2;}
7512 { (exit 1); exit 1; }; }
7515 if test -f "$f"; then
7518 elif test -f "$srcdir/$f"; then
7523 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7524 echo "$as_me: error: cannot find input file: $f" >&2;}
7525 { (exit 1); exit 1; }; }
7528 done` || { (exit 1); exit 1; }
7530 cat >>$CONFIG_STATUS <<_ACEOF
7534 cat >>$CONFIG_STATUS <<\_ACEOF
7536 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7537 s,@configure_input@,$configure_input,;t t
7538 s,@srcdir@,$ac_srcdir,;t t
7539 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7540 s,@top_srcdir@,$ac_top_srcdir,;t t
7541 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7542 s,@builddir@,$ac_builddir,;t t
7543 s,@abs_builddir@,$ac_abs_builddir,;t t
7544 s,@top_builddir@,$ac_top_builddir,;t t
7545 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7546 s,@INSTALL@,$ac_INSTALL,;t t
7547 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7549 if test x"$ac_file" != x-; then
7550 mv $tmp/out $ac_file
7558 cat >>$CONFIG_STATUS <<\_ACEOF
7561 # CONFIG_HEADER section.
7564 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7565 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7567 # ac_d sets the value in "#define NAME VALUE" lines.
7568 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7569 ac_dB='[ ].*$,\1#\2'
7572 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7573 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7574 ac_uB='$,\1#\2define\3'
7578 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7579 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7581 - | *:- | *:-:* ) # input from stdin
7583 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7584 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7585 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7586 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7587 * ) ac_file_in=$ac_file.in ;;
7590 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7591 echo "$as_me: creating $ac_file" >&6;}
7593 # First look for the input files in the build tree, otherwise in the
7595 ac_file_inputs=`IFS=:
7596 for f in $ac_file_in; do
7598 -) echo $tmp/stdin ;;
7600 # Absolute (can't be DOS-style, as IFS=:)
7601 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7602 echo "$as_me: error: cannot find input file: $f" >&2;}
7603 { (exit 1); exit 1; }; }
7606 if test -f "$f"; then
7609 elif test -f "$srcdir/$f"; then
7614 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7615 echo "$as_me: error: cannot find input file: $f" >&2;}
7616 { (exit 1); exit 1; }; }
7619 done` || { (exit 1); exit 1; }
7620 # Remove the trailing spaces.
7621 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7625 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7626 # `conftest.undefs', that substitutes the proper values into
7627 # config.h.in to produce config.h. The first handles `#define'
7628 # templates, and the second `#undef' templates.
7629 # And first: Protect against being on the right side of a sed subst in
7630 # config.status. Protect against being in an unquoted here document
7632 rm -f conftest.defines conftest.undefs
7633 # Using a here document instead of a string reduces the quoting nightmare.
7634 # Putting comments in sed scripts is not portable.
7636 # `end' is used to avoid that the second main sed command (meant for
7637 # 0-ary CPP macros) applies to n-ary macro definitions.
7638 # See the Autoconf documentation for `clear'.
7639 cat >confdef2sed.sed <<\_ACEOF
7644 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7646 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7649 # If some macros were called several times there might be several times
7650 # the same #defines, which is useless. Nevertheless, we may not want to
7651 # sort them, since we want the *last* AC-DEFINE to be honored.
7652 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7653 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7654 rm -f confdef2sed.sed
7656 # This sed command replaces #undef with comments. This is necessary, for
7657 # example, in the case of _POSIX_SOURCE, which is predefined and required
7658 # on some systems where configure will not decide to define it.
7659 cat >>conftest.undefs <<\_ACEOF
7660 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7663 # Break up conftest.defines because some shells have a limit on the size
7664 # of here documents, and old seds have small limits too (100 cmds).
7665 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7666 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7667 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7668 echo ' :' >>$CONFIG_STATUS
7670 while grep . conftest.defines >/dev/null
7672 # Write a limited-size here document to $tmp/defines.sed.
7673 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7674 # Speed up: don't consider the non `#define' lines.
7675 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7676 # Work around the forget-to-reset-the-flag bug.
7677 echo 't clr' >>$CONFIG_STATUS
7678 echo ': clr' >>$CONFIG_STATUS
7679 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7681 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7685 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7686 rm -f conftest.defines
7687 mv conftest.tail conftest.defines
7689 rm -f conftest.defines
7690 echo ' fi # grep' >>$CONFIG_STATUS
7691 echo >>$CONFIG_STATUS
7693 # Break up conftest.undefs because some shells have a limit on the size
7694 # of here documents, and old seds have small limits too (100 cmds).
7695 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7697 while grep . conftest.undefs >/dev/null
7699 # Write a limited-size here document to $tmp/undefs.sed.
7700 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7701 # Speed up: don't consider the non `#undef'
7702 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7703 # Work around the forget-to-reset-the-flag bug.
7704 echo 't clr' >>$CONFIG_STATUS
7705 echo ': clr' >>$CONFIG_STATUS
7706 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7708 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7712 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7713 rm -f conftest.undefs
7714 mv conftest.tail conftest.undefs
7716 rm -f conftest.undefs
7718 cat >>$CONFIG_STATUS <<\_ACEOF
7719 # Let's still pretend it is `configure' which instantiates (i.e., don't
7720 # use $as_me), people would be surprised to read:
7721 # /* config.h. Generated by config.status. */
7722 if test x"$ac_file" = x-; then
7723 echo "/* Generated by configure. */" >$tmp/config.h
7725 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7727 cat $tmp/in >>$tmp/config.h
7729 if test x"$ac_file" != x-; then
7730 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7731 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7732 echo "$as_me: $ac_file is unchanged" >&6;}
7734 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7735 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7736 X"$ac_file" : 'X\(//\)[^/]' \| \
7737 X"$ac_file" : 'X\(//\)$' \| \
7738 X"$ac_file" : 'X\(/\)' \| \
7739 . : '\(.\)' 2>/dev/null ||
7741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7742 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7743 /^X\(\/\/\)$/{ s//\1/; q; }
7744 /^X\(\/\).*/{ s//\1/; q; }
7746 { if $as_mkdir_p; then
7751 while test ! -d "$as_dir"; do
7752 as_dirs="$as_dir $as_dirs"
7753 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7754 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7755 X"$as_dir" : 'X\(//\)[^/]' \| \
7756 X"$as_dir" : 'X\(//\)$' \| \
7757 X"$as_dir" : 'X\(/\)' \| \
7758 . : '\(.\)' 2>/dev/null ||
7760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7761 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7762 /^X\(\/\/\)$/{ s//\1/; q; }
7763 /^X\(\/\).*/{ s//\1/; q; }
7766 test ! -n "$as_dirs" || mkdir $as_dirs
7767 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7768 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7769 { (exit 1); exit 1; }; }; }
7772 mv $tmp/config.h $ac_file
7780 cat >>$CONFIG_STATUS <<\_ACEOF
7783 # CONFIG_COMMANDS section.
7785 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7786 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7787 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7788 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7789 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7790 X"$ac_dest" : 'X\(//\)[^/]' \| \
7791 X"$ac_dest" : 'X\(//\)$' \| \
7792 X"$ac_dest" : 'X\(/\)' \| \
7793 . : '\(.\)' 2>/dev/null ||
7795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7796 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7797 /^X\(\/\/\)$/{ s//\1/; q; }
7798 /^X\(\/\).*/{ s//\1/; q; }
7802 if test "$ac_dir" != .; then
7803 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7804 # A "../" for each directory in $ac_dir_suffix.
7805 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7807 ac_dir_suffix= ac_top_builddir=
7811 .) # No --srcdir option. We are building in place.
7813 if test -z "$ac_top_builddir"; then
7816 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7818 [\\/]* | ?:[\\/]* ) # Absolute path.
7819 ac_srcdir=$srcdir$ac_dir_suffix;
7820 ac_top_srcdir=$srcdir ;;
7822 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7823 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7825 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7827 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7828 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7829 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7830 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7833 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7834 echo "$as_me: executing $ac_dest commands" >&6;}
7837 for ac_file in $CONFIG_FILES; do
7838 # Support "outfile[:infile[:infile...]]"
7840 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7842 # PO directories have a Makefile.in generated from Makefile.in.in.
7843 case "$ac_file" in */Makefile.in)
7844 # Adjust a relative srcdir.
7845 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
7846 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
7847 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
7848 # In autoconf-2.13 it is called $ac_given_srcdir.
7849 # In autoconf-2.50 it is called $srcdir.
7850 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
7851 case "$ac_given_srcdir" in
7852 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
7853 /*) top_srcdir="$ac_given_srcdir" ;;
7854 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
7856 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
7857 rm -f "$ac_dir/POTFILES"
7858 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
7859 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
7860 POMAKEFILEDEPS="POTFILES.in"
7861 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
7862 # on $ac_dir but don't depend on user-specified configuration
7864 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
7865 # The LINGUAS file contains the set of available languages.
7866 if test -n "$OBSOLETE_ALL_LINGUAS"; then
7867 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
7869 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
7870 # Hide the ALL_LINGUAS assigment from automake.
7871 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
7872 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
7874 # The set of available languages was given in configure.in.
7875 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
7877 case "$ac_given_srcdir" in
7879 *) srcdirpre='$(srcdir)/' ;;
7885 for lang in $ALL_LINGUAS; do
7886 POFILES="$POFILES $srcdirpre$lang.po"
7887 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
7888 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
7889 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
7891 # CATALOGS depends on both $ac_dir and the user's LINGUAS
7892 # environment variable.
7894 if test -n "$ALL_LINGUAS"; then
7895 for presentlang in $ALL_LINGUAS; do
7897 if test "%UNSET%" != "$LINGUAS"; then
7898 desiredlanguages="$LINGUAS"
7900 desiredlanguages="$ALL_LINGUAS"
7902 for desiredlang in $desiredlanguages; do
7903 # Use the presentlang catalog if desiredlang is
7904 # a. equal to presentlang, or
7905 # b. a variant of presentlang (because in this case,
7906 # presentlang can be used as a fallback for messages
7907 # which are not translated in the desiredlang catalog).
7908 case "$desiredlang" in
7909 "$presentlang"*) useit=yes;;
7912 if test $useit = yes; then
7913 INST_LINGUAS="$INST_LINGUAS $presentlang"
7918 if test -n "$INST_LINGUAS"; then
7919 for lang in $INST_LINGUAS; do
7920 CATALOGS="$CATALOGS $lang.gmo"
7923 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
7924 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
7925 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
7926 if test -f "$f"; then
7928 *.orig | *.bak | *~) ;;
7929 *) cat "$f" >> "$ac_dir/Makefile" ;;
7941 cat >>$CONFIG_STATUS <<\_ACEOF
7943 { (exit 0); exit 0; }
7945 chmod +x $CONFIG_STATUS
7946 ac_clean_files=$ac_clean_files_save
7949 # configure is writing to config.log, and then calls config.status.
7950 # config.status does its own redirection, appending to config.log.
7951 # Unfortunately, on DOS this fails, as config.log is still kept open
7952 # by configure, so config.status won't be able to write to it; its
7953 # output is simply discarded. So we exec the FD to /dev/null,
7954 # effectively closing config.log, so it can be properly (re)opened and
7955 # appended to by config.status. When coming back to configure, we
7956 # need to make the FD available again.
7957 if test "$no_create" != yes; then
7959 ac_config_status_args=
7960 test "$silent" = yes &&
7961 ac_config_status_args="$ac_config_status_args --quiet"
7963 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7965 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7966 # would make configure fail if this is the last instruction.
7967 $ac_cs_success || { (exit 1); exit 1; }