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="configure.in"
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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP PKG_CONFIG PACKAGE_CFLAGS PACKAGE_LIBS GETTEXT_PACKAGE USE_NLS MSGFMT GMSGFMT XGETTEXT CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLLIBS PO_IN_DATADIR_TRUE PO_IN_DATADIR_FALSE POFILES POSUB MKINSTALLDIRS 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 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
841 if test -n "$ac_init_help"; then
846 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
847 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
848 --enable-maintainer-mode enable make rules and dependencies not useful
849 (and sometimes confusing) to the casual installer
850 --disable-dependency-tracking Speeds up one-time builds
851 --enable-dependency-tracking Do not reject slow dependency extractors
853 Some influential environment variables:
854 CC C compiler command
855 CFLAGS C compiler flags
856 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
857 nonstandard directory <lib dir>
858 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
859 headers in a nonstandard directory <include dir>
862 Use these variables to override the choices made by `configure' or to help
863 it to find libraries and programs with nonstandard names/locations.
868 if test "$ac_init_help" = "recursive"; then
869 # If there are subdirs, report their specific --help.
871 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
872 test -d $ac_dir || continue
875 if test "$ac_dir" != .; then
876 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
877 # A "../" for each directory in $ac_dir_suffix.
878 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
880 ac_dir_suffix= ac_top_builddir=
884 .) # No --srcdir option. We are building in place.
886 if test -z "$ac_top_builddir"; then
889 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
891 [\\/]* | ?:[\\/]* ) # Absolute path.
892 ac_srcdir=$srcdir$ac_dir_suffix;
893 ac_top_srcdir=$srcdir ;;
895 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
896 ac_top_srcdir=$ac_top_builddir$srcdir ;;
899 # Do not use `cd foo && pwd` to compute absolute paths, because
900 # the directories may not exist.
902 .) ac_abs_builddir="$ac_dir";;
905 .) ac_abs_builddir=`pwd`;;
906 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
907 *) ac_abs_builddir=`pwd`/"$ac_dir";;
910 case $ac_abs_builddir in
911 .) ac_abs_top_builddir=${ac_top_builddir}.;;
913 case ${ac_top_builddir}. in
914 .) ac_abs_top_builddir=$ac_abs_builddir;;
915 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
916 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
919 case $ac_abs_builddir in
920 .) ac_abs_srcdir=$ac_srcdir;;
923 .) ac_abs_srcdir=$ac_abs_builddir;;
924 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
925 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
928 case $ac_abs_builddir in
929 .) ac_abs_top_srcdir=$ac_top_srcdir;;
931 case $ac_top_srcdir in
932 .) ac_abs_top_srcdir=$ac_abs_builddir;;
933 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
934 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
939 # Check for guested configure; otherwise get Cygnus style configure.
940 if test -f $ac_srcdir/configure.gnu; then
942 $SHELL $ac_srcdir/configure.gnu --help=recursive
943 elif test -f $ac_srcdir/configure; then
945 $SHELL $ac_srcdir/configure --help=recursive
946 elif test -f $ac_srcdir/configure.ac ||
947 test -f $ac_srcdir/configure.in; then
951 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
957 test -n "$ac_init_help" && exit 0
958 if $ac_init_version; then
961 Copyright (C) 2003 Free Software Foundation, Inc.
962 This configure script is free software; the Free Software Foundation
963 gives unlimited permission to copy, distribute and modify it.
969 This file contains any messages produced by compilers while
970 running configure, to aid debugging if configure makes a mistake.
972 It was created by $as_me, which was
973 generated by GNU Autoconf 2.59. Invocation command line was
984 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
985 uname -m = `(uname -m) 2>/dev/null || echo unknown`
986 uname -r = `(uname -r) 2>/dev/null || echo unknown`
987 uname -s = `(uname -s) 2>/dev/null || echo unknown`
988 uname -v = `(uname -v) 2>/dev/null || echo unknown`
990 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
991 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
993 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
994 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
995 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
996 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
997 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
998 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
999 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1007 test -z "$as_dir" && as_dir=.
1008 echo "PATH: $as_dir"
1023 # Keep a trace of the command line.
1024 # Strip out --no-create and --no-recursion so they do not pile up.
1025 # Strip out --silent because we don't want to record it for future runs.
1026 # Also quote any args containing shell meta-characters.
1027 # Make two passes to allow for proper duplicate-argument suppression.
1032 ac_must_keep_next=false
1038 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1039 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1040 | -silent | --silent | --silen | --sile | --sil)
1042 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1043 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1046 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1048 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1049 if test $ac_must_keep_next = true; then
1050 ac_must_keep_next=false # Got value, back to normal.
1053 *=* | --config-cache | -C | -disable-* | --disable-* \
1054 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1055 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1056 | -with-* | --with-* | -without-* | --without-* | --x)
1057 case "$ac_configure_args0 " in
1058 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1061 -* ) ac_must_keep_next=true ;;
1064 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1065 # Get rid of the leading space.
1071 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1072 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1074 # When interrupted or exit'd, cleanup temporary files, and complete
1075 # config.log. We remove comments because anyway the quotes in there
1076 # would cause problems or look ugly.
1077 # WARNING: Be sure not to use single quotes in there, as some shells,
1078 # such as our DU 5.0 friend, will then `close' the trap.
1079 trap 'exit_status=$?
1080 # Save into config.log some information that might help in debugging.
1085 ## ---------------- ##
1086 ## Cache variables. ##
1087 ## ---------------- ##
1090 # The following way of writing the cache mishandles newlines in values,
1093 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1096 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1097 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1101 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1108 ## ----------------- ##
1109 ## Output variables. ##
1110 ## ----------------- ##
1113 for ac_var in $ac_subst_vars
1115 eval ac_val=$`echo $ac_var`
1116 echo "$ac_var='"'"'$ac_val'"'"'"
1120 if test -n "$ac_subst_files"; then
1127 for ac_var in $ac_subst_files
1129 eval ac_val=$`echo $ac_var`
1130 echo "$ac_var='"'"'$ac_val'"'"'"
1135 if test -s confdefs.h; then
1142 sed "/^$/d" confdefs.h | sort
1145 test "$ac_signal" != 0 &&
1146 echo "$as_me: caught signal $ac_signal"
1147 echo "$as_me: exit $exit_status"
1149 rm -f core *.core &&
1150 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1153 for ac_signal in 1 2 13 15; do
1154 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1158 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1159 rm -rf conftest* confdefs.h
1160 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1163 # Predefined preprocessor variables.
1165 cat >>confdefs.h <<_ACEOF
1166 #define PACKAGE_NAME "$PACKAGE_NAME"
1170 cat >>confdefs.h <<_ACEOF
1171 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_STRING "$PACKAGE_STRING"
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1190 # Let the site file select an alternate cache file if it wants to.
1191 # Prefer explicitly selected file to automatically selected ones.
1192 if test -z "$CONFIG_SITE"; then
1193 if test "x$prefix" != xNONE; then
1194 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1196 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1199 for ac_site_file in $CONFIG_SITE; do
1200 if test -r "$ac_site_file"; then
1201 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1202 echo "$as_me: loading site script $ac_site_file" >&6;}
1203 sed 's/^/| /' "$ac_site_file" >&5
1208 if test -r "$cache_file"; then
1209 # Some versions of bash will fail to source /dev/null (special
1210 # files actually), so we avoid doing that.
1211 if test -f "$cache_file"; then
1212 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1213 echo "$as_me: loading cache $cache_file" >&6;}
1215 [\\/]* | ?:[\\/]* ) . $cache_file;;
1216 *) . ./$cache_file;;
1220 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1221 echo "$as_me: creating cache $cache_file" >&6;}
1225 # Check that the precious variables saved in the cache have kept the same
1227 ac_cache_corrupted=false
1228 for ac_var in `(set) 2>&1 |
1229 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1230 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1231 eval ac_new_set=\$ac_env_${ac_var}_set
1232 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1233 eval ac_new_val="\$ac_env_${ac_var}_value"
1234 case $ac_old_set,$ac_new_set in
1236 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1237 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1238 ac_cache_corrupted=: ;;
1240 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1241 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1242 ac_cache_corrupted=: ;;
1245 if test "x$ac_old_val" != "x$ac_new_val"; then
1246 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1247 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1248 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1249 echo "$as_me: former value: $ac_old_val" >&2;}
1250 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1251 echo "$as_me: current value: $ac_new_val" >&2;}
1252 ac_cache_corrupted=:
1255 # Pass precious variables to config.status.
1256 if test "$ac_new_set" = set; then
1258 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1259 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1260 *) ac_arg=$ac_var=$ac_new_val ;;
1262 case " $ac_configure_args " in
1263 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1264 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1268 if $ac_cache_corrupted; then
1269 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1270 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1271 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1272 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1273 { (exit 1); exit 1; }; }
1277 ac_cpp='$CPP $CPPFLAGS'
1278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1300 am__api_version="1.7"
1302 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1303 if test -f $ac_dir/install-sh; then
1305 ac_install_sh="$ac_aux_dir/install-sh -c"
1307 elif test -f $ac_dir/install.sh; then
1309 ac_install_sh="$ac_aux_dir/install.sh -c"
1311 elif test -f $ac_dir/shtool; then
1313 ac_install_sh="$ac_aux_dir/shtool install -c"
1317 if test -z "$ac_aux_dir"; then
1318 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1319 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1320 { (exit 1); exit 1; }; }
1322 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1323 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1324 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1326 # Find a good install program. We prefer a C program (faster),
1327 # so one script is as good as another. But avoid the broken or
1328 # incompatible versions:
1329 # SysV /etc/install, /usr/sbin/install
1330 # SunOS /usr/etc/install
1331 # IRIX /sbin/install
1333 # AmigaOS /C/install, which installs bootblocks on floppy discs
1334 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1335 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1336 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1337 # OS/2's system install, which has a completely different semantic
1338 # ./install, which can be erroneously created by make from ./install.sh.
1339 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1340 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1341 if test -z "$INSTALL"; then
1342 if test "${ac_cv_path_install+set}" = set; then
1343 echo $ECHO_N "(cached) $ECHO_C" >&6
1345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1349 test -z "$as_dir" && as_dir=.
1350 # Account for people who put trailing slashes in PATH elements.
1352 ./ | .// | /cC/* | \
1353 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1354 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1357 # OSF1 and SCO ODT 3.0 have their own names for install.
1358 # Don't use installbsd from OSF since it installs stuff as root
1360 for ac_prog in ginstall scoinst install; do
1361 for ac_exec_ext in '' $ac_executable_extensions; do
1362 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1363 if test $ac_prog = install &&
1364 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1365 # AIX install. It has an incompatible calling convention.
1367 elif test $ac_prog = install &&
1368 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1369 # program-specific install script used by HP pwplus--don't use.
1372 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1384 if test "${ac_cv_path_install+set}" = set; then
1385 INSTALL=$ac_cv_path_install
1387 # As a last resort, use the slow shell script. We don't cache a
1388 # path for INSTALL within a source directory, because that will
1389 # break other packages using the cache if that directory is
1390 # removed, or if the path is relative.
1391 INSTALL=$ac_install_sh
1394 echo "$as_me:$LINENO: result: $INSTALL" >&5
1395 echo "${ECHO_T}$INSTALL" >&6
1397 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1398 # It thinks the first close brace ends the variable substitution.
1399 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1401 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1403 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1405 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1406 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1409 echo timestamp > conftest.file
1410 # Do `set' in a subshell so we don't clobber the current shell's
1411 # arguments. Must try -L first in case configure is actually a
1412 # symlink; some systems play weird games with the mod time of symlinks
1413 # (eg FreeBSD returns the mod time of the symlink's containing
1416 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1417 if test "$*" = "X"; then
1419 set X `ls -t $srcdir/configure conftest.file`
1422 if test "$*" != "X $srcdir/configure conftest.file" \
1423 && test "$*" != "X conftest.file $srcdir/configure"; then
1425 # If neither matched, then we have a broken ls. This can happen
1426 # if, for instance, CONFIG_SHELL is bash and it inherits a
1427 # broken ls alias from the environment. This has actually
1428 # happened. Such a system could not be considered "sane".
1429 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1430 alias in your environment" >&5
1431 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1432 alias in your environment" >&2;}
1433 { (exit 1); exit 1; }; }
1436 test "$2" = conftest.file
1442 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1443 Check your system clock" >&5
1444 echo "$as_me: error: newly created file is older than distributed files!
1445 Check your system clock" >&2;}
1446 { (exit 1); exit 1; }; }
1448 echo "$as_me:$LINENO: result: yes" >&5
1449 echo "${ECHO_T}yes" >&6
1450 test "$program_prefix" != NONE &&
1451 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1452 # Use a double $ so make ignores it.
1453 test "$program_suffix" != NONE &&
1454 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1455 # Double any \ or $. echo might interpret backslashes.
1456 # By default was `s,x,x', remove it if useless.
1457 cat <<\_ACEOF >conftest.sed
1458 s/[\\$]/&&/g;s/;s,x,x,$//
1460 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1464 # expand $ac_aux_dir to an absolute path
1465 am_aux_dir=`cd $ac_aux_dir && pwd`
1467 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1468 # Use eval to expand $SHELL
1469 if eval "$MISSING --run true"; then
1470 am_missing_run="$MISSING --run "
1473 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1474 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1477 for ac_prog in gawk mawk nawk awk
1479 # Extract the first word of "$ac_prog", so it can be a program name with args.
1480 set dummy $ac_prog; ac_word=$2
1481 echo "$as_me:$LINENO: checking for $ac_word" >&5
1482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1483 if test "${ac_cv_prog_AWK+set}" = set; then
1484 echo $ECHO_N "(cached) $ECHO_C" >&6
1486 if test -n "$AWK"; then
1487 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1493 test -z "$as_dir" && as_dir=.
1494 for ac_exec_ext in '' $ac_executable_extensions; do
1495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1496 ac_cv_prog_AWK="$ac_prog"
1497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1506 if test -n "$AWK"; then
1507 echo "$as_me:$LINENO: result: $AWK" >&5
1508 echo "${ECHO_T}$AWK" >&6
1510 echo "$as_me:$LINENO: result: no" >&5
1511 echo "${ECHO_T}no" >&6
1514 test -n "$AWK" && break
1517 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1518 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1519 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1520 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1523 cat >conftest.make <<\_ACEOF
1525 @echo 'ac_maketemp="$(MAKE)"'
1527 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1528 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1529 if test -n "$ac_maketemp"; then
1530 eval ac_cv_prog_make_${ac_make}_set=yes
1532 eval ac_cv_prog_make_${ac_make}_set=no
1536 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1537 echo "$as_me:$LINENO: result: yes" >&5
1538 echo "${ECHO_T}yes" >&6
1541 echo "$as_me:$LINENO: result: no" >&5
1542 echo "${ECHO_T}no" >&6
1543 SET_MAKE="MAKE=${MAKE-make}"
1546 rm -rf .tst 2>/dev/null
1547 mkdir .tst 2>/dev/null
1548 if test -d .tst; then
1553 rmdir .tst 2>/dev/null
1555 # test to see if srcdir already configured
1556 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1557 test -f $srcdir/config.status; then
1558 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1559 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1560 { (exit 1); exit 1; }; }
1563 # test whether we have cygpath
1564 if test -z "$CYGPATH_W"; then
1565 if (cygpath --version) >/dev/null 2>/dev/null; then
1566 CYGPATH_W='cygpath -w'
1573 # Define the identity of the package.
1578 cat >>confdefs.h <<_ACEOF
1579 #define PACKAGE "$PACKAGE"
1583 cat >>confdefs.h <<_ACEOF
1584 #define VERSION "$VERSION"
1587 # Some tools Automake needs.
1589 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1592 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1595 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1598 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1601 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1604 AMTAR=${AMTAR-"${am_missing_run}tar"}
1606 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1608 # Installed binaries are usually stripped using `strip' when the user
1609 # run `make install-strip'. However `strip' might not be the right
1610 # tool to use in cross-compilation environments, therefore Automake
1611 # will honor the `STRIP' environment variable to overrule this program.
1612 if test "$cross_compiling" != no; then
1613 if test -n "$ac_tool_prefix"; then
1614 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1615 set dummy ${ac_tool_prefix}strip; ac_word=$2
1616 echo "$as_me:$LINENO: checking for $ac_word" >&5
1617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1618 if test "${ac_cv_prog_STRIP+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1621 if test -n "$STRIP"; then
1622 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1628 test -z "$as_dir" && as_dir=.
1629 for ac_exec_ext in '' $ac_executable_extensions; do
1630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1631 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1640 STRIP=$ac_cv_prog_STRIP
1641 if test -n "$STRIP"; then
1642 echo "$as_me:$LINENO: result: $STRIP" >&5
1643 echo "${ECHO_T}$STRIP" >&6
1645 echo "$as_me:$LINENO: result: no" >&5
1646 echo "${ECHO_T}no" >&6
1650 if test -z "$ac_cv_prog_STRIP"; then
1652 # Extract the first word of "strip", so it can be a program name with args.
1653 set dummy strip; ac_word=$2
1654 echo "$as_me:$LINENO: checking for $ac_word" >&5
1655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1656 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1657 echo $ECHO_N "(cached) $ECHO_C" >&6
1659 if test -n "$ac_ct_STRIP"; then
1660 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666 test -z "$as_dir" && as_dir=.
1667 for ac_exec_ext in '' $ac_executable_extensions; do
1668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1669 ac_cv_prog_ac_ct_STRIP="strip"
1670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1676 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1679 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1680 if test -n "$ac_ct_STRIP"; then
1681 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1682 echo "${ECHO_T}$ac_ct_STRIP" >&6
1684 echo "$as_me:$LINENO: result: no" >&5
1685 echo "${ECHO_T}no" >&6
1690 STRIP="$ac_cv_prog_STRIP"
1694 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1696 # We need awk for the "check" target. The system "awk" is bad on
1701 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1702 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1703 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1704 if test "${enable_maintainer_mode+set}" = set; then
1705 enableval="$enable_maintainer_mode"
1706 USE_MAINTAINER_MODE=$enableval
1708 USE_MAINTAINER_MODE=no
1710 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1711 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1714 if test $USE_MAINTAINER_MODE = yes; then
1715 MAINTAINER_MODE_TRUE=
1716 MAINTAINER_MODE_FALSE='#'
1718 MAINTAINER_MODE_TRUE='#'
1719 MAINTAINER_MODE_FALSE=
1722 MAINT=$MAINTAINER_MODE_TRUE
1725 ac_config_headers="$ac_config_headers config.h"
1728 DEPDIR="${am__leading_dot}deps"
1730 ac_config_commands="$ac_config_commands depfiles"
1733 am_make=${MAKE-make}
1734 cat > confinc << 'END'
1739 # If we don't find an include directive, just comment out the code.
1740 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1741 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1745 # First try GNU make style include.
1746 echo "include confinc" > confmf
1747 # We grep out `Entering directory' and `Leaving directory'
1748 # messages which can occur if `w' ends up in MAKEFLAGS.
1749 # In particular we don't look at `^make:' because GNU make might
1750 # be invoked under some other name (usually "gmake"), in which
1751 # case it prints its new name instead of `make'.
1752 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1757 # Now try BSD make style include.
1758 if test "$am__include" = "#"; then
1759 echo '.include "confinc"' > confmf
1760 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1761 am__include=.include
1768 echo "$as_me:$LINENO: result: $_am_result" >&5
1769 echo "${ECHO_T}$_am_result" >&6
1770 rm -f confinc confmf
1772 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1773 if test "${enable_dependency_tracking+set}" = set; then
1774 enableval="$enable_dependency_tracking"
1777 if test "x$enable_dependency_tracking" != xno; then
1778 am_depcomp="$ac_aux_dir/depcomp"
1783 if test "x$enable_dependency_tracking" != xno; then
1794 ac_cpp='$CPP $CPPFLAGS'
1795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1798 if test -n "$ac_tool_prefix"; then
1799 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1800 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1801 echo "$as_me:$LINENO: checking for $ac_word" >&5
1802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1803 if test "${ac_cv_prog_CC+set}" = set; then
1804 echo $ECHO_N "(cached) $ECHO_C" >&6
1806 if test -n "$CC"; then
1807 ac_cv_prog_CC="$CC" # Let the user override the test.
1809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1813 test -z "$as_dir" && as_dir=.
1814 for ac_exec_ext in '' $ac_executable_extensions; do
1815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1816 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1826 if test -n "$CC"; then
1827 echo "$as_me:$LINENO: result: $CC" >&5
1828 echo "${ECHO_T}$CC" >&6
1830 echo "$as_me:$LINENO: result: no" >&5
1831 echo "${ECHO_T}no" >&6
1835 if test -z "$ac_cv_prog_CC"; then
1837 # Extract the first word of "gcc", so it can be a program name with args.
1838 set dummy gcc; ac_word=$2
1839 echo "$as_me:$LINENO: checking for $ac_word" >&5
1840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1841 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1842 echo $ECHO_N "(cached) $ECHO_C" >&6
1844 if test -n "$ac_ct_CC"; then
1845 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1851 test -z "$as_dir" && as_dir=.
1852 for ac_exec_ext in '' $ac_executable_extensions; do
1853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1854 ac_cv_prog_ac_ct_CC="gcc"
1855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1863 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1864 if test -n "$ac_ct_CC"; then
1865 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1866 echo "${ECHO_T}$ac_ct_CC" >&6
1868 echo "$as_me:$LINENO: result: no" >&5
1869 echo "${ECHO_T}no" >&6
1877 if test -z "$CC"; then
1878 if test -n "$ac_tool_prefix"; then
1879 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1880 set dummy ${ac_tool_prefix}cc; ac_word=$2
1881 echo "$as_me:$LINENO: checking for $ac_word" >&5
1882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1883 if test "${ac_cv_prog_CC+set}" = set; then
1884 echo $ECHO_N "(cached) $ECHO_C" >&6
1886 if test -n "$CC"; then
1887 ac_cv_prog_CC="$CC" # Let the user override the test.
1889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893 test -z "$as_dir" && as_dir=.
1894 for ac_exec_ext in '' $ac_executable_extensions; do
1895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1896 ac_cv_prog_CC="${ac_tool_prefix}cc"
1897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1906 if test -n "$CC"; then
1907 echo "$as_me:$LINENO: result: $CC" >&5
1908 echo "${ECHO_T}$CC" >&6
1910 echo "$as_me:$LINENO: result: no" >&5
1911 echo "${ECHO_T}no" >&6
1915 if test -z "$ac_cv_prog_CC"; then
1917 # Extract the first word of "cc", so it can be a program name with args.
1918 set dummy cc; ac_word=$2
1919 echo "$as_me:$LINENO: checking for $ac_word" >&5
1920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1921 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1922 echo $ECHO_N "(cached) $ECHO_C" >&6
1924 if test -n "$ac_ct_CC"; then
1925 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1931 test -z "$as_dir" && as_dir=.
1932 for ac_exec_ext in '' $ac_executable_extensions; do
1933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1934 ac_cv_prog_ac_ct_CC="cc"
1935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1943 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1944 if test -n "$ac_ct_CC"; then
1945 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1946 echo "${ECHO_T}$ac_ct_CC" >&6
1948 echo "$as_me:$LINENO: result: no" >&5
1949 echo "${ECHO_T}no" >&6
1958 if test -z "$CC"; then
1959 # Extract the first word of "cc", so it can be a program name with args.
1960 set dummy cc; ac_word=$2
1961 echo "$as_me:$LINENO: checking for $ac_word" >&5
1962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1963 if test "${ac_cv_prog_CC+set}" = set; then
1964 echo $ECHO_N "(cached) $ECHO_C" >&6
1966 if test -n "$CC"; then
1967 ac_cv_prog_CC="$CC" # Let the user override the test.
1970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1974 test -z "$as_dir" && as_dir=.
1975 for ac_exec_ext in '' $ac_executable_extensions; do
1976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1977 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1978 ac_prog_rejected=yes
1982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1988 if test $ac_prog_rejected = yes; then
1989 # We found a bogon in the path, so make sure we never use it.
1990 set dummy $ac_cv_prog_CC
1992 if test $# != 0; then
1993 # We chose a different compiler from the bogus one.
1994 # However, it has the same basename, so the bogon will be chosen
1995 # first if we set CC to just the basename; use the full file name.
1997 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2003 if test -n "$CC"; then
2004 echo "$as_me:$LINENO: result: $CC" >&5
2005 echo "${ECHO_T}$CC" >&6
2007 echo "$as_me:$LINENO: result: no" >&5
2008 echo "${ECHO_T}no" >&6
2012 if test -z "$CC"; then
2013 if test -n "$ac_tool_prefix"; then
2016 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2017 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2018 echo "$as_me:$LINENO: checking for $ac_word" >&5
2019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2020 if test "${ac_cv_prog_CC+set}" = set; then
2021 echo $ECHO_N "(cached) $ECHO_C" >&6
2023 if test -n "$CC"; then
2024 ac_cv_prog_CC="$CC" # Let the user override the test.
2026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030 test -z "$as_dir" && as_dir=.
2031 for ac_exec_ext in '' $ac_executable_extensions; do
2032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2033 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2043 if test -n "$CC"; then
2044 echo "$as_me:$LINENO: result: $CC" >&5
2045 echo "${ECHO_T}$CC" >&6
2047 echo "$as_me:$LINENO: result: no" >&5
2048 echo "${ECHO_T}no" >&6
2051 test -n "$CC" && break
2054 if test -z "$CC"; then
2058 # Extract the first word of "$ac_prog", so it can be a program name with args.
2059 set dummy $ac_prog; ac_word=$2
2060 echo "$as_me:$LINENO: checking for $ac_word" >&5
2061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2062 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2063 echo $ECHO_N "(cached) $ECHO_C" >&6
2065 if test -n "$ac_ct_CC"; then
2066 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2072 test -z "$as_dir" && as_dir=.
2073 for ac_exec_ext in '' $ac_executable_extensions; do
2074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2075 ac_cv_prog_ac_ct_CC="$ac_prog"
2076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2084 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2085 if test -n "$ac_ct_CC"; then
2086 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2087 echo "${ECHO_T}$ac_ct_CC" >&6
2089 echo "$as_me:$LINENO: result: no" >&5
2090 echo "${ECHO_T}no" >&6
2093 test -n "$ac_ct_CC" && break
2102 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2103 See \`config.log' for more details." >&5
2104 echo "$as_me: error: no acceptable C compiler found in \$PATH
2105 See \`config.log' for more details." >&2;}
2106 { (exit 1); exit 1; }; }
2108 # Provide some information about the compiler.
2109 echo "$as_me:$LINENO:" \
2110 "checking for C compiler version" >&5
2111 ac_compiler=`set X $ac_compile; echo $2`
2112 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2113 (eval $ac_compiler --version </dev/null >&5) 2>&5
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); }
2117 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2118 (eval $ac_compiler -v </dev/null >&5) 2>&5
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); }
2122 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2123 (eval $ac_compiler -V </dev/null >&5) 2>&5
2125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126 (exit $ac_status); }
2128 cat >conftest.$ac_ext <<_ACEOF
2131 cat confdefs.h >>conftest.$ac_ext
2132 cat >>conftest.$ac_ext <<_ACEOF
2133 /* end confdefs.h. */
2143 ac_clean_files_save=$ac_clean_files
2144 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2145 # Try to create an executable without -o first, disregard a.out.
2146 # It will help us diagnose broken compilers, and finding out an intuition
2148 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2149 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2150 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2151 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2152 (eval $ac_link_default) 2>&5
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }; then
2156 # Find the output, starting from the most likely. This scheme is
2157 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2160 # Be careful to initialize this variable, since it used to be cached.
2161 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2163 # b.out is created by i960 compilers.
2164 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2166 test -f "$ac_file" || continue
2168 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2171 # This is the source file.
2174 # We found the default executable, but exeext='' is most
2178 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2179 # FIXME: I believe we export ac_cv_exeext for Libtool,
2180 # but it would be cool to find out if it's true. Does anybody
2181 # maintain Libtool? --akim.
2189 echo "$as_me: failed program was:" >&5
2190 sed 's/^/| /' conftest.$ac_ext >&5
2192 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2193 See \`config.log' for more details." >&5
2194 echo "$as_me: error: C compiler cannot create executables
2195 See \`config.log' for more details." >&2;}
2196 { (exit 77); exit 77; }; }
2199 ac_exeext=$ac_cv_exeext
2200 echo "$as_me:$LINENO: result: $ac_file" >&5
2201 echo "${ECHO_T}$ac_file" >&6
2203 # Check the compiler produces executables we can run. If not, either
2204 # the compiler is broken, or we cross compile.
2205 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2206 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2207 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2208 # If not cross compiling, check that we can run a simple program.
2209 if test "$cross_compiling" != yes; then
2210 if { ac_try='./$ac_file'
2211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); }; }; then
2218 if test "$cross_compiling" = maybe; then
2221 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2222 If you meant to cross compile, use \`--host'.
2223 See \`config.log' for more details." >&5
2224 echo "$as_me: error: cannot run C compiled programs.
2225 If you meant to cross compile, use \`--host'.
2226 See \`config.log' for more details." >&2;}
2227 { (exit 1); exit 1; }; }
2231 echo "$as_me:$LINENO: result: yes" >&5
2232 echo "${ECHO_T}yes" >&6
2234 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2235 ac_clean_files=$ac_clean_files_save
2236 # Check the compiler produces executables we can run. If not, either
2237 # the compiler is broken, or we cross compile.
2238 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2239 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2240 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2241 echo "${ECHO_T}$cross_compiling" >&6
2243 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2244 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2246 (eval $ac_link) 2>&5
2248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249 (exit $ac_status); }; then
2250 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2251 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2252 # work properly (i.e., refer to `conftest.exe'), while it won't with
2254 for ac_file in conftest.exe conftest conftest.*; do
2255 test -f "$ac_file" || continue
2257 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2258 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2265 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2266 See \`config.log' for more details." >&5
2267 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2268 See \`config.log' for more details." >&2;}
2269 { (exit 1); exit 1; }; }
2272 rm -f conftest$ac_cv_exeext
2273 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2274 echo "${ECHO_T}$ac_cv_exeext" >&6
2276 rm -f conftest.$ac_ext
2277 EXEEXT=$ac_cv_exeext
2279 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2280 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2281 if test "${ac_cv_objext+set}" = set; then
2282 echo $ECHO_N "(cached) $ECHO_C" >&6
2284 cat >conftest.$ac_ext <<_ACEOF
2287 cat confdefs.h >>conftest.$ac_ext
2288 cat >>conftest.$ac_ext <<_ACEOF
2289 /* end confdefs.h. */
2299 rm -f conftest.o conftest.obj
2300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2301 (eval $ac_compile) 2>&5
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); }; then
2305 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2307 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2308 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2313 echo "$as_me: failed program was:" >&5
2314 sed 's/^/| /' conftest.$ac_ext >&5
2316 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2317 See \`config.log' for more details." >&5
2318 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2319 See \`config.log' for more details." >&2;}
2320 { (exit 1); exit 1; }; }
2323 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2325 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2326 echo "${ECHO_T}$ac_cv_objext" >&6
2327 OBJEXT=$ac_cv_objext
2329 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2330 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2331 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2332 echo $ECHO_N "(cached) $ECHO_C" >&6
2334 cat >conftest.$ac_ext <<_ACEOF
2337 cat confdefs.h >>conftest.$ac_ext
2338 cat >>conftest.$ac_ext <<_ACEOF
2339 /* end confdefs.h. */
2352 rm -f conftest.$ac_objext
2353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2354 (eval $ac_compile) 2>conftest.er1
2356 grep -v '^ *+' conftest.er1 >conftest.err
2358 cat conftest.err >&5
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); } &&
2361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }; } &&
2367 { ac_try='test -s conftest.$ac_objext'
2368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }; }; then
2375 echo "$as_me: failed program was:" >&5
2376 sed 's/^/| /' conftest.$ac_ext >&5
2380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2381 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2384 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2385 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2386 GCC=`test $ac_compiler_gnu = yes && echo yes`
2387 ac_test_CFLAGS=${CFLAGS+set}
2388 ac_save_CFLAGS=$CFLAGS
2390 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2391 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2392 if test "${ac_cv_prog_cc_g+set}" = set; then
2393 echo $ECHO_N "(cached) $ECHO_C" >&6
2395 cat >conftest.$ac_ext <<_ACEOF
2398 cat confdefs.h >>conftest.$ac_ext
2399 cat >>conftest.$ac_ext <<_ACEOF
2400 /* end confdefs.h. */
2410 rm -f conftest.$ac_objext
2411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2412 (eval $ac_compile) 2>conftest.er1
2414 grep -v '^ *+' conftest.er1 >conftest.err
2416 cat conftest.err >&5
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); } &&
2419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }; } &&
2425 { ac_try='test -s conftest.$ac_objext'
2426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }; }; then
2433 echo "$as_me: failed program was:" >&5
2434 sed 's/^/| /' conftest.$ac_ext >&5
2438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2440 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2441 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2442 if test "$ac_test_CFLAGS" = set; then
2443 CFLAGS=$ac_save_CFLAGS
2444 elif test $ac_cv_prog_cc_g = yes; then
2445 if test "$GCC" = yes; then
2451 if test "$GCC" = yes; then
2457 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2458 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2459 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2460 echo $ECHO_N "(cached) $ECHO_C" >&6
2462 ac_cv_prog_cc_stdc=no
2464 cat >conftest.$ac_ext <<_ACEOF
2467 cat confdefs.h >>conftest.$ac_ext
2468 cat >>conftest.$ac_ext <<_ACEOF
2469 /* end confdefs.h. */
2472 #include <sys/types.h>
2473 #include <sys/stat.h>
2474 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2475 struct buf { int x; };
2476 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2477 static char *e (p, i)
2483 static char *f (char * (*g) (char **, int), char **p, ...)
2488 s = g (p, va_arg (v,int));
2493 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2494 function prototypes and stuff, but not '\xHH' hex character constants.
2495 These don't provoke an error unfortunately, instead are silently treated
2496 as 'x'. The following induces an error, until -std1 is added to get
2497 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2498 array size at least. It's necessary to write '\x00'==0 to get something
2499 that's true only with -std1. */
2500 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2502 int test (int i, double x);
2503 struct s1 {int (*f) (int a);};
2504 struct s2 {int (*f) (double a);};
2505 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2511 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2516 # Don't try gcc -ansi; that turns off useful extensions and
2517 # breaks some systems' header files.
2518 # AIX -qlanglvl=ansi
2519 # Ultrix and OSF/1 -std1
2520 # HP-UX 10.20 and later -Ae
2521 # HP-UX older versions -Aa -D_HPUX_SOURCE
2522 # SVR4 -Xc -D__EXTENSIONS__
2523 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2525 CC="$ac_save_CC $ac_arg"
2526 rm -f conftest.$ac_objext
2527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2528 (eval $ac_compile) 2>conftest.er1
2530 grep -v '^ *+' conftest.er1 >conftest.err
2532 cat conftest.err >&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); } &&
2535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }; } &&
2541 { ac_try='test -s conftest.$ac_objext'
2542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }; }; then
2547 ac_cv_prog_cc_stdc=$ac_arg
2550 echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.$ac_ext >&5
2554 rm -f conftest.err conftest.$ac_objext
2556 rm -f conftest.$ac_ext conftest.$ac_objext
2561 case "x$ac_cv_prog_cc_stdc" in
2563 echo "$as_me:$LINENO: result: none needed" >&5
2564 echo "${ECHO_T}none needed" >&6 ;;
2566 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2567 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2568 CC="$CC $ac_cv_prog_cc_stdc" ;;
2571 # Some people use a C++ compiler to compile C. Since we use `exit',
2572 # in C++ we need to declare it. In case someone uses the same compiler
2573 # for both compiling C and C++ we need to have the C++ compiler decide
2574 # the declaration of exit, since it's the most demanding environment.
2575 cat >conftest.$ac_ext <<_ACEOF
2580 rm -f conftest.$ac_objext
2581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2582 (eval $ac_compile) 2>conftest.er1
2584 grep -v '^ *+' conftest.er1 >conftest.err
2586 cat conftest.err >&5
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); } &&
2589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; } &&
2595 { ac_try='test -s conftest.$ac_objext'
2596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }; }; then
2601 for ac_declaration in \
2603 'extern "C" void std::exit (int) throw (); using std::exit;' \
2604 'extern "C" void std::exit (int); using std::exit;' \
2605 'extern "C" void exit (int) throw ();' \
2606 'extern "C" void exit (int);' \
2609 cat >conftest.$ac_ext <<_ACEOF
2612 cat confdefs.h >>conftest.$ac_ext
2613 cat >>conftest.$ac_ext <<_ACEOF
2614 /* end confdefs.h. */
2625 rm -f conftest.$ac_objext
2626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2627 (eval $ac_compile) 2>conftest.er1
2629 grep -v '^ *+' conftest.er1 >conftest.err
2631 cat conftest.err >&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); } &&
2634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); }; } &&
2640 { ac_try='test -s conftest.$ac_objext'
2641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645 (exit $ac_status); }; }; then
2648 echo "$as_me: failed program was:" >&5
2649 sed 's/^/| /' conftest.$ac_ext >&5
2653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2654 cat >conftest.$ac_ext <<_ACEOF
2657 cat confdefs.h >>conftest.$ac_ext
2658 cat >>conftest.$ac_ext <<_ACEOF
2659 /* end confdefs.h. */
2669 rm -f conftest.$ac_objext
2670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2671 (eval $ac_compile) 2>conftest.er1
2673 grep -v '^ *+' conftest.er1 >conftest.err
2675 cat conftest.err >&5
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); } &&
2678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); }; } &&
2684 { ac_try='test -s conftest.$ac_objext'
2685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); }; }; then
2692 echo "$as_me: failed program was:" >&5
2693 sed 's/^/| /' conftest.$ac_ext >&5
2696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2699 if test -n "$ac_declaration"; then
2700 echo '#ifdef __cplusplus' >>confdefs.h
2701 echo $ac_declaration >>confdefs.h
2702 echo '#endif' >>confdefs.h
2706 echo "$as_me: failed program was:" >&5
2707 sed 's/^/| /' conftest.$ac_ext >&5
2710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2712 ac_cpp='$CPP $CPPFLAGS'
2713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2717 depcc="$CC" am_compiler_list=
2719 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2720 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2721 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2722 echo $ECHO_N "(cached) $ECHO_C" >&6
2724 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2725 # We make a subdir and do the tests there. Otherwise we can end up
2726 # making bogus files that we don't know about and never remove. For
2727 # instance it was reported that on HP-UX the gcc test will end up
2728 # making a dummy file named `D' -- because `-MD' means `put the output
2731 # Copy depcomp to subdir because otherwise we won't find it if we're
2732 # using a relative directory.
2733 cp "$am_depcomp" conftest.dir
2735 # We will build objects and dependencies in a subdirectory because
2736 # it helps to detect inapplicable dependency modes. For instance
2737 # both Tru64's cc and ICC support -MD to output dependencies as a
2738 # side effect of compilation, but ICC will put the dependencies in
2739 # the current directory while Tru64 will put them in the object
2743 am_cv_CC_dependencies_compiler_type=none
2744 if test "$am_compiler_list" = ""; then
2745 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2747 for depmode in $am_compiler_list; do
2748 # Setup a source with many dependencies, because some compilers
2749 # like to wrap large dependency lists on column 80 (with \), and
2750 # we should not choose a depcomp mode which is confused by this.
2752 # We need to recreate these files for each test, as the compiler may
2753 # overwrite some of them when testing with obscure command lines.
2754 # This happens at least with the AIX C compiler.
2756 for i in 1 2 3 4 5 6; do
2757 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2760 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2764 # after this tag, mechanisms are not by side-effect, so they'll
2765 # only be used when explicitly requested
2766 if test "x$enable_dependency_tracking" = xyes; then
2774 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2775 # mode. It turns out that the SunPro C++ compiler does not properly
2776 # handle `-M -o', and we need to detect this.
2777 if depmode=$depmode \
2778 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2779 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2780 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2781 >/dev/null 2>conftest.err &&
2782 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2783 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2784 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2785 # icc doesn't choke on unknown options, it will just issue warnings
2786 # (even with -Werror). So we grep stderr for any message
2787 # that says an option was ignored.
2788 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2789 am_cv_CC_dependencies_compiler_type=$depmode
2798 am_cv_CC_dependencies_compiler_type=none
2802 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2803 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2804 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2809 test "x$enable_dependency_tracking" != xno \
2810 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2812 am__fastdepCC_FALSE='#'
2814 am__fastdepCC_TRUE='#'
2815 am__fastdepCC_FALSE=
2821 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2822 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2823 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2824 echo $ECHO_N "(cached) $ECHO_C" >&6
2826 ac_check_lib_save_LIBS=$LIBS
2827 LIBS="-lcposix $LIBS"
2828 cat >conftest.$ac_ext <<_ACEOF
2831 cat confdefs.h >>conftest.$ac_ext
2832 cat >>conftest.$ac_ext <<_ACEOF
2833 /* end confdefs.h. */
2835 /* Override any gcc2 internal prototype to avoid an error. */
2839 /* We use char because int might match the return type of a gcc2
2840 builtin and then its argument prototype would still apply. */
2850 rm -f conftest.$ac_objext conftest$ac_exeext
2851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2852 (eval $ac_link) 2>conftest.er1
2854 grep -v '^ *+' conftest.er1 >conftest.err
2856 cat conftest.err >&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); } &&
2859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); }; } &&
2865 { ac_try='test -s conftest$ac_exeext'
2866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); }; }; then
2871 ac_cv_lib_cposix_strerror=yes
2873 echo "$as_me: failed program was:" >&5
2874 sed 's/^/| /' conftest.$ac_ext >&5
2876 ac_cv_lib_cposix_strerror=no
2878 rm -f conftest.err conftest.$ac_objext \
2879 conftest$ac_exeext conftest.$ac_ext
2880 LIBS=$ac_check_lib_save_LIBS
2882 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2883 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2884 if test $ac_cv_lib_cposix_strerror = yes; then
2885 LIBS="$LIBS -lcposix"
2891 ac_cpp='$CPP $CPPFLAGS'
2892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2895 if test -n "$ac_tool_prefix"; then
2896 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2897 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2898 echo "$as_me:$LINENO: checking for $ac_word" >&5
2899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2900 if test "${ac_cv_prog_CC+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2903 if test -n "$CC"; then
2904 ac_cv_prog_CC="$CC" # Let the user override the test.
2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910 test -z "$as_dir" && as_dir=.
2911 for ac_exec_ext in '' $ac_executable_extensions; do
2912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2913 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2923 if test -n "$CC"; then
2924 echo "$as_me:$LINENO: result: $CC" >&5
2925 echo "${ECHO_T}$CC" >&6
2927 echo "$as_me:$LINENO: result: no" >&5
2928 echo "${ECHO_T}no" >&6
2932 if test -z "$ac_cv_prog_CC"; then
2934 # Extract the first word of "gcc", so it can be a program name with args.
2935 set dummy gcc; ac_word=$2
2936 echo "$as_me:$LINENO: checking for $ac_word" >&5
2937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2938 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2939 echo $ECHO_N "(cached) $ECHO_C" >&6
2941 if test -n "$ac_ct_CC"; then
2942 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948 test -z "$as_dir" && as_dir=.
2949 for ac_exec_ext in '' $ac_executable_extensions; do
2950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2951 ac_cv_prog_ac_ct_CC="gcc"
2952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2960 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2961 if test -n "$ac_ct_CC"; then
2962 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2963 echo "${ECHO_T}$ac_ct_CC" >&6
2965 echo "$as_me:$LINENO: result: no" >&5
2966 echo "${ECHO_T}no" >&6
2974 if test -z "$CC"; then
2975 if test -n "$ac_tool_prefix"; then
2976 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2977 set dummy ${ac_tool_prefix}cc; ac_word=$2
2978 echo "$as_me:$LINENO: checking for $ac_word" >&5
2979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2980 if test "${ac_cv_prog_CC+set}" = set; then
2981 echo $ECHO_N "(cached) $ECHO_C" >&6
2983 if test -n "$CC"; then
2984 ac_cv_prog_CC="$CC" # Let the user override the test.
2986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 test -z "$as_dir" && as_dir=.
2991 for ac_exec_ext in '' $ac_executable_extensions; do
2992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2993 ac_cv_prog_CC="${ac_tool_prefix}cc"
2994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3003 if test -n "$CC"; then
3004 echo "$as_me:$LINENO: result: $CC" >&5
3005 echo "${ECHO_T}$CC" >&6
3007 echo "$as_me:$LINENO: result: no" >&5
3008 echo "${ECHO_T}no" >&6
3012 if test -z "$ac_cv_prog_CC"; then
3014 # Extract the first word of "cc", so it can be a program name with args.
3015 set dummy cc; ac_word=$2
3016 echo "$as_me:$LINENO: checking for $ac_word" >&5
3017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3018 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3019 echo $ECHO_N "(cached) $ECHO_C" >&6
3021 if test -n "$ac_ct_CC"; then
3022 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028 test -z "$as_dir" && as_dir=.
3029 for ac_exec_ext in '' $ac_executable_extensions; do
3030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3031 ac_cv_prog_ac_ct_CC="cc"
3032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3040 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3041 if test -n "$ac_ct_CC"; then
3042 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3043 echo "${ECHO_T}$ac_ct_CC" >&6
3045 echo "$as_me:$LINENO: result: no" >&5
3046 echo "${ECHO_T}no" >&6
3055 if test -z "$CC"; then
3056 # Extract the first word of "cc", so it can be a program name with args.
3057 set dummy cc; ac_word=$2
3058 echo "$as_me:$LINENO: checking for $ac_word" >&5
3059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3060 if test "${ac_cv_prog_CC+set}" = set; then
3061 echo $ECHO_N "(cached) $ECHO_C" >&6
3063 if test -n "$CC"; then
3064 ac_cv_prog_CC="$CC" # Let the user override the test.
3067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071 test -z "$as_dir" && as_dir=.
3072 for ac_exec_ext in '' $ac_executable_extensions; do
3073 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3074 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3075 ac_prog_rejected=yes
3079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3085 if test $ac_prog_rejected = yes; then
3086 # We found a bogon in the path, so make sure we never use it.
3087 set dummy $ac_cv_prog_CC
3089 if test $# != 0; then
3090 # We chose a different compiler from the bogus one.
3091 # However, it has the same basename, so the bogon will be chosen
3092 # first if we set CC to just the basename; use the full file name.
3094 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3100 if test -n "$CC"; then
3101 echo "$as_me:$LINENO: result: $CC" >&5
3102 echo "${ECHO_T}$CC" >&6
3104 echo "$as_me:$LINENO: result: no" >&5
3105 echo "${ECHO_T}no" >&6
3109 if test -z "$CC"; then
3110 if test -n "$ac_tool_prefix"; then
3113 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3114 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3115 echo "$as_me:$LINENO: checking for $ac_word" >&5
3116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3117 if test "${ac_cv_prog_CC+set}" = set; then
3118 echo $ECHO_N "(cached) $ECHO_C" >&6
3120 if test -n "$CC"; then
3121 ac_cv_prog_CC="$CC" # Let the user override the test.
3123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127 test -z "$as_dir" && as_dir=.
3128 for ac_exec_ext in '' $ac_executable_extensions; do
3129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3130 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3140 if test -n "$CC"; then
3141 echo "$as_me:$LINENO: result: $CC" >&5
3142 echo "${ECHO_T}$CC" >&6
3144 echo "$as_me:$LINENO: result: no" >&5
3145 echo "${ECHO_T}no" >&6
3148 test -n "$CC" && break
3151 if test -z "$CC"; then
3155 # Extract the first word of "$ac_prog", so it can be a program name with args.
3156 set dummy $ac_prog; ac_word=$2
3157 echo "$as_me:$LINENO: checking for $ac_word" >&5
3158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3159 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3160 echo $ECHO_N "(cached) $ECHO_C" >&6
3162 if test -n "$ac_ct_CC"; then
3163 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169 test -z "$as_dir" && as_dir=.
3170 for ac_exec_ext in '' $ac_executable_extensions; do
3171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3172 ac_cv_prog_ac_ct_CC="$ac_prog"
3173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3181 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3182 if test -n "$ac_ct_CC"; then
3183 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3184 echo "${ECHO_T}$ac_ct_CC" >&6
3186 echo "$as_me:$LINENO: result: no" >&5
3187 echo "${ECHO_T}no" >&6
3190 test -n "$ac_ct_CC" && break
3199 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3200 See \`config.log' for more details." >&5
3201 echo "$as_me: error: no acceptable C compiler found in \$PATH
3202 See \`config.log' for more details." >&2;}
3203 { (exit 1); exit 1; }; }
3205 # Provide some information about the compiler.
3206 echo "$as_me:$LINENO:" \
3207 "checking for C compiler version" >&5
3208 ac_compiler=`set X $ac_compile; echo $2`
3209 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3210 (eval $ac_compiler --version </dev/null >&5) 2>&5
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }
3214 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3215 (eval $ac_compiler -v </dev/null >&5) 2>&5
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); }
3219 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3220 (eval $ac_compiler -V </dev/null >&5) 2>&5
3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223 (exit $ac_status); }
3225 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3226 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3227 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3228 echo $ECHO_N "(cached) $ECHO_C" >&6
3230 cat >conftest.$ac_ext <<_ACEOF
3233 cat confdefs.h >>conftest.$ac_ext
3234 cat >>conftest.$ac_ext <<_ACEOF
3235 /* end confdefs.h. */
3248 rm -f conftest.$ac_objext
3249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3250 (eval $ac_compile) 2>conftest.er1
3252 grep -v '^ *+' conftest.er1 >conftest.err
3254 cat conftest.err >&5
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); } &&
3257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }; } &&
3263 { ac_try='test -s conftest.$ac_objext'
3264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }; }; then
3271 echo "$as_me: failed program was:" >&5
3272 sed 's/^/| /' conftest.$ac_ext >&5
3276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3277 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3280 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3281 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3282 GCC=`test $ac_compiler_gnu = yes && echo yes`
3283 ac_test_CFLAGS=${CFLAGS+set}
3284 ac_save_CFLAGS=$CFLAGS
3286 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3287 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3288 if test "${ac_cv_prog_cc_g+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 cat >conftest.$ac_ext <<_ACEOF
3294 cat confdefs.h >>conftest.$ac_ext
3295 cat >>conftest.$ac_ext <<_ACEOF
3296 /* end confdefs.h. */
3306 rm -f conftest.$ac_objext
3307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3308 (eval $ac_compile) 2>conftest.er1
3310 grep -v '^ *+' conftest.er1 >conftest.err
3312 cat conftest.err >&5
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); } &&
3315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); }; } &&
3321 { ac_try='test -s conftest.$ac_objext'
3322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); }; }; then
3329 echo "$as_me: failed program was:" >&5
3330 sed 's/^/| /' conftest.$ac_ext >&5
3334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3336 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3337 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3338 if test "$ac_test_CFLAGS" = set; then
3339 CFLAGS=$ac_save_CFLAGS
3340 elif test $ac_cv_prog_cc_g = yes; then
3341 if test "$GCC" = yes; then
3347 if test "$GCC" = yes; then
3353 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3354 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3355 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3356 echo $ECHO_N "(cached) $ECHO_C" >&6
3358 ac_cv_prog_cc_stdc=no
3360 cat >conftest.$ac_ext <<_ACEOF
3363 cat confdefs.h >>conftest.$ac_ext
3364 cat >>conftest.$ac_ext <<_ACEOF
3365 /* end confdefs.h. */
3368 #include <sys/types.h>
3369 #include <sys/stat.h>
3370 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3371 struct buf { int x; };
3372 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3373 static char *e (p, i)
3379 static char *f (char * (*g) (char **, int), char **p, ...)
3384 s = g (p, va_arg (v,int));
3389 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3390 function prototypes and stuff, but not '\xHH' hex character constants.
3391 These don't provoke an error unfortunately, instead are silently treated
3392 as 'x'. The following induces an error, until -std1 is added to get
3393 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3394 array size at least. It's necessary to write '\x00'==0 to get something
3395 that's true only with -std1. */
3396 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3398 int test (int i, double x);
3399 struct s1 {int (*f) (int a);};
3400 struct s2 {int (*f) (double a);};
3401 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3407 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3412 # Don't try gcc -ansi; that turns off useful extensions and
3413 # breaks some systems' header files.
3414 # AIX -qlanglvl=ansi
3415 # Ultrix and OSF/1 -std1
3416 # HP-UX 10.20 and later -Ae
3417 # HP-UX older versions -Aa -D_HPUX_SOURCE
3418 # SVR4 -Xc -D__EXTENSIONS__
3419 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3421 CC="$ac_save_CC $ac_arg"
3422 rm -f conftest.$ac_objext
3423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3424 (eval $ac_compile) 2>conftest.er1
3426 grep -v '^ *+' conftest.er1 >conftest.err
3428 cat conftest.err >&5
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); } &&
3431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); }; } &&
3437 { ac_try='test -s conftest.$ac_objext'
3438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); }; }; then
3443 ac_cv_prog_cc_stdc=$ac_arg
3446 echo "$as_me: failed program was:" >&5
3447 sed 's/^/| /' conftest.$ac_ext >&5
3450 rm -f conftest.err conftest.$ac_objext
3452 rm -f conftest.$ac_ext conftest.$ac_objext
3457 case "x$ac_cv_prog_cc_stdc" in
3459 echo "$as_me:$LINENO: result: none needed" >&5
3460 echo "${ECHO_T}none needed" >&6 ;;
3462 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3463 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3464 CC="$CC $ac_cv_prog_cc_stdc" ;;
3467 # Some people use a C++ compiler to compile C. Since we use `exit',
3468 # in C++ we need to declare it. In case someone uses the same compiler
3469 # for both compiling C and C++ we need to have the C++ compiler decide
3470 # the declaration of exit, since it's the most demanding environment.
3471 cat >conftest.$ac_ext <<_ACEOF
3476 rm -f conftest.$ac_objext
3477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3478 (eval $ac_compile) 2>conftest.er1
3480 grep -v '^ *+' conftest.er1 >conftest.err
3482 cat conftest.err >&5
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); } &&
3485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); }; } &&
3491 { ac_try='test -s conftest.$ac_objext'
3492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); }; }; then
3497 for ac_declaration in \
3499 'extern "C" void std::exit (int) throw (); using std::exit;' \
3500 'extern "C" void std::exit (int); using std::exit;' \
3501 'extern "C" void exit (int) throw ();' \
3502 'extern "C" void exit (int);' \
3505 cat >conftest.$ac_ext <<_ACEOF
3508 cat confdefs.h >>conftest.$ac_ext
3509 cat >>conftest.$ac_ext <<_ACEOF
3510 /* end confdefs.h. */
3521 rm -f conftest.$ac_objext
3522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3523 (eval $ac_compile) 2>conftest.er1
3525 grep -v '^ *+' conftest.er1 >conftest.err
3527 cat conftest.err >&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); } &&
3530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); }; } &&
3536 { ac_try='test -s conftest.$ac_objext'
3537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); }; }; then
3544 echo "$as_me: failed program was:" >&5
3545 sed 's/^/| /' conftest.$ac_ext >&5
3549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3550 cat >conftest.$ac_ext <<_ACEOF
3553 cat confdefs.h >>conftest.$ac_ext
3554 cat >>conftest.$ac_ext <<_ACEOF
3555 /* end confdefs.h. */
3565 rm -f conftest.$ac_objext
3566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3567 (eval $ac_compile) 2>conftest.er1
3569 grep -v '^ *+' conftest.er1 >conftest.err
3571 cat conftest.err >&5
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); } &&
3574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); }; } &&
3580 { ac_try='test -s conftest.$ac_objext'
3581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); }; }; then
3588 echo "$as_me: failed program was:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3595 if test -n "$ac_declaration"; then
3596 echo '#ifdef __cplusplus' >>confdefs.h
3597 echo $ac_declaration >>confdefs.h
3598 echo '#endif' >>confdefs.h
3602 echo "$as_me: failed program was:" >&5
3603 sed 's/^/| /' conftest.$ac_ext >&5
3606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3608 ac_cpp='$CPP $CPPFLAGS'
3609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3613 depcc="$CC" am_compiler_list=
3615 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3616 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3617 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3618 echo $ECHO_N "(cached) $ECHO_C" >&6
3620 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3621 # We make a subdir and do the tests there. Otherwise we can end up
3622 # making bogus files that we don't know about and never remove. For
3623 # instance it was reported that on HP-UX the gcc test will end up
3624 # making a dummy file named `D' -- because `-MD' means `put the output
3627 # Copy depcomp to subdir because otherwise we won't find it if we're
3628 # using a relative directory.
3629 cp "$am_depcomp" conftest.dir
3631 # We will build objects and dependencies in a subdirectory because
3632 # it helps to detect inapplicable dependency modes. For instance
3633 # both Tru64's cc and ICC support -MD to output dependencies as a
3634 # side effect of compilation, but ICC will put the dependencies in
3635 # the current directory while Tru64 will put them in the object
3639 am_cv_CC_dependencies_compiler_type=none
3640 if test "$am_compiler_list" = ""; then
3641 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3643 for depmode in $am_compiler_list; do
3644 # Setup a source with many dependencies, because some compilers
3645 # like to wrap large dependency lists on column 80 (with \), and
3646 # we should not choose a depcomp mode which is confused by this.
3648 # We need to recreate these files for each test, as the compiler may
3649 # overwrite some of them when testing with obscure command lines.
3650 # This happens at least with the AIX C compiler.
3652 for i in 1 2 3 4 5 6; do
3653 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3656 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3660 # after this tag, mechanisms are not by side-effect, so they'll
3661 # only be used when explicitly requested
3662 if test "x$enable_dependency_tracking" = xyes; then
3670 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3671 # mode. It turns out that the SunPro C++ compiler does not properly
3672 # handle `-M -o', and we need to detect this.
3673 if depmode=$depmode \
3674 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3675 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3676 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3677 >/dev/null 2>conftest.err &&
3678 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3679 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3680 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3681 # icc doesn't choke on unknown options, it will just issue warnings
3682 # (even with -Werror). So we grep stderr for any message
3683 # that says an option was ignored.
3684 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3685 am_cv_CC_dependencies_compiler_type=$depmode
3694 am_cv_CC_dependencies_compiler_type=none
3698 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3699 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3700 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3705 test "x$enable_dependency_tracking" != xno \
3706 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3708 am__fastdepCC_FALSE='#'
3710 am__fastdepCC_TRUE='#'
3711 am__fastdepCC_FALSE=
3718 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3719 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3720 if test "${am_cv_prog_cc_stdc+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3723 am_cv_prog_cc_stdc=no
3725 # Don't try gcc -ansi; that turns off useful extensions and
3726 # breaks some systems' header files.
3727 # AIX -qlanglvl=ansi
3728 # Ultrix and OSF/1 -std1
3729 # HP-UX 10.20 and later -Ae
3730 # HP-UX older versions -Aa -D_HPUX_SOURCE
3731 # SVR4 -Xc -D__EXTENSIONS__
3732 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3734 CC="$ac_save_CC $ac_arg"
3735 cat >conftest.$ac_ext <<_ACEOF
3738 cat confdefs.h >>conftest.$ac_ext
3739 cat >>conftest.$ac_ext <<_ACEOF
3740 /* end confdefs.h. */
3743 #include <sys/types.h>
3744 #include <sys/stat.h>
3745 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3746 struct buf { int x; };
3747 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3748 static char *e (p, i)
3754 static char *f (char * (*g) (char **, int), char **p, ...)
3759 s = g (p, va_arg (v,int));
3763 int test (int i, double x);
3764 struct s1 {int (*f) (int a);};
3765 struct s2 {int (*f) (double a);};
3766 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3774 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3780 rm -f conftest.$ac_objext
3781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3782 (eval $ac_compile) 2>conftest.er1
3784 grep -v '^ *+' conftest.er1 >conftest.err
3786 cat conftest.err >&5
3787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788 (exit $ac_status); } &&
3789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); }; } &&
3795 { ac_try='test -s conftest.$ac_objext'
3796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); }; }; then
3801 am_cv_prog_cc_stdc="$ac_arg"; break
3803 echo "$as_me: failed program was:" >&5
3804 sed 's/^/| /' conftest.$ac_ext >&5
3807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3813 if test -z "$am_cv_prog_cc_stdc"; then
3814 echo "$as_me:$LINENO: result: none needed" >&5
3815 echo "${ECHO_T}none needed" >&6
3817 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3818 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3820 case "x$am_cv_prog_cc_stdc" in
3822 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3826 ac_cpp='$CPP $CPPFLAGS'
3827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3830 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3831 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3832 # On Suns, sometimes $CPP names a directory.
3833 if test -n "$CPP" && test -d "$CPP"; then
3836 if test -z "$CPP"; then
3837 if test "${ac_cv_prog_CPP+set}" = set; then
3838 echo $ECHO_N "(cached) $ECHO_C" >&6
3840 # Double quotes because CPP needs to be expanded
3841 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3844 for ac_c_preproc_warn_flag in '' yes
3846 # Use a header file that comes with gcc, so configuring glibc
3847 # with a fresh cross-compiler works.
3848 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3849 # <limits.h> exists even on freestanding compilers.
3850 # On the NeXT, cc -E runs the code through the compiler's parser,
3851 # not just through cpp. "Syntax error" is here to catch this case.
3852 cat >conftest.$ac_ext <<_ACEOF
3855 cat confdefs.h >>conftest.$ac_ext
3856 cat >>conftest.$ac_ext <<_ACEOF
3857 /* end confdefs.h. */
3859 # include <limits.h>
3861 # include <assert.h>
3865 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3866 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3868 grep -v '^ *+' conftest.er1 >conftest.err
3870 cat conftest.err >&5
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); } >/dev/null; then
3873 if test -s conftest.err; then
3874 ac_cpp_err=$ac_c_preproc_warn_flag
3875 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3882 if test -z "$ac_cpp_err"; then
3885 echo "$as_me: failed program was:" >&5
3886 sed 's/^/| /' conftest.$ac_ext >&5
3888 # Broken: fails on valid input.
3891 rm -f conftest.err conftest.$ac_ext
3893 # OK, works on sane cases. Now check whether non-existent headers
3894 # can be detected and how.
3895 cat >conftest.$ac_ext <<_ACEOF
3898 cat confdefs.h >>conftest.$ac_ext
3899 cat >>conftest.$ac_ext <<_ACEOF
3900 /* end confdefs.h. */
3901 #include <ac_nonexistent.h>
3903 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3904 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3906 grep -v '^ *+' conftest.er1 >conftest.err
3908 cat conftest.err >&5
3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910 (exit $ac_status); } >/dev/null; then
3911 if test -s conftest.err; then
3912 ac_cpp_err=$ac_c_preproc_warn_flag
3913 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3920 if test -z "$ac_cpp_err"; then
3921 # Broken: success on invalid input.
3924 echo "$as_me: failed program was:" >&5
3925 sed 's/^/| /' conftest.$ac_ext >&5
3927 # Passes both tests.
3931 rm -f conftest.err conftest.$ac_ext
3934 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3935 rm -f conftest.err conftest.$ac_ext
3936 if $ac_preproc_ok; then
3948 echo "$as_me:$LINENO: result: $CPP" >&5
3949 echo "${ECHO_T}$CPP" >&6
3951 for ac_c_preproc_warn_flag in '' yes
3953 # Use a header file that comes with gcc, so configuring glibc
3954 # with a fresh cross-compiler works.
3955 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3956 # <limits.h> exists even on freestanding compilers.
3957 # On the NeXT, cc -E runs the code through the compiler's parser,
3958 # not just through cpp. "Syntax error" is here to catch this case.
3959 cat >conftest.$ac_ext <<_ACEOF
3962 cat confdefs.h >>conftest.$ac_ext
3963 cat >>conftest.$ac_ext <<_ACEOF
3964 /* end confdefs.h. */
3966 # include <limits.h>
3968 # include <assert.h>
3972 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3973 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3975 grep -v '^ *+' conftest.er1 >conftest.err
3977 cat conftest.err >&5
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); } >/dev/null; then
3980 if test -s conftest.err; then
3981 ac_cpp_err=$ac_c_preproc_warn_flag
3982 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3989 if test -z "$ac_cpp_err"; then
3992 echo "$as_me: failed program was:" >&5
3993 sed 's/^/| /' conftest.$ac_ext >&5
3995 # Broken: fails on valid input.
3998 rm -f conftest.err conftest.$ac_ext
4000 # OK, works on sane cases. Now check whether non-existent headers
4001 # can be detected and how.
4002 cat >conftest.$ac_ext <<_ACEOF
4005 cat confdefs.h >>conftest.$ac_ext
4006 cat >>conftest.$ac_ext <<_ACEOF
4007 /* end confdefs.h. */
4008 #include <ac_nonexistent.h>
4010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4013 grep -v '^ *+' conftest.er1 >conftest.err
4015 cat conftest.err >&5
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); } >/dev/null; then
4018 if test -s conftest.err; then
4019 ac_cpp_err=$ac_c_preproc_warn_flag
4020 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4027 if test -z "$ac_cpp_err"; then
4028 # Broken: success on invalid input.
4031 echo "$as_me: failed program was:" >&5
4032 sed 's/^/| /' conftest.$ac_ext >&5
4034 # Passes both tests.
4038 rm -f conftest.err conftest.$ac_ext
4041 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4042 rm -f conftest.err conftest.$ac_ext
4043 if $ac_preproc_ok; then
4046 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4047 See \`config.log' for more details." >&5
4048 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4049 See \`config.log' for more details." >&2;}
4050 { (exit 1); exit 1; }; }
4054 ac_cpp='$CPP $CPPFLAGS'
4055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4060 echo "$as_me:$LINENO: checking for egrep" >&5
4061 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4062 if test "${ac_cv_prog_egrep+set}" = set; then
4063 echo $ECHO_N "(cached) $ECHO_C" >&6
4065 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4066 then ac_cv_prog_egrep='grep -E'
4067 else ac_cv_prog_egrep='egrep'
4070 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4071 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4072 EGREP=$ac_cv_prog_egrep
4075 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4076 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4077 if test "${ac_cv_header_stdc+set}" = set; then
4078 echo $ECHO_N "(cached) $ECHO_C" >&6
4080 cat >conftest.$ac_ext <<_ACEOF
4083 cat confdefs.h >>conftest.$ac_ext
4084 cat >>conftest.$ac_ext <<_ACEOF
4085 /* end confdefs.h. */
4099 rm -f conftest.$ac_objext
4100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4101 (eval $ac_compile) 2>conftest.er1
4103 grep -v '^ *+' conftest.er1 >conftest.err
4105 cat conftest.err >&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); } &&
4108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); }; } &&
4114 { ac_try='test -s conftest.$ac_objext'
4115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); }; }; then
4120 ac_cv_header_stdc=yes
4122 echo "$as_me: failed program was:" >&5
4123 sed 's/^/| /' conftest.$ac_ext >&5
4125 ac_cv_header_stdc=no
4127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4129 if test $ac_cv_header_stdc = yes; then
4130 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4131 cat >conftest.$ac_ext <<_ACEOF
4134 cat confdefs.h >>conftest.$ac_ext
4135 cat >>conftest.$ac_ext <<_ACEOF
4136 /* end confdefs.h. */
4140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4141 $EGREP "memchr" >/dev/null 2>&1; then
4144 ac_cv_header_stdc=no
4150 if test $ac_cv_header_stdc = yes; then
4151 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4152 cat >conftest.$ac_ext <<_ACEOF
4155 cat confdefs.h >>conftest.$ac_ext
4156 cat >>conftest.$ac_ext <<_ACEOF
4157 /* end confdefs.h. */
4161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4162 $EGREP "free" >/dev/null 2>&1; then
4165 ac_cv_header_stdc=no
4171 if test $ac_cv_header_stdc = yes; then
4172 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4173 if test "$cross_compiling" = yes; then
4176 cat >conftest.$ac_ext <<_ACEOF
4179 cat confdefs.h >>conftest.$ac_ext
4180 cat >>conftest.$ac_ext <<_ACEOF
4181 /* end confdefs.h. */
4183 #if ((' ' & 0x0FF) == 0x020)
4184 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4185 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4187 # define ISLOWER(c) \
4188 (('a' <= (c) && (c) <= 'i') \
4189 || ('j' <= (c) && (c) <= 'r') \
4190 || ('s' <= (c) && (c) <= 'z'))
4191 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4194 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4199 for (i = 0; i < 256; i++)
4200 if (XOR (islower (i), ISLOWER (i))
4201 || toupper (i) != TOUPPER (i))
4206 rm -f conftest$ac_exeext
4207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4208 (eval $ac_link) 2>&5
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); }; }; then
4219 echo "$as_me: program exited with status $ac_status" >&5
4220 echo "$as_me: failed program was:" >&5
4221 sed 's/^/| /' conftest.$ac_ext >&5
4224 ac_cv_header_stdc=no
4226 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4230 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4231 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4232 if test $ac_cv_header_stdc = yes; then
4234 cat >>confdefs.h <<\_ACEOF
4235 #define STDC_HEADERS 1
4244 if test -z "$PKG_CONFIG"; then
4245 # Extract the first word of "pkg-config", so it can be a program name with args.
4246 set dummy pkg-config; ac_word=$2
4247 echo "$as_me:$LINENO: checking for $ac_word" >&5
4248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4249 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4250 echo $ECHO_N "(cached) $ECHO_C" >&6
4254 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261 test -z "$as_dir" && as_dir=.
4262 for ac_exec_ext in '' $ac_executable_extensions; do
4263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4264 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4271 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
4275 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4277 if test -n "$PKG_CONFIG"; then
4278 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4279 echo "${ECHO_T}$PKG_CONFIG" >&6
4281 echo "$as_me:$LINENO: result: no" >&5
4282 echo "${ECHO_T}no" >&6
4287 if test "$PKG_CONFIG" = "no" ; then
4288 echo "*** The pkg-config script could not be found. Make sure it is"
4289 echo "*** in your path, or set the PKG_CONFIG environment variable"
4290 echo "*** to the full path to pkg-config."
4291 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
4293 PKG_CONFIG_MIN_VERSION=0.9.0
4294 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
4295 echo "$as_me:$LINENO: checking for libgnomeui-2.0 esound " >&5
4296 echo $ECHO_N "checking for libgnomeui-2.0 esound ... $ECHO_C" >&6
4298 if $PKG_CONFIG --exists " libgnomeui-2.0 esound " ; then
4299 echo "$as_me:$LINENO: result: yes" >&5
4300 echo "${ECHO_T}yes" >&6
4303 echo "$as_me:$LINENO: checking PACKAGE_CFLAGS" >&5
4304 echo $ECHO_N "checking PACKAGE_CFLAGS... $ECHO_C" >&6
4305 PACKAGE_CFLAGS=`$PKG_CONFIG --cflags " libgnomeui-2.0 esound "`
4306 echo "$as_me:$LINENO: result: $PACKAGE_CFLAGS" >&5
4307 echo "${ECHO_T}$PACKAGE_CFLAGS" >&6
4309 echo "$as_me:$LINENO: checking PACKAGE_LIBS" >&5
4310 echo $ECHO_N "checking PACKAGE_LIBS... $ECHO_C" >&6
4311 PACKAGE_LIBS=`$PKG_CONFIG --libs " libgnomeui-2.0 esound "`
4312 echo "$as_me:$LINENO: result: $PACKAGE_LIBS" >&5
4313 echo "${ECHO_T}$PACKAGE_LIBS" >&6
4317 ## If we have a custom action on failure, don't print errors, but
4318 ## do set a variable so people can do so.
4319 PACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors " libgnomeui-2.0 esound "`
4320 echo $PACKAGE_PKG_ERRORS
4326 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
4327 echo "*** See http://www.freedesktop.org/software/pkgconfig"
4331 if test $succeeded = yes; then
4334 { { echo "$as_me:$LINENO: error: Library requirements ( libgnomeui-2.0 esound ) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
4335 echo "$as_me: error: Library requirements ( libgnomeui-2.0 esound ) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
4336 { (exit 1); exit 1; }; }
4343 echo "$as_me:$LINENO: checking for glXQueryVersion in -lGL" >&5
4344 echo $ECHO_N "checking for glXQueryVersion in -lGL... $ECHO_C" >&6
4345 if test "${ac_cv_lib_GL_glXQueryVersion+set}" = set; then
4346 echo $ECHO_N "(cached) $ECHO_C" >&6
4348 ac_check_lib_save_LIBS=$LIBS
4350 cat >conftest.$ac_ext <<_ACEOF
4353 cat confdefs.h >>conftest.$ac_ext
4354 cat >>conftest.$ac_ext <<_ACEOF
4355 /* end confdefs.h. */
4357 /* Override any gcc2 internal prototype to avoid an error. */
4361 /* We use char because int might match the return type of a gcc2
4362 builtin and then its argument prototype would still apply. */
4363 char glXQueryVersion ();
4372 rm -f conftest.$ac_objext conftest$ac_exeext
4373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4374 (eval $ac_link) 2>conftest.er1
4376 grep -v '^ *+' conftest.er1 >conftest.err
4378 cat conftest.err >&5
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); } &&
4381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); }; } &&
4387 { ac_try='test -s conftest$ac_exeext'
4388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); }; }; then
4393 ac_cv_lib_GL_glXQueryVersion=yes
4395 echo "$as_me: failed program was:" >&5
4396 sed 's/^/| /' conftest.$ac_ext >&5
4398 ac_cv_lib_GL_glXQueryVersion=no
4400 rm -f conftest.err conftest.$ac_objext \
4401 conftest$ac_exeext conftest.$ac_ext
4402 LIBS=$ac_check_lib_save_LIBS
4404 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXQueryVersion" >&5
4405 echo "${ECHO_T}$ac_cv_lib_GL_glXQueryVersion" >&6
4406 if test $ac_cv_lib_GL_glXQueryVersion = yes; then
4407 cat >>confdefs.h <<_ACEOF
4408 #define HAVE_LIBGL 1
4416 GETTEXT_PACKAGE=dream
4418 cat >>confdefs.h <<_ACEOF
4419 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
4424 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4434 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4435 inttypes.h stdint.h unistd.h
4437 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4438 echo "$as_me:$LINENO: checking for $ac_header" >&5
4439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4443 cat >conftest.$ac_ext <<_ACEOF
4446 cat confdefs.h >>conftest.$ac_ext
4447 cat >>conftest.$ac_ext <<_ACEOF
4448 /* end confdefs.h. */
4449 $ac_includes_default
4451 #include <$ac_header>
4453 rm -f conftest.$ac_objext
4454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4455 (eval $ac_compile) 2>conftest.er1
4457 grep -v '^ *+' conftest.er1 >conftest.err
4459 cat conftest.err >&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); } &&
4462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); }; } &&
4468 { ac_try='test -s conftest.$ac_objext'
4469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); }; }; then
4474 eval "$as_ac_Header=yes"
4476 echo "$as_me: failed program was:" >&5
4477 sed 's/^/| /' conftest.$ac_ext >&5
4479 eval "$as_ac_Header=no"
4481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4484 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4485 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4486 cat >>confdefs.h <<_ACEOF
4487 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4497 for ac_header in locale.h
4499 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4500 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4501 echo "$as_me:$LINENO: checking for $ac_header" >&5
4502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4504 echo $ECHO_N "(cached) $ECHO_C" >&6
4506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4509 # Is the header compilable?
4510 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4511 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4512 cat >conftest.$ac_ext <<_ACEOF
4515 cat confdefs.h >>conftest.$ac_ext
4516 cat >>conftest.$ac_ext <<_ACEOF
4517 /* end confdefs.h. */
4518 $ac_includes_default
4519 #include <$ac_header>
4521 rm -f conftest.$ac_objext
4522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4523 (eval $ac_compile) 2>conftest.er1
4525 grep -v '^ *+' conftest.er1 >conftest.err
4527 cat conftest.err >&5
4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529 (exit $ac_status); } &&
4530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); }; } &&
4536 { ac_try='test -s conftest.$ac_objext'
4537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); }; }; then
4542 ac_header_compiler=yes
4544 echo "$as_me: failed program was:" >&5
4545 sed 's/^/| /' conftest.$ac_ext >&5
4547 ac_header_compiler=no
4549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4550 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4551 echo "${ECHO_T}$ac_header_compiler" >&6
4553 # Is the header present?
4554 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4555 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4556 cat >conftest.$ac_ext <<_ACEOF
4559 cat confdefs.h >>conftest.$ac_ext
4560 cat >>conftest.$ac_ext <<_ACEOF
4561 /* end confdefs.h. */
4562 #include <$ac_header>
4564 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4565 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4567 grep -v '^ *+' conftest.er1 >conftest.err
4569 cat conftest.err >&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); } >/dev/null; then
4572 if test -s conftest.err; then
4573 ac_cpp_err=$ac_c_preproc_warn_flag
4574 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4581 if test -z "$ac_cpp_err"; then
4582 ac_header_preproc=yes
4584 echo "$as_me: failed program was:" >&5
4585 sed 's/^/| /' conftest.$ac_ext >&5
4587 ac_header_preproc=no
4589 rm -f conftest.err conftest.$ac_ext
4590 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4591 echo "${ECHO_T}$ac_header_preproc" >&6
4593 # So? What about this header?
4594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4596 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4597 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4599 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4600 ac_header_preproc=yes
4603 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4604 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4605 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4606 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4607 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4608 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4609 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4610 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4612 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4613 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4614 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4617 ## ------------------------------------------ ##
4618 ## Report this to the AC_PACKAGE_NAME lists. ##
4619 ## ------------------------------------------ ##
4622 sed "s/^/$as_me: WARNING: /" >&2
4625 echo "$as_me:$LINENO: checking for $ac_header" >&5
4626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4628 echo $ECHO_N "(cached) $ECHO_C" >&6
4630 eval "$as_ac_Header=\$ac_header_preproc"
4632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4636 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4637 cat >>confdefs.h <<_ACEOF
4638 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4645 if test $ac_cv_header_locale_h = yes; then
4646 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4647 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4648 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4649 echo $ECHO_N "(cached) $ECHO_C" >&6
4651 cat >conftest.$ac_ext <<_ACEOF
4654 cat confdefs.h >>conftest.$ac_ext
4655 cat >>conftest.$ac_ext <<_ACEOF
4656 /* end confdefs.h. */
4666 rm -f conftest.$ac_objext conftest$ac_exeext
4667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4668 (eval $ac_link) 2>conftest.er1
4670 grep -v '^ *+' conftest.er1 >conftest.err
4672 cat conftest.err >&5
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); } &&
4675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); }; } &&
4681 { ac_try='test -s conftest$ac_exeext'
4682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); }; }; then
4687 am_cv_val_LC_MESSAGES=yes
4689 echo "$as_me: failed program was:" >&5
4690 sed 's/^/| /' conftest.$ac_ext >&5
4692 am_cv_val_LC_MESSAGES=no
4694 rm -f conftest.err conftest.$ac_objext \
4695 conftest$ac_exeext conftest.$ac_ext
4697 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4698 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4699 if test $am_cv_val_LC_MESSAGES = yes; then
4701 cat >>confdefs.h <<\_ACEOF
4702 #define HAVE_LC_MESSAGES 1
4710 gt_cv_have_gettext=no
4716 if test "${ac_cv_header_libintl_h+set}" = set; then
4717 echo "$as_me:$LINENO: checking for libintl.h" >&5
4718 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4719 if test "${ac_cv_header_libintl_h+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4722 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4723 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4725 # Is the header compilable?
4726 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4727 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4728 cat >conftest.$ac_ext <<_ACEOF
4731 cat confdefs.h >>conftest.$ac_ext
4732 cat >>conftest.$ac_ext <<_ACEOF
4733 /* end confdefs.h. */
4734 $ac_includes_default
4735 #include <libintl.h>
4737 rm -f conftest.$ac_objext
4738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4739 (eval $ac_compile) 2>conftest.er1
4741 grep -v '^ *+' conftest.er1 >conftest.err
4743 cat conftest.err >&5
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); } &&
4746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); }; } &&
4752 { ac_try='test -s conftest.$ac_objext'
4753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); }; }; then
4758 ac_header_compiler=yes
4760 echo "$as_me: failed program was:" >&5
4761 sed 's/^/| /' conftest.$ac_ext >&5
4763 ac_header_compiler=no
4765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4766 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4767 echo "${ECHO_T}$ac_header_compiler" >&6
4769 # Is the header present?
4770 echo "$as_me:$LINENO: checking libintl.h presence" >&5
4771 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4772 cat >conftest.$ac_ext <<_ACEOF
4775 cat confdefs.h >>conftest.$ac_ext
4776 cat >>conftest.$ac_ext <<_ACEOF
4777 /* end confdefs.h. */
4778 #include <libintl.h>
4780 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4781 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4783 grep -v '^ *+' conftest.er1 >conftest.err
4785 cat conftest.err >&5
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); } >/dev/null; then
4788 if test -s conftest.err; then
4789 ac_cpp_err=$ac_c_preproc_warn_flag
4790 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4797 if test -z "$ac_cpp_err"; then
4798 ac_header_preproc=yes
4800 echo "$as_me: failed program was:" >&5
4801 sed 's/^/| /' conftest.$ac_ext >&5
4803 ac_header_preproc=no
4805 rm -f conftest.err conftest.$ac_ext
4806 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4807 echo "${ECHO_T}$ac_header_preproc" >&6
4809 # So? What about this header?
4810 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4812 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
4813 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4814 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
4815 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
4816 ac_header_preproc=yes
4819 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
4820 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
4821 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
4822 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
4823 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
4824 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
4825 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
4826 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
4827 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4828 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
4829 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
4830 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
4833 ## ------------------------------------------ ##
4834 ## Report this to the AC_PACKAGE_NAME lists. ##
4835 ## ------------------------------------------ ##
4838 sed "s/^/$as_me: WARNING: /" >&2
4841 echo "$as_me:$LINENO: checking for libintl.h" >&5
4842 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4843 if test "${ac_cv_header_libintl_h+set}" = set; then
4844 echo $ECHO_N "(cached) $ECHO_C" >&6
4846 ac_cv_header_libintl_h=$ac_header_preproc
4848 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4849 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4852 if test $ac_cv_header_libintl_h = yes; then
4853 gt_cv_func_dgettext_libintl="no"
4854 libintl_extra_libs=""
4857 # First check in libc
4859 echo "$as_me:$LINENO: checking for ngettext in libc" >&5
4860 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6
4861 if test "${gt_cv_func_ngettext_libc+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4864 cat >conftest.$ac_ext <<_ACEOF
4867 cat confdefs.h >>conftest.$ac_ext
4868 cat >>conftest.$ac_ext <<_ACEOF
4869 /* end confdefs.h. */
4871 #include <libintl.h>
4876 return !ngettext ("","", 1)
4881 rm -f conftest.$ac_objext conftest$ac_exeext
4882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4883 (eval $ac_link) 2>conftest.er1
4885 grep -v '^ *+' conftest.er1 >conftest.err
4887 cat conftest.err >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } &&
4890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); }; } &&
4896 { ac_try='test -s conftest$ac_exeext'
4897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); }; }; then
4902 gt_cv_func_ngettext_libc=yes
4904 echo "$as_me: failed program was:" >&5
4905 sed 's/^/| /' conftest.$ac_ext >&5
4907 gt_cv_func_ngettext_libc=no
4909 rm -f conftest.err conftest.$ac_objext \
4910 conftest$ac_exeext conftest.$ac_ext
4913 echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
4914 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6
4916 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
4917 echo "$as_me:$LINENO: checking for dgettext in libc" >&5
4918 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6
4919 if test "${gt_cv_func_dgettext_libc+set}" = set; then
4920 echo $ECHO_N "(cached) $ECHO_C" >&6
4922 cat >conftest.$ac_ext <<_ACEOF
4925 cat confdefs.h >>conftest.$ac_ext
4926 cat >>conftest.$ac_ext <<_ACEOF
4927 /* end confdefs.h. */
4929 #include <libintl.h>
4934 return !dgettext ("","")
4939 rm -f conftest.$ac_objext conftest$ac_exeext
4940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4941 (eval $ac_link) 2>conftest.er1
4943 grep -v '^ *+' conftest.er1 >conftest.err
4945 cat conftest.err >&5
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); } &&
4948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); }; } &&
4954 { ac_try='test -s conftest$ac_exeext'
4955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); }; }; then
4960 gt_cv_func_dgettext_libc=yes
4962 echo "$as_me: failed program was:" >&5
4963 sed 's/^/| /' conftest.$ac_ext >&5
4965 gt_cv_func_dgettext_libc=no
4967 rm -f conftest.err conftest.$ac_objext \
4968 conftest$ac_exeext conftest.$ac_ext
4971 echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
4972 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6
4975 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
4977 for ac_func in bind_textdomain_codeset
4979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4980 echo "$as_me:$LINENO: checking for $ac_func" >&5
4981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4982 if eval "test \"\${$as_ac_var+set}\" = set"; then
4983 echo $ECHO_N "(cached) $ECHO_C" >&6
4985 cat >conftest.$ac_ext <<_ACEOF
4988 cat confdefs.h >>conftest.$ac_ext
4989 cat >>conftest.$ac_ext <<_ACEOF
4990 /* end confdefs.h. */
4991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4993 #define $ac_func innocuous_$ac_func
4995 /* System header to define __stub macros and hopefully few prototypes,
4996 which can conflict with char $ac_func (); below.
4997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4998 <limits.h> exists even on freestanding compilers. */
5001 # include <limits.h>
5003 # include <assert.h>
5008 /* Override any gcc2 internal prototype to avoid an error. */
5013 /* We use char because int might match the return type of a gcc2
5014 builtin and then its argument prototype would still apply. */
5016 /* The GNU C library defines this for functions which it implements
5017 to always fail with ENOSYS. Some functions are actually named
5018 something starting with __ and the normal name is an alias. */
5019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5022 char (*f) () = $ac_func;
5031 return f != $ac_func;
5036 rm -f conftest.$ac_objext conftest$ac_exeext
5037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5038 (eval $ac_link) 2>conftest.er1
5040 grep -v '^ *+' conftest.er1 >conftest.err
5042 cat conftest.err >&5
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); } &&
5045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); }; } &&
5051 { ac_try='test -s conftest$ac_exeext'
5052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); }; }; then
5057 eval "$as_ac_var=yes"
5059 echo "$as_me: failed program was:" >&5
5060 sed 's/^/| /' conftest.$ac_ext >&5
5062 eval "$as_ac_var=no"
5064 rm -f conftest.err conftest.$ac_objext \
5065 conftest$ac_exeext conftest.$ac_ext
5067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5068 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5069 if test `eval echo '${'$as_ac_var'}'` = yes; then
5070 cat >>confdefs.h <<_ACEOF
5071 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5080 # If we don't have everything we want, check in libintl
5082 if test "$gt_cv_func_dgettext_libc" != "yes" \
5083 || test "$gt_cv_func_ngettext_libc" != "yes" \
5084 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
5086 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5087 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
5088 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5089 echo $ECHO_N "(cached) $ECHO_C" >&6
5091 ac_check_lib_save_LIBS=$LIBS
5093 cat >conftest.$ac_ext <<_ACEOF
5096 cat confdefs.h >>conftest.$ac_ext
5097 cat >>conftest.$ac_ext <<_ACEOF
5098 /* end confdefs.h. */
5100 /* Override any gcc2 internal prototype to avoid an error. */
5104 /* We use char because int might match the return type of a gcc2
5105 builtin and then its argument prototype would still apply. */
5106 char bindtextdomain ();
5115 rm -f conftest.$ac_objext conftest$ac_exeext
5116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5117 (eval $ac_link) 2>conftest.er1
5119 grep -v '^ *+' conftest.er1 >conftest.err
5121 cat conftest.err >&5
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); } &&
5124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); }; } &&
5130 { ac_try='test -s conftest$ac_exeext'
5131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); }; }; then
5136 ac_cv_lib_intl_bindtextdomain=yes
5138 echo "$as_me: failed program was:" >&5
5139 sed 's/^/| /' conftest.$ac_ext >&5
5141 ac_cv_lib_intl_bindtextdomain=no
5143 rm -f conftest.err conftest.$ac_objext \
5144 conftest$ac_exeext conftest.$ac_ext
5145 LIBS=$ac_check_lib_save_LIBS
5147 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5148 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5149 if test $ac_cv_lib_intl_bindtextdomain = yes; then
5150 echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
5151 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6
5152 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
5153 echo $ECHO_N "(cached) $ECHO_C" >&6
5155 ac_check_lib_save_LIBS=$LIBS
5157 cat >conftest.$ac_ext <<_ACEOF
5160 cat confdefs.h >>conftest.$ac_ext
5161 cat >>conftest.$ac_ext <<_ACEOF
5162 /* end confdefs.h. */
5164 /* Override any gcc2 internal prototype to avoid an error. */
5168 /* We use char because int might match the return type of a gcc2
5169 builtin and then its argument prototype would still apply. */
5179 rm -f conftest.$ac_objext conftest$ac_exeext
5180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5181 (eval $ac_link) 2>conftest.er1
5183 grep -v '^ *+' conftest.er1 >conftest.err
5185 cat conftest.err >&5
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); } &&
5188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 (exit $ac_status); }; } &&
5194 { ac_try='test -s conftest$ac_exeext'
5195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); }; }; then
5200 ac_cv_lib_intl_ngettext=yes
5202 echo "$as_me: failed program was:" >&5
5203 sed 's/^/| /' conftest.$ac_ext >&5
5205 ac_cv_lib_intl_ngettext=no
5207 rm -f conftest.err conftest.$ac_objext \
5208 conftest$ac_exeext conftest.$ac_ext
5209 LIBS=$ac_check_lib_save_LIBS
5211 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
5212 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6
5213 if test $ac_cv_lib_intl_ngettext = yes; then
5214 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
5215 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
5216 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
5217 echo $ECHO_N "(cached) $ECHO_C" >&6
5219 ac_check_lib_save_LIBS=$LIBS
5221 cat >conftest.$ac_ext <<_ACEOF
5224 cat confdefs.h >>conftest.$ac_ext
5225 cat >>conftest.$ac_ext <<_ACEOF
5226 /* end confdefs.h. */
5228 /* Override any gcc2 internal prototype to avoid an error. */
5232 /* We use char because int might match the return type of a gcc2
5233 builtin and then its argument prototype would still apply. */
5243 rm -f conftest.$ac_objext conftest$ac_exeext
5244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5245 (eval $ac_link) 2>conftest.er1
5247 grep -v '^ *+' conftest.er1 >conftest.err
5249 cat conftest.err >&5
5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); } &&
5252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); }; } &&
5258 { ac_try='test -s conftest$ac_exeext'
5259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); }; }; then
5264 ac_cv_lib_intl_dgettext=yes
5266 echo "$as_me: failed program was:" >&5
5267 sed 's/^/| /' conftest.$ac_ext >&5
5269 ac_cv_lib_intl_dgettext=no
5271 rm -f conftest.err conftest.$ac_objext \
5272 conftest$ac_exeext conftest.$ac_ext
5273 LIBS=$ac_check_lib_save_LIBS
5275 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
5276 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
5277 if test $ac_cv_lib_intl_dgettext = yes; then
5278 gt_cv_func_dgettext_libintl=yes
5286 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
5287 echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
5288 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6
5289 echo "$as_me:$LINENO: result: " >&5
5290 echo "${ECHO_T}" >&6
5291 echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
5292 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6
5293 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
5294 echo $ECHO_N "(cached) $ECHO_C" >&6
5296 ac_check_lib_save_LIBS=$LIBS
5297 LIBS="-lintl -liconv $LIBS"
5298 cat >conftest.$ac_ext <<_ACEOF
5301 cat confdefs.h >>conftest.$ac_ext
5302 cat >>conftest.$ac_ext <<_ACEOF
5303 /* end confdefs.h. */
5305 /* Override any gcc2 internal prototype to avoid an error. */
5309 /* We use char because int might match the return type of a gcc2
5310 builtin and then its argument prototype would still apply. */
5320 rm -f conftest.$ac_objext conftest$ac_exeext
5321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5322 (eval $ac_link) 2>conftest.er1
5324 grep -v '^ *+' conftest.er1 >conftest.err
5326 cat conftest.err >&5
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); } &&
5329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); }; } &&
5335 { ac_try='test -s conftest$ac_exeext'
5336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); }; }; then
5341 ac_cv_lib_intl_ngettext=yes
5343 echo "$as_me: failed program was:" >&5
5344 sed 's/^/| /' conftest.$ac_ext >&5
5346 ac_cv_lib_intl_ngettext=no
5348 rm -f conftest.err conftest.$ac_objext \
5349 conftest$ac_exeext conftest.$ac_ext
5350 LIBS=$ac_check_lib_save_LIBS
5352 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
5353 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6
5354 if test $ac_cv_lib_intl_ngettext = yes; then
5355 echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
5356 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6
5357 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
5358 echo $ECHO_N "(cached) $ECHO_C" >&6
5360 ac_check_lib_save_LIBS=$LIBS
5361 LIBS="-lintl -liconv $LIBS"
5362 cat >conftest.$ac_ext <<_ACEOF
5365 cat confdefs.h >>conftest.$ac_ext
5366 cat >>conftest.$ac_ext <<_ACEOF
5367 /* end confdefs.h. */
5369 /* Override any gcc2 internal prototype to avoid an error. */
5373 /* We use char because int might match the return type of a gcc2
5374 builtin and then its argument prototype would still apply. */
5384 rm -f conftest.$ac_objext conftest$ac_exeext
5385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5386 (eval $ac_link) 2>conftest.er1
5388 grep -v '^ *+' conftest.er1 >conftest.err
5390 cat conftest.err >&5
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); } &&
5393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); }; } &&
5399 { ac_try='test -s conftest$ac_exeext'
5400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); }; }; then
5405 ac_cv_lib_intl_dcgettext=yes
5407 echo "$as_me: failed program was:" >&5
5408 sed 's/^/| /' conftest.$ac_ext >&5
5410 ac_cv_lib_intl_dcgettext=no
5412 rm -f conftest.err conftest.$ac_objext \
5413 conftest$ac_exeext conftest.$ac_ext
5414 LIBS=$ac_check_lib_save_LIBS
5416 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
5417 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6
5418 if test $ac_cv_lib_intl_dcgettext = yes; then
5419 gt_cv_func_dgettext_libintl=yes
5420 libintl_extra_libs=-liconv
5432 # If we found libintl, then check in it for bind_textdomain_codeset();
5433 # we'll prefer libc if neither have bind_textdomain_codeset(),
5434 # and both have dgettext and ngettext
5436 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
5437 glib_save_LIBS="$LIBS"
5438 LIBS="$LIBS -lintl $libintl_extra_libs"
5439 unset ac_cv_func_bind_textdomain_codeset
5441 for ac_func in bind_textdomain_codeset
5443 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5444 echo "$as_me:$LINENO: checking for $ac_func" >&5
5445 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5446 if eval "test \"\${$as_ac_var+set}\" = set"; then
5447 echo $ECHO_N "(cached) $ECHO_C" >&6
5449 cat >conftest.$ac_ext <<_ACEOF
5452 cat confdefs.h >>conftest.$ac_ext
5453 cat >>conftest.$ac_ext <<_ACEOF
5454 /* end confdefs.h. */
5455 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5457 #define $ac_func innocuous_$ac_func
5459 /* System header to define __stub macros and hopefully few prototypes,
5460 which can conflict with char $ac_func (); below.
5461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5462 <limits.h> exists even on freestanding compilers. */
5465 # include <limits.h>
5467 # include <assert.h>
5472 /* Override any gcc2 internal prototype to avoid an error. */
5477 /* We use char because int might match the return type of a gcc2
5478 builtin and then its argument prototype would still apply. */
5480 /* The GNU C library defines this for functions which it implements
5481 to always fail with ENOSYS. Some functions are actually named
5482 something starting with __ and the normal name is an alias. */
5483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5486 char (*f) () = $ac_func;
5495 return f != $ac_func;
5500 rm -f conftest.$ac_objext conftest$ac_exeext
5501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5502 (eval $ac_link) 2>conftest.er1
5504 grep -v '^ *+' conftest.er1 >conftest.err
5506 cat conftest.err >&5
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); } &&
5509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); }; } &&
5515 { ac_try='test -s conftest$ac_exeext'
5516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); }; }; then
5521 eval "$as_ac_var=yes"
5523 echo "$as_me: failed program was:" >&5
5524 sed 's/^/| /' conftest.$ac_ext >&5
5526 eval "$as_ac_var=no"
5528 rm -f conftest.err conftest.$ac_objext \
5529 conftest$ac_exeext conftest.$ac_ext
5531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5532 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5533 if test `eval echo '${'$as_ac_var'}'` = yes; then
5534 cat >>confdefs.h <<_ACEOF
5535 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5541 LIBS="$glib_save_LIBS"
5543 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
5544 gt_cv_func_dgettext_libc=no
5546 if test "$gt_cv_func_dgettext_libc" = "yes" \
5547 && test "$gt_cv_func_ngettext_libc" = "yes"; then
5548 gt_cv_func_dgettext_libintl=no
5554 if test "$gt_cv_func_dgettext_libc" = "yes" \
5555 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
5556 gt_cv_have_gettext=yes
5559 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
5560 INTLLIBS="-lintl $libintl_extra_libs"
5563 if test "$gt_cv_have_gettext" = "yes"; then
5565 cat >>confdefs.h <<\_ACEOF
5566 #define HAVE_GETTEXT 1
5569 # Extract the first word of "msgfmt", so it can be a program name with args.
5570 set dummy msgfmt; ac_word=$2
5571 echo "$as_me:$LINENO: checking for $ac_word" >&5
5572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5573 if test "${ac_cv_path_MSGFMT+set}" = set; then
5574 echo $ECHO_N "(cached) $ECHO_C" >&6
5578 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5581 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5582 for ac_dir in $PATH; do
5583 test -z "$ac_dir" && ac_dir=.
5584 if test -f $ac_dir/$ac_word; then
5585 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5586 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5592 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5596 MSGFMT="$ac_cv_path_MSGFMT"
5597 if test "$MSGFMT" != "no"; then
5598 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5599 echo "${ECHO_T}$MSGFMT" >&6
5601 echo "$as_me:$LINENO: result: no" >&5
5602 echo "${ECHO_T}no" >&6
5604 if test "$MSGFMT" != "no"; then
5605 glib_save_LIBS="$LIBS"
5606 LIBS="$LIBS $INTLLIBS"
5608 for ac_func in dcgettext
5610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5611 echo "$as_me:$LINENO: checking for $ac_func" >&5
5612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5613 if eval "test \"\${$as_ac_var+set}\" = set"; then
5614 echo $ECHO_N "(cached) $ECHO_C" >&6
5616 cat >conftest.$ac_ext <<_ACEOF
5619 cat confdefs.h >>conftest.$ac_ext
5620 cat >>conftest.$ac_ext <<_ACEOF
5621 /* end confdefs.h. */
5622 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5623 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5624 #define $ac_func innocuous_$ac_func
5626 /* System header to define __stub macros and hopefully few prototypes,
5627 which can conflict with char $ac_func (); below.
5628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5629 <limits.h> exists even on freestanding compilers. */
5632 # include <limits.h>
5634 # include <assert.h>
5639 /* Override any gcc2 internal prototype to avoid an error. */
5644 /* We use char because int might match the return type of a gcc2
5645 builtin and then its argument prototype would still apply. */
5647 /* The GNU C library defines this for functions which it implements
5648 to always fail with ENOSYS. Some functions are actually named
5649 something starting with __ and the normal name is an alias. */
5650 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5653 char (*f) () = $ac_func;
5662 return f != $ac_func;
5667 rm -f conftest.$ac_objext conftest$ac_exeext
5668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5669 (eval $ac_link) 2>conftest.er1
5671 grep -v '^ *+' conftest.er1 >conftest.err
5673 cat conftest.err >&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); } &&
5676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); }; } &&
5682 { ac_try='test -s conftest$ac_exeext'
5683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); }; }; then
5688 eval "$as_ac_var=yes"
5690 echo "$as_me: failed program was:" >&5
5691 sed 's/^/| /' conftest.$ac_ext >&5
5693 eval "$as_ac_var=no"
5695 rm -f conftest.err conftest.$ac_objext \
5696 conftest$ac_exeext conftest.$ac_ext
5698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5699 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5700 if test `eval echo '${'$as_ac_var'}'` = yes; then
5701 cat >>confdefs.h <<_ACEOF
5702 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5708 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5709 set dummy gmsgfmt; ac_word=$2
5710 echo "$as_me:$LINENO: checking for $ac_word" >&5
5711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5712 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5713 echo $ECHO_N "(cached) $ECHO_C" >&6
5717 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5724 test -z "$as_dir" && as_dir=.
5725 for ac_exec_ext in '' $ac_executable_extensions; do
5726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5727 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5734 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5738 GMSGFMT=$ac_cv_path_GMSGFMT
5740 if test -n "$GMSGFMT"; then
5741 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5742 echo "${ECHO_T}$GMSGFMT" >&6
5744 echo "$as_me:$LINENO: result: no" >&5
5745 echo "${ECHO_T}no" >&6
5748 # Extract the first word of "xgettext", so it can be a program name with args.
5749 set dummy xgettext; ac_word=$2
5750 echo "$as_me:$LINENO: checking for $ac_word" >&5
5751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5752 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5753 echo $ECHO_N "(cached) $ECHO_C" >&6
5757 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5760 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5761 for ac_dir in $PATH; do
5762 test -z "$ac_dir" && ac_dir=.
5763 if test -f $ac_dir/$ac_word; then
5764 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5765 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5771 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5775 XGETTEXT="$ac_cv_path_XGETTEXT"
5776 if test "$XGETTEXT" != ":"; then
5777 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5778 echo "${ECHO_T}$XGETTEXT" >&6
5780 echo "$as_me:$LINENO: result: no" >&5
5781 echo "${ECHO_T}no" >&6
5784 cat >conftest.$ac_ext <<_ACEOF
5787 cat confdefs.h >>conftest.$ac_ext
5788 cat >>conftest.$ac_ext <<_ACEOF
5789 /* end confdefs.h. */
5794 extern int _nl_msg_cat_cntr;
5795 return _nl_msg_cat_cntr
5800 rm -f conftest.$ac_objext conftest$ac_exeext
5801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5802 (eval $ac_link) 2>conftest.er1
5804 grep -v '^ *+' conftest.er1 >conftest.err
5806 cat conftest.err >&5
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); } &&
5809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); }; } &&
5815 { ac_try='test -s conftest$ac_exeext'
5816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); }; }; then
5824 echo "$as_me: failed program was:" >&5
5825 sed 's/^/| /' conftest.$ac_ext >&5
5829 echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
5830 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6
5831 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5834 cat >conftest.$ac_ext <<_ACEOF
5837 cat confdefs.h >>conftest.$ac_ext
5838 cat >>conftest.$ac_ext <<_ACEOF
5839 /* end confdefs.h. */
5840 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
5841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5842 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
5844 /* System header to define __stub macros and hopefully few prototypes,
5845 which can conflict with char bind_textdomain_codeset (); below.
5846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5847 <limits.h> exists even on freestanding compilers. */
5850 # include <limits.h>
5852 # include <assert.h>
5855 #undef bind_textdomain_codeset
5857 /* Override any gcc2 internal prototype to avoid an error. */
5862 /* We use char because int might match the return type of a gcc2
5863 builtin and then its argument prototype would still apply. */
5864 char bind_textdomain_codeset ();
5865 /* The GNU C library defines this for functions which it implements
5866 to always fail with ENOSYS. Some functions are actually named
5867 something starting with __ and the normal name is an alias. */
5868 #if defined (__stub_bind_textdomain_codeset) || defined (__stub___bind_textdomain_codeset)
5871 char (*f) () = bind_textdomain_codeset;
5880 return f != bind_textdomain_codeset;
5885 rm -f conftest.$ac_objext conftest$ac_exeext
5886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5887 (eval $ac_link) 2>conftest.er1
5889 grep -v '^ *+' conftest.er1 >conftest.err
5891 cat conftest.err >&5
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); } &&
5894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); }; } &&
5900 { ac_try='test -s conftest$ac_exeext'
5901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); }; }; then
5906 ac_cv_func_bind_textdomain_codeset=yes
5908 echo "$as_me: failed program was:" >&5
5909 sed 's/^/| /' conftest.$ac_ext >&5
5911 ac_cv_func_bind_textdomain_codeset=no
5913 rm -f conftest.err conftest.$ac_objext \
5914 conftest$ac_exeext conftest.$ac_ext
5916 echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
5917 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6
5918 if test $ac_cv_func_bind_textdomain_codeset = yes; then
5933 rm -f conftest.err conftest.$ac_objext \
5934 conftest$ac_exeext conftest.$ac_ext
5935 LIBS="$glib_save_LIBS"
5938 gt_cv_have_gettext=no
5946 if test "$gt_cv_have_gettext" = "yes" ; then
5948 cat >>confdefs.h <<\_ACEOF
5949 #define ENABLE_NLS 1
5954 if test "$XGETTEXT" != ":"; then
5955 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5958 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5959 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5964 # We need to process the po/ directory.
5967 ac_config_commands="$ac_config_commands default-1"
5970 for lang in $ALL_LINGUAS; do
5971 GMOFILES="$GMOFILES $lang.gmo"
5972 POFILES="$POFILES $lang.po"
5987 if test "$gt_cv_have_gettext" = "yes"; then
5988 if test "x$ALL_LINGUAS" = "x"; then
5991 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5992 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5994 for presentlang in $ALL_LINGUAS; do
5996 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
5997 desiredlanguages="$LINGUAS"
5999 desiredlanguages="$ALL_LINGUAS"
6001 for desiredlang in $desiredlanguages; do
6002 # Use the presentlang catalog if desiredlang is
6003 # a. equal to presentlang, or
6004 # b. a variant of presentlang (because in this case,
6005 # presentlang can be used as a fallback for messages
6006 # which are not translated in the desiredlang catalog).
6007 case "$desiredlang" in
6008 "$presentlang"*) useit=yes;;
6011 if test $useit = yes; then
6012 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
6015 LINGUAS=$NEW_LINGUAS
6016 echo "$as_me:$LINENO: result: $LINGUAS" >&5
6017 echo "${ECHO_T}$LINGUAS" >&6
6020 if test -n "$LINGUAS"; then
6021 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
6026 if test -n "$ac_aux_dir"; then
6027 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
6029 if test -z "$MKINSTALLDIRS"; then
6030 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
6034 test -d po || mkdir po
6035 if test "x$srcdir" != "x."; then
6036 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
6037 posrcprefix="$srcdir/"
6039 posrcprefix="../$srcdir/"
6045 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
6046 < $srcdir/po/POTFILES.in > po/POTFILES
6049 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in"
6050 cat >confcache <<\_ACEOF
6051 # This file is a shell script that caches the results of configure
6052 # tests run on this system so they can be shared between configure
6053 # scripts and configure runs, see configure's option --config-cache.
6054 # It is not useful on other systems. If it contains results you don't
6055 # want to keep, you may remove or edit it.
6057 # config.status only pays attention to the cache file if you give it
6058 # the --recheck option to rerun configure.
6060 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6061 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6066 # The following way of writing the cache mishandles newlines in values,
6067 # but we know of no workaround that is simple, portable, and efficient.
6068 # So, don't put newlines in cache variables' values.
6069 # Ultrix sh set writes to stderr and can't be redirected directly,
6070 # and sets the high bit in the cache file unless we assign to the vars.
6073 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6075 # `set' does not quote correctly, so add quotes (double-quote
6076 # substitution turns \\\\ into \\, and sed turns \\ into \).
6079 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6082 # `set' quotes correctly as required by POSIX, so do not add quotes.
6084 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6091 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6093 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6095 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6096 if test -w $cache_file; then
6097 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6098 cat confcache >$cache_file
6100 echo "not updating unwritable cache $cache_file"
6105 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6106 # Let make expand exec_prefix.
6107 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6109 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6110 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6111 # trailing colons and then remove the whole line if VPATH becomes empty
6112 # (actually we leave an empty line to preserve line numbers).
6113 if test "x$srcdir" = x.; then
6114 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6115 s/:*\$(srcdir):*/:/;
6116 s/:*\${srcdir}:*/:/;
6118 s/^\([^=]*=[ ]*\):*/\1/;
6124 DEFS=-DHAVE_CONFIG_H
6128 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6129 # 1. Remove the extension, and $U if already installed.
6130 ac_i=`echo "$ac_i" |
6131 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6133 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6134 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6138 LTLIBOBJS=$ac_ltlibobjs
6141 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6142 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
6143 Usually this means the macro was only invoked conditionally." >&5
6144 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
6145 Usually this means the macro was only invoked conditionally." >&2;}
6146 { (exit 1); exit 1; }; }
6148 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6149 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6150 Usually this means the macro was only invoked conditionally." >&5
6151 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6152 Usually this means the macro was only invoked conditionally." >&2;}
6153 { (exit 1); exit 1; }; }
6155 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6156 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6157 Usually this means the macro was only invoked conditionally." >&5
6158 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6159 Usually this means the macro was only invoked conditionally." >&2;}
6160 { (exit 1); exit 1; }; }
6162 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6163 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6164 Usually this means the macro was only invoked conditionally." >&5
6165 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6166 Usually this means the macro was only invoked conditionally." >&2;}
6167 { (exit 1); exit 1; }; }
6170 : ${CONFIG_STATUS=./config.status}
6171 ac_clean_files_save=$ac_clean_files
6172 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6173 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6174 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6175 cat >$CONFIG_STATUS <<_ACEOF
6177 # Generated by $as_me.
6178 # Run this file to recreate the current configuration.
6179 # Compiler output produced by configure, useful for debugging
6180 # configure, is in config.log if it exists.
6185 SHELL=\${CONFIG_SHELL-$SHELL}
6188 cat >>$CONFIG_STATUS <<\_ACEOF
6189 ## --------------------- ##
6190 ## M4sh Initialization. ##
6191 ## --------------------- ##
6193 # Be Bourne compatible
6194 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6197 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6198 # is contrary to our usage. Disable this feature.
6199 alias -g '${1+"$@"}'='"$@"'
6200 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6203 DUALCASE=1; export DUALCASE # for MKS sh
6205 # Support unset when possible.
6206 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6213 # Work around bugs in pre-3.0 UWIN ksh.
6214 $as_unset ENV MAIL MAILPATH
6221 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6222 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6223 LC_TELEPHONE LC_TIME
6225 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6226 eval $as_var=C; export $as_var
6232 # Required to use basename.
6233 if expr a : '\(a\)' >/dev/null 2>&1; then
6239 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6240 as_basename=basename
6246 # Name of the executable.
6247 as_me=`$as_basename "$0" ||
6248 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6249 X"$0" : 'X\(//\)$' \| \
6250 X"$0" : 'X\(/\)$' \| \
6251 . : '\(.\)' 2>/dev/null ||
6253 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6254 /^X\/\(\/\/\)$/{ s//\1/; q; }
6255 /^X\/\(\/\).*/{ s//\1/; q; }
6259 # PATH needs CR, and LINENO needs CR and PATH.
6260 # Avoid depending upon Character Ranges.
6261 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6262 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6263 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6264 as_cr_digits='0123456789'
6265 as_cr_alnum=$as_cr_Letters$as_cr_digits
6267 # The user is always right.
6268 if test "${PATH_SEPARATOR+set}" != set; then
6269 echo "#! /bin/sh" >conf$$.sh
6270 echo "exit 0" >>conf$$.sh
6272 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6283 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6284 test "x$as_lineno_1" != "x$as_lineno_2" &&
6285 test "x$as_lineno_3" = "x$as_lineno_2" || {
6286 # Find who we are. Look in the path if we contain no path at all
6289 *[\\/]* ) as_myself=$0 ;;
6290 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294 test -z "$as_dir" && as_dir=.
6295 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6300 # We did not find ourselves, most probably we were run as `sh COMMAND'
6301 # in which case we are not to be found in the path.
6302 if test "x$as_myself" = x; then
6305 if test ! -f "$as_myself"; then
6306 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6307 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6308 { (exit 1); exit 1; }; }
6310 case $CONFIG_SHELL in
6312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6316 test -z "$as_dir" && as_dir=.
6317 for as_base in sh bash ksh sh5; do
6320 if ("$as_dir/$as_base" -c '
6323 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6324 test "x$as_lineno_1" != "x$as_lineno_2" &&
6325 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6326 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6327 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6328 CONFIG_SHELL=$as_dir/$as_base
6330 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6338 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6339 # uniformly replaced by the line number. The first 'sed' inserts a
6340 # line-number line before each line; the second 'sed' does the real
6341 # work. The second script uses 'N' to pair each line-number line
6342 # with the numbered line, and appends trailing '-' during
6343 # substitution so that $LINENO is not a special case at line end.
6344 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6345 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6346 sed '=' <$as_myself |
6351 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6354 s,^['$as_cr_digits']*\n,,
6356 chmod +x $as_me.lineno ||
6357 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6358 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6359 { (exit 1); exit 1; }; }
6361 # Don't try to exec as it changes $[0], causing all sort of problems
6362 # (the dirname of $[0] is not the place where we might find the
6363 # original and so on. Autoconf is especially sensible to this).
6365 # Exit status is that of the last command.
6370 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6371 *c*,-n*) ECHO_N= ECHO_C='
6373 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6374 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6377 if expr a : '\(a\)' >/dev/null 2>&1; then
6383 rm -f conf$$ conf$$.exe conf$$.file
6385 if ln -s conf$$.file conf$$ 2>/dev/null; then
6386 # We could just check for DJGPP; but this test a) works b) is more generic
6387 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6388 if test -f conf$$.exe; then
6389 # Don't use ln at all; we don't have any links
6394 elif ln conf$$.file conf$$ 2>/dev/null; then
6399 rm -f conf$$ conf$$.exe conf$$.file
6401 if mkdir -p . 2>/dev/null; then
6404 test -d ./-p && rmdir ./-p
6408 as_executable_p="test -f"
6410 # Sed expression to map a string onto a valid CPP name.
6411 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6413 # Sed expression to map a string onto a valid variable name.
6414 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6418 # We need space, tab and new line, in precisely that order.
6428 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6429 # report actual input values of CONFIG_FILES etc. instead of their
6430 # values after options handling. Logging --version etc. is OK.
6434 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6435 ## Running $as_me. ##
6440 This file was extended by $as_me, which was
6441 generated by GNU Autoconf 2.59. Invocation command line was
6443 CONFIG_FILES = $CONFIG_FILES
6444 CONFIG_HEADERS = $CONFIG_HEADERS
6445 CONFIG_LINKS = $CONFIG_LINKS
6446 CONFIG_COMMANDS = $CONFIG_COMMANDS
6450 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6454 # Files that config.status was made for.
6455 if test -n "$ac_config_files"; then
6456 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6459 if test -n "$ac_config_headers"; then
6460 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6463 if test -n "$ac_config_links"; then
6464 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6467 if test -n "$ac_config_commands"; then
6468 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6471 cat >>$CONFIG_STATUS <<\_ACEOF
6474 \`$as_me' instantiates files from templates according to the
6475 current configuration.
6477 Usage: $0 [OPTIONS] [FILE]...
6479 -h, --help print this help, then exit
6480 -V, --version print version number, then exit
6481 -q, --quiet do not print progress messages
6482 -d, --debug don't remove temporary files
6483 --recheck update $as_me by reconfiguring in the same conditions
6484 --file=FILE[:TEMPLATE]
6485 instantiate the configuration file FILE
6486 --header=FILE[:TEMPLATE]
6487 instantiate the configuration header FILE
6489 Configuration files:
6492 Configuration headers:
6495 Configuration commands:
6498 Report bugs to <bug-autoconf@gnu.org>."
6501 cat >>$CONFIG_STATUS <<_ACEOF
6504 configured by $0, generated by GNU Autoconf 2.59,
6505 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6507 Copyright (C) 2003 Free Software Foundation, Inc.
6508 This config.status script is free software; the Free Software Foundation
6509 gives unlimited permission to copy, distribute and modify it."
6514 cat >>$CONFIG_STATUS <<\_ACEOF
6515 # If no file are specified by the user, then we need to provide default
6516 # value. By we need to know if files were specified by the user.
6522 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6523 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6531 *) # This is not an option, so the user has probably given explicit
6534 ac_need_defaults=false;;
6538 # Handling of the options.
6540 cat >>$CONFIG_STATUS <<\_ACEOF
6541 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6543 --version | --vers* | -V )
6544 echo "$ac_cs_version"; exit 0 ;;
6546 # Conflict between --help and --header
6547 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6548 Try \`$0 --help' for more information." >&5
6549 echo "$as_me: error: ambiguous option: $1
6550 Try \`$0 --help' for more information." >&2;}
6551 { (exit 1); exit 1; }; };;
6552 --help | --hel | -h )
6553 echo "$ac_cs_usage"; exit 0 ;;
6554 --debug | --d* | -d )
6556 --file | --fil | --fi | --f )
6558 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6559 ac_need_defaults=false;;
6560 --header | --heade | --head | --hea )
6562 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6563 ac_need_defaults=false;;
6564 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6565 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6569 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6570 Try \`$0 --help' for more information." >&5
6571 echo "$as_me: error: unrecognized option: $1
6572 Try \`$0 --help' for more information." >&2;}
6573 { (exit 1); exit 1; }; } ;;
6575 *) ac_config_targets="$ac_config_targets $1" ;;
6581 ac_configure_extra_args=
6583 if $ac_cs_silent; then
6585 ac_configure_extra_args="$ac_configure_extra_args --silent"
6589 cat >>$CONFIG_STATUS <<_ACEOF
6590 if \$ac_cs_recheck; then
6591 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6592 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6597 cat >>$CONFIG_STATUS <<_ACEOF
6599 # INIT-COMMANDS section.
6602 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6609 cat >>$CONFIG_STATUS <<\_ACEOF
6610 for ac_config_target in $ac_config_targets
6612 case "$ac_config_target" in
6613 # Handling of arguments.
6614 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6615 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
6616 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
6617 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6618 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
6619 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6620 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6621 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6622 { (exit 1); exit 1; }; };;
6626 # If the user did not use the arguments to specify the items to instantiate,
6627 # then the envvar interface is used. Set only those that are not.
6628 # We use the long form for the default assignment because of an extremely
6629 # bizarre bug on SunOS 4.1.3.
6630 if $ac_need_defaults; then
6631 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6632 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6633 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6636 # Have a temporary directory for convenience. Make it in the build tree
6637 # simply because there is no reason to put it here, and in addition,
6638 # creating and moving files from /tmp can sometimes cause problems.
6639 # Create a temporary directory, and hook for its removal unless debugging.
6642 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6643 trap '{ (exit 1); exit 1; }' 1 2 13 15
6646 # Create a (secure) tmp directory for tmp files.
6649 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6650 test -n "$tmp" && test -d "$tmp"
6653 tmp=./confstat$$-$RANDOM
6654 (umask 077 && mkdir $tmp)
6657 echo "$me: cannot create a temporary directory in ." >&2
6658 { (exit 1); exit 1; }
6663 cat >>$CONFIG_STATUS <<_ACEOF
6666 # CONFIG_FILES section.
6669 # No need to generate the scripts if there are no CONFIG_FILES.
6670 # This happens for instance when ./config.status config.h
6671 if test -n "\$CONFIG_FILES"; then
6672 # Protect against being on the right side of a sed subst in config.status.
6673 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6674 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6675 s,@SHELL@,$SHELL,;t t
6676 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6677 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6678 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6679 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6680 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6681 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6682 s,@exec_prefix@,$exec_prefix,;t t
6683 s,@prefix@,$prefix,;t t
6684 s,@program_transform_name@,$program_transform_name,;t t
6685 s,@bindir@,$bindir,;t t
6686 s,@sbindir@,$sbindir,;t t
6687 s,@libexecdir@,$libexecdir,;t t
6688 s,@datadir@,$datadir,;t t
6689 s,@sysconfdir@,$sysconfdir,;t t
6690 s,@sharedstatedir@,$sharedstatedir,;t t
6691 s,@localstatedir@,$localstatedir,;t t
6692 s,@libdir@,$libdir,;t t
6693 s,@includedir@,$includedir,;t t
6694 s,@oldincludedir@,$oldincludedir,;t t
6695 s,@infodir@,$infodir,;t t
6696 s,@mandir@,$mandir,;t t
6697 s,@build_alias@,$build_alias,;t t
6698 s,@host_alias@,$host_alias,;t t
6699 s,@target_alias@,$target_alias,;t t
6701 s,@ECHO_C@,$ECHO_C,;t t
6702 s,@ECHO_N@,$ECHO_N,;t t
6703 s,@ECHO_T@,$ECHO_T,;t t
6705 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t