2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="gettext.c"
275 # Factoring default headers for most tests.
276 ac_includes_default
="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 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 ACLOCAL AUTOCONF AUTOHEADER MAINT LIBINTL_DEP INCINTL LIBOBJS LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir
='${exec_prefix}/bin'
341 sbindir
='${exec_prefix}/sbin'
342 libexecdir
='${exec_prefix}/libexec'
343 datadir
='${prefix}/share'
344 sysconfdir
='${prefix}/etc'
345 sharedstatedir
='${prefix}/com'
346 localstatedir
='${prefix}/var'
347 libdir
='${exec_prefix}/lib'
348 includedir
='${prefix}/include'
349 oldincludedir
='/usr/include'
350 infodir
='${prefix}/info'
351 mandir
='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
374 -build |
--build |
--buil |
--bui |
--bu)
375 ac_prev
=build_alias
;;
376 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
377 build_alias
=$ac_optarg ;;
379 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
380 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
381 ac_prev
=cache_file
;;
382 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
383 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
384 cache_file
=$ac_optarg ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
393 datadir
=$ac_optarg ;;
395 -disable-* |
--disable-*)
396 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* |
--enable-*)
405 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
418 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
419 |
--exec |
--exe |
--ex)
420 ac_prev
=exec_prefix
;;
421 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
422 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
423 |
--exec=* |
--exe=* |
--ex=*)
424 exec_prefix
=$ac_optarg ;;
426 -gas |
--gas |
--ga |
--g)
427 # Obsolete; use --with-gas.
430 -help |
--help |
--hel |
--he |
-h)
432 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
433 ac_init_help
=recursive
;;
434 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
435 ac_init_help
=short
;;
437 -host |
--host |
--hos |
--ho)
438 ac_prev
=host_alias
;;
439 -host=* |
--host=* |
--hos=* |
--ho=*)
440 host_alias
=$ac_optarg ;;
442 -includedir |
--includedir |
--includedi |
--included |
--include \
443 |
--includ |
--inclu |
--incl |
--inc)
444 ac_prev
=includedir
;;
445 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
446 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
447 includedir
=$ac_optarg ;;
449 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
459 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
460 |
--libexe |
--libex |
--libe)
461 ac_prev
=libexecdir
;;
462 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
463 |
--libexe=* |
--libex=* |
--libe=*)
464 libexecdir
=$ac_optarg ;;
466 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
467 |
--localstate |
--localstat |
--localsta |
--localst \
468 |
--locals |
--local |
--loca |
--loc |
--lo)
469 ac_prev
=localstatedir
;;
470 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
471 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
472 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
473 localstatedir
=$ac_optarg ;;
475 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
492 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
493 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
494 |
--oldin |
--oldi |
--old |
--ol |
--o)
495 ac_prev
=oldincludedir
;;
496 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
497 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
498 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
499 oldincludedir
=$ac_optarg ;;
501 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
506 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
507 |
--program-pre |
--program-pr |
--program-p)
508 ac_prev
=program_prefix
;;
509 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
510 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
511 program_prefix
=$ac_optarg ;;
513 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
514 |
--program-suf |
--program-su |
--program-s)
515 ac_prev
=program_suffix
;;
516 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
517 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
518 program_suffix
=$ac_optarg ;;
520 -program-transform-name |
--program-transform-name \
521 |
--program-transform-nam |
--program-transform-na \
522 |
--program-transform-n |
--program-transform- \
523 |
--program-transform |
--program-transfor \
524 |
--program-transfo |
--program-transf \
525 |
--program-trans |
--program-tran \
526 |
--progr-tra |
--program-tr |
--program-t)
527 ac_prev
=program_transform_name
;;
528 -program-transform-name=* |
--program-transform-name=* \
529 |
--program-transform-nam=* |
--program-transform-na=* \
530 |
--program-transform-n=* |
--program-transform-=* \
531 |
--program-transform=* |
--program-transfor=* \
532 |
--program-transfo=* |
--program-transf=* \
533 |
--program-trans=* |
--program-tran=* \
534 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
535 program_transform_name
=$ac_optarg ;;
537 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
538 |
-silent |
--silent |
--silen |
--sile |
--sil)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
568 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
569 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
570 ac_prev
=sysconfdir
;;
571 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
572 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
573 sysconfdir
=$ac_optarg ;;
575 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
576 ac_prev
=target_alias
;;
577 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
578 target_alias
=$ac_optarg ;;
580 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
587 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package
=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* |
--without-*)
600 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package
=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
613 |
--x-incl |
--x-inc |
--x-in |
--x-i)
614 ac_prev
=x_includes
;;
615 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
616 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
617 x_includes
=$ac_optarg ;;
619 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
620 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
621 ac_prev
=x_libraries
;;
622 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
623 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
624 x_libraries
=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var
in exec_prefix prefix
661 eval ac_val
=$
`echo $ac_var`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val
=$
`echo $ac_var`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x
; then
690 if test "x$build_alias" = x
; then
691 cross_compiling
=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
702 test "$silent" = yes && exec 6>/dev
/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted
=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir
=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted
=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set
=${build_alias+set}
742 ac_env_build_alias_value
=$build_alias
743 ac_cv_env_build_alias_set
=${build_alias+set}
744 ac_cv_env_build_alias_value
=$build_alias
745 ac_env_host_alias_set
=${host_alias+set}
746 ac_env_host_alias_value
=$host_alias
747 ac_cv_env_host_alias_set
=${host_alias+set}
748 ac_cv_env_host_alias_value
=$host_alias
749 ac_env_target_alias_set
=${target_alias+set}
750 ac_env_target_alias_value
=$target_alias
751 ac_cv_env_target_alias_set
=${target_alias+set}
752 ac_cv_env_target_alias_value
=$target_alias
753 ac_env_CC_set
=${CC+set}
755 ac_cv_env_CC_set
=${CC+set}
756 ac_cv_env_CC_value
=$CC
757 ac_env_CFLAGS_set
=${CFLAGS+set}
758 ac_env_CFLAGS_value
=$CFLAGS
759 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value
=$CFLAGS
761 ac_env_LDFLAGS_set
=${LDFLAGS+set}
762 ac_env_LDFLAGS_value
=$LDFLAGS
763 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value
=$LDFLAGS
765 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value
=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_env_CPP_set
=${CPP+set}
770 ac_env_CPP_value
=$CPP
771 ac_cv_env_CPP_set
=${CPP+set}
772 ac_cv_env_CPP_value
=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --build=BUILD configure
for building on BUILD
[guessed
]
836 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
840 if test -n "$ac_init_help"; then
845 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
846 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
847 --disable-nls do not use Native Language Support
848 --disable-rpath do not hardcode runtime library paths
849 --enable-maintainer-mode enable rules only needed by maintainers
852 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
853 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
854 --with-gnu-ld assume the C compiler uses GNU ld default
=no
855 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
856 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
857 --with-included-gettext use the GNU gettext library included here
858 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
859 --without-libintl-prefix don't search
for libintl
in includedir and libdir
861 Some influential environment variables
:
862 CC C compiler
command
863 CFLAGS C compiler flags
864 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
865 nonstandard directory
<lib dir
>
866 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
867 headers
in a nonstandard directory
<include dir
>
870 Use these variables to override the choices made by
`configure' or to help
871 it to find libraries and programs with nonstandard names/locations.
876 if test "$ac_init_help" = "recursive"; then
877 # If there are subdirs, report their specific --help.
879 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
880 test -d $ac_dir || continue
883 if test "$ac_dir" != .; then
884 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
885 # A "../" for each directory in $ac_dir_suffix.
886 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
888 ac_dir_suffix= ac_top_builddir=
892 .) # No --srcdir option. We are building in place.
894 if test -z "$ac_top_builddir"; then
897 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
899 [\\/]* | ?:[\\/]* ) # Absolute path.
900 ac_srcdir=$srcdir$ac_dir_suffix;
901 ac_top_srcdir=$srcdir ;;
903 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
904 ac_top_srcdir=$ac_top_builddir$srcdir ;;
907 # Do not use `cd foo
&& pwd` to compute absolute paths, because
908 # the directories may not exist.
910 .) ac_abs_builddir="$ac_dir";;
913 .) ac_abs_builddir=`pwd`;;
914 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
915 *) ac_abs_builddir=`pwd`/"$ac_dir";;
918 case $ac_abs_builddir in
919 .) ac_abs_top_builddir=${ac_top_builddir}.;;
921 case ${ac_top_builddir}. in
922 .) ac_abs_top_builddir=$ac_abs_builddir;;
923 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
924 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
927 case $ac_abs_builddir in
928 .) ac_abs_srcdir=$ac_srcdir;;
931 .) ac_abs_srcdir=$ac_abs_builddir;;
932 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
933 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
936 case $ac_abs_builddir in
937 .) ac_abs_top_srcdir=$ac_top_srcdir;;
939 case $ac_top_srcdir in
940 .) ac_abs_top_srcdir=$ac_abs_builddir;;
941 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
942 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
947 # Check for guested configure; otherwise get Cygnus style configure.
948 if test -f $ac_srcdir/configure.gnu; then
950 $SHELL $ac_srcdir/configure.gnu --help=recursive
951 elif test -f $ac_srcdir/configure; then
953 $SHELL $ac_srcdir/configure --help=recursive
954 elif test -f $ac_srcdir/configure.ac ||
955 test -f $ac_srcdir/configure.in; then
959 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
965 test -n "$ac_init_help" && exit 0
966 if $ac_init_version; then
969 Copyright (C) 2003 Free Software Foundation, Inc.
970 This configure script is free software; the Free Software Foundation
971 gives unlimited permission to copy, distribute and modify it.
977 This file contains any messages produced by compilers while
978 running configure, to aid debugging if configure makes a mistake.
980 It was created by $as_me, which was
981 generated by GNU Autoconf 2.59. Invocation command line was
992 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
993 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
994 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
995 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
996 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
998 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
999 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1001 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1002 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1003 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1004 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1005 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1006 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1007 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1015 test -z "$as_dir" && as_dir=.
1016 echo "PATH: $as_dir"
1031 # Keep a trace of the command line.
1032 # Strip out --no-create and --no-recursion so they do not pile up.
1033 # Strip out --silent because we don't want to record it for future runs.
1034 # Also quote any args containing shell meta-characters.
1035 # Make two passes to allow for proper duplicate-argument suppression.
1040 ac_must_keep_next=false
1046 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1047 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1048 | -silent | --silent | --silen | --sile | --sil)
1050 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1051 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1054 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1056 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1057 if test $ac_must_keep_next = true; then
1058 ac_must_keep_next=false # Got value, back to normal.
1061 *=* | --config-cache | -C | -disable-* | --disable-* \
1062 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1063 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1064 | -with-* | --with-* | -without-* | --without-* | --x)
1065 case "$ac_configure_args0 " in
1066 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1069 -* ) ac_must_keep_next=true ;;
1072 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1073 # Get rid of the leading space.
1079 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1080 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1082 # When interrupted or exit'd, cleanup temporary files, and complete
1083 # config.log. We remove comments because anyway the quotes in there
1084 # would cause problems or look ugly.
1085 # WARNING: Be sure not to use single quotes in there, as some shells,
1086 # such as our DU 5.0 friend, will then `close
' the trap.
1087 trap 'exit_status
=$?
1088 # Save into config.log some information that might help in debugging.
1093 ## ---------------- ##
1094 ## Cache variables. ##
1095 ## ---------------- ##
1098 # The following way of writing the cache mishandles newlines in values,
1101 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1104 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1105 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1109 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1116 ## ----------------- ##
1117 ## Output variables. ##
1118 ## ----------------- ##
1121 for ac_var
in $ac_subst_vars
1123 eval ac_val
=$
`echo $ac_var`
1124 echo "$ac_var='"'"'$ac_val'"'"'"
1128 if test -n "$ac_subst_files"; then
1135 for ac_var
in $ac_subst_files
1137 eval ac_val
=$
`echo $ac_var`
1138 echo "$ac_var='"'"'$ac_val'"'"'"
1143 if test -s confdefs.h
; then
1150 sed "/^$/d" confdefs.h |
sort
1153 test "$ac_signal" != 0 &&
1154 echo "$as_me: caught signal $ac_signal"
1155 echo "$as_me: exit $exit_status"
1157 rm -f core
*.core
&&
1158 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1161 for ac_signal in 1 2 13 15; do
1162 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1166 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1167 rm -rf conftest* confdefs.h
1168 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1171 # Predefined preprocessor variables.
1173 cat >>confdefs.h <<_ACEOF
1174 #define PACKAGE_NAME "$PACKAGE_NAME"
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1183 cat >>confdefs.h <<_ACEOF
1184 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_STRING "$PACKAGE_STRING"
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1198 # Let the site file select an alternate cache file if it wants to.
1199 # Prefer explicitly selected file to automatically selected ones.
1200 if test -z "$CONFIG_SITE"; then
1201 if test "x$prefix" != xNONE; then
1202 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1204 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1207 for ac_site_file in $CONFIG_SITE; do
1208 if test -r "$ac_site_file"; then
1209 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1210 echo "$as_me: loading site script $ac_site_file" >&6;}
1211 sed 's
/^
/|
/' "$ac_site_file" >&5
1216 if test -r "$cache_file"; then
1217 # Some versions of bash will fail to source /dev/null (special
1218 # files actually), so we avoid doing that.
1219 if test -f "$cache_file"; then
1220 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1221 echo "$as_me: loading cache $cache_file" >&6;}
1223 [\\/]* | ?:[\\/]* ) . $cache_file;;
1224 *) . ./$cache_file;;
1228 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1229 echo "$as_me: creating cache $cache_file" >&6;}
1233 # Check that the precious variables saved in the cache have kept the same
1235 ac_cache_corrupted=false
1236 for ac_var in `(set) 2>&1 |
1237 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1238 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1239 eval ac_new_set=\$ac_env_${ac_var}_set
1240 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1241 eval ac_new_val="\$ac_env_${ac_var}_value"
1242 case $ac_old_set,$ac_new_set in
1244 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1245 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1246 ac_cache_corrupted=: ;;
1248 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1249 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1250 ac_cache_corrupted=: ;;
1253 if test "x$ac_old_val" != "x$ac_new_val"; then
1254 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1255 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1256 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1257 echo "$as_me: former value: $ac_old_val" >&2;}
1258 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1259 echo "$as_me: current value: $ac_new_val" >&2;}
1260 ac_cache_corrupted=:
1263 # Pass precious variables to config.status.
1264 if test "$ac_new_set" = set; then
1266 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1267 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1268 *) ac_arg=$ac_var=$ac_new_val ;;
1270 case " $ac_configure_args " in
1271 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1272 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1276 if $ac_cache_corrupted; then
1277 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1278 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1279 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1280 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1281 { (exit 1); exit 1; }; }
1285 ac_cpp='$CPP $CPPFLAGS'
1286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1287 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1309 ac_config_headers="$ac_config_headers config.h"
1312 [\\/]* | ?:[\\/]* ) ac_macro_dir=../config ;;
1313 *) ac_macro_dir=$srcdir/../config ;;
1315 if test -d "$ac_macro_dir"; then :
1317 { { echo "$as_me:$LINENO: error: cannot find macro directory \`../config'" >&5
1318 echo "$as_me: error
: cannot
find macro directory \
`../config'" >&2;}
1319 { (exit 1); exit 1; }; }
1323 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1324 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1325 set dummy ${MAKE-make}; ac_make=`echo "$2" |
sed 'y,:./+-,___p_,'`
1326 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1327 echo $ECHO_N "(cached) $ECHO_C" >&6
1329 cat >conftest.make <<\_ACEOF
1331 @echo 'ac_maketemp="$(MAKE)"'
1333 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1334 eval `${MAKE-make} -f conftest.
make 2>/dev
/null |
grep temp
=`
1335 if test -n "$ac_maketemp"; then
1336 eval ac_cv_prog_make_${ac_make}_set=yes
1338 eval ac_cv_prog_make_${ac_make}_set=no
1342 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set
`\" = yes"; then
1343 echo "$as_me:$LINENO: result: yes" >&5
1344 echo "${ECHO_T}yes" >&6
1347 echo "$as_me:$LINENO: result: no" >&5
1348 echo "${ECHO_T}no" >&6
1349 SET_MAKE="MAKE=${MAKE-make}"
1353 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1354 if test -f $ac_dir/install-sh; then
1356 ac_install_sh="$ac_aux_dir/install-sh -c"
1358 elif test -f $ac_dir/install.sh; then
1360 ac_install_sh="$ac_aux_dir/install.sh -c"
1362 elif test -f $ac_dir/shtool; then
1364 ac_install_sh="$ac_aux_dir/shtool install -c"
1368 if test -z "$ac_aux_dir"; then
1369 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1370 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1371 { (exit 1); exit 1; }; }
1373 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1374 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1375 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1377 # Find a good install program. We prefer a C program (faster),
1378 # so one script is as good as another. But avoid the broken or
1379 # incompatible versions:
1380 # SysV /etc/install, /usr/sbin/install
1381 # SunOS /usr/etc/install
1382 # IRIX /sbin/install
1384 # AmigaOS /C/install, which installs bootblocks on floppy discs
1385 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1386 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1387 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1388 # OS/2's system install, which has a completely different semantic
1389 # ./install, which can be erroneously created by make from ./install.sh.
1390 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1391 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1392 if test -z "$INSTALL"; then
1393 if test "${ac_cv_path_install+set}" = set; then
1394 echo $ECHO_N "(cached) $ECHO_C" >&6
1396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1400 test -z "$as_dir" && as_dir=.
1401 # Account for people who put trailing slashes in PATH elements.
1403 ./ | .// | /cC/* | \
1404 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1405 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1408 # OSF1 and SCO ODT 3.0 have their own names for install.
1409 # Don't use installbsd from OSF since it installs stuff as root
1411 for ac_prog in ginstall scoinst install; do
1412 for ac_exec_ext in '' $ac_executable_extensions; do
1413 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1414 if test $ac_prog = install &&
1415 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1416 # AIX install. It has an incompatible calling convention.
1418 elif test $ac_prog = install &&
1419 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1420 # program-specific install script used by HP pwplus--don't use.
1423 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1435 if test "${ac_cv_path_install+set}" = set; then
1436 INSTALL=$ac_cv_path_install
1438 # As a last resort, use the slow shell script. We don't cache a
1439 # path for INSTALL within a source directory, because that will
1440 # break other packages using the cache if that directory is
1441 # removed, or if the path is relative.
1442 INSTALL=$ac_install_sh
1445 echo "$as_me:$LINENO: result: $INSTALL" >&5
1446 echo "${ECHO_T}$INSTALL" >&6
1448 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1449 # It thinks the first close brace ends the variable substitution.
1450 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1452 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1454 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1458 if test -n "$ac_aux_dir"; then
1459 case "$ac_aux_dir" in
1460 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
1461 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
1464 if test -z "$MKINSTALLDIRS"; then
1465 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
1470 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
1471 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
1472 # Check whether --enable-nls or --disable-nls was given.
1473 if test "${enable_nls+set}" = set; then
1474 enableval="$enable_nls"
1479 echo "$as_me:$LINENO: result: $USE_NLS" >&5
1480 echo "${ECHO_T}$USE_NLS" >&6
1487 # Prepare PATH_SEPARATOR.
1488 # The user is always right.
1489 if test "${PATH_SEPARATOR+set}" != set; then
1490 echo "#! /bin/sh" >conf$$.sh
1491 echo "exit 0" >>conf$$.sh
1493 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
1501 # Find out how to test for executable files. Don't use a zero-byte file,
1502 # as systems may use methods other than mode bits to determine executability.
1503 cat >conf$$.file <<_ASEOF
1507 chmod +x conf$$.file
1508 if test -x conf$$.file >/dev/null 2>&1; then
1509 ac_executable_p="test -x"
1511 ac_executable_p="test -f"
1515 # Extract the first word of "msgfmt", so it can be a program name with args.
1516 set dummy msgfmt; ac_word=$2
1517 echo "$as_me:$LINENO: checking for $ac_word" >&5
1518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1519 if test "${ac_cv_path_MSGFMT+set}" = set; then
1520 echo $ECHO_N "(cached) $ECHO_C" >&6
1524 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
1527 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
1528 for ac_dir in $PATH; do
1530 test -z "$ac_dir" && ac_dir=.
1531 for ac_exec_ext in '' $ac_executable_extensions; do
1532 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
1533 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
1534 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
1535 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
1542 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
1546 MSGFMT="$ac_cv_path_MSGFMT"
1547 if test "$MSGFMT" != ":"; then
1548 echo "$as_me:$LINENO: result: $MSGFMT" >&5
1549 echo "${ECHO_T}$MSGFMT" >&6
1551 echo "$as_me:$LINENO: result: no" >&5
1552 echo "${ECHO_T}no" >&6
1555 # Extract the first word of "gmsgfmt", so it can be a program name with args.
1556 set dummy gmsgfmt; ac_word=$2
1557 echo "$as_me:$LINENO: checking for $ac_word" >&5
1558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1559 if test "${ac_cv_path_GMSGFMT+set}" = set; then
1560 echo $ECHO_N "(cached) $ECHO_C" >&6
1564 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
1567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1571 test -z "$as_dir" && as_dir=.
1572 for ac_exec_ext in '' $ac_executable_extensions; do
1573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1574 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
1575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1581 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
1585 GMSGFMT=$ac_cv_path_GMSGFMT
1587 if test -n "$GMSGFMT"; then
1588 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
1589 echo "${ECHO_T}$GMSGFMT" >&6
1591 echo "$as_me:$LINENO: result: no" >&5
1592 echo "${ECHO_T}no" >&6
1597 # Prepare PATH_SEPARATOR.
1598 # The user is always right.
1599 if test "${PATH_SEPARATOR+set}" != set; then
1600 echo "#! /bin/sh" >conf$$.sh
1601 echo "exit 0" >>conf$$.sh
1603 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
1611 # Find out how to test for executable files. Don't use a zero-byte file,
1612 # as systems may use methods other than mode bits to determine executability.
1613 cat >conf$$.file <<_ASEOF
1617 chmod +x conf$$.file
1618 if test -x conf$$.file >/dev/null 2>&1; then
1619 ac_executable_p="test -x"
1621 ac_executable_p="test -f"
1625 # Extract the first word of "xgettext", so it can be a program name with args.
1626 set dummy xgettext; ac_word=$2
1627 echo "$as_me:$LINENO: checking for $ac_word" >&5
1628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1629 if test "${ac_cv_path_XGETTEXT+set}" = set; then
1630 echo $ECHO_N "(cached) $ECHO_C" >&6
1634 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
1637 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
1638 for ac_dir in $PATH; do
1640 test -z "$ac_dir" && ac_dir=.
1641 for ac_exec_ext in '' $ac_executable_extensions; do
1642 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
1643 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
1644 (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
1645 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
1652 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
1656 XGETTEXT="$ac_cv_path_XGETTEXT"
1657 if test "$XGETTEXT" != ":"; then
1658 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
1659 echo "${ECHO_T}$XGETTEXT" >&6
1661 echo "$as_me:$LINENO: result: no" >&5
1662 echo "${ECHO_T}no" >&6
1668 # Prepare PATH_SEPARATOR.
1669 # The user is always right.
1670 if test "${PATH_SEPARATOR+set}" != set; then
1671 echo "#! /bin/sh" >conf$$.sh
1672 echo "exit 0" >>conf$$.sh
1674 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
1682 # Find out how to test for executable files. Don't use a zero-byte file,
1683 # as systems may use methods other than mode bits to determine executability.
1684 cat >conf$$.file <<_ASEOF
1688 chmod +x conf$$.file
1689 if test -x conf$$.file >/dev/null 2>&1; then
1690 ac_executable_p="test -x"
1692 ac_executable_p="test -f"
1696 # Extract the first word of "msgmerge", so it can be a program name with args.
1697 set dummy msgmerge; ac_word=$2
1698 echo "$as_me:$LINENO: checking for $ac_word" >&5
1699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1700 if test "${ac_cv_path_MSGMERGE+set}" = set; then
1701 echo $ECHO_N "(cached) $ECHO_C" >&6
1705 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
1708 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
1709 for ac_dir in $PATH; do
1711 test -z "$ac_dir" && ac_dir=.
1712 for ac_exec_ext in '' $ac_executable_extensions; do
1713 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
1714 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
1715 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
1722 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
1726 MSGMERGE="$ac_cv_path_MSGMERGE"
1727 if test "$MSGMERGE" != ":"; then
1728 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
1729 echo "${ECHO_T}$MSGMERGE" >&6
1731 echo "$as_me:$LINENO: result: no" >&5
1732 echo "${ECHO_T}no" >&6
1736 if test "$GMSGFMT" != ":"; then
1737 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
1738 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
1741 GMSGFMT=`echo "$GMSGFMT" |
sed -e 's,^.*/,,'`
1742 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
1743 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
1748 if test "$XGETTEXT" != ":"; then
1749 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
1750 (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
1753 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
1754 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
1760 ac_config_commands="$ac_config_commands default-1"
1764 ac_cpp='$CPP $CPPFLAGS'
1765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1768 if test -n "$ac_tool_prefix"; then
1769 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1770 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1771 echo "$as_me:$LINENO: checking for $ac_word" >&5
1772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1773 if test "${ac_cv_prog_CC+set}" = set; then
1774 echo $ECHO_N "(cached) $ECHO_C" >&6
1776 if test -n "$CC"; then
1777 ac_cv_prog_CC="$CC" # Let the user override the test.
1779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1783 test -z "$as_dir" && as_dir=.
1784 for ac_exec_ext in '' $ac_executable_extensions; do
1785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1786 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1796 if test -n "$CC"; then
1797 echo "$as_me:$LINENO: result: $CC" >&5
1798 echo "${ECHO_T}$CC" >&6
1800 echo "$as_me:$LINENO: result: no" >&5
1801 echo "${ECHO_T}no" >&6
1805 if test -z "$ac_cv_prog_CC"; then
1807 # Extract the first word of "gcc", so it can be a program name with args.
1808 set dummy gcc; ac_word=$2
1809 echo "$as_me:$LINENO: checking for $ac_word" >&5
1810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1811 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1812 echo $ECHO_N "(cached) $ECHO_C" >&6
1814 if test -n "$ac_ct_CC"; then
1815 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1821 test -z "$as_dir" && as_dir=.
1822 for ac_exec_ext in '' $ac_executable_extensions; do
1823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1824 ac_cv_prog_ac_ct_CC="gcc"
1825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1833 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1834 if test -n "$ac_ct_CC"; then
1835 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1836 echo "${ECHO_T}$ac_ct_CC" >&6
1838 echo "$as_me:$LINENO: result: no" >&5
1839 echo "${ECHO_T}no" >&6
1847 if test -z "$CC"; then
1848 if test -n "$ac_tool_prefix"; then
1849 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1850 set dummy ${ac_tool_prefix}cc; ac_word=$2
1851 echo "$as_me:$LINENO: checking for $ac_word" >&5
1852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1853 if test "${ac_cv_prog_CC+set}" = set; then
1854 echo $ECHO_N "(cached) $ECHO_C" >&6
1856 if test -n "$CC"; then
1857 ac_cv_prog_CC="$CC" # Let the user override the test.
1859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1863 test -z "$as_dir" && as_dir=.
1864 for ac_exec_ext in '' $ac_executable_extensions; do
1865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1866 ac_cv_prog_CC="${ac_tool_prefix}cc"
1867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1876 if test -n "$CC"; then
1877 echo "$as_me:$LINENO: result: $CC" >&5
1878 echo "${ECHO_T}$CC" >&6
1880 echo "$as_me:$LINENO: result: no" >&5
1881 echo "${ECHO_T}no" >&6
1885 if test -z "$ac_cv_prog_CC"; then
1887 # Extract the first word of "cc", so it can be a program name with args.
1888 set dummy cc; ac_word=$2
1889 echo "$as_me:$LINENO: checking for $ac_word" >&5
1890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1891 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1892 echo $ECHO_N "(cached) $ECHO_C" >&6
1894 if test -n "$ac_ct_CC"; then
1895 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1901 test -z "$as_dir" && as_dir=.
1902 for ac_exec_ext in '' $ac_executable_extensions; do
1903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1904 ac_cv_prog_ac_ct_CC="cc"
1905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1913 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1914 if test -n "$ac_ct_CC"; then
1915 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1916 echo "${ECHO_T}$ac_ct_CC" >&6
1918 echo "$as_me:$LINENO: result: no" >&5
1919 echo "${ECHO_T}no" >&6
1928 if test -z "$CC"; then
1929 # Extract the first word of "cc", so it can be a program name with args.
1930 set dummy cc; ac_word=$2
1931 echo "$as_me:$LINENO: checking for $ac_word" >&5
1932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1933 if test "${ac_cv_prog_CC+set}" = set; then
1934 echo $ECHO_N "(cached) $ECHO_C" >&6
1936 if test -n "$CC"; then
1937 ac_cv_prog_CC="$CC" # Let the user override the test.
1940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944 test -z "$as_dir" && as_dir=.
1945 for ac_exec_ext in '' $ac_executable_extensions; do
1946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1947 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1948 ac_prog_rejected=yes
1952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1958 if test $ac_prog_rejected = yes; then
1959 # We found a bogon in the path, so make sure we never use it.
1960 set dummy $ac_cv_prog_CC
1962 if test $# != 0; then
1963 # We chose a different compiler from the bogus one.
1964 # However, it has the same basename, so the bogon will be chosen
1965 # first if we set CC to just the basename; use the full file name.
1967 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1973 if test -n "$CC"; then
1974 echo "$as_me:$LINENO: result: $CC" >&5
1975 echo "${ECHO_T}$CC" >&6
1977 echo "$as_me:$LINENO: result: no" >&5
1978 echo "${ECHO_T}no" >&6
1982 if test -z "$CC"; then
1983 if test -n "$ac_tool_prefix"; then
1986 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1987 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1988 echo "$as_me:$LINENO: checking for $ac_word" >&5
1989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1990 if test "${ac_cv_prog_CC+set}" = set; then
1991 echo $ECHO_N "(cached) $ECHO_C" >&6
1993 if test -n "$CC"; then
1994 ac_cv_prog_CC="$CC" # Let the user override the test.
1996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000 test -z "$as_dir" && as_dir=.
2001 for ac_exec_ext in '' $ac_executable_extensions; do
2002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2003 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013 if test -n "$CC"; then
2014 echo "$as_me:$LINENO: result: $CC" >&5
2015 echo "${ECHO_T}$CC" >&6
2017 echo "$as_me:$LINENO: result: no" >&5
2018 echo "${ECHO_T}no" >&6
2021 test -n "$CC" && break
2024 if test -z "$CC"; then
2028 # Extract the first word of "$ac_prog", so it can be a program name with args.
2029 set dummy $ac_prog; ac_word=$2
2030 echo "$as_me:$LINENO: checking for $ac_word" >&5
2031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2032 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2033 echo $ECHO_N "(cached) $ECHO_C" >&6
2035 if test -n "$ac_ct_CC"; then
2036 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042 test -z "$as_dir" && as_dir=.
2043 for ac_exec_ext in '' $ac_executable_extensions; do
2044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2045 ac_cv_prog_ac_ct_CC="$ac_prog"
2046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2055 if test -n "$ac_ct_CC"; then
2056 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2057 echo "${ECHO_T}$ac_ct_CC" >&6
2059 echo "$as_me:$LINENO: result: no" >&5
2060 echo "${ECHO_T}no" >&6
2063 test -n "$ac_ct_CC" && break
2072 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2073 See \`config.log
' for more details." >&5
2074 echo "$as_me: error: no acceptable C compiler found in \$PATH
2075 See \`config.log' for more details.
" >&2;}
2076 { (exit 1); exit 1; }; }
2078 # Provide some information about the compiler.
2079 echo "$as_me:$LINENO:" \
2080 "checking
for C compiler version
" >&5
2081 ac_compiler=`set X $ac_compile; echo $2`
2082 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev
/null
>&5\"") >&5
2083 (eval $ac_compiler --version </dev/null >&5) 2>&5
2085 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2086 (exit $ac_status); }
2087 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev
/null
>&5\"") >&5
2088 (eval $ac_compiler -v </dev/null >&5) 2>&5
2090 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2091 (exit $ac_status); }
2092 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev
/null
>&5\"") >&5
2093 (eval $ac_compiler -V </dev/null >&5) 2>&5
2095 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2096 (exit $ac_status); }
2098 cat >conftest.$ac_ext <<_ACEOF
2101 cat confdefs.h >>conftest.$ac_ext
2102 cat >>conftest.$ac_ext <<_ACEOF
2103 /* end confdefs.h. */
2113 ac_clean_files_save=$ac_clean_files
2114 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2115 # Try to create an executable without -o first, disregard a.out.
2116 # It will help us diagnose broken compilers, and finding out an intuition
2118 echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2119 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6
2120 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2121 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2122 (eval $ac_link_default) 2>&5
2124 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2125 (exit $ac_status); }; then
2126 # Find the output, starting from the most likely. This scheme is
2127 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2130 # Be careful to initialize this variable, since it used to be cached.
2131 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2133 # b.out is created by i960 compilers.
2134 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2136 test -f "$ac_file" || continue
2138 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2141 # This is the source file.
2144 # We found the default executable, but exeext='' is most
2148 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2149 # FIXME: I believe we export ac_cv_exeext for Libtool,
2150 # but it would be cool to find out if it's true. Does anybody
2151 # maintain Libtool? --akim.
2159 echo "$as_me: failed program was
:" >&5
2160 sed 's/^/| /' conftest.$ac_ext >&5
2162 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2163 See \
`config.log' for more details." >&5
2164 echo "$as_me: error: C compiler cannot create executables
2165 See \`config.log
' for more details." >&2;}
2166 { (exit 77); exit 77; }; }
2169 ac_exeext=$ac_cv_exeext
2170 echo "$as_me:$LINENO: result: $ac_file" >&5
2171 echo "${ECHO_T}$ac_file" >&6
2173 # Check the compiler produces executables we can run. If not, either
2174 # the compiler is broken, or we cross compile.
2175 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2176 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2177 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2178 # If not cross compiling, check that we can run a simple program.
2179 if test "$cross_compiling" != yes; then
2180 if { ac_try='.
/$ac_file'
2181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; }; then
2188 if test "$cross_compiling" = maybe; then
2191 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2192 If you meant to cross compile, use \`--host'.
2193 See \
`config.log' for more details." >&5
2194 echo "$as_me: error: cannot run C compiled programs.
2195 If you meant to cross compile, use \`--host'.
2196 See \`config.log' for more details.
" >&2;}
2197 { (exit 1); exit 1; }; }
2201 echo "$as_me:$LINENO: result
: yes" >&5
2202 echo "${ECHO_T}yes" >&6
2204 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2205 ac_clean_files=$ac_clean_files_save
2206 # Check the compiler produces executables we can run. If not, either
2207 # the compiler is broken, or we cross compile.
2208 echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2209 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6
2210 echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2211 echo "${ECHO_T}$cross_compiling" >&6
2213 echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2214 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6
2215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2216 (eval $ac_link) 2>&5
2218 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2219 (exit $ac_status); }; then
2220 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2221 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2222 # work properly (i.e., refer to `conftest.exe'), while it won't with
2224 for ac_file in conftest.exe conftest conftest.*; do
2225 test -f "$ac_file" || continue
2227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2228 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2235 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2236 See \
`config.log' for more details." >&5
2237 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2238 See \`config.log
' for more details." >&2;}
2239 { (exit 1); exit 1; }; }
2242 rm -f conftest$ac_cv_exeext
2243 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2244 echo "${ECHO_T}$ac_cv_exeext" >&6
2246 rm -f conftest.$ac_ext
2247 EXEEXT=$ac_cv_exeext
2249 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2250 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2251 if test "${ac_cv_objext+set}" = set; then
2252 echo $ECHO_N "(cached) $ECHO_C" >&6
2254 cat >conftest.$ac_ext <<_ACEOF
2257 cat confdefs.h >>conftest.$ac_ext
2258 cat >>conftest.$ac_ext <<_ACEOF
2259 /* end confdefs.h. */
2269 rm -f conftest.o conftest.obj
2270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2271 (eval $ac_compile) 2>&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; then
2275 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2278 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2283 echo "$as_me: failed program was:" >&5
2284 sed 's
/^
/|
/' conftest.$ac_ext >&5
2286 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2287 See \`config.log' for more details.
" >&5
2288 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2289 See \
`config.log' for more details." >&2;}
2290 { (exit 1); exit 1; }; }
2293 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2295 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2296 echo "${ECHO_T}$ac_cv_objext" >&6
2297 OBJEXT=$ac_cv_objext
2299 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2300 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2301 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2302 echo $ECHO_N "(cached) $ECHO_C" >&6
2304 cat >conftest.$ac_ext <<_ACEOF
2307 cat confdefs.h >>conftest.$ac_ext
2308 cat >>conftest.$ac_ext <<_ACEOF
2309 /* end confdefs.h. */
2322 rm -f conftest.$ac_objext
2323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2324 (eval $ac_compile) 2>conftest.er1
2326 grep -v '^ *+' conftest.er1 >conftest.err
2328 cat conftest.err >&5
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); } &&
2331 { ac_try='test -z "$ac_c_werror_flag"
2332 || test ! -s conftest.err'
2333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }; } &&
2338 { ac_try='test -s conftest.$ac_objext'
2339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }; }; then
2346 echo "$as_me: failed program was:" >&5
2347 sed 's/^/| /' conftest.$ac_ext >&5
2351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2352 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2355 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2356 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2357 GCC=`test $ac_compiler_gnu = yes && echo yes`
2358 ac_test_CFLAGS=${CFLAGS+set}
2359 ac_save_CFLAGS=$CFLAGS
2361 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2362 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2363 if test "${ac_cv_prog_cc_g+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2366 cat >conftest.$ac_ext <<_ACEOF
2369 cat confdefs.h >>conftest.$ac_ext
2370 cat >>conftest.$ac_ext <<_ACEOF
2371 /* end confdefs.h. */
2381 rm -f conftest.$ac_objext
2382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2383 (eval $ac_compile) 2>conftest.er1
2385 grep -v '^ *+' conftest.er1 >conftest.err
2387 cat conftest.err >&5
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); } &&
2390 { ac_try='test -z "$ac_c_werror_flag"
2391 || test ! -s conftest.err'
2392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; } &&
2397 { ac_try='test -s conftest.$ac_objext'
2398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; }; then
2405 echo "$as_me: failed program was:" >&5
2406 sed 's/^/| /' conftest.$ac_ext >&5
2410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2412 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2413 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2414 if test "$ac_test_CFLAGS" = set; then
2415 CFLAGS=$ac_save_CFLAGS
2416 elif test $ac_cv_prog_cc_g = yes; then
2417 if test "$GCC" = yes; then
2423 if test "$GCC" = yes; then
2429 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2430 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2431 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2434 ac_cv_prog_cc_stdc=no
2436 cat >conftest.$ac_ext <<_ACEOF
2439 cat confdefs.h >>conftest.$ac_ext
2440 cat >>conftest.$ac_ext <<_ACEOF
2441 /* end confdefs.h. */
2444 #include <sys/types.h>
2445 #include <sys/stat.h>
2446 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2447 struct buf { int x; };
2448 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2449 static char *e (p, i)
2455 static char *f (char * (*g) (char **, int), char **p, ...)
2460 s = g (p, va_arg (v,int));
2465 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2466 function prototypes and stuff, but not '\xHH' hex character constants.
2467 These don't provoke an error unfortunately, instead are silently treated
2468 as 'x'. The following induces an error, until -std1 is added to get
2469 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2470 array size at least. It's necessary to write '\x00'==0 to get something
2471 that's true only with -std1. */
2472 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2474 int test (int i, double x);
2475 struct s1 {int (*f) (int a);};
2476 struct s2 {int (*f) (double a);};
2477 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2483 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2488 # Don't try gcc -ansi; that turns off useful extensions and
2489 # breaks some systems' header files.
2490 # AIX -qlanglvl=ansi
2491 # Ultrix and OSF/1 -std1
2492 # HP-UX 10.20 and later -Ae
2493 # HP-UX older versions -Aa -D_HPUX_SOURCE
2494 # SVR4 -Xc -D__EXTENSIONS__
2495 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2497 CC="$ac_save_CC $ac_arg"
2498 rm -f conftest.$ac_objext
2499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2500 (eval $ac_compile) 2>conftest.er1
2502 grep -v '^ *+' conftest.er1 >conftest.err
2504 cat conftest.err >&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); } &&
2507 { ac_try='test -z "$ac_c_werror_flag"
2508 || test ! -s conftest.err'
2509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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
2520 ac_cv_prog_cc_stdc=$ac_arg
2523 echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2527 rm -f conftest.err conftest.$ac_objext
2529 rm -f conftest.$ac_ext conftest.$ac_objext
2534 case "x$ac_cv_prog_cc_stdc" in
2536 echo "$as_me:$LINENO: result: none needed" >&5
2537 echo "${ECHO_T}none needed" >&6 ;;
2539 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2540 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2541 CC="$CC $ac_cv_prog_cc_stdc" ;;
2544 # Some people use a C++ compiler to compile C. Since we use `exit',
2545 # in C++ we need to declare it. In case someone uses the same compiler
2546 # for both compiling C and C++ we need to have the C++ compiler decide
2547 # the declaration of exit, since it's the most demanding environment.
2548 cat >conftest.
$ac_ext <<_ACEOF
2553 rm -f conftest.
$ac_objext
2554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2555 (eval $ac_compile) 2>conftest.er1
2557 grep -v '^ *+' conftest.er1
>conftest.err
2559 cat conftest.err
>&5
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); } &&
2562 { ac_try
='test -z "$ac_c_werror_flag"
2563 || test ! -s conftest.err'
2564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; } &&
2569 { ac_try
='test -s conftest.$ac_objext'
2570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); }; }; then
2575 for ac_declaration
in \
2577 'extern "C" void std::exit (int) throw (); using std::exit;' \
2578 'extern "C" void std::exit (int); using std::exit;' \
2579 'extern "C" void exit (int) throw ();' \
2580 'extern "C" void exit (int);' \
2583 cat >conftest.
$ac_ext <<_ACEOF
2586 cat confdefs.h
>>conftest.
$ac_ext
2587 cat >>conftest.
$ac_ext <<_ACEOF
2588 /* end confdefs.h. */
2599 rm -f conftest.
$ac_objext
2600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2601 (eval $ac_compile) 2>conftest.er1
2603 grep -v '^ *+' conftest.er1
>conftest.err
2605 cat conftest.err
>&5
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); } &&
2608 { ac_try
='test -z "$ac_c_werror_flag"
2609 || test ! -s conftest.err'
2610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; } &&
2615 { ac_try
='test -s conftest.$ac_objext'
2616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; }; then
2623 echo "$as_me: failed program was:" >&5
2624 sed 's/^/| /' conftest.
$ac_ext >&5
2628 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2629 cat >conftest.
$ac_ext <<_ACEOF
2632 cat confdefs.h
>>conftest.
$ac_ext
2633 cat >>conftest.
$ac_ext <<_ACEOF
2634 /* end confdefs.h. */
2644 rm -f conftest.
$ac_objext
2645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2646 (eval $ac_compile) 2>conftest.er1
2648 grep -v '^ *+' conftest.er1
>conftest.err
2650 cat conftest.err
>&5
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); } &&
2653 { ac_try
='test -z "$ac_c_werror_flag"
2654 || test ! -s conftest.err'
2655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); }; } &&
2660 { ac_try
='test -s conftest.$ac_objext'
2661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }; }; then
2668 echo "$as_me: failed program was:" >&5
2669 sed 's/^/| /' conftest.
$ac_ext >&5
2672 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2675 if test -n "$ac_declaration"; then
2676 echo '#ifdef __cplusplus' >>confdefs.h
2677 echo $ac_declaration >>confdefs.h
2678 echo '#endif' >>confdefs.h
2682 echo "$as_me: failed program was:" >&5
2683 sed 's/^/| /' conftest.
$ac_ext >&5
2686 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2688 ac_cpp
='$CPP $CPPFLAGS'
2689 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2690 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2691 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2693 # Make sure we can run config.sub.
2694 $ac_config_sub sun4
>/dev
/null
2>&1 ||
2695 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2696 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2697 { (exit 1); exit 1; }; }
2699 echo "$as_me:$LINENO: checking build system type" >&5
2700 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2701 if test "${ac_cv_build+set}" = set; then
2702 echo $ECHO_N "(cached) $ECHO_C" >&6
2704 ac_cv_build_alias
=$build_alias
2705 test -z "$ac_cv_build_alias" &&
2706 ac_cv_build_alias
=`$ac_config_guess`
2707 test -z "$ac_cv_build_alias" &&
2708 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2709 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2710 { (exit 1); exit 1; }; }
2711 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
2712 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2713 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2714 { (exit 1); exit 1; }; }
2717 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2718 echo "${ECHO_T}$ac_cv_build" >&6
2720 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2721 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2722 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2725 echo "$as_me:$LINENO: checking host system type" >&5
2726 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2727 if test "${ac_cv_host+set}" = set; then
2728 echo $ECHO_N "(cached) $ECHO_C" >&6
2730 ac_cv_host_alias
=$host_alias
2731 test -z "$ac_cv_host_alias" &&
2732 ac_cv_host_alias
=$ac_cv_build_alias
2733 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
2734 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2735 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2736 { (exit 1); exit 1; }; }
2739 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2740 echo "${ECHO_T}$ac_cv_host" >&6
2742 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2743 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2744 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2747 if test -n "$ac_tool_prefix"; then
2748 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2749 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2750 echo "$as_me:$LINENO: checking for $ac_word" >&5
2751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2752 if test "${ac_cv_prog_RANLIB+set}" = set; then
2753 echo $ECHO_N "(cached) $ECHO_C" >&6
2755 if test -n "$RANLIB"; then
2756 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2758 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2762 test -z "$as_dir" && as_dir
=.
2763 for ac_exec_ext
in '' $ac_executable_extensions; do
2764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2765 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2774 RANLIB
=$ac_cv_prog_RANLIB
2775 if test -n "$RANLIB"; then
2776 echo "$as_me:$LINENO: result: $RANLIB" >&5
2777 echo "${ECHO_T}$RANLIB" >&6
2779 echo "$as_me:$LINENO: result: no" >&5
2780 echo "${ECHO_T}no" >&6
2784 if test -z "$ac_cv_prog_RANLIB"; then
2785 ac_ct_RANLIB
=$RANLIB
2786 # Extract the first word of "ranlib", so it can be a program name with args.
2787 set dummy ranlib
; ac_word
=$2
2788 echo "$as_me:$LINENO: checking for $ac_word" >&5
2789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2790 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2791 echo $ECHO_N "(cached) $ECHO_C" >&6
2793 if test -n "$ac_ct_RANLIB"; then
2794 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
2796 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2800 test -z "$as_dir" && as_dir
=.
2801 for ac_exec_ext
in '' $ac_executable_extensions; do
2802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2803 ac_cv_prog_ac_ct_RANLIB
="ranlib"
2804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2810 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
2813 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
2814 if test -n "$ac_ct_RANLIB"; then
2815 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2816 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2818 echo "$as_me:$LINENO: result: no" >&5
2819 echo "${ECHO_T}no" >&6
2822 RANLIB
=$ac_ct_RANLIB
2824 RANLIB
="$ac_cv_prog_RANLIB"
2828 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2829 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2830 if test "${ac_cv_search_strerror+set}" = set; then
2831 echo $ECHO_N "(cached) $ECHO_C" >&6
2833 ac_func_search_save_LIBS
=$LIBS
2834 ac_cv_search_strerror
=no
2835 cat >conftest.
$ac_ext <<_ACEOF
2838 cat confdefs.h
>>conftest.
$ac_ext
2839 cat >>conftest.
$ac_ext <<_ACEOF
2840 /* end confdefs.h. */
2842 /* Override any gcc2 internal prototype to avoid an error. */
2846 /* We use char because int might match the return type of a gcc2
2847 builtin and then its argument prototype would still apply. */
2857 rm -f conftest.
$ac_objext conftest
$ac_exeext
2858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2859 (eval $ac_link) 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); } &&
2866 { ac_try
='test -z "$ac_c_werror_flag"
2867 || test ! -s conftest.err'
2868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); }; } &&
2873 { ac_try
='test -s conftest$ac_exeext'
2874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); }; }; then
2879 ac_cv_search_strerror
="none required"
2881 echo "$as_me: failed program was:" >&5
2882 sed 's/^/| /' conftest.
$ac_ext >&5
2885 rm -f conftest.err conftest.
$ac_objext \
2886 conftest
$ac_exeext conftest.
$ac_ext
2887 if test "$ac_cv_search_strerror" = no
; then
2888 for ac_lib
in cposix
; do
2889 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
2890 cat >conftest.
$ac_ext <<_ACEOF
2893 cat confdefs.h
>>conftest.
$ac_ext
2894 cat >>conftest.
$ac_ext <<_ACEOF
2895 /* end confdefs.h. */
2897 /* Override any gcc2 internal prototype to avoid an error. */
2901 /* We use char because int might match the return type of a gcc2
2902 builtin and then its argument prototype would still apply. */
2912 rm -f conftest.
$ac_objext conftest
$ac_exeext
2913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2914 (eval $ac_link) 2>conftest.er1
2916 grep -v '^ *+' conftest.er1
>conftest.err
2918 cat conftest.err
>&5
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); } &&
2921 { ac_try
='test -z "$ac_c_werror_flag"
2922 || test ! -s conftest.err'
2923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }; } &&
2928 { ac_try
='test -s conftest$ac_exeext'
2929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }; }; then
2934 ac_cv_search_strerror
="-l$ac_lib"
2937 echo "$as_me: failed program was:" >&5
2938 sed 's/^/| /' conftest.
$ac_ext >&5
2941 rm -f conftest.err conftest.
$ac_objext \
2942 conftest
$ac_exeext conftest.
$ac_ext
2945 LIBS
=$ac_func_search_save_LIBS
2947 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2948 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2949 if test "$ac_cv_search_strerror" != no
; then
2950 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
2955 ac_cpp
='$CPP $CPPFLAGS'
2956 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2957 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2958 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2959 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2960 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2961 # On Suns, sometimes $CPP names a directory.
2962 if test -n "$CPP" && test -d "$CPP"; then
2965 if test -z "$CPP"; then
2966 if test "${ac_cv_prog_CPP+set}" = set; then
2967 echo $ECHO_N "(cached) $ECHO_C" >&6
2969 # Double quotes because CPP needs to be expanded
2970 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2973 for ac_c_preproc_warn_flag
in '' yes
2975 # Use a header file that comes with gcc, so configuring glibc
2976 # with a fresh cross-compiler works.
2977 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2978 # <limits.h> exists even on freestanding compilers.
2979 # On the NeXT, cc -E runs the code through the compiler's parser,
2980 # not just through cpp. "Syntax error" is here to catch this case.
2981 cat >conftest.
$ac_ext <<_ACEOF
2984 cat confdefs.h
>>conftest.
$ac_ext
2985 cat >>conftest.
$ac_ext <<_ACEOF
2986 /* end confdefs.h. */
2988 # include <limits.h>
2990 # include <assert.h>
2994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2995 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2997 grep -v '^ *+' conftest.er1
>conftest.err
2999 cat conftest.err
>&5
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); } >/dev
/null
; then
3002 if test -s conftest.err
; then
3003 ac_cpp_err
=$ac_c_preproc_warn_flag
3004 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3011 if test -z "$ac_cpp_err"; then
3014 echo "$as_me: failed program was:" >&5
3015 sed 's/^/| /' conftest.
$ac_ext >&5
3017 # Broken: fails on valid input.
3020 rm -f conftest.err conftest.
$ac_ext
3022 # OK, works on sane cases. Now check whether non-existent headers
3023 # can be detected and how.
3024 cat >conftest.
$ac_ext <<_ACEOF
3027 cat confdefs.h
>>conftest.
$ac_ext
3028 cat >>conftest.
$ac_ext <<_ACEOF
3029 /* end confdefs.h. */
3030 #include <ac_nonexistent.h>
3032 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3033 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3035 grep -v '^ *+' conftest.er1
>conftest.err
3037 cat conftest.err
>&5
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); } >/dev
/null
; then
3040 if test -s conftest.err
; then
3041 ac_cpp_err
=$ac_c_preproc_warn_flag
3042 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3049 if test -z "$ac_cpp_err"; then
3050 # Broken: success on invalid input.
3053 echo "$as_me: failed program was:" >&5
3054 sed 's/^/| /' conftest.
$ac_ext >&5
3056 # Passes both tests.
3060 rm -f conftest.err conftest.
$ac_ext
3063 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3064 rm -f conftest.err conftest.
$ac_ext
3065 if $ac_preproc_ok; then
3077 echo "$as_me:$LINENO: result: $CPP" >&5
3078 echo "${ECHO_T}$CPP" >&6
3080 for ac_c_preproc_warn_flag
in '' yes
3082 # Use a header file that comes with gcc, so configuring glibc
3083 # with a fresh cross-compiler works.
3084 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3085 # <limits.h> exists even on freestanding compilers.
3086 # On the NeXT, cc -E runs the code through the compiler's parser,
3087 # not just through cpp. "Syntax error" is here to catch this case.
3088 cat >conftest.
$ac_ext <<_ACEOF
3091 cat confdefs.h
>>conftest.
$ac_ext
3092 cat >>conftest.
$ac_ext <<_ACEOF
3093 /* end confdefs.h. */
3095 # include <limits.h>
3097 # include <assert.h>
3101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3102 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3104 grep -v '^ *+' conftest.er1
>conftest.err
3106 cat conftest.err
>&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); } >/dev
/null
; then
3109 if test -s conftest.err
; then
3110 ac_cpp_err
=$ac_c_preproc_warn_flag
3111 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3118 if test -z "$ac_cpp_err"; then
3121 echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.
$ac_ext >&5
3124 # Broken: fails on valid input.
3127 rm -f conftest.err conftest.
$ac_ext
3129 # OK, works on sane cases. Now check whether non-existent headers
3130 # can be detected and how.
3131 cat >conftest.
$ac_ext <<_ACEOF
3134 cat confdefs.h
>>conftest.
$ac_ext
3135 cat >>conftest.
$ac_ext <<_ACEOF
3136 /* end confdefs.h. */
3137 #include <ac_nonexistent.h>
3139 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3140 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3142 grep -v '^ *+' conftest.er1
>conftest.err
3144 cat conftest.err
>&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); } >/dev
/null
; then
3147 if test -s conftest.err
; then
3148 ac_cpp_err
=$ac_c_preproc_warn_flag
3149 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3156 if test -z "$ac_cpp_err"; then
3157 # Broken: success on invalid input.
3160 echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.
$ac_ext >&5
3163 # Passes both tests.
3167 rm -f conftest.err conftest.
$ac_ext
3170 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3171 rm -f conftest.err conftest.
$ac_ext
3172 if $ac_preproc_ok; then
3175 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3176 See \`config.log' for more details." >&5
3177 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3178 See \`config.log' for more details." >&2;}
3179 { (exit 1); exit 1; }; }
3183 ac_cpp
='$CPP $CPPFLAGS'
3184 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3185 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3186 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3189 echo "$as_me:$LINENO: checking for egrep" >&5
3190 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3191 if test "${ac_cv_prog_egrep+set}" = set; then
3192 echo $ECHO_N "(cached) $ECHO_C" >&6
3194 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3195 then ac_cv_prog_egrep
='grep -E'
3196 else ac_cv_prog_egrep
='egrep'
3199 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3200 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3201 EGREP
=$ac_cv_prog_egrep
3204 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3205 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3206 if test "${ac_cv_header_stdc+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3209 cat >conftest.
$ac_ext <<_ACEOF
3212 cat confdefs.h
>>conftest.
$ac_ext
3213 cat >>conftest.
$ac_ext <<_ACEOF
3214 /* end confdefs.h. */
3228 rm -f conftest.
$ac_objext
3229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3230 (eval $ac_compile) 2>conftest.er1
3232 grep -v '^ *+' conftest.er1
>conftest.err
3234 cat conftest.err
>&5
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); } &&
3237 { ac_try
='test -z "$ac_c_werror_flag"
3238 || test ! -s conftest.err'
3239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); }; } &&
3244 { ac_try
='test -s conftest.$ac_objext'
3245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); }; }; then
3250 ac_cv_header_stdc
=yes
3252 echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.
$ac_ext >&5
3255 ac_cv_header_stdc
=no
3257 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3259 if test $ac_cv_header_stdc = yes; then
3260 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3261 cat >conftest.
$ac_ext <<_ACEOF
3264 cat confdefs.h
>>conftest.
$ac_ext
3265 cat >>conftest.
$ac_ext <<_ACEOF
3266 /* end confdefs.h. */
3270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3271 $EGREP "memchr" >/dev
/null
2>&1; then
3274 ac_cv_header_stdc
=no
3280 if test $ac_cv_header_stdc = yes; then
3281 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3282 cat >conftest.
$ac_ext <<_ACEOF
3285 cat confdefs.h
>>conftest.
$ac_ext
3286 cat >>conftest.
$ac_ext <<_ACEOF
3287 /* end confdefs.h. */
3291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3292 $EGREP "free" >/dev
/null
2>&1; then
3295 ac_cv_header_stdc
=no
3301 if test $ac_cv_header_stdc = yes; then
3302 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3303 if test "$cross_compiling" = yes; then
3306 cat >conftest.
$ac_ext <<_ACEOF
3309 cat confdefs.h
>>conftest.
$ac_ext
3310 cat >>conftest.
$ac_ext <<_ACEOF
3311 /* end confdefs.h. */
3313 #if ((' ' & 0x0FF) == 0x020)
3314 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3315 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3317 # define ISLOWER(c) \
3318 (('a' <= (c) && (c) <= 'i') \
3319 || ('j' <= (c) && (c) <= 'r') \
3320 || ('s' <= (c) && (c) <= 'z'))
3321 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3324 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3329 for (i = 0; i < 256; i++)
3330 if (XOR (islower (i), ISLOWER (i))
3331 || toupper (i) != TOUPPER (i))
3336 rm -f conftest
$ac_exeext
3337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3338 (eval $ac_link) 2>&5
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); }; }; then
3349 echo "$as_me: program exited with status $ac_status" >&5
3350 echo "$as_me: failed program was:" >&5
3351 sed 's/^/| /' conftest.
$ac_ext >&5
3354 ac_cv_header_stdc
=no
3356 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3360 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3361 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3362 if test $ac_cv_header_stdc = yes; then
3364 cat >>confdefs.h
<<\_ACEOF
3365 #define STDC_HEADERS 1
3370 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3371 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3372 if test "${ac_cv_c_const+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 cat >conftest.
$ac_ext <<_ACEOF
3378 cat confdefs.h
>>conftest.
$ac_ext
3379 cat >>conftest.
$ac_ext <<_ACEOF
3380 /* end confdefs.h. */
3385 /* FIXME: Include the comments suggested by Paul. */
3387 /* Ultrix mips cc rejects this. */
3388 typedef int charset[2];
3390 /* SunOS 4.1.1 cc rejects this. */
3391 char const *const *ccp;
3393 /* NEC SVR4.0.2 mips cc rejects this. */
3394 struct point {int x, y;};
3395 static struct point const zero = {0,0};
3396 /* AIX XL C 1.02.0.0 rejects this.
3397 It does not let you subtract one const X* pointer from another in
3398 an arm of an if-expression whose if-part is not a constant
3400 const char *g = "string";
3401 ccp = &g + (g ? g-g : 0);
3402 /* HPUX 7.0 cc rejects these. */
3405 ccp = (char const *const *) p;
3406 { /* SCO 3.2v4 cc rejects this. */
3408 char const *s = 0 ? (char *) 0 : (char const *) 0;
3412 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3414 const int *foo = &x[0];
3417 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3418 typedef const int *iptr;
3422 { /* AIX XL C 1.02.0.0 rejects this saying
3423 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3424 struct s { int j; const int *ap[3]; };
3425 struct s *b; b->j = 5;
3427 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3436 rm -f conftest.
$ac_objext
3437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3438 (eval $ac_compile) 2>conftest.er1
3440 grep -v '^ *+' conftest.er1
>conftest.err
3442 cat conftest.err
>&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); } &&
3445 { ac_try
='test -z "$ac_c_werror_flag"
3446 || test ! -s conftest.err'
3447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); }; } &&
3452 { ac_try
='test -s conftest.$ac_objext'
3453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); }; }; then
3460 echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.
$ac_ext >&5
3465 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3467 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3468 echo "${ECHO_T}$ac_cv_c_const" >&6
3469 if test $ac_cv_c_const = no
; then
3471 cat >>confdefs.h
<<\_ACEOF
3477 echo "$as_me:$LINENO: checking for inline" >&5
3478 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3479 if test "${ac_cv_c_inline+set}" = set; then
3480 echo $ECHO_N "(cached) $ECHO_C" >&6
3483 for ac_kw
in inline __inline__ __inline
; do
3484 cat >conftest.
$ac_ext <<_ACEOF
3487 cat confdefs.h
>>conftest.
$ac_ext
3488 cat >>conftest.
$ac_ext <<_ACEOF
3489 /* end confdefs.h. */
3492 static $ac_kw foo_t static_foo () {return 0; }
3493 $ac_kw foo_t foo () {return 0; }
3497 rm -f conftest.
$ac_objext
3498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3499 (eval $ac_compile) 2>conftest.er1
3501 grep -v '^ *+' conftest.er1
>conftest.err
3503 cat conftest.err
>&5
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); } &&
3506 { ac_try
='test -z "$ac_c_werror_flag"
3507 || test ! -s conftest.err'
3508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); }; } &&
3513 { ac_try
='test -s conftest.$ac_objext'
3514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518 (exit $ac_status); }; }; then
3519 ac_cv_c_inline
=$ac_kw; break
3521 echo "$as_me: failed program was:" >&5
3522 sed 's/^/| /' conftest.
$ac_ext >&5
3525 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3529 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3530 echo "${ECHO_T}$ac_cv_c_inline" >&6
3533 case $ac_cv_c_inline in
3536 case $ac_cv_c_inline in
3538 *) ac_val
=$ac_cv_c_inline;;
3540 cat >>confdefs.h
<<_ACEOF
3542 #define inline $ac_val
3548 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3558 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3559 inttypes.h stdint.h unistd.h
3561 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3562 echo "$as_me:$LINENO: checking for $ac_header" >&5
3563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3565 echo $ECHO_N "(cached) $ECHO_C" >&6
3567 cat >conftest.
$ac_ext <<_ACEOF
3570 cat confdefs.h
>>conftest.
$ac_ext
3571 cat >>conftest.
$ac_ext <<_ACEOF
3572 /* end confdefs.h. */
3573 $ac_includes_default
3575 #include <$ac_header>
3577 rm -f conftest.
$ac_objext
3578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3579 (eval $ac_compile) 2>conftest.er1
3581 grep -v '^ *+' conftest.er1
>conftest.err
3583 cat conftest.err
>&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); } &&
3586 { ac_try
='test -z "$ac_c_werror_flag"
3587 || test ! -s conftest.err'
3588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }; } &&
3593 { ac_try
='test -s conftest.$ac_objext'
3594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }; }; then
3599 eval "$as_ac_Header=yes"
3601 echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.
$ac_ext >&5
3604 eval "$as_ac_Header=no"
3606 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3609 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3611 cat >>confdefs.h
<<_ACEOF
3612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3620 echo "$as_me:$LINENO: checking for off_t" >&5
3621 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3622 if test "${ac_cv_type_off_t+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3625 cat >conftest.
$ac_ext <<_ACEOF
3628 cat confdefs.h
>>conftest.
$ac_ext
3629 cat >>conftest.
$ac_ext <<_ACEOF
3630 /* end confdefs.h. */
3631 $ac_includes_default
3643 rm -f conftest.
$ac_objext
3644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3645 (eval $ac_compile) 2>conftest.er1
3647 grep -v '^ *+' conftest.er1
>conftest.err
3649 cat conftest.err
>&5
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); } &&
3652 { ac_try
='test -z "$ac_c_werror_flag"
3653 || test ! -s conftest.err'
3654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); }; } &&
3659 { ac_try
='test -s conftest.$ac_objext'
3660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); }; }; then
3665 ac_cv_type_off_t
=yes
3667 echo "$as_me: failed program was:" >&5
3668 sed 's/^/| /' conftest.
$ac_ext >&5
3672 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3674 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3675 echo "${ECHO_T}$ac_cv_type_off_t" >&6
3676 if test $ac_cv_type_off_t = yes; then
3680 cat >>confdefs.h
<<_ACEOF
3686 echo "$as_me:$LINENO: checking for size_t" >&5
3687 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3688 if test "${ac_cv_type_size_t+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
3691 cat >conftest.
$ac_ext <<_ACEOF
3694 cat confdefs.h
>>conftest.
$ac_ext
3695 cat >>conftest.
$ac_ext <<_ACEOF
3696 /* end confdefs.h. */
3697 $ac_includes_default
3703 if (sizeof (size_t))
3709 rm -f conftest.
$ac_objext
3710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3711 (eval $ac_compile) 2>conftest.er1
3713 grep -v '^ *+' conftest.er1
>conftest.err
3715 cat conftest.err
>&5
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); } &&
3718 { ac_try
='test -z "$ac_c_werror_flag"
3719 || test ! -s conftest.err'
3720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); }; } &&
3725 { ac_try
='test -s conftest.$ac_objext'
3726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); }; }; then
3731 ac_cv_type_size_t
=yes
3733 echo "$as_me: failed program was:" >&5
3734 sed 's/^/| /' conftest.
$ac_ext >&5
3736 ac_cv_type_size_t
=no
3738 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3740 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3741 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3742 if test $ac_cv_type_size_t = yes; then
3746 cat >>confdefs.h
<<_ACEOF
3747 #define size_t unsigned
3752 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3753 # for constant arguments. Useless!
3754 echo "$as_me:$LINENO: checking for working alloca.h" >&5
3755 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3756 if test "${ac_cv_working_alloca_h+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 cat >conftest.
$ac_ext <<_ACEOF
3762 cat confdefs.h
>>conftest.
$ac_ext
3763 cat >>conftest.
$ac_ext <<_ACEOF
3764 /* end confdefs.h. */
3769 char *p = (char *) alloca (2 * sizeof (int));
3774 rm -f conftest.
$ac_objext conftest
$ac_exeext
3775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3776 (eval $ac_link) 2>conftest.er1
3778 grep -v '^ *+' conftest.er1
>conftest.err
3780 cat conftest.err
>&5
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); } &&
3783 { ac_try
='test -z "$ac_c_werror_flag"
3784 || test ! -s conftest.err'
3785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789 (exit $ac_status); }; } &&
3790 { ac_try
='test -s conftest$ac_exeext'
3791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); }; }; then
3796 ac_cv_working_alloca_h
=yes
3798 echo "$as_me: failed program was:" >&5
3799 sed 's/^/| /' conftest.
$ac_ext >&5
3801 ac_cv_working_alloca_h
=no
3803 rm -f conftest.err conftest.
$ac_objext \
3804 conftest
$ac_exeext conftest.
$ac_ext
3806 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3807 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3808 if test $ac_cv_working_alloca_h = yes; then
3810 cat >>confdefs.h
<<\_ACEOF
3811 #define HAVE_ALLOCA_H 1
3816 echo "$as_me:$LINENO: checking for alloca" >&5
3817 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3818 if test "${ac_cv_func_alloca_works+set}" = set; then
3819 echo $ECHO_N "(cached) $ECHO_C" >&6
3821 cat >conftest.
$ac_ext <<_ACEOF
3824 cat confdefs.h
>>conftest.
$ac_ext
3825 cat >>conftest.
$ac_ext <<_ACEOF
3826 /* end confdefs.h. */
3828 # define alloca __builtin_alloca
3831 # include <malloc.h>
3832 # define alloca _alloca
3835 # include <alloca.h>
3840 # ifndef alloca /* predefined by HP cc +Olibcalls */
3851 char *p = (char *) alloca (1);
3856 rm -f conftest.
$ac_objext conftest
$ac_exeext
3857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3858 (eval $ac_link) 2>conftest.er1
3860 grep -v '^ *+' conftest.er1
>conftest.err
3862 cat conftest.err
>&5
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); } &&
3865 { ac_try
='test -z "$ac_c_werror_flag"
3866 || test ! -s conftest.err'
3867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); }; } &&
3872 { ac_try
='test -s conftest$ac_exeext'
3873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); }; }; then
3878 ac_cv_func_alloca_works
=yes
3880 echo "$as_me: failed program was:" >&5
3881 sed 's/^/| /' conftest.
$ac_ext >&5
3883 ac_cv_func_alloca_works
=no
3885 rm -f conftest.err conftest.
$ac_objext \
3886 conftest
$ac_exeext conftest.
$ac_ext
3888 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3889 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3891 if test $ac_cv_func_alloca_works = yes; then
3893 cat >>confdefs.h
<<\_ACEOF
3894 #define HAVE_ALLOCA 1
3898 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3899 # that cause trouble. Some versions do not even contain alloca or
3900 # contain a buggy version. If you still want to use their alloca,
3901 # use ar to extract alloca.o from them instead of compiling alloca.c.
3903 ALLOCA
=alloca.
$ac_objext
3905 cat >>confdefs.h
<<\_ACEOF
3910 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3911 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3912 if test "${ac_cv_os_cray+set}" = set; then
3913 echo $ECHO_N "(cached) $ECHO_C" >&6
3915 cat >conftest.
$ac_ext <<_ACEOF
3918 cat confdefs.h
>>conftest.
$ac_ext
3919 cat >>conftest.
$ac_ext <<_ACEOF
3920 /* end confdefs.h. */
3921 #if defined(CRAY) && ! defined(CRAY2)
3928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3929 $EGREP "webecray" >/dev
/null
2>&1; then
3937 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3938 echo "${ECHO_T}$ac_cv_os_cray" >&6
3939 if test $ac_cv_os_cray = yes; then
3940 for ac_func
in _getb67 GETB67 getb67
; do
3941 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3942 echo "$as_me:$LINENO: checking for $ac_func" >&5
3943 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3944 if eval "test \"\${$as_ac_var+set}\" = set"; then
3945 echo $ECHO_N "(cached) $ECHO_C" >&6
3947 cat >conftest.
$ac_ext <<_ACEOF
3950 cat confdefs.h
>>conftest.
$ac_ext
3951 cat >>conftest.
$ac_ext <<_ACEOF
3952 /* end confdefs.h. */
3953 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3955 #define $ac_func innocuous_$ac_func
3957 /* System header to define __stub macros and hopefully few prototypes,
3958 which can conflict with char $ac_func (); below.
3959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3960 <limits.h> exists even on freestanding compilers. */
3963 # include <limits.h>
3965 # include <assert.h>
3970 /* Override any gcc2 internal prototype to avoid an error. */
3975 /* We use char because int might match the return type of a gcc2
3976 builtin and then its argument prototype would still apply. */
3978 /* The GNU C library defines this for functions which it implements
3979 to always fail with ENOSYS. Some functions are actually named
3980 something starting with __ and the normal name is an alias. */
3981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3984 char (*f) () = $ac_func;
3993 return f != $ac_func;
3998 rm -f conftest.
$ac_objext conftest
$ac_exeext
3999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4000 (eval $ac_link) 2>conftest.er1
4002 grep -v '^ *+' conftest.er1
>conftest.err
4004 cat conftest.err
>&5
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); } &&
4007 { ac_try
='test -z "$ac_c_werror_flag"
4008 || test ! -s conftest.err'
4009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); }; } &&
4014 { ac_try
='test -s conftest$ac_exeext'
4015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); }; }; then
4020 eval "$as_ac_var=yes"
4022 echo "$as_me: failed program was:" >&5
4023 sed 's/^/| /' conftest.
$ac_ext >&5
4025 eval "$as_ac_var=no"
4027 rm -f conftest.err conftest.
$ac_objext \
4028 conftest
$ac_exeext conftest.
$ac_ext
4030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4031 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4032 if test `eval echo '${'$as_ac_var'}'` = yes; then
4034 cat >>confdefs.h
<<_ACEOF
4035 #define CRAY_STACKSEG_END $ac_func
4044 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
4045 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4046 if test "${ac_cv_c_stack_direction+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4049 if test "$cross_compiling" = yes; then
4050 ac_cv_c_stack_direction
=0
4052 cat >conftest.
$ac_ext <<_ACEOF
4055 cat confdefs.h
>>conftest.
$ac_ext
4056 cat >>conftest.
$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4059 find_stack_direction ()
4061 static char *addr = 0;
4066 return find_stack_direction ();
4069 return (&dummy > addr) ? 1 : -1;
4075 exit (find_stack_direction () < 0);
4078 rm -f conftest
$ac_exeext
4079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4080 (eval $ac_link) 2>&5
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); }; }; then
4089 ac_cv_c_stack_direction
=1
4091 echo "$as_me: program exited with status $ac_status" >&5
4092 echo "$as_me: failed program was:" >&5
4093 sed 's/^/| /' conftest.
$ac_ext >&5
4096 ac_cv_c_stack_direction
=-1
4098 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4101 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4102 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4104 cat >>confdefs.h
<<_ACEOF
4105 #define STACK_DIRECTION $ac_cv_c_stack_direction
4113 for ac_header
in stdlib.h unistd.h
4115 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4117 echo "$as_me:$LINENO: checking for $ac_header" >&5
4118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4119 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4120 echo $ECHO_N "(cached) $ECHO_C" >&6
4122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4123 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4125 # Is the header compilable?
4126 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4127 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4128 cat >conftest.
$ac_ext <<_ACEOF
4131 cat confdefs.h
>>conftest.
$ac_ext
4132 cat >>conftest.
$ac_ext <<_ACEOF
4133 /* end confdefs.h. */
4134 $ac_includes_default
4135 #include <$ac_header>
4137 rm -f conftest.
$ac_objext
4138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4139 (eval $ac_compile) 2>conftest.er1
4141 grep -v '^ *+' conftest.er1
>conftest.err
4143 cat conftest.err
>&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); } &&
4146 { ac_try
='test -z "$ac_c_werror_flag"
4147 || test ! -s conftest.err'
4148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); }; } &&
4153 { ac_try
='test -s conftest.$ac_objext'
4154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); }; }; then
4159 ac_header_compiler
=yes
4161 echo "$as_me: failed program was:" >&5
4162 sed 's/^/| /' conftest.
$ac_ext >&5
4164 ac_header_compiler
=no
4166 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4167 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4168 echo "${ECHO_T}$ac_header_compiler" >&6
4170 # Is the header present?
4171 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4172 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4173 cat >conftest.
$ac_ext <<_ACEOF
4176 cat confdefs.h
>>conftest.
$ac_ext
4177 cat >>conftest.
$ac_ext <<_ACEOF
4178 /* end confdefs.h. */
4179 #include <$ac_header>
4181 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4182 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4184 grep -v '^ *+' conftest.er1
>conftest.err
4186 cat conftest.err
>&5
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); } >/dev
/null
; then
4189 if test -s conftest.err
; then
4190 ac_cpp_err
=$ac_c_preproc_warn_flag
4191 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4198 if test -z "$ac_cpp_err"; then
4199 ac_header_preproc
=yes
4201 echo "$as_me: failed program was:" >&5
4202 sed 's/^/| /' conftest.
$ac_ext >&5
4204 ac_header_preproc
=no
4206 rm -f conftest.err conftest.
$ac_ext
4207 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4208 echo "${ECHO_T}$ac_header_preproc" >&6
4210 # So? What about this header?
4211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4213 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4214 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4216 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4217 ac_header_preproc
=yes
4220 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4221 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4222 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4223 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4224 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4225 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4226 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4227 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4229 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4230 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4231 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4234 ## ------------------------------------------ ##
4235 ## Report this to the AC_PACKAGE_NAME lists. ##
4236 ## ------------------------------------------ ##
4239 sed "s/^/$as_me: WARNING: /" >&2
4242 echo "$as_me:$LINENO: checking for $ac_header" >&5
4243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4247 eval "$as_ac_Header=\$ac_header_preproc"
4249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4250 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4253 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4254 cat >>confdefs.h
<<_ACEOF
4255 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4263 for ac_func
in getpagesize
4265 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4266 echo "$as_me:$LINENO: checking for $ac_func" >&5
4267 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4268 if eval "test \"\${$as_ac_var+set}\" = set"; then
4269 echo $ECHO_N "(cached) $ECHO_C" >&6
4271 cat >conftest.
$ac_ext <<_ACEOF
4274 cat confdefs.h
>>conftest.
$ac_ext
4275 cat >>conftest.
$ac_ext <<_ACEOF
4276 /* end confdefs.h. */
4277 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4279 #define $ac_func innocuous_$ac_func
4281 /* System header to define __stub macros and hopefully few prototypes,
4282 which can conflict with char $ac_func (); below.
4283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4284 <limits.h> exists even on freestanding compilers. */
4287 # include <limits.h>
4289 # include <assert.h>
4294 /* Override any gcc2 internal prototype to avoid an error. */
4299 /* We use char because int might match the return type of a gcc2
4300 builtin and then its argument prototype would still apply. */
4302 /* The GNU C library defines this for functions which it implements
4303 to always fail with ENOSYS. Some functions are actually named
4304 something starting with __ and the normal name is an alias. */
4305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4308 char (*f) () = $ac_func;
4317 return f != $ac_func;
4322 rm -f conftest.
$ac_objext conftest
$ac_exeext
4323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4324 (eval $ac_link) 2>conftest.er1
4326 grep -v '^ *+' conftest.er1
>conftest.err
4328 cat conftest.err
>&5
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); } &&
4331 { ac_try
='test -z "$ac_c_werror_flag"
4332 || test ! -s conftest.err'
4333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); }; } &&
4338 { ac_try
='test -s conftest$ac_exeext'
4339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); }; }; then
4344 eval "$as_ac_var=yes"
4346 echo "$as_me: failed program was:" >&5
4347 sed 's/^/| /' conftest.
$ac_ext >&5
4349 eval "$as_ac_var=no"
4351 rm -f conftest.err conftest.
$ac_objext \
4352 conftest
$ac_exeext conftest.
$ac_ext
4354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4355 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4356 if test `eval echo '${'$as_ac_var'}'` = yes; then
4357 cat >>confdefs.h
<<_ACEOF
4358 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4364 echo "$as_me:$LINENO: checking for working mmap" >&5
4365 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4366 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4367 echo $ECHO_N "(cached) $ECHO_C" >&6
4369 if test "$cross_compiling" = yes; then
4370 ac_cv_func_mmap_fixed_mapped
=no
4372 cat >conftest.
$ac_ext <<_ACEOF
4375 cat confdefs.h
>>conftest.
$ac_ext
4376 cat >>conftest.
$ac_ext <<_ACEOF
4377 /* end confdefs.h. */
4378 $ac_includes_default
4379 /* malloc might have been renamed as rpl_malloc. */
4382 /* Thanks to Mike Haertel and Jim Avera for this test.
4383 Here is a matrix of mmap possibilities:
4384 mmap private not fixed
4385 mmap private fixed at somewhere currently unmapped
4386 mmap private fixed at somewhere already mapped
4387 mmap shared not fixed
4388 mmap shared fixed at somewhere currently unmapped
4389 mmap shared fixed at somewhere already mapped
4390 For private mappings, we should verify that changes cannot be read()
4391 back from the file, nor mmap's back from the file at a different
4392 address. (There have been systems where private was not correctly
4393 implemented like the infamous i386 svr4.0, and systems where the
4394 VM page cache was not coherent with the file system buffer cache
4395 like early versions of FreeBSD and possibly contemporary NetBSD.)
4396 For shared mappings, we should conversely verify that changes get
4397 propagated back to all the places they're supposed to be.
4399 Grep wants private fixed already mapped.
4400 The main things grep needs to know about mmap are:
4401 * does it exist and is it safe to write into the mmap'd area
4402 * how to use it (BSD variants) */
4405 #include <sys/mman.h>
4407 #if !STDC_HEADERS && !HAVE_STDLIB_H
4411 /* This mess was copied from the GNU getpagesize.h. */
4412 #if !HAVE_GETPAGESIZE
4413 /* Assume that all systems that can run configure have sys/param.h. */
4414 # if !HAVE_SYS_PARAM_H
4415 # define HAVE_SYS_PARAM_H 1
4418 # ifdef _SC_PAGESIZE
4419 # define getpagesize() sysconf(_SC_PAGESIZE)
4420 # else /* no _SC_PAGESIZE */
4421 # if HAVE_SYS_PARAM_H
4422 # include <sys/param.h>
4423 # ifdef EXEC_PAGESIZE
4424 # define getpagesize() EXEC_PAGESIZE
4425 # else /* no EXEC_PAGESIZE */
4427 # define getpagesize() NBPG * CLSIZE
4430 # endif /* no CLSIZE */
4431 # else /* no NBPG */
4433 # define getpagesize() NBPC
4434 # else /* no NBPC */
4436 # define getpagesize() PAGESIZE
4437 # endif /* PAGESIZE */
4438 # endif /* no NBPC */
4439 # endif /* no NBPG */
4440 # endif /* no EXEC_PAGESIZE */
4441 # else /* no HAVE_SYS_PARAM_H */
4442 # define getpagesize() 8192 /* punt totally */
4443 # endif /* no HAVE_SYS_PARAM_H */
4444 # endif /* no _SC_PAGESIZE */
4446 #endif /* no HAVE_GETPAGESIZE */
4451 char *data, *data2, *data3;
4455 pagesize = getpagesize ();
4457 /* First, make a file with some known garbage in it. */
4458 data = (char *) malloc (pagesize);
4461 for (i = 0; i < pagesize; ++i)
4462 *(data + i) = rand ();
4464 fd = creat ("conftest.mmap", 0600);
4467 if (write (fd, data, pagesize) != pagesize)
4471 /* Next, try to mmap the file at a fixed address which already has
4472 something else allocated at it. If we can, also make sure that
4473 we see the same garbage. */
4474 fd = open ("conftest.mmap", O_RDWR);
4477 data2 = (char *) malloc (2 * pagesize);
4480 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4481 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4482 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4484 for (i = 0; i < pagesize; ++i)
4485 if (*(data + i) != *(data2 + i))
4488 /* Finally, make sure that changes to the mapped area do not
4489 percolate back to the file as seen by read(). (This is a bug on
4490 some variants of i386 svr4.0.) */
4491 for (i = 0; i < pagesize; ++i)
4492 *(data2 + i) = *(data2 + i) + 1;
4493 data3 = (char *) malloc (pagesize);
4496 if (read (fd, data3, pagesize) != pagesize)
4498 for (i = 0; i < pagesize; ++i)
4499 if (*(data + i) != *(data3 + i))
4505 rm -f conftest
$ac_exeext
4506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4507 (eval $ac_link) 2>&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); }; }; then
4516 ac_cv_func_mmap_fixed_mapped
=yes
4518 echo "$as_me: program exited with status $ac_status" >&5
4519 echo "$as_me: failed program was:" >&5
4520 sed 's/^/| /' conftest.
$ac_ext >&5
4523 ac_cv_func_mmap_fixed_mapped
=no
4525 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4528 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4529 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4530 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4532 cat >>confdefs.h
<<\_ACEOF
4540 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
4541 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
4542 if test "${ac_cv_gnu_library_2_1+set}" = set; then
4543 echo $ECHO_N "(cached) $ECHO_C" >&6
4545 cat >conftest.
$ac_ext <<_ACEOF
4548 cat confdefs.h
>>conftest.
$ac_ext
4549 cat >>conftest.
$ac_ext <<_ACEOF
4550 /* end confdefs.h. */
4552 #include <features.h>
4553 #ifdef __GNU_LIBRARY__
4554 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
4560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4561 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then
4562 ac_cv_gnu_library_2_1
=yes
4564 ac_cv_gnu_library_2_1
=no
4571 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
4572 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
4574 GLIBC21
="$ac_cv_gnu_library_2_1"
4579 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
4580 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
4581 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4585 if test "$cross_compiling" = yes; then
4587 # Guess based on the CPU.
4589 alpha
* | i3456786 | m68k | s390
*)
4590 gt_cv_int_divbyzero_sigfpe
="guessing yes";;
4592 gt_cv_int_divbyzero_sigfpe
="guessing no";;
4596 cat >conftest.
$ac_ext <<_ACEOF
4599 cat confdefs.h
>>conftest.
$ac_ext
4600 cat >>conftest.
$ac_ext <<_ACEOF
4601 /* end confdefs.h. */
4608 sigfpe_handler (int sig)
4610 sigfpe_handler (sig) int sig;
4613 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
4614 exit (sig != SIGFPE);
4624 signal (SIGFPE, sigfpe_handler);
4625 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
4626 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
4627 signal (SIGTRAP, sigfpe_handler);
4629 /* Linux/SPARC yields signal SIGILL. */
4630 #if defined (__sparc__) && defined (__linux__)
4631 signal (SIGILL, sigfpe_handler);
4640 rm -f conftest
$ac_exeext
4641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4642 (eval $ac_link) 2>&5
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; }; then
4651 gt_cv_int_divbyzero_sigfpe
=yes
4653 echo "$as_me: program exited with status $ac_status" >&5
4654 echo "$as_me: failed program was:" >&5
4655 sed 's/^/| /' conftest.
$ac_ext >&5
4658 gt_cv_int_divbyzero_sigfpe
=no
4660 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4664 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
4665 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
4666 case "$gt_cv_int_divbyzero_sigfpe" in
4671 cat >>confdefs.h
<<_ACEOF
4672 #define INTDIV0_RAISES_SIGFPE $value
4677 echo "$as_me:$LINENO: checking for inttypes.h" >&5
4678 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
4679 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
4680 echo $ECHO_N "(cached) $ECHO_C" >&6
4682 cat >conftest.
$ac_ext <<_ACEOF
4685 cat confdefs.h
>>conftest.
$ac_ext
4686 cat >>conftest.
$ac_ext <<_ACEOF
4687 /* end confdefs.h. */
4688 #include <sys/types.h>
4689 #include <inttypes.h>
4693 uintmax_t i = (uintmax_t) -1;
4698 rm -f conftest.
$ac_objext
4699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4700 (eval $ac_compile) 2>conftest.er1
4702 grep -v '^ *+' conftest.er1
>conftest.err
4704 cat conftest.err
>&5
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); } &&
4707 { ac_try
='test -z "$ac_c_werror_flag"
4708 || test ! -s conftest.err'
4709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); }; } &&
4714 { ac_try
='test -s conftest.$ac_objext'
4715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); }; }; then
4720 jm_ac_cv_header_inttypes_h
=yes
4722 echo "$as_me: failed program was:" >&5
4723 sed 's/^/| /' conftest.
$ac_ext >&5
4725 jm_ac_cv_header_inttypes_h
=no
4727 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4729 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
4730 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
4731 if test $jm_ac_cv_header_inttypes_h = yes; then
4733 cat >>confdefs.h
<<_ACEOF
4734 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
4740 echo "$as_me:$LINENO: checking for stdint.h" >&5
4741 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
4742 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
4743 echo $ECHO_N "(cached) $ECHO_C" >&6
4745 cat >conftest.
$ac_ext <<_ACEOF
4748 cat confdefs.h
>>conftest.
$ac_ext
4749 cat >>conftest.
$ac_ext <<_ACEOF
4750 /* end confdefs.h. */
4751 #include <sys/types.h>
4756 uintmax_t i = (uintmax_t) -1;
4761 rm -f conftest.
$ac_objext
4762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4763 (eval $ac_compile) 2>conftest.er1
4765 grep -v '^ *+' conftest.er1
>conftest.err
4767 cat conftest.err
>&5
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); } &&
4770 { ac_try
='test -z "$ac_c_werror_flag"
4771 || test ! -s conftest.err'
4772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); }; } &&
4777 { ac_try
='test -s conftest.$ac_objext'
4778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); }; }; then
4783 jm_ac_cv_header_stdint_h
=yes
4785 echo "$as_me: failed program was:" >&5
4786 sed 's/^/| /' conftest.
$ac_ext >&5
4788 jm_ac_cv_header_stdint_h
=no
4790 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4792 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
4793 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
4794 if test $jm_ac_cv_header_stdint_h = yes; then
4796 cat >>confdefs.h
<<_ACEOF
4797 #define HAVE_STDINT_H_WITH_UINTMAX 1
4803 echo "$as_me:$LINENO: checking for unsigned long long" >&5
4804 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
4805 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
4806 echo $ECHO_N "(cached) $ECHO_C" >&6
4808 cat >conftest.
$ac_ext <<_ACEOF
4811 cat confdefs.h
>>conftest.
$ac_ext
4812 cat >>conftest.
$ac_ext <<_ACEOF
4813 /* end confdefs.h. */
4814 unsigned long long ull = 1; int i = 63;
4818 unsigned long long ullmax = (unsigned long long) -1;
4819 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
4824 rm -f conftest.
$ac_objext conftest
$ac_exeext
4825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4826 (eval $ac_link) 2>conftest.er1
4828 grep -v '^ *+' conftest.er1
>conftest.err
4830 cat conftest.err
>&5
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); } &&
4833 { ac_try
='test -z "$ac_c_werror_flag"
4834 || test ! -s conftest.err'
4835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); }; } &&
4840 { ac_try
='test -s conftest$ac_exeext'
4841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); }; }; then
4846 ac_cv_type_unsigned_long_long
=yes
4848 echo "$as_me: failed program was:" >&5
4849 sed 's/^/| /' conftest.
$ac_ext >&5
4851 ac_cv_type_unsigned_long_long
=no
4853 rm -f conftest.err conftest.
$ac_objext \
4854 conftest
$ac_exeext conftest.
$ac_ext
4856 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
4857 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
4858 if test $ac_cv_type_unsigned_long_long = yes; then
4860 cat >>confdefs.h
<<\_ACEOF
4861 #define HAVE_UNSIGNED_LONG_LONG 1
4869 if test $jm_ac_cv_header_inttypes_h = no
&& test $jm_ac_cv_header_stdint_h = no
; then
4871 test $ac_cv_type_unsigned_long_long = yes \
4872 && ac_type
='unsigned long long' \
4873 || ac_type
='unsigned long'
4875 cat >>confdefs.h
<<_ACEOF
4876 #define uintmax_t $ac_type
4881 cat >>confdefs.h
<<\_ACEOF
4882 #define HAVE_UINTMAX_T 1
4888 echo "$as_me:$LINENO: checking for inttypes.h" >&5
4889 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
4890 if test "${gt_cv_header_inttypes_h+set}" = set; then
4891 echo $ECHO_N "(cached) $ECHO_C" >&6
4894 cat >conftest.
$ac_ext <<_ACEOF
4897 cat confdefs.h
>>conftest.
$ac_ext
4898 cat >>conftest.
$ac_ext <<_ACEOF
4899 /* end confdefs.h. */
4900 #include <sys/types.h>
4901 #include <inttypes.h>
4910 rm -f conftest.
$ac_objext
4911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4912 (eval $ac_compile) 2>conftest.er1
4914 grep -v '^ *+' conftest.er1
>conftest.err
4916 cat conftest.err
>&5
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); } &&
4919 { ac_try
='test -z "$ac_c_werror_flag"
4920 || test ! -s conftest.err'
4921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); }; } &&
4926 { ac_try
='test -s conftest.$ac_objext'
4927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931 (exit $ac_status); }; }; then
4932 gt_cv_header_inttypes_h
=yes
4934 echo "$as_me: failed program was:" >&5
4935 sed 's/^/| /' conftest.
$ac_ext >&5
4937 gt_cv_header_inttypes_h
=no
4939 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4942 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
4943 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
4944 if test $gt_cv_header_inttypes_h = yes; then
4946 cat >>confdefs.h
<<_ACEOF
4947 #define HAVE_INTTYPES_H 1
4954 if test $gt_cv_header_inttypes_h = yes; then
4955 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
4956 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
4957 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
4958 echo $ECHO_N "(cached) $ECHO_C" >&6
4961 cat >conftest.
$ac_ext <<_ACEOF
4964 cat confdefs.h
>>conftest.
$ac_ext
4965 cat >>conftest.
$ac_ext <<_ACEOF
4966 /* end confdefs.h. */
4967 #include <inttypes.h>
4980 rm -f conftest.
$ac_objext
4981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4982 (eval $ac_compile) 2>conftest.er1
4984 grep -v '^ *+' conftest.er1
>conftest.err
4986 cat conftest.err
>&5
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); } &&
4989 { ac_try
='test -z "$ac_c_werror_flag"
4990 || test ! -s conftest.err'
4991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); }; } &&
4996 { ac_try
='test -s conftest.$ac_objext'
4997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); }; }; then
5002 gt_cv_inttypes_pri_broken
=no
5004 echo "$as_me: failed program was:" >&5
5005 sed 's/^/| /' conftest.
$ac_ext >&5
5007 gt_cv_inttypes_pri_broken
=yes
5009 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5012 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
5013 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
5015 if test "$gt_cv_inttypes_pri_broken" = yes; then
5017 cat >>confdefs.h
<<_ACEOF
5018 #define PRI_MACROS_BROKEN 1
5024 if test "X$prefix" = "XNONE"; then
5025 acl_final_prefix
="$ac_default_prefix"
5027 acl_final_prefix
="$prefix"
5029 if test "X$exec_prefix" = "XNONE"; then
5030 acl_final_exec_prefix
='${prefix}'
5032 acl_final_exec_prefix
="$exec_prefix"
5034 acl_save_prefix
="$prefix"
5035 prefix
="$acl_final_prefix"
5036 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
5037 prefix
="$acl_save_prefix"
5040 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5041 if test "${with_gnu_ld+set}" = set; then
5042 withval
="$with_gnu_ld"
5043 test "$withval" = no || with_gnu_ld
=yes
5047 # Prepare PATH_SEPARATOR.
5048 # The user is always right.
5049 if test "${PATH_SEPARATOR+set}" != set; then
5050 echo "#! /bin/sh" >conf$$.sh
5051 echo "exit 0" >>conf$$.sh
5053 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
5061 if test "$GCC" = yes; then
5062 # Check if gcc -print-prog-name=ld gives a path.
5063 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5064 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5067 # gcc leaves a trailing carriage return which upsets mingw
5068 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5070 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5073 # Accept absolute paths.
5074 [\\/]* |
[A-Za-z
]:[\\/]*)
5075 re_direlt
='/[^/][^/]*/\.\./'
5076 # Canonicalize the path of ld
5077 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
5078 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
5079 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
5081 test -z "$LD" && LD
="$ac_prog"
5084 # If it fails, then pretend we aren't using GCC.
5088 # If it is relative, then search for the first ld in PATH.
5092 elif test "$with_gnu_ld" = yes; then
5093 echo "$as_me:$LINENO: checking for GNU ld" >&5
5094 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5096 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5097 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5099 if test "${acl_cv_path_LD+set}" = set; then
5100 echo $ECHO_N "(cached) $ECHO_C" >&6
5102 if test -z "$LD"; then
5103 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5104 for ac_dir
in $PATH; do
5105 test -z "$ac_dir" && ac_dir
=.
5106 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5107 acl_cv_path_LD
="$ac_dir/$ac_prog"
5108 # Check to see if the program is GNU ld. I'd rather use --version,
5109 # but apparently some GNU ld's only accept -v.
5110 # Break only if it was the GNU/non-GNU ld that we prefer.
5111 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
5112 test "$with_gnu_ld" != no
&& break
5114 test "$with_gnu_ld" != yes && break
5120 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
5124 LD
="$acl_cv_path_LD"
5125 if test -n "$LD"; then
5126 echo "$as_me:$LINENO: result: $LD" >&5
5127 echo "${ECHO_T}$LD" >&6
5129 echo "$as_me:$LINENO: result: no" >&5
5130 echo "${ECHO_T}no" >&6
5132 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5133 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5134 { (exit 1); exit 1; }; }
5135 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5136 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5137 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5138 echo $ECHO_N "(cached) $ECHO_C" >&6
5140 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5141 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
5142 acl_cv_prog_gnu_ld
=yes
5144 acl_cv_prog_gnu_ld
=no
5147 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5148 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5149 with_gnu_ld
=$acl_cv_prog_gnu_ld
5153 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5154 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5155 if test "${acl_cv_rpath+set}" = set; then
5156 echo $ECHO_N "(cached) $ECHO_C" >&6
5159 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
5160 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5166 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5167 echo "${ECHO_T}$acl_cv_rpath" >&6
5169 libext
="$acl_cv_libext"
5170 shlibext
="$acl_cv_shlibext"
5171 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
5172 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
5173 hardcode_direct
="$acl_cv_hardcode_direct"
5174 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
5175 # Check whether --enable-rpath or --disable-rpath was given.
5176 if test "${enable_rpath+set}" = set; then
5177 enableval
="$enable_rpath"
5191 acl_save_prefix
="$prefix"
5192 prefix
="$acl_final_prefix"
5193 acl_save_exec_prefix
="$exec_prefix"
5194 exec_prefix
="$acl_final_exec_prefix"
5196 eval additional_includedir
=\"$includedir\"
5197 eval additional_libdir
=\"$libdir\"
5199 exec_prefix
="$acl_save_exec_prefix"
5200 prefix
="$acl_save_prefix"
5203 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5204 if test "${with_libiconv_prefix+set}" = set; then
5205 withval
="$with_libiconv_prefix"
5207 if test "X$withval" = "Xno"; then
5210 if test "X$withval" = "X"; then
5212 acl_save_prefix
="$prefix"
5213 prefix
="$acl_final_prefix"
5214 acl_save_exec_prefix
="$exec_prefix"
5215 exec_prefix
="$acl_final_exec_prefix"
5217 eval additional_includedir
=\"$includedir\"
5218 eval additional_libdir
=\"$libdir\"
5220 exec_prefix
="$acl_save_exec_prefix"
5221 prefix
="$acl_save_prefix"
5224 additional_includedir
="$withval/include"
5225 additional_libdir
="$withval/lib"
5235 names_already_handled
=
5236 names_next_round
='iconv '
5237 while test -n "$names_next_round"; do
5238 names_this_round
="$names_next_round"
5240 for name
in $names_this_round; do
5242 for n
in $names_already_handled; do
5243 if test "$n" = "$name"; then
5248 if test -z "$already_handled"; then
5249 names_already_handled
="$names_already_handled $name"
5250 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5251 eval value
=\"\
$HAVE_LIB$uppername\"
5252 if test -n "$value"; then
5253 if test "$value" = yes; then
5254 eval value
=\"\
$LIB$uppername\"
5255 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
5256 eval value
=\"\
$LTLIB$uppername\"
5257 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
5266 if test $use_additional = yes; then
5267 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5268 found_dir
="$additional_libdir"
5269 found_so
="$additional_libdir/lib$name.$shlibext"
5270 if test -f "$additional_libdir/lib$name.la"; then
5271 found_la
="$additional_libdir/lib$name.la"
5274 if test -f "$additional_libdir/lib$name.$libext"; then
5275 found_dir
="$additional_libdir"
5276 found_a
="$additional_libdir/lib$name.$libext"
5277 if test -f "$additional_libdir/lib$name.la"; then
5278 found_la
="$additional_libdir/lib$name.la"
5283 if test "X$found_dir" = "X"; then
5284 for x
in $LDFLAGS $LTLIBICONV; do
5286 acl_save_prefix
="$prefix"
5287 prefix
="$acl_final_prefix"
5288 acl_save_exec_prefix
="$exec_prefix"
5289 exec_prefix
="$acl_final_exec_prefix"
5291 exec_prefix
="$acl_save_exec_prefix"
5292 prefix
="$acl_save_prefix"
5296 dir
=`echo "X$x" | sed -e 's/^X-L//'`
5297 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5299 found_so
="$dir/lib$name.$shlibext"
5300 if test -f "$dir/lib$name.la"; then
5301 found_la
="$dir/lib$name.la"
5304 if test -f "$dir/lib$name.$libext"; then
5306 found_a
="$dir/lib$name.$libext"
5307 if test -f "$dir/lib$name.la"; then
5308 found_la
="$dir/lib$name.la"
5314 if test "X$found_dir" != "X"; then
5319 if test "X$found_dir" != "X"; then
5320 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5321 if test "X$found_so" != "X"; then
5322 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
5323 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
5326 for x
in $ltrpathdirs; do
5327 if test "X$x" = "X$found_dir"; then
5332 if test -z "$haveit"; then
5333 ltrpathdirs
="$ltrpathdirs $found_dir"
5335 if test "$hardcode_direct" = yes; then
5336 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
5338 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
5339 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
5341 for x
in $rpathdirs; do
5342 if test "X$x" = "X$found_dir"; then
5347 if test -z "$haveit"; then
5348 rpathdirs
="$rpathdirs $found_dir"
5352 for x
in $LDFLAGS $LIBICONV; do
5354 acl_save_prefix
="$prefix"
5355 prefix
="$acl_final_prefix"
5356 acl_save_exec_prefix
="$exec_prefix"
5357 exec_prefix
="$acl_final_exec_prefix"
5359 exec_prefix
="$acl_save_exec_prefix"
5360 prefix
="$acl_save_prefix"
5362 if test "X$x" = "X-L$found_dir"; then
5367 if test -z "$haveit"; then
5368 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5370 if test "$hardcode_minus_L" != no
; then
5371 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
5373 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
5379 if test "X$found_a" != "X"; then
5380 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
5382 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5385 additional_includedir
=
5386 case "$found_dir" in
5388 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5389 additional_includedir
="$basedir/include"
5392 if test "X$additional_includedir" != "X"; then
5393 if test "X$additional_includedir" != "X/usr/include"; then
5395 if test "X$additional_includedir" = "X/usr/local/include"; then
5396 if test -n "$GCC"; then
5398 linux
*) haveit
=yes;;
5402 if test -z "$haveit"; then
5403 for x
in $CPPFLAGS $INCICONV; do
5405 acl_save_prefix
="$prefix"
5406 prefix
="$acl_final_prefix"
5407 acl_save_exec_prefix
="$exec_prefix"
5408 exec_prefix
="$acl_final_exec_prefix"
5410 exec_prefix
="$acl_save_exec_prefix"
5411 prefix
="$acl_save_prefix"
5413 if test "X$x" = "X-I$additional_includedir"; then
5418 if test -z "$haveit"; then
5419 if test -d "$additional_includedir"; then
5420 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5426 if test -n "$found_la"; then
5427 save_libdir
="$libdir"
5429 */* |
*\\*) .
"$found_la" ;;
5430 *) .
"./$found_la" ;;
5432 libdir
="$save_libdir"
5433 for dep
in $dependency_libs; do
5436 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
5437 if test "X$additional_libdir" != "X/usr/lib"; then
5439 if test "X$additional_libdir" = "X/usr/local/lib"; then
5440 if test -n "$GCC"; then
5442 linux
*) haveit
=yes;;
5446 if test -z "$haveit"; then
5448 for x
in $LDFLAGS $LIBICONV; do
5450 acl_save_prefix
="$prefix"
5451 prefix
="$acl_final_prefix"
5452 acl_save_exec_prefix
="$exec_prefix"
5453 exec_prefix
="$acl_final_exec_prefix"
5455 exec_prefix
="$acl_save_exec_prefix"
5456 prefix
="$acl_save_prefix"
5458 if test "X$x" = "X-L$additional_libdir"; then
5463 if test -z "$haveit"; then
5464 if test -d "$additional_libdir"; then
5465 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5469 for x
in $LDFLAGS $LTLIBICONV; do
5471 acl_save_prefix
="$prefix"
5472 prefix
="$acl_final_prefix"
5473 acl_save_exec_prefix
="$exec_prefix"
5474 exec_prefix
="$acl_final_exec_prefix"
5476 exec_prefix
="$acl_save_exec_prefix"
5477 prefix
="$acl_save_prefix"
5479 if test "X$x" = "X-L$additional_libdir"; then
5484 if test -z "$haveit"; then
5485 if test -d "$additional_libdir"; then
5486 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5493 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
5494 if test "$enable_rpath" != no
; then
5496 for x
in $rpathdirs; do
5497 if test "X$x" = "X$dir"; then
5502 if test -z "$haveit"; then
5503 rpathdirs
="$rpathdirs $dir"
5506 for x
in $ltrpathdirs; do
5507 if test "X$x" = "X$dir"; then
5512 if test -z "$haveit"; then
5513 ltrpathdirs
="$ltrpathdirs $dir"
5518 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5521 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5524 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
5525 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5531 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
5532 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5538 if test "X$rpathdirs" != "X"; then
5539 if test -n "$hardcode_libdir_separator"; then
5541 for found_dir
in $rpathdirs; do
5542 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5544 acl_save_libdir
="$libdir"
5546 eval flag
=\"$hardcode_libdir_flag_spec\"
5547 libdir
="$acl_save_libdir"
5548 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
5550 for found_dir
in $rpathdirs; do
5551 acl_save_libdir
="$libdir"
5553 eval flag
=\"$hardcode_libdir_flag_spec\"
5554 libdir
="$acl_save_libdir"
5555 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
5559 if test "X$ltrpathdirs" != "X"; then
5560 for found_dir
in $ltrpathdirs; do
5561 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5578 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
5579 stdlib.h string.h unistd.h sys
/param.h
5581 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5583 echo "$as_me:$LINENO: checking for $ac_header" >&5
5584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5586 echo $ECHO_N "(cached) $ECHO_C" >&6
5588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5591 # Is the header compilable?
5592 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5593 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5594 cat >conftest.
$ac_ext <<_ACEOF
5597 cat confdefs.h
>>conftest.
$ac_ext
5598 cat >>conftest.
$ac_ext <<_ACEOF
5599 /* end confdefs.h. */
5600 $ac_includes_default
5601 #include <$ac_header>
5603 rm -f conftest.
$ac_objext
5604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5605 (eval $ac_compile) 2>conftest.er1
5607 grep -v '^ *+' conftest.er1
>conftest.err
5609 cat conftest.err
>&5
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); } &&
5612 { ac_try
='test -z "$ac_c_werror_flag"
5613 || test ! -s conftest.err'
5614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); }; } &&
5619 { ac_try
='test -s conftest.$ac_objext'
5620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); }; }; then
5625 ac_header_compiler
=yes
5627 echo "$as_me: failed program was:" >&5
5628 sed 's/^/| /' conftest.
$ac_ext >&5
5630 ac_header_compiler
=no
5632 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5633 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5634 echo "${ECHO_T}$ac_header_compiler" >&6
5636 # Is the header present?
5637 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5638 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5639 cat >conftest.
$ac_ext <<_ACEOF
5642 cat confdefs.h
>>conftest.
$ac_ext
5643 cat >>conftest.
$ac_ext <<_ACEOF
5644 /* end confdefs.h. */
5645 #include <$ac_header>
5647 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5648 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5650 grep -v '^ *+' conftest.er1
>conftest.err
5652 cat conftest.err
>&5
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); } >/dev
/null
; then
5655 if test -s conftest.err
; then
5656 ac_cpp_err
=$ac_c_preproc_warn_flag
5657 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5664 if test -z "$ac_cpp_err"; then
5665 ac_header_preproc
=yes
5667 echo "$as_me: failed program was:" >&5
5668 sed 's/^/| /' conftest.
$ac_ext >&5
5670 ac_header_preproc
=no
5672 rm -f conftest.err conftest.
$ac_ext
5673 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5674 echo "${ECHO_T}$ac_header_preproc" >&6
5676 # So? What about this header?
5677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5679 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5680 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5682 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5683 ac_header_preproc
=yes
5686 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5687 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5688 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5689 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5690 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5691 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5692 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5693 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5695 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5696 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5697 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5700 ## ------------------------------------------ ##
5701 ## Report this to the AC_PACKAGE_NAME lists. ##
5702 ## ------------------------------------------ ##
5705 sed "s/^/$as_me: WARNING: /" >&2
5708 echo "$as_me:$LINENO: checking for $ac_header" >&5
5709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5711 echo $ECHO_N "(cached) $ECHO_C" >&6
5713 eval "$as_ac_Header=\$ac_header_preproc"
5715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5720 cat >>confdefs.h
<<_ACEOF
5721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5750 for ac_func
in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
5751 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
5752 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
5755 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5756 echo "$as_me:$LINENO: checking for $ac_func" >&5
5757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5758 if eval "test \"\${$as_ac_var+set}\" = set"; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5761 cat >conftest.
$ac_ext <<_ACEOF
5764 cat confdefs.h
>>conftest.
$ac_ext
5765 cat >>conftest.
$ac_ext <<_ACEOF
5766 /* end confdefs.h. */
5767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5769 #define $ac_func innocuous_$ac_func
5771 /* System header to define __stub macros and hopefully few prototypes,
5772 which can conflict with char $ac_func (); below.
5773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5774 <limits.h> exists even on freestanding compilers. */
5777 # include <limits.h>
5779 # include <assert.h>
5784 /* Override any gcc2 internal prototype to avoid an error. */
5789 /* We use char because int might match the return type of a gcc2
5790 builtin and then its argument prototype would still apply. */
5792 /* The GNU C library defines this for functions which it implements
5793 to always fail with ENOSYS. Some functions are actually named
5794 something starting with __ and the normal name is an alias. */
5795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5798 char (*f) () = $ac_func;
5807 return f != $ac_func;
5812 rm -f conftest.
$ac_objext conftest
$ac_exeext
5813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5814 (eval $ac_link) 2>conftest.er1
5816 grep -v '^ *+' conftest.er1
>conftest.err
5818 cat conftest.err
>&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); } &&
5821 { ac_try
='test -z "$ac_c_werror_flag"
5822 || test ! -s conftest.err'
5823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); }; } &&
5828 { ac_try
='test -s conftest$ac_exeext'
5829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); }; }; then
5834 eval "$as_ac_var=yes"
5836 echo "$as_me: failed program was:" >&5
5837 sed 's/^/| /' conftest.
$ac_ext >&5
5839 eval "$as_ac_var=no"
5841 rm -f conftest.err conftest.
$ac_objext \
5842 conftest
$ac_exeext conftest.
$ac_ext
5844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5845 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5846 if test `eval echo '${'$as_ac_var'}'` = yes; then
5847 cat >>confdefs.h
<<_ACEOF
5848 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5860 am_save_CPPFLAGS
="$CPPFLAGS"
5862 for element
in $INCICONV; do
5864 for x
in $CPPFLAGS; do
5866 acl_save_prefix
="$prefix"
5867 prefix
="$acl_final_prefix"
5868 acl_save_exec_prefix
="$exec_prefix"
5869 exec_prefix
="$acl_final_exec_prefix"
5871 exec_prefix
="$acl_save_exec_prefix"
5872 prefix
="$acl_save_prefix"
5874 if test "X$x" = "X$element"; then
5879 if test -z "$haveit"; then
5880 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
5885 echo "$as_me:$LINENO: checking for iconv" >&5
5886 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
5887 if test "${am_cv_func_iconv+set}" = set; then
5888 echo $ECHO_N "(cached) $ECHO_C" >&6
5891 am_cv_func_iconv
="no, consider installing GNU libiconv"
5893 cat >conftest.
$ac_ext <<_ACEOF
5896 cat confdefs.h
>>conftest.
$ac_ext
5897 cat >>conftest.
$ac_ext <<_ACEOF
5898 /* end confdefs.h. */
5904 iconv_t cd = iconv_open("","");
5905 iconv(cd,NULL,NULL,NULL,NULL);
5911 rm -f conftest.
$ac_objext conftest
$ac_exeext
5912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5913 (eval $ac_link) 2>conftest.er1
5915 grep -v '^ *+' conftest.er1
>conftest.err
5917 cat conftest.err
>&5
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); } &&
5920 { ac_try
='test -z "$ac_c_werror_flag"
5921 || test ! -s conftest.err'
5922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); }; } &&
5927 { ac_try
='test -s conftest$ac_exeext'
5928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); }; }; then
5933 am_cv_func_iconv
=yes
5935 echo "$as_me: failed program was:" >&5
5936 sed 's/^/| /' conftest.
$ac_ext >&5
5939 rm -f conftest.err conftest.
$ac_objext \
5940 conftest
$ac_exeext conftest.
$ac_ext
5941 if test "$am_cv_func_iconv" != yes; then
5942 am_save_LIBS
="$LIBS"
5943 LIBS
="$LIBS $LIBICONV"
5944 cat >conftest.
$ac_ext <<_ACEOF
5947 cat confdefs.h
>>conftest.
$ac_ext
5948 cat >>conftest.
$ac_ext <<_ACEOF
5949 /* end confdefs.h. */
5955 iconv_t cd = iconv_open("","");
5956 iconv(cd,NULL,NULL,NULL,NULL);
5962 rm -f conftest.
$ac_objext conftest
$ac_exeext
5963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5964 (eval $ac_link) 2>conftest.er1
5966 grep -v '^ *+' conftest.er1
>conftest.err
5968 cat conftest.err
>&5
5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); } &&
5971 { ac_try
='test -z "$ac_c_werror_flag"
5972 || test ! -s conftest.err'
5973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); }; } &&
5978 { ac_try
='test -s conftest$ac_exeext'
5979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); }; }; then
5985 am_cv_func_iconv
=yes
5987 echo "$as_me: failed program was:" >&5
5988 sed 's/^/| /' conftest.
$ac_ext >&5
5991 rm -f conftest.err conftest.
$ac_objext \
5992 conftest
$ac_exeext conftest.
$ac_ext
5993 LIBS
="$am_save_LIBS"
5997 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
5998 echo "${ECHO_T}$am_cv_func_iconv" >&6
5999 if test "$am_cv_func_iconv" = yes; then
6001 cat >>confdefs.h
<<\_ACEOF
6002 #define HAVE_ICONV 1
6006 if test "$am_cv_lib_iconv" = yes; then
6007 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6008 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
6009 echo "$as_me:$LINENO: result: $LIBICONV" >&5
6010 echo "${ECHO_T}$LIBICONV" >&6
6012 CPPFLAGS
="$am_save_CPPFLAGS"
6019 if test "$am_cv_func_iconv" = yes; then
6020 echo "$as_me:$LINENO: checking for iconv declaration" >&5
6021 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
6022 if test "${am_cv_proto_iconv+set}" = set; then
6023 echo $ECHO_N "(cached) $ECHO_C" >&6
6026 cat >conftest.
$ac_ext <<_ACEOF
6029 cat confdefs.h
>>conftest.
$ac_ext
6030 cat >>conftest.
$ac_ext <<_ACEOF
6031 /* end confdefs.h. */
6039 #if defined(__STDC__) || defined(__cplusplus)
6040 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6053 rm -f conftest.
$ac_objext
6054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6055 (eval $ac_compile) 2>conftest.er1
6057 grep -v '^ *+' conftest.er1
>conftest.err
6059 cat conftest.err
>&5
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); } &&
6062 { ac_try
='test -z "$ac_c_werror_flag"
6063 || test ! -s conftest.err'
6064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); }; } &&
6069 { ac_try
='test -s conftest.$ac_objext'
6070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); }; }; then
6075 am_cv_proto_iconv_arg1
=""
6077 echo "$as_me: failed program was:" >&5
6078 sed 's/^/| /' conftest.
$ac_ext >&5
6080 am_cv_proto_iconv_arg1
="const"
6082 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6083 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);"
6086 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
6087 echo "$as_me:$LINENO: result: ${ac_t:-
6088 }$am_cv_proto_iconv" >&5
6089 echo "${ECHO_T}${ac_t:-
6090 }$am_cv_proto_iconv" >&6
6092 cat >>confdefs.h
<<_ACEOF
6093 #define ICONV_CONST $am_cv_proto_iconv_arg1
6099 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
6100 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
6101 if test "${am_cv_langinfo_codeset+set}" = set; then
6102 echo $ECHO_N "(cached) $ECHO_C" >&6
6104 cat >conftest.
$ac_ext <<_ACEOF
6107 cat confdefs.h
>>conftest.
$ac_ext
6108 cat >>conftest.
$ac_ext <<_ACEOF
6109 /* end confdefs.h. */
6110 #include <langinfo.h>
6114 char* cs = nl_langinfo(CODESET);
6119 rm -f conftest.
$ac_objext conftest
$ac_exeext
6120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6121 (eval $ac_link) 2>conftest.er1
6123 grep -v '^ *+' conftest.er1
>conftest.err
6125 cat conftest.err
>&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); } &&
6128 { ac_try
='test -z "$ac_c_werror_flag"
6129 || test ! -s conftest.err'
6130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); }; } &&
6135 { ac_try
='test -s conftest$ac_exeext'
6136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); }; }; then
6141 am_cv_langinfo_codeset
=yes
6143 echo "$as_me: failed program was:" >&5
6144 sed 's/^/| /' conftest.
$ac_ext >&5
6146 am_cv_langinfo_codeset
=no
6148 rm -f conftest.err conftest.
$ac_objext \
6149 conftest
$ac_exeext conftest.
$ac_ext
6152 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
6153 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
6154 if test $am_cv_langinfo_codeset = yes; then
6156 cat >>confdefs.h
<<\_ACEOF
6157 #define HAVE_LANGINFO_CODESET 1
6162 if test $ac_cv_header_locale_h = yes; then
6164 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
6165 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
6166 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
6167 echo $ECHO_N "(cached) $ECHO_C" >&6
6169 cat >conftest.
$ac_ext <<_ACEOF
6172 cat confdefs.h
>>conftest.
$ac_ext
6173 cat >>conftest.
$ac_ext <<_ACEOF
6174 /* end confdefs.h. */
6184 rm -f conftest.
$ac_objext conftest
$ac_exeext
6185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6186 (eval $ac_link) 2>conftest.er1
6188 grep -v '^ *+' conftest.er1
>conftest.err
6190 cat conftest.err
>&5
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); } &&
6193 { ac_try
='test -z "$ac_c_werror_flag"
6194 || test ! -s conftest.err'
6195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); }; } &&
6200 { ac_try
='test -s conftest$ac_exeext'
6201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); }; }; then
6206 am_cv_val_LC_MESSAGES
=yes
6208 echo "$as_me: failed program was:" >&5
6209 sed 's/^/| /' conftest.
$ac_ext >&5
6211 am_cv_val_LC_MESSAGES
=no
6213 rm -f conftest.err conftest.
$ac_objext \
6214 conftest
$ac_exeext conftest.
$ac_ext
6216 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
6217 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
6218 if test $am_cv_val_LC_MESSAGES = yes; then
6220 cat >>confdefs.h
<<\_ACEOF
6221 #define HAVE_LC_MESSAGES 1
6228 for ac_prog
in bison
6230 # Extract the first word of "$ac_prog", so it can be a program name with args.
6231 set dummy
$ac_prog; ac_word
=$2
6232 echo "$as_me:$LINENO: checking for $ac_word" >&5
6233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6234 if test "${ac_cv_prog_INTLBISON+set}" = set; then
6235 echo $ECHO_N "(cached) $ECHO_C" >&6
6237 if test -n "$INTLBISON"; then
6238 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
6240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6244 test -z "$as_dir" && as_dir
=.
6245 for ac_exec_ext
in '' $ac_executable_extensions; do
6246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6247 ac_cv_prog_INTLBISON
="$ac_prog"
6248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6256 INTLBISON
=$ac_cv_prog_INTLBISON
6257 if test -n "$INTLBISON"; then
6258 echo "$as_me:$LINENO: result: $INTLBISON" >&5
6259 echo "${ECHO_T}$INTLBISON" >&6
6261 echo "$as_me:$LINENO: result: no" >&5
6262 echo "${ECHO_T}no" >&6
6265 test -n "$INTLBISON" && break
6268 if test -z "$INTLBISON"; then
6271 echo "$as_me:$LINENO: checking version of bison" >&5
6272 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
6273 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
6274 case $ac_prog_version in
6275 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
6276 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
6277 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
6278 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
6280 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
6281 echo "${ECHO_T}$ac_prog_version" >&6
6283 if test $ac_verc_fail = yes; then
6302 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6303 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
6304 # Check whether --enable-nls or --disable-nls was given.
6305 if test "${enable_nls+set}" = set; then
6306 enableval
="$enable_nls"
6311 echo "$as_me:$LINENO: result: $USE_NLS" >&5
6312 echo "${ECHO_T}$USE_NLS" >&6
6317 BUILD_INCLUDED_LIBINTL
=no
6318 USE_INCLUDED_LIBINTL
=no
6324 if test "$USE_NLS" = "yes"; then
6325 gt_use_preinstalled_gnugettext
=no
6327 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
6328 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
6330 # Check whether --with-included-gettext or --without-included-gettext was given.
6331 if test "${with_included_gettext+set}" = set; then
6332 withval
="$with_included_gettext"
6333 nls_cv_force_use_gnu_gettext
=$withval
6335 nls_cv_force_use_gnu_gettext
=no
6337 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
6338 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
6340 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
6341 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
6348 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6349 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
6350 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6351 echo $ECHO_N "(cached) $ECHO_C" >&6
6353 cat >conftest.
$ac_ext <<_ACEOF
6356 cat confdefs.h
>>conftest.
$ac_ext
6357 cat >>conftest.
$ac_ext <<_ACEOF
6358 /* end confdefs.h. */
6359 #include <libintl.h>
6360 extern int _nl_msg_cat_cntr;
6361 extern int *_nl_domain_bindings;
6365 bindtextdomain ("", "");
6366 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6371 rm -f conftest.
$ac_objext conftest
$ac_exeext
6372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6373 (eval $ac_link) 2>conftest.er1
6375 grep -v '^ *+' conftest.er1
>conftest.err
6377 cat conftest.err
>&5
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); } &&
6380 { ac_try
='test -z "$ac_c_werror_flag"
6381 || test ! -s conftest.err'
6382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); }; } &&
6387 { ac_try
='test -s conftest$ac_exeext'
6388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); }; }; then
6393 gt_cv_func_gnugettext1_libc
=yes
6395 echo "$as_me: failed program was:" >&5
6396 sed 's/^/| /' conftest.
$ac_ext >&5
6398 gt_cv_func_gnugettext1_libc
=no
6400 rm -f conftest.err conftest.
$ac_objext \
6401 conftest
$ac_exeext conftest.
$ac_ext
6403 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6404 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
6406 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6412 acl_save_prefix
="$prefix"
6413 prefix
="$acl_final_prefix"
6414 acl_save_exec_prefix
="$exec_prefix"
6415 exec_prefix
="$acl_final_exec_prefix"
6417 eval additional_includedir
=\"$includedir\"
6418 eval additional_libdir
=\"$libdir\"
6420 exec_prefix
="$acl_save_exec_prefix"
6421 prefix
="$acl_save_prefix"
6424 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
6425 if test "${with_libintl_prefix+set}" = set; then
6426 withval
="$with_libintl_prefix"
6428 if test "X$withval" = "Xno"; then
6431 if test "X$withval" = "X"; then
6433 acl_save_prefix
="$prefix"
6434 prefix
="$acl_final_prefix"
6435 acl_save_exec_prefix
="$exec_prefix"
6436 exec_prefix
="$acl_final_exec_prefix"
6438 eval additional_includedir
=\"$includedir\"
6439 eval additional_libdir
=\"$libdir\"
6441 exec_prefix
="$acl_save_exec_prefix"
6442 prefix
="$acl_save_prefix"
6445 additional_includedir
="$withval/include"
6446 additional_libdir
="$withval/lib"
6456 names_already_handled
=
6457 names_next_round
='intl '
6458 while test -n "$names_next_round"; do
6459 names_this_round
="$names_next_round"
6461 for name
in $names_this_round; do
6463 for n
in $names_already_handled; do
6464 if test "$n" = "$name"; then
6469 if test -z "$already_handled"; then
6470 names_already_handled
="$names_already_handled $name"
6471 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6472 eval value
=\"\
$HAVE_LIB$uppername\"
6473 if test -n "$value"; then
6474 if test "$value" = yes; then
6475 eval value
=\"\
$LIB$uppername\"
6476 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
6477 eval value
=\"\
$LTLIB$uppername\"
6478 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
6487 if test $use_additional = yes; then
6488 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6489 found_dir
="$additional_libdir"
6490 found_so
="$additional_libdir/lib$name.$shlibext"
6491 if test -f "$additional_libdir/lib$name.la"; then
6492 found_la
="$additional_libdir/lib$name.la"
6495 if test -f "$additional_libdir/lib$name.$libext"; then
6496 found_dir
="$additional_libdir"
6497 found_a
="$additional_libdir/lib$name.$libext"
6498 if test -f "$additional_libdir/lib$name.la"; then
6499 found_la
="$additional_libdir/lib$name.la"
6504 if test "X$found_dir" = "X"; then
6505 for x
in $LDFLAGS $LTLIBINTL; do
6507 acl_save_prefix
="$prefix"
6508 prefix
="$acl_final_prefix"
6509 acl_save_exec_prefix
="$exec_prefix"
6510 exec_prefix
="$acl_final_exec_prefix"
6512 exec_prefix
="$acl_save_exec_prefix"
6513 prefix
="$acl_save_prefix"
6517 dir
=`echo "X$x" | sed -e 's/^X-L//'`
6518 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6520 found_so
="$dir/lib$name.$shlibext"
6521 if test -f "$dir/lib$name.la"; then
6522 found_la
="$dir/lib$name.la"
6525 if test -f "$dir/lib$name.$libext"; then
6527 found_a
="$dir/lib$name.$libext"
6528 if test -f "$dir/lib$name.la"; then
6529 found_la
="$dir/lib$name.la"
6535 if test "X$found_dir" != "X"; then
6540 if test "X$found_dir" != "X"; then
6541 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6542 if test "X$found_so" != "X"; then
6543 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
6544 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
6547 for x
in $ltrpathdirs; do
6548 if test "X$x" = "X$found_dir"; then
6553 if test -z "$haveit"; then
6554 ltrpathdirs
="$ltrpathdirs $found_dir"
6556 if test "$hardcode_direct" = yes; then
6557 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
6559 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
6560 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
6562 for x
in $rpathdirs; do
6563 if test "X$x" = "X$found_dir"; then
6568 if test -z "$haveit"; then
6569 rpathdirs
="$rpathdirs $found_dir"
6573 for x
in $LDFLAGS $LIBINTL; do
6575 acl_save_prefix
="$prefix"
6576 prefix
="$acl_final_prefix"
6577 acl_save_exec_prefix
="$exec_prefix"
6578 exec_prefix
="$acl_final_exec_prefix"
6580 exec_prefix
="$acl_save_exec_prefix"
6581 prefix
="$acl_save_prefix"
6583 if test "X$x" = "X-L$found_dir"; then
6588 if test -z "$haveit"; then
6589 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6591 if test "$hardcode_minus_L" != no
; then
6592 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
6594 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
6600 if test "X$found_a" != "X"; then
6601 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
6603 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6606 additional_includedir
=
6607 case "$found_dir" in
6609 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6610 additional_includedir
="$basedir/include"
6613 if test "X$additional_includedir" != "X"; then
6614 if test "X$additional_includedir" != "X/usr/include"; then
6616 if test "X$additional_includedir" = "X/usr/local/include"; then
6617 if test -n "$GCC"; then
6619 linux
*) haveit
=yes;;
6623 if test -z "$haveit"; then
6624 for x
in $CPPFLAGS $INCINTL; do
6626 acl_save_prefix
="$prefix"
6627 prefix
="$acl_final_prefix"
6628 acl_save_exec_prefix
="$exec_prefix"
6629 exec_prefix
="$acl_final_exec_prefix"
6631 exec_prefix
="$acl_save_exec_prefix"
6632 prefix
="$acl_save_prefix"
6634 if test "X$x" = "X-I$additional_includedir"; then
6639 if test -z "$haveit"; then
6640 if test -d "$additional_includedir"; then
6641 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6647 if test -n "$found_la"; then
6648 save_libdir
="$libdir"
6650 */* |
*\\*) .
"$found_la" ;;
6651 *) .
"./$found_la" ;;
6653 libdir
="$save_libdir"
6654 for dep
in $dependency_libs; do
6657 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
6658 if test "X$additional_libdir" != "X/usr/lib"; then
6660 if test "X$additional_libdir" = "X/usr/local/lib"; then
6661 if test -n "$GCC"; then
6663 linux
*) haveit
=yes;;
6667 if test -z "$haveit"; then
6669 for x
in $LDFLAGS $LIBINTL; do
6671 acl_save_prefix
="$prefix"
6672 prefix
="$acl_final_prefix"
6673 acl_save_exec_prefix
="$exec_prefix"
6674 exec_prefix
="$acl_final_exec_prefix"
6676 exec_prefix
="$acl_save_exec_prefix"
6677 prefix
="$acl_save_prefix"
6679 if test "X$x" = "X-L$additional_libdir"; then
6684 if test -z "$haveit"; then
6685 if test -d "$additional_libdir"; then
6686 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6690 for x
in $LDFLAGS $LTLIBINTL; do
6692 acl_save_prefix
="$prefix"
6693 prefix
="$acl_final_prefix"
6694 acl_save_exec_prefix
="$exec_prefix"
6695 exec_prefix
="$acl_final_exec_prefix"
6697 exec_prefix
="$acl_save_exec_prefix"
6698 prefix
="$acl_save_prefix"
6700 if test "X$x" = "X-L$additional_libdir"; then
6705 if test -z "$haveit"; then
6706 if test -d "$additional_libdir"; then
6707 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6714 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
6715 if test "$enable_rpath" != no
; then
6717 for x
in $rpathdirs; do
6718 if test "X$x" = "X$dir"; then
6723 if test -z "$haveit"; then
6724 rpathdirs
="$rpathdirs $dir"
6727 for x
in $ltrpathdirs; do
6728 if test "X$x" = "X$dir"; then
6733 if test -z "$haveit"; then
6734 ltrpathdirs
="$ltrpathdirs $dir"
6739 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6742 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6745 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
6746 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6752 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
6753 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6759 if test "X$rpathdirs" != "X"; then
6760 if test -n "$hardcode_libdir_separator"; then
6762 for found_dir
in $rpathdirs; do
6763 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6765 acl_save_libdir
="$libdir"
6767 eval flag
=\"$hardcode_libdir_flag_spec\"
6768 libdir
="$acl_save_libdir"
6769 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
6771 for found_dir
in $rpathdirs; do
6772 acl_save_libdir
="$libdir"
6774 eval flag
=\"$hardcode_libdir_flag_spec\"
6775 libdir
="$acl_save_libdir"
6776 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
6780 if test "X$ltrpathdirs" != "X"; then
6781 for found_dir
in $ltrpathdirs; do
6782 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6786 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
6787 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
6788 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
6789 echo $ECHO_N "(cached) $ECHO_C" >&6
6791 gt_save_CPPFLAGS
="$CPPFLAGS"
6792 CPPFLAGS
="$CPPFLAGS $INCINTL"
6793 gt_save_LIBS
="$LIBS"
6794 LIBS
="$LIBS $LIBINTL"
6795 cat >conftest.
$ac_ext <<_ACEOF
6798 cat confdefs.h
>>conftest.
$ac_ext
6799 cat >>conftest.
$ac_ext <<_ACEOF
6800 /* end confdefs.h. */
6801 #include <libintl.h>
6802 extern int _nl_msg_cat_cntr;
6807 const char *_nl_expand_alias ();
6811 bindtextdomain ("", "");
6812 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
6817 rm -f conftest.
$ac_objext conftest
$ac_exeext
6818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6819 (eval $ac_link) 2>conftest.er1
6821 grep -v '^ *+' conftest.er1
>conftest.err
6823 cat conftest.err
>&5
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); } &&
6826 { ac_try
='test -z "$ac_c_werror_flag"
6827 || test ! -s conftest.err'
6828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); }; } &&
6833 { ac_try
='test -s conftest$ac_exeext'
6834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); }; }; then
6839 gt_cv_func_gnugettext1_libintl
=yes
6841 echo "$as_me: failed program was:" >&5
6842 sed 's/^/| /' conftest.
$ac_ext >&5
6844 gt_cv_func_gnugettext1_libintl
=no
6846 rm -f conftest.err conftest.
$ac_objext \
6847 conftest
$ac_exeext conftest.
$ac_ext
6848 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
6849 LIBS
="$LIBS $LIBICONV"
6850 cat >conftest.
$ac_ext <<_ACEOF
6853 cat confdefs.h
>>conftest.
$ac_ext
6854 cat >>conftest.
$ac_ext <<_ACEOF
6855 /* end confdefs.h. */
6856 #include <libintl.h>
6857 extern int _nl_msg_cat_cntr;
6862 const char *_nl_expand_alias ();
6866 bindtextdomain ("", "");
6867 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
6872 rm -f conftest.
$ac_objext conftest
$ac_exeext
6873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6874 (eval $ac_link) 2>conftest.er1
6876 grep -v '^ *+' conftest.er1
>conftest.err
6878 cat conftest.err
>&5
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); } &&
6881 { ac_try
='test -z "$ac_c_werror_flag"
6882 || test ! -s conftest.err'
6883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); }; } &&
6888 { ac_try
='test -s conftest$ac_exeext'
6889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); }; }; then
6894 LIBINTL
="$LIBINTL $LIBICONV"
6895 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
6896 gt_cv_func_gnugettext1_libintl
=yes
6899 echo "$as_me: failed program was:" >&5
6900 sed 's/^/| /' conftest.
$ac_ext >&5
6903 rm -f conftest.err conftest.
$ac_objext \
6904 conftest
$ac_exeext conftest.
$ac_ext
6906 CPPFLAGS
="$gt_save_CPPFLAGS"
6907 LIBS
="$gt_save_LIBS"
6909 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
6910 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
6913 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6914 ||
{ test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6915 && test "$PACKAGE" != gettext-runtime \
6916 && test "$PACKAGE" != gettext-tools
; }; then
6917 gt_use_preinstalled_gnugettext
=yes
6925 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
6926 nls_cv_use_gnu_gettext
=yes
6930 if test "$nls_cv_use_gnu_gettext" = "yes"; then
6931 BUILD_INCLUDED_LIBINTL
=yes
6932 USE_INCLUDED_LIBINTL
=yes
6933 LIBINTL
="\${top_builddir}/intl/libintl.a $LIBICONV"
6934 LTLIBINTL
="\${top_builddir}/intl/libintl.a $LTLIBICONV"
6935 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
6938 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6939 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
6944 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6945 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
6947 cat >>confdefs.h
<<\_ACEOF
6948 #define ENABLE_NLS 1
6956 echo "$as_me:$LINENO: checking whether to use NLS" >&5
6957 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
6958 echo "$as_me:$LINENO: result: $USE_NLS" >&5
6959 echo "${ECHO_T}$USE_NLS" >&6
6960 if test "$USE_NLS" = "yes"; then
6961 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
6962 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
6963 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6964 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6965 gt_source
="external libintl"
6970 gt_source
="included intl directory"
6972 echo "$as_me:$LINENO: result: $gt_source" >&5
6973 echo "${ECHO_T}$gt_source" >&6
6976 if test "$USE_NLS" = "yes"; then
6978 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6979 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6980 echo "$as_me:$LINENO: checking how to link with libintl" >&5
6981 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
6982 echo "$as_me:$LINENO: result: $LIBINTL" >&5
6983 echo "${ECHO_T}$LIBINTL" >&6
6985 for element
in $INCINTL; do
6987 for x
in $CPPFLAGS; do
6989 acl_save_prefix
="$prefix"
6990 prefix
="$acl_final_prefix"
6991 acl_save_exec_prefix
="$exec_prefix"
6992 exec_prefix
="$acl_final_exec_prefix"
6994 exec_prefix
="$acl_save_exec_prefix"
6995 prefix
="$acl_save_prefix"
6997 if test "X$x" = "X$element"; then
7002 if test -z "$haveit"; then
7003 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
7010 cat >>confdefs.h
<<\_ACEOF
7011 #define HAVE_GETTEXT 1
7015 cat >>confdefs.h
<<\_ACEOF
7016 #define HAVE_DCGETTEXT 1
7025 if test "$PACKAGE" = gettext-runtime ||
test "$PACKAGE" = gettext-tools
; then
7026 BUILD_INCLUDED_LIBINTL
=yes
7034 nls_cv_header_libgt
=
7045 if test "$USE_INCLUDED_LIBINTL" = yes; then
7046 INTLOBJS
="\$(GETTOBJS)"
7050 INTL_LIBTOOL_SUFFIX_PREFIX
=
7062 # This replaces the extensive use of DEFS in the original Makefile.in.
7064 cat >>confdefs.h
<<\_ACEOF
7065 #define IN_LIBINTL 1
7069 cat >>confdefs.h
<<\_ACEOF
7070 #define IN_LIBRARY 1
7074 cat >>confdefs.h
<<\_ACEOF
7075 #define DEPENDS_ON_LIBICONV 1
7079 cat >>confdefs.h
<<\_ACEOF
7080 #define ENABLE_RELOCATABLE 1
7084 cat >>confdefs.h
<<\_ACEOF
7085 #define NO_XMALLOC 1
7089 cat >>confdefs.h
<<\_ACEOF
7090 #define set_relocation_prefix libintl_set_relocation_prefix
7094 cat >>confdefs.h
<<\_ACEOF
7095 #define relocate libintl_relocate
7099 MISSING
=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7100 for ac_prog
in aclocal
7102 # Extract the first word of "$ac_prog", so it can be a program name with args.
7103 set dummy
$ac_prog; ac_word
=$2
7104 echo "$as_me:$LINENO: checking for $ac_word" >&5
7105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7106 if test "${ac_cv_prog_ACLOCAL+set}" = set; then
7107 echo $ECHO_N "(cached) $ECHO_C" >&6
7109 if test -n "$ACLOCAL"; then
7110 ac_cv_prog_ACLOCAL
="$ACLOCAL" # Let the user override the test.
7112 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7116 test -z "$as_dir" && as_dir
=.
7117 for ac_exec_ext
in '' $ac_executable_extensions; do
7118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7119 ac_cv_prog_ACLOCAL
="$ac_prog"
7120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7128 ACLOCAL
=$ac_cv_prog_ACLOCAL
7129 if test -n "$ACLOCAL"; then
7130 echo "$as_me:$LINENO: result: $ACLOCAL" >&5
7131 echo "${ECHO_T}$ACLOCAL" >&6
7133 echo "$as_me:$LINENO: result: no" >&5
7134 echo "${ECHO_T}no" >&6
7137 test -n "$ACLOCAL" && break
7139 test -n "$ACLOCAL" || ACLOCAL
="$MISSING aclocal"
7141 for ac_prog
in autoconf
7143 # Extract the first word of "$ac_prog", so it can be a program name with args.
7144 set dummy
$ac_prog; ac_word
=$2
7145 echo "$as_me:$LINENO: checking for $ac_word" >&5
7146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7147 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
7148 echo $ECHO_N "(cached) $ECHO_C" >&6
7150 if test -n "$AUTOCONF"; then
7151 ac_cv_prog_AUTOCONF
="$AUTOCONF" # Let the user override the test.
7153 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7157 test -z "$as_dir" && as_dir
=.
7158 for ac_exec_ext
in '' $ac_executable_extensions; do
7159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7160 ac_cv_prog_AUTOCONF
="$ac_prog"
7161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7169 AUTOCONF
=$ac_cv_prog_AUTOCONF
7170 if test -n "$AUTOCONF"; then
7171 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
7172 echo "${ECHO_T}$AUTOCONF" >&6
7174 echo "$as_me:$LINENO: result: no" >&5
7175 echo "${ECHO_T}no" >&6
7178 test -n "$AUTOCONF" && break
7180 test -n "$AUTOCONF" || AUTOCONF
="$MISSING autoconf"
7182 for ac_prog
in autoheader
7184 # Extract the first word of "$ac_prog", so it can be a program name with args.
7185 set dummy
$ac_prog; ac_word
=$2
7186 echo "$as_me:$LINENO: checking for $ac_word" >&5
7187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7188 if test "${ac_cv_prog_AUTOHEADER+set}" = set; then
7189 echo $ECHO_N "(cached) $ECHO_C" >&6
7191 if test -n "$AUTOHEADER"; then
7192 ac_cv_prog_AUTOHEADER
="$AUTOHEADER" # Let the user override the test.
7194 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7198 test -z "$as_dir" && as_dir
=.
7199 for ac_exec_ext
in '' $ac_executable_extensions; do
7200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7201 ac_cv_prog_AUTOHEADER
="$ac_prog"
7202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7210 AUTOHEADER
=$ac_cv_prog_AUTOHEADER
7211 if test -n "$AUTOHEADER"; then
7212 echo "$as_me:$LINENO: result: $AUTOHEADER" >&5
7213 echo "${ECHO_T}$AUTOHEADER" >&6
7215 echo "$as_me:$LINENO: result: no" >&5
7216 echo "${ECHO_T}no" >&6
7219 test -n "$AUTOHEADER" && break
7221 test -n "$AUTOHEADER" || AUTOHEADER
="$MISSING autoheader"
7224 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7225 if test "${enable_maintainer_mode+set}" = set; then
7226 enableval
="$enable_maintainer_mode"
7229 enable_maintainer_mode
=no
7231 if test "x$enable_maintainer_mode" = xno
; then
7238 # Additional info for config.intl.
7244 case $USE_INCLUDED_LIBINTL in
7246 LIBINTL
=`echo $LIBINTL | sed 's,${top_builddir},&/..,' `
7247 LTLIBINTL
=`echo $LTLIBINTL | sed 's,${top_builddir},&/..,' `
7248 LIBINTL_DEP
='${top_builddir}/../intl/libintl.a'
7249 INCINTL
='-I${top_builddir}/../intl'
7253 ac_config_files
="$ac_config_files Makefile config.intl"
7255 cat >confcache
<<\_ACEOF
7256 # This file is a shell script that caches the results of configure
7257 # tests run on this system so they can be shared between configure
7258 # scripts and configure runs, see configure's option --config-cache.
7259 # It is not useful on other systems. If it contains results you don't
7260 # want to keep, you may remove or edit it.
7262 # config.status only pays attention to the cache file if you give it
7263 # the --recheck option to rerun configure.
7265 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7266 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7271 # The following way of writing the cache mishandles newlines in values,
7272 # but we know of no workaround that is simple, portable, and efficient.
7273 # So, don't put newlines in cache variables' values.
7274 # Ultrix sh set writes to stderr and can't be redirected directly,
7275 # and sets the high bit in the cache file unless we assign to the vars.
7278 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7280 # `set' does not quote correctly, so add quotes (double-quote
7281 # substitution turns \\\\ into \\, and sed turns \\ into \).
7284 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7287 # `set' quotes correctly as required by POSIX, so do not add quotes.
7289 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7296 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7298 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7300 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
7301 if test -w $cache_file; then
7302 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7303 cat confcache
>$cache_file
7305 echo "not updating unwritable cache $cache_file"
7310 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7311 # Let make expand exec_prefix.
7312 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7314 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7315 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7316 # trailing colons and then remove the whole line if VPATH becomes empty
7317 # (actually we leave an empty line to preserve line numbers).
7318 if test "x$srcdir" = x.
; then
7319 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
7320 s/:*\$(srcdir):*/:/;
7321 s/:*\${srcdir}:*/:/;
7323 s/^\([^=]*=[ ]*\):*/\1/;
7329 DEFS
=-DHAVE_CONFIG_H
7333 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7334 # 1. Remove the extension, and $U if already installed.
7335 ac_i
=`echo "$ac_i" |
7336 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7338 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
7339 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
7343 LTLIBOBJS
=$ac_ltlibobjs
7347 : ${CONFIG_STATUS=./config.status}
7348 ac_clean_files_save
=$ac_clean_files
7349 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7350 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7351 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7352 cat >$CONFIG_STATUS <<_ACEOF
7354 # Generated by $as_me.
7355 # Run this file to recreate the current configuration.
7356 # Compiler output produced by configure, useful for debugging
7357 # configure, is in config.log if it exists.
7362 SHELL=\${CONFIG_SHELL-$SHELL}
7365 cat >>$CONFIG_STATUS <<\_ACEOF
7366 ## --------------------- ##
7367 ## M4sh Initialization. ##
7368 ## --------------------- ##
7370 # Be Bourne compatible
7371 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
7374 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7375 # is contrary to our usage. Disable this feature.
7376 alias -g '${1+"$@"}'='"$@"'
7377 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
7380 DUALCASE
=1; export DUALCASE
# for MKS sh
7382 # Support unset when possible.
7383 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
7390 # Work around bugs in pre-3.0 UWIN ksh.
7391 $as_unset ENV MAIL MAILPATH
7398 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7399 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7400 LC_TELEPHONE LC_TIME
7402 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7403 eval $as_var=C
; export $as_var
7409 # Required to use basename.
7410 if expr a
: '\(a\)' >/dev
/null
2>&1; then
7416 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
7417 as_basename
=basename
7423 # Name of the executable.
7424 as_me
=`$as_basename "$0" ||
7425 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7426 X"$0" : 'X\(//\)$' \| \
7427 X"$0" : 'X\(/\)$' \| \
7428 . : '\(.\)' 2>/dev/null ||
7430 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7431 /^X\/\(\/\/\)$/{ s//\1/; q; }
7432 /^X\/\(\/\).*/{ s//\1/; q; }
7436 # PATH needs CR, and LINENO needs CR and PATH.
7437 # Avoid depending upon Character Ranges.
7438 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7439 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7440 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7441 as_cr_digits
='0123456789'
7442 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7444 # The user is always right.
7445 if test "${PATH_SEPARATOR+set}" != set; then
7446 echo "#! /bin/sh" >conf$$.sh
7447 echo "exit 0" >>conf$$.sh
7449 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7460 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
7461 test "x$as_lineno_1" != "x$as_lineno_2" &&
7462 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
7463 # Find who we are. Look in the path if we contain no path at all
7466 *[\\/]* ) as_myself
=$0 ;;
7467 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7471 test -z "$as_dir" && as_dir
=.
7472 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
7477 # We did not find ourselves, most probably we were run as `sh COMMAND'
7478 # in which case we are not to be found in the path.
7479 if test "x$as_myself" = x
; then
7482 if test ! -f "$as_myself"; then
7483 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7484 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7485 { (exit 1); exit 1; }; }
7487 case $CONFIG_SHELL in
7489 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7490 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
7493 test -z "$as_dir" && as_dir
=.
7494 for as_base
in sh bash ksh sh5
; do
7497 if ("$as_dir/$as_base" -c '
7500 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7501 test "x$as_lineno_1" != "x$as_lineno_2" &&
7502 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
7503 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
7504 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
7505 CONFIG_SHELL
=$as_dir/$as_base
7507 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7515 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7516 # uniformly replaced by the line number. The first 'sed' inserts a
7517 # line-number line before each line; the second 'sed' does the real
7518 # work. The second script uses 'N' to pair each line-number line
7519 # with the numbered line, and appends trailing '-' during
7520 # substitution so that $LINENO is not a special case at line end.
7521 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7522 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7523 sed '=' <$as_myself |
7528 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7531 s,^['$as_cr_digits']*\n,,
7533 chmod +x
$as_me.lineno ||
7534 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7535 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7536 { (exit 1); exit 1; }; }
7538 # Don't try to exec as it changes $[0], causing all sort of problems
7539 # (the dirname of $[0] is not the place where we might find the
7540 # original and so on. Autoconf is especially sensible to this).
7542 # Exit status is that of the last command.
7547 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7548 *c
*,-n*) ECHO_N
= ECHO_C
='
7550 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
7551 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
7554 if expr a
: '\(a\)' >/dev
/null
2>&1; then
7560 rm -f conf$$ conf$$.exe conf$$.
file
7562 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7563 # We could just check for DJGPP; but this test a) works b) is more generic
7564 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7565 if test -f conf$$.exe
; then
7566 # Don't use ln at all; we don't have any links
7571 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7576 rm -f conf$$ conf$$.exe conf$$.
file
7578 if mkdir
-p .
2>/dev
/null
; then
7581 test -d .
/-p && rmdir .
/-p
7585 as_executable_p
="test -f"
7587 # Sed expression to map a string onto a valid CPP name.
7588 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7590 # Sed expression to map a string onto a valid variable name.
7591 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7595 # We need space, tab and new line, in precisely that order.
7605 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7606 # report actual input values of CONFIG_FILES etc. instead of their
7607 # values after options handling. Logging --version etc. is OK.
7611 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7612 ## Running $as_me. ##
7617 This file was extended by $as_me, which was
7618 generated by GNU Autoconf 2.59. Invocation command line was
7620 CONFIG_FILES = $CONFIG_FILES
7621 CONFIG_HEADERS = $CONFIG_HEADERS
7622 CONFIG_LINKS = $CONFIG_LINKS
7623 CONFIG_COMMANDS = $CONFIG_COMMANDS
7627 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7631 # Files that config.status was made for.
7632 if test -n "$ac_config_files"; then
7633 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7636 if test -n "$ac_config_headers"; then
7637 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7640 if test -n "$ac_config_links"; then
7641 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7644 if test -n "$ac_config_commands"; then
7645 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7648 cat >>$CONFIG_STATUS <<\_ACEOF
7651 \`$as_me' instantiates files from templates according to the
7652 current configuration.
7654 Usage: $0 [OPTIONS] [FILE]...
7656 -h, --help print this help, then exit
7657 -V, --version print version number, then exit
7658 -q, --quiet do not print progress messages
7659 -d, --debug don't remove temporary files
7660 --recheck update $as_me by reconfiguring in the same conditions
7661 --file=FILE[:TEMPLATE]
7662 instantiate the configuration file FILE
7663 --header=FILE[:TEMPLATE]
7664 instantiate the configuration header FILE
7666 Configuration files:
7669 Configuration headers:
7672 Configuration commands:
7675 Report bugs to <bug-autoconf@gnu.org>."
7678 cat >>$CONFIG_STATUS <<_ACEOF
7681 configured by $0, generated by GNU Autoconf 2.59,
7682 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7684 Copyright (C) 2003 Free Software Foundation, Inc.
7685 This config.status script is free software; the Free Software Foundation
7686 gives unlimited permission to copy, distribute and modify it."
7691 cat >>$CONFIG_STATUS <<\_ACEOF
7692 # If no file are specified by the user, then we need to provide default
7693 # value. By we need to know if files were specified by the user.
7699 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
7700 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
7708 *) # This is not an option, so the user has probably given explicit
7711 ac_need_defaults
=false
;;
7715 # Handling of the options.
7717 cat >>$CONFIG_STATUS <<\_ACEOF
7718 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
7720 --version |
--vers* |
-V )
7721 echo "$ac_cs_version"; exit 0 ;;
7723 # Conflict between --help and --header
7724 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7725 Try \`$0 --help' for more information." >&5
7726 echo "$as_me: error: ambiguous option: $1
7727 Try \`$0 --help' for more information." >&2;}
7728 { (exit 1); exit 1; }; };;
7729 --help |
--hel |
-h )
7730 echo "$ac_cs_usage"; exit 0 ;;
7731 --debug |
--d* |
-d )
7733 --file |
--fil |
--fi |
--f )
7735 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
7736 ac_need_defaults
=false
;;
7737 --header |
--heade |
--head |
--hea )
7739 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
7740 ac_need_defaults
=false
;;
7741 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
7742 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
7746 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7747 Try \`$0 --help' for more information." >&5
7748 echo "$as_me: error: unrecognized option: $1
7749 Try \`$0 --help' for more information." >&2;}
7750 { (exit 1); exit 1; }; } ;;
7752 *) ac_config_targets
="$ac_config_targets $1" ;;
7758 ac_configure_extra_args
=
7760 if $ac_cs_silent; then
7762 ac_configure_extra_args
="$ac_configure_extra_args --silent"
7766 cat >>$CONFIG_STATUS <<_ACEOF
7767 if \$ac_cs_recheck; then
7768 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7769 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7774 cat >>$CONFIG_STATUS <<_ACEOF
7776 # INIT-COMMANDS section.
7779 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
7780 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
7782 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
7783 # Capture the value of LINGUAS because we need it to compute CATALOGS.
7784 LINGUAS="${LINGUAS-%UNSET%}"
7791 cat >>$CONFIG_STATUS <<\_ACEOF
7792 for ac_config_target
in $ac_config_targets
7794 case "$ac_config_target" in
7795 # Handling of arguments.
7796 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
7797 "config.intl" ) CONFIG_FILES
="$CONFIG_FILES config.intl" ;;
7798 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
7799 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
7800 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7801 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7802 { (exit 1); exit 1; }; };;
7806 # If the user did not use the arguments to specify the items to instantiate,
7807 # then the envvar interface is used. Set only those that are not.
7808 # We use the long form for the default assignment because of an extremely
7809 # bizarre bug on SunOS 4.1.3.
7810 if $ac_need_defaults; then
7811 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
7812 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
7813 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
7816 # Have a temporary directory for convenience. Make it in the build tree
7817 # simply because there is no reason to put it here, and in addition,
7818 # creating and moving files from /tmp can sometimes cause problems.
7819 # Create a temporary directory, and hook for its removal unless debugging.
7822 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7823 trap '{ (exit 1); exit 1; }' 1 2 13 15
7826 # Create a (secure) tmp directory for tmp files.
7829 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7830 test -n "$tmp" && test -d "$tmp"
7833 tmp
=.
/confstat$$
-$RANDOM
7834 (umask 077 && mkdir
$tmp)
7837 echo "$me: cannot create a temporary directory in ." >&2
7838 { (exit 1); exit 1; }
7843 cat >>$CONFIG_STATUS <<_ACEOF
7846 # CONFIG_FILES section.
7849 # No need to generate the scripts if there are no CONFIG_FILES.
7850 # This happens for instance when ./config.status config.h
7851 if test -n "\$CONFIG_FILES"; then
7852 # Protect against being on the right side of a sed subst in config.status.
7853 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7854 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7855 s,@SHELL@,$SHELL,;t t
7856 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7857 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7858 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7859 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7860 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7861 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7862 s,@exec_prefix@,$exec_prefix,;t t
7863 s,@prefix@,$prefix,;t t
7864 s,@program_transform_name@,$program_transform_name,;t t
7865 s,@bindir@,$bindir,;t t
7866 s,@sbindir@,$sbindir,;t t
7867 s,@libexecdir@,$libexecdir,;t t
7868 s,@datadir@,$datadir,;t t
7869 s,@sysconfdir@,$sysconfdir,;t t
7870 s,@sharedstatedir@,$sharedstatedir,;t t
7871 s,@localstatedir@,$localstatedir,;t t
7872 s,@libdir@,$libdir,;t t
7873 s,@includedir@,$includedir,;t t
7874 s,@oldincludedir@,$oldincludedir,;t t
7875 s,@infodir@,$infodir,;t t
7876 s,@mandir@,$mandir,;t t
7877 s,@build_alias@,$build_alias,;t t
7878 s,@host_alias@,$host_alias,;t t
7879 s,@target_alias@,$target_alias,;t t
7881 s,@ECHO_C@,$ECHO_C,;t t
7882 s,@ECHO_N@,$ECHO_N,;t t
7883 s,@ECHO_T@,$ECHO_T,;t t
7885 s,@SET_MAKE@,$SET_MAKE,;t t
7886 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7887 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7888 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7889 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
7890 s,@USE_NLS@,$USE_NLS,;t t
7891 s,@MSGFMT@,$MSGFMT,;t t
7892 s,@GMSGFMT@,$GMSGFMT,;t t
7893 s,@XGETTEXT@,$XGETTEXT,;t t
7894 s,@MSGMERGE@,$MSGMERGE,;t t
7896 s,@CFLAGS@,$CFLAGS,;t t
7897 s,@LDFLAGS@,$LDFLAGS,;t t
7898 s,@CPPFLAGS@,$CPPFLAGS,;t t
7899 s,@ac_ct_CC@,$ac_ct_CC,;t t
7900 s,@EXEEXT@,$EXEEXT,;t t
7901 s,@OBJEXT@,$OBJEXT,;t t
7902 s,@build@,$build,;t t
7903 s,@build_cpu@,$build_cpu,;t t
7904 s,@build_vendor@,$build_vendor,;t t
7905 s,@build_os@,$build_os,;t t
7907 s,@host_cpu@,$host_cpu,;t t
7908 s,@host_vendor@,$host_vendor,;t t
7909 s,@host_os@,$host_os,;t t
7910 s,@RANLIB@,$RANLIB,;t t
7911 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7913 s,@EGREP@,$EGREP,;t t
7914 s,@ALLOCA@,$ALLOCA,;t t
7915 s,@GLIBC21@,$GLIBC21,;t t
7916 s,@LIBICONV@,$LIBICONV,;t t
7917 s,@LTLIBICONV@,$LTLIBICONV,;t t
7918 s,@INTLBISON@,$INTLBISON,;t t
7919 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
7920 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
7921 s,@CATOBJEXT@,$CATOBJEXT,;t t
7922 s,@DATADIRNAME@,$DATADIRNAME,;t t
7923 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
7924 s,@GENCAT@,$GENCAT,;t t
7925 s,@INTLOBJS@,$INTLOBJS,;t t
7926 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
7927 s,@INTLLIBS@,$INTLLIBS,;t t
7928 s,@LIBINTL@,$LIBINTL,;t t
7929 s,@LTLIBINTL@,$LTLIBINTL,;t t
7930 s,@POSUB@,$POSUB,;t t
7931 s,@ACLOCAL@,$ACLOCAL,;t t
7932 s,@AUTOCONF@,$AUTOCONF,;t t
7933 s,@AUTOHEADER@,$AUTOHEADER,;t t
7934 s,@MAINT@,$MAINT,;t t
7935 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
7936 s,@INCINTL@,$INCINTL,;t t
7937 s,@LIBOBJS@,$LIBOBJS,;t t
7938 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7943 cat >>$CONFIG_STATUS <<\_ACEOF
7944 # Split the substitutions into bite-sized pieces for seds with
7945 # small command number limits, like on Digital OSF/1 and HP-UX.
7947 ac_sed_frag
=1 # Number of current file.
7948 ac_beg
=1 # First line for current file.
7949 ac_end
=$ac_max_sed_lines # Line after last line for current file.
7952 while $ac_more_lines; do
7953 if test $ac_beg -gt 1; then
7954 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
7956 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
7958 if test ! -s $tmp/subs.frag
; then
7961 # The purpose of the label and of the branching condition is to
7962 # speed up the sed processing (if there are no `@' at all, there
7963 # is no need to browse any of the substitutions).
7964 # These are the two extra sed commands mentioned above.
7966 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
7967 if test -z "$ac_sed_cmds"; then
7968 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
7970 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7972 ac_sed_frag
=`expr $ac_sed_frag + 1`
7974 ac_end
=`expr $ac_end + $ac_max_sed_lines`
7977 if test -z "$ac_sed_cmds"; then
7980 fi # test -n "$CONFIG_FILES"
7983 cat >>$CONFIG_STATUS <<\_ACEOF
7984 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
7985 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7987 - |
*:- |
*:-:* ) # input from stdin
7989 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7990 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7991 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7992 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7993 * ) ac_file_in
=$ac_file.
in ;;
7996 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7997 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
7998 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7999 X"$ac_file" : 'X\(//\)[^/]' \| \
8000 X"$ac_file" : 'X\(//\)$' \| \
8001 X"$ac_file" : 'X\(/\)' \| \
8002 . : '\(.\)' 2>/dev/null ||
8004 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8005 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8006 /^X\(\/\/\)$/{ s//\1/; q; }
8007 /^X\(\/\).*/{ s//\1/; q; }
8009 { if $as_mkdir_p; then
8014 while test ! -d "$as_dir"; do
8015 as_dirs
="$as_dir $as_dirs"
8016 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8017 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8018 X"$as_dir" : 'X\(//\)[^/]' \| \
8019 X"$as_dir" : 'X\(//\)$' \| \
8020 X"$as_dir" : 'X\(/\)' \| \
8021 . : '\(.\)' 2>/dev/null ||
8023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8024 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8025 /^X\(\/\/\)$/{ s//\1/; q; }
8026 /^X\(\/\).*/{ s//\1/; q; }
8029 test ! -n "$as_dirs" || mkdir
$as_dirs
8030 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8031 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8032 { (exit 1); exit 1; }; }; }
8036 if test "$ac_dir" != .
; then
8037 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8038 # A "../" for each directory in $ac_dir_suffix.
8039 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8041 ac_dir_suffix
= ac_top_builddir
=
8045 .
) # No --srcdir option. We are building in place.
8047 if test -z "$ac_top_builddir"; then
8050 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
8052 [\\/]* | ?
:[\\/]* ) # Absolute path.
8053 ac_srcdir
=$srcdir$ac_dir_suffix;
8054 ac_top_srcdir
=$srcdir ;;
8056 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
8057 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
8060 # Do not use `cd foo && pwd` to compute absolute paths, because
8061 # the directories may not exist.
8063 .
) ac_abs_builddir
="$ac_dir";;
8066 .
) ac_abs_builddir
=`pwd`;;
8067 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
8068 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
8071 case $ac_abs_builddir in
8072 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8074 case ${ac_top_builddir}.
in
8075 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
8076 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8077 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
8080 case $ac_abs_builddir in
8081 .
) ac_abs_srcdir
=$ac_srcdir;;
8084 .
) ac_abs_srcdir
=$ac_abs_builddir;;
8085 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
8086 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
8089 case $ac_abs_builddir in
8090 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
8092 case $ac_top_srcdir in
8093 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
8094 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
8095 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
8101 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8102 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
8105 if test x
"$ac_file" != x-
; then
8106 { echo "$as_me:$LINENO: creating $ac_file" >&5
8107 echo "$as_me: creating $ac_file" >&6;}
8110 # Let's still pretend it is `configure' which instantiates (i.e., don't
8111 # use $as_me), people would be surprised to read:
8112 # /* config.h. Generated by config.status. */
8113 if test x
"$ac_file" = x-
; then
8116 configure_input
="$ac_file. "
8118 configure_input
=$configure_input"Generated from `echo $ac_file_in |
8119 sed 's,.*/,,'` by configure."
8121 # First look for the input files in the build tree, otherwise in the
8123 ac_file_inputs
=`IFS=:
8124 for f in $ac_file_in; do
8126 -) echo $tmp/stdin ;;
8128 # Absolute (can't be DOS-style, as IFS=:)
8129 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8130 echo "$as_me: error: cannot find input file: $f" >&2;}
8131 { (exit 1); exit 1; }; }
8134 if test -f "$f"; then
8137 elif test -f "$srcdir/$f"; then
8142 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8143 echo "$as_me: error: cannot find input file: $f" >&2;}
8144 { (exit 1); exit 1; }; }
8147 done` ||
{ (exit 1); exit 1; }
8149 cat >>$CONFIG_STATUS <<_ACEOF
8153 cat >>$CONFIG_STATUS <<\_ACEOF
8155 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8156 s
,@configure_input@
,$configure_input,;t t
8157 s
,@srcdir@
,$ac_srcdir,;t t
8158 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
8159 s
,@top_srcdir@
,$ac_top_srcdir,;t t
8160 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
8161 s
,@builddir@
,$ac_builddir,;t t
8162 s
,@abs_builddir@
,$ac_abs_builddir,;t t
8163 s
,@top_builddir@
,$ac_top_builddir,;t t
8164 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
8165 s
,@INSTALL@
,$ac_INSTALL,;t t
8166 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8168 if test x"$ac_file" != x-; then
8169 mv $tmp/out $ac_file
8177 cat >>$CONFIG_STATUS <<\_ACEOF
8180 # CONFIG_HEADER section.
8183 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
8184 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8186 # ac_d sets the value in "#define NAME VALUE" lines.
8187 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8188 ac_dB
='[ ].*$,\1#\2'
8191 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8192 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8193 ac_uB
='$,\1#\2define\3'
8197 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
8198 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8200 - |
*:- |
*:-:* ) # input from stdin
8202 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8203 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8204 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8205 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8206 * ) ac_file_in
=$ac_file.
in ;;
8209 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
8210 echo "$as_me: creating $ac_file" >&6;}
8212 # First look for the input files in the build tree, otherwise in the
8214 ac_file_inputs
=`IFS=:
8215 for f in $ac_file_in; do
8217 -) echo $tmp/stdin ;;
8219 # Absolute (can't be DOS-style, as IFS=:)
8220 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8221 echo "$as_me: error: cannot find input file: $f" >&2;}
8222 { (exit 1); exit 1; }; }
8223 # Do quote $f, to prevent DOS paths from being IFS'd.
8226 if test -f "$f"; then
8229 elif test -f "$srcdir/$f"; then
8234 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8235 echo "$as_me: error: cannot find input file: $f" >&2;}
8236 { (exit 1); exit 1; }; }
8239 done` ||
{ (exit 1); exit 1; }
8240 # Remove the trailing spaces.
8241 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8245 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8246 # `conftest.undefs', that substitutes the proper values into
8247 # config.h.in to produce config.h. The first handles `#define'
8248 # templates, and the second `#undef' templates.
8249 # And first: Protect against being on the right side of a sed subst in
8250 # config.status. Protect against being in an unquoted here document
8252 rm -f conftest.defines conftest.undefs
8253 # Using a here document instead of a string reduces the quoting nightmare.
8254 # Putting comments in sed scripts is not portable.
8256 # `end' is used to avoid that the second main sed command (meant for
8257 # 0-ary CPP macros) applies to n-ary macro definitions.
8258 # See the Autoconf documentation for `clear'.
8259 cat >confdef2sed.
sed <<\_ACEOF
8264 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8266 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8269 # If some macros were called several times there might be several times
8270 # the same #defines, which is useless. Nevertheless, we may not want to
8271 # sort them, since we want the *last* AC-DEFINE to be honored.
8272 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8273 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8274 rm -f confdef2sed.sed
8276 # This sed command replaces #undef with comments. This is necessary, for
8277 # example, in the case of _POSIX_SOURCE, which is predefined and required
8278 # on some systems where configure will not decide to define it.
8279 cat >>conftest.undefs <<\_ACEOF
8280 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8283 # Break up conftest.defines because some shells have a limit on the size
8284 # of here documents, and old seds have small limits too (100 cmds).
8285 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8286 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8287 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8288 echo ' :' >>$CONFIG_STATUS
8290 while grep . conftest.defines >/dev/null
8292 # Write a limited-size here document to $tmp/defines.sed.
8293 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8294 # Speed up: don't consider the non `#define' lines.
8295 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8296 # Work around the forget-to-reset-the-flag bug.
8297 echo 't clr' >>$CONFIG_STATUS
8298 echo ': clr' >>$CONFIG_STATUS
8299 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
8301 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8305 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
8306 rm -f conftest.defines
8307 mv conftest.
tail conftest.defines
8309 rm -f conftest.defines
8310 echo ' fi # grep' >>$CONFIG_STATUS
8311 echo >>$CONFIG_STATUS
8313 # Break up conftest.undefs because some shells have a limit on the size
8314 # of here documents, and old seds have small limits too (100 cmds).
8315 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8317 while grep . conftest.undefs
>/dev
/null
8319 # Write a limited-size here document to $tmp/undefs.sed.
8320 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8321 # Speed up: don't consider the non
`#undef'
8322 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8323 # Work around the forget-to-reset-the-flag bug.
8324 echo 't clr' >>$CONFIG_STATUS
8325 echo ': clr' >>$CONFIG_STATUS
8326 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8328 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8332 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8333 rm -f conftest.undefs
8334 mv conftest.tail conftest.undefs
8336 rm -f conftest.undefs
8338 cat >>$CONFIG_STATUS <<\_ACEOF
8339 # Let's still pretend it is `configure
' which instantiates (i.e., don't
8340 # use $as_me), people would be surprised to read:
8341 # /* config.h. Generated by config.status. */
8342 if test x
"$ac_file" = x-
; then
8343 echo "/* Generated by configure. */" >$tmp/config.h
8345 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8347 cat $tmp/in >>$tmp/config.h
8349 if test x
"$ac_file" != x-
; then
8350 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
8351 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8352 echo "$as_me: $ac_file is unchanged" >&6;}
8354 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
8355 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8356 X"$ac_file" : 'X\(//\)[^/]' \| \
8357 X"$ac_file" : 'X\(//\)$' \| \
8358 X"$ac_file" : 'X\(/\)' \| \
8359 . : '\(.\)' 2>/dev/null ||
8361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8362 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8363 /^X\(\/\/\)$/{ s//\1/; q; }
8364 /^X\(\/\).*/{ s//\1/; q; }
8366 { if $as_mkdir_p; then
8371 while test ! -d "$as_dir"; do
8372 as_dirs
="$as_dir $as_dirs"
8373 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8374 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8375 X"$as_dir" : 'X\(//\)[^/]' \| \
8376 X"$as_dir" : 'X\(//\)$' \| \
8377 X"$as_dir" : 'X\(/\)' \| \
8378 . : '\(.\)' 2>/dev/null ||
8380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8381 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8382 /^X\(\/\/\)$/{ s//\1/; q; }
8383 /^X\(\/\).*/{ s//\1/; q; }
8386 test ! -n "$as_dirs" || mkdir
$as_dirs
8387 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8388 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8389 { (exit 1); exit 1; }; }; }
8392 mv $tmp/config.h
$ac_file
8400 cat >>$CONFIG_STATUS <<\_ACEOF
8403 # CONFIG_COMMANDS section.
8405 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
8406 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
8407 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8408 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
8409 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8410 X"$ac_dest" : 'X\(//\)[^/]' \| \
8411 X"$ac_dest" : 'X\(//\)$' \| \
8412 X"$ac_dest" : 'X\(/\)' \| \
8413 . : '\(.\)' 2>/dev/null ||
8415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8416 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8417 /^X\(\/\/\)$/{ s//\1/; q; }
8418 /^X\(\/\).*/{ s//\1/; q; }
8420 { if $as_mkdir_p; then
8425 while test ! -d "$as_dir"; do
8426 as_dirs
="$as_dir $as_dirs"
8427 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8428 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8429 X"$as_dir" : 'X\(//\)[^/]' \| \
8430 X"$as_dir" : 'X\(//\)$' \| \
8431 X"$as_dir" : 'X\(/\)' \| \
8432 . : '\(.\)' 2>/dev/null ||
8434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8435 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8436 /^X\(\/\/\)$/{ s//\1/; q; }
8437 /^X\(\/\).*/{ s//\1/; q; }
8440 test ! -n "$as_dirs" || mkdir
$as_dirs
8441 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8442 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8443 { (exit 1); exit 1; }; }; }
8447 if test "$ac_dir" != .
; then
8448 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8449 # A "../" for each directory in $ac_dir_suffix.
8450 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8452 ac_dir_suffix
= ac_top_builddir
=
8456 .
) # No --srcdir option. We are building in place.
8458 if test -z "$ac_top_builddir"; then
8461 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
8463 [\\/]* | ?
:[\\/]* ) # Absolute path.
8464 ac_srcdir
=$srcdir$ac_dir_suffix;
8465 ac_top_srcdir
=$srcdir ;;
8467 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
8468 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
8471 # Do not use `cd foo && pwd` to compute absolute paths, because
8472 # the directories may not exist.
8474 .
) ac_abs_builddir
="$ac_dir";;
8477 .
) ac_abs_builddir
=`pwd`;;
8478 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
8479 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
8482 case $ac_abs_builddir in
8483 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8485 case ${ac_top_builddir}.
in
8486 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
8487 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8488 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
8491 case $ac_abs_builddir in
8492 .
) ac_abs_srcdir
=$ac_srcdir;;
8495 .
) ac_abs_srcdir
=$ac_abs_builddir;;
8496 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
8497 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
8500 case $ac_abs_builddir in
8501 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
8503 case $ac_top_srcdir in
8504 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
8505 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
8506 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
8511 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8512 echo "$as_me: executing $ac_dest commands" >&6;}
8515 for ac_file
in $CONFIG_FILES; do
8516 # Support "outfile[:infile[:infile...]]"
8518 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8520 # PO directories have a Makefile.in generated from Makefile.in.in.
8521 case "$ac_file" in */Makefile.
in)
8522 # Adjust a relative srcdir.
8523 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
8524 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
8525 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
8526 # In autoconf-2.13 it is called $ac_given_srcdir.
8527 # In autoconf-2.50 it is called $srcdir.
8528 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
8529 case "$ac_given_srcdir" in
8530 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
8531 /*) top_srcdir
="$ac_given_srcdir" ;;
8532 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
8534 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8535 rm -f "$ac_dir/POTFILES"
8536 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
8537 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
8538 POMAKEFILEDEPS
="POTFILES.in"
8539 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
8540 # on $ac_dir but don't depend on user-specified configuration
8542 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
8543 # The LINGUAS file contains the set of available languages.
8544 if test -n "$OBSOLETE_ALL_LINGUAS"; then
8545 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
8547 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
8548 # Hide the ALL_LINGUAS assigment from automake.
8549 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
8550 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
8552 # The set of available languages was given in configure.in.
8553 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
8555 case "$ac_given_srcdir" in
8557 *) srcdirpre
='$(srcdir)/' ;;
8563 for lang
in $ALL_LINGUAS; do
8564 POFILES
="$POFILES $srcdirpre$lang.po"
8565 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
8566 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
8567 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
8569 # CATALOGS depends on both $ac_dir and the user's LINGUAS
8570 # environment variable.
8572 if test -n "$ALL_LINGUAS"; then
8573 for presentlang
in $ALL_LINGUAS; do
8575 if test "%UNSET%" != "$LINGUAS"; then
8576 desiredlanguages
="$LINGUAS"
8578 desiredlanguages
="$ALL_LINGUAS"
8580 for desiredlang
in $desiredlanguages; do
8581 # Use the presentlang catalog if desiredlang is
8582 # a. equal to presentlang, or
8583 # b. a variant of presentlang (because in this case,
8584 # presentlang can be used as a fallback for messages
8585 # which are not translated in the desiredlang catalog).
8586 case "$desiredlang" in
8587 "$presentlang"*) useit
=yes;;
8590 if test $useit = yes; then
8591 INST_LINGUAS
="$INST_LINGUAS $presentlang"
8596 if test -n "$INST_LINGUAS"; then
8597 for lang
in $INST_LINGUAS; do
8598 CATALOGS
="$CATALOGS $lang.gmo"
8601 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
8602 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"
8603 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
8604 if test -f "$f"; then
8606 *.orig |
*.bak |
*~
) ;;
8607 *) cat "$f" >> "$ac_dir/Makefile" ;;
8619 cat >>$CONFIG_STATUS <<\_ACEOF
8621 { (exit 0); exit 0; }
8623 chmod +x
$CONFIG_STATUS
8624 ac_clean_files
=$ac_clean_files_save
8627 # configure is writing to config.log, and then calls config.status.
8628 # config.status does its own redirection, appending to config.log.
8629 # Unfortunately, on DOS this fails, as config.log is still kept open
8630 # by configure, so config.status won't be able to write to it; its
8631 # output is simply discarded. So we exec the FD to /dev/null,
8632 # effectively closing config.log, so it can be properly (re)opened and
8633 # appended to by config.status. When coming back to configure, we
8634 # need to make the FD available again.
8635 if test "$no_create" != yes; then
8637 ac_config_status_args
=
8638 test "$silent" = yes &&
8639 ac_config_status_args
="$ac_config_status_args --quiet"
8641 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
8643 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8644 # would make configure fail if this is the last instruction.
8645 $ac_cs_success ||
{ (exit 1); exit 1; }