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.
244 # Find the correct PATH separator. Usually this is `:', but
245 # DJGPP uses `;' like DOS.
246 if test "X${PATH_SEPARATOR+set}" != Xset; then
247 UNAME=${UNAME-`uname 2>/dev/null`}
249 *-DOS) lt_cv_sys_path_separator=';' ;;
250 *) lt_cv_sys_path_separator=':' ;;
252 PATH_SEPARATOR=$lt_cv_sys_path_separator
256 # Check that we are running under the correct shell.
257 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Remove one level of quotation (which was required for Make).
262 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
267 if test "X$1" = X--no-reexec; then
268 # Discard the --no-reexec flag, and continue.
270 elif test "X$1" = X--fallback-echo; then
271 # Avoid inline document here, it may be left over
273 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
274 # Yippee, $echo works!
277 # Restart under the correct shell.
278 exec $SHELL "$0" --no-reexec ${1+"$@"}
281 if test "X$1" = X--fallback-echo; then
282 # used as fallback echo
290 # The HP-UX ksh and POSIX shell print the target directory to stdout
292 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
294 if test -z "$ECHO"; then
295 if test "X${echo_test_string+set}" != Xset; then
296 # find a string as large as possible, as long as the shell can cope with it
297 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
298 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
299 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
300 echo_test_string="`eval $cmd`" &&
301 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
308 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
309 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
310 test "X$echo_testing_string" = "X$echo_test_string"; then
313 # The Solaris, AIX, and Digital Unix default echo programs unquote
314 # backslashes. This makes it impossible to quote backslashes using
315 # echo "$something" | sed 's/\\/\\\\/g'
317 # So, first we look for a working echo in the user's PATH.
319 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
320 for dir in $PATH /usr/ucb; do
321 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
322 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
331 if test "X$echo" = Xecho; then
332 # We didn't find a better echo, so look for alternatives.
333 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
334 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
335 test "X$echo_testing_string" = "X$echo_test_string"; then
336 # This shell has a builtin print -r that does the trick.
338 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
339 test "X$CONFIG_SHELL" != X/bin/ksh; then
340 # If we have ksh, try running configure again with it.
341 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
342 export ORIGINAL_CONFIG_SHELL
343 CONFIG_SHELL=/bin/ksh
345 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
349 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
350 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
354 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
360 SHELL="$CONFIG_SHELL"
362 echo="$CONFIG_SHELL $0 --fallback-echo"
363 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
364 test "X$echo_testing_string" = 'X\t' &&
365 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
366 test "X$echo_testing_string" = "X$echo_test_string"; then
367 echo="$CONFIG_SHELL $0 --fallback-echo"
369 # maybe with a smaller string...
372 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
373 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
380 if test "$prev" != 'sed 50q "$0"'; then
381 echo_test_string=`eval $prev`
382 export echo_test_string
383 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
385 # Oops. We lost completely, so just stick with echo.
394 # Copy echo and quote the copy suitably for passing to libtool from
395 # the Makefile, instead of quoting the original, which is used later.
397 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
398 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
404 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
405 # so uname gets run too.
406 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
413 ac_default_prefix=/usr/local
414 ac_config_libobj_dir=.
419 SHELL=${CONFIG_SHELL-/bin/sh}
421 # Maximum number of lines to put in a shell here document.
422 # This variable seems obsolete. It should probably be removed, and
423 # only ac_max_sed_lines should be used.
424 : ${ac_max_here_lines=38}
426 # Identity of this package.
433 ac_unique_file="popt.h"
434 # Factoring default headers for most tests.
435 ac_includes_default="\
438 # include <sys/types.h>
441 # include <sys/stat.h>
452 # if !STDC_HEADERS && HAVE_MEMORY_H
458 # include <strings.h>
461 # include <inttypes.h>
471 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE CPP EGREP U ANSI2KNR LN_S ECHO RANLIB ac_ct_RANLIB LIBTOOL TARGET MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE ALLOCA GLIBC21 LIBICONV LTLIBICONV INTLBISON USE_NLS BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT INTLOBJS DATADIRNAME INSTOBJEXT GENCAT INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB POPT_SOURCE_PATH LIBOBJS LTLIBOBJS'
474 # Initialize some variables set by options.
476 ac_init_version=false
477 # The variables have the same names as the options, with
478 # dashes changed to underlines.
486 program_transform_name=s,x,x,
494 # Installation directory options.
495 # These are left unexpanded so users can "make install exec_prefix=/foo"
496 # and all the variables that are supposed to be based on exec_prefix
497 # by default will actually change.
498 # Use braces instead of parens because sh, perl, etc. also accept them.
499 bindir='${exec_prefix}/bin'
500 sbindir='${exec_prefix}/sbin'
501 libexecdir='${exec_prefix}/libexec'
502 datadir='${prefix}/share'
503 sysconfdir='${prefix}/etc'
504 sharedstatedir='${prefix}/com'
505 localstatedir='${prefix}/var'
506 libdir='${exec_prefix}/lib'
507 includedir='${prefix}/include'
508 oldincludedir='/usr/include'
509 infodir='${prefix}/info'
510 mandir='${prefix}/man'
515 # If the previous option needs an argument, assign it.
516 if test -n "$ac_prev"; then
517 eval "$ac_prev=\$ac_option"
522 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
524 # Accept the important Cygnus configure options, so we can diagnose typos.
528 -bindir | --bindir | --bindi | --bind | --bin | --bi)
530 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
533 -build | --build | --buil | --bui | --bu)
534 ac_prev=build_alias ;;
535 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
536 build_alias=$ac_optarg ;;
538 -cache-file | --cache-file | --cache-fil | --cache-fi \
539 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
540 ac_prev=cache_file ;;
541 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
542 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
543 cache_file=$ac_optarg ;;
546 cache_file=config.cache ;;
548 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
550 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
552 datadir=$ac_optarg ;;
554 -disable-* | --disable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 eval "enable_$ac_feature=no" ;;
563 -enable-* | --enable-*)
564 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
565 # Reject names that are not valid shell variable names.
566 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
568 { (exit 1); exit 1; }; }
569 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
571 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
574 eval "enable_$ac_feature='$ac_optarg'" ;;
576 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
577 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
578 | --exec | --exe | --ex)
579 ac_prev=exec_prefix ;;
580 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
581 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
582 | --exec=* | --exe=* | --ex=*)
583 exec_prefix=$ac_optarg ;;
585 -gas | --gas | --ga | --g)
586 # Obsolete; use --with-gas.
589 -help | --help | --hel | --he | -h)
591 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
592 ac_init_help=recursive ;;
593 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
594 ac_init_help=short ;;
596 -host | --host | --hos | --ho)
597 ac_prev=host_alias ;;
598 -host=* | --host=* | --hos=* | --ho=*)
599 host_alias=$ac_optarg ;;
601 -includedir | --includedir | --includedi | --included | --include \
602 | --includ | --inclu | --incl | --inc)
603 ac_prev=includedir ;;
604 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
605 | --includ=* | --inclu=* | --incl=* | --inc=*)
606 includedir=$ac_optarg ;;
608 -infodir | --infodir | --infodi | --infod | --info | --inf)
610 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
611 infodir=$ac_optarg ;;
613 -libdir | --libdir | --libdi | --libd)
615 -libdir=* | --libdir=* | --libdi=* | --libd=*)
618 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
619 | --libexe | --libex | --libe)
620 ac_prev=libexecdir ;;
621 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
622 | --libexe=* | --libex=* | --libe=*)
623 libexecdir=$ac_optarg ;;
625 -localstatedir | --localstatedir | --localstatedi | --localstated \
626 | --localstate | --localstat | --localsta | --localst \
627 | --locals | --local | --loca | --loc | --lo)
628 ac_prev=localstatedir ;;
629 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
630 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
631 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
632 localstatedir=$ac_optarg ;;
634 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
636 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
640 # Obsolete; use --without-fp.
643 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
644 | --no-cr | --no-c | -n)
647 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
648 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
651 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
652 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
653 | --oldin | --oldi | --old | --ol | --o)
654 ac_prev=oldincludedir ;;
655 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
656 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
657 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
658 oldincludedir=$ac_optarg ;;
660 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
662 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
665 -program-prefix | --program-prefix | --program-prefi | --program-pref \
666 | --program-pre | --program-pr | --program-p)
667 ac_prev=program_prefix ;;
668 -program-prefix=* | --program-prefix=* | --program-prefi=* \
669 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
670 program_prefix=$ac_optarg ;;
672 -program-suffix | --program-suffix | --program-suffi | --program-suff \
673 | --program-suf | --program-su | --program-s)
674 ac_prev=program_suffix ;;
675 -program-suffix=* | --program-suffix=* | --program-suffi=* \
676 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
677 program_suffix=$ac_optarg ;;
679 -program-transform-name | --program-transform-name \
680 | --program-transform-nam | --program-transform-na \
681 | --program-transform-n | --program-transform- \
682 | --program-transform | --program-transfor \
683 | --program-transfo | --program-transf \
684 | --program-trans | --program-tran \
685 | --progr-tra | --program-tr | --program-t)
686 ac_prev=program_transform_name ;;
687 -program-transform-name=* | --program-transform-name=* \
688 | --program-transform-nam=* | --program-transform-na=* \
689 | --program-transform-n=* | --program-transform-=* \
690 | --program-transform=* | --program-transfor=* \
691 | --program-transfo=* | --program-transf=* \
692 | --program-trans=* | --program-tran=* \
693 | --progr-tra=* | --program-tr=* | --program-t=*)
694 program_transform_name=$ac_optarg ;;
696 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
697 | -silent | --silent | --silen | --sile | --sil)
700 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
702 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
704 sbindir=$ac_optarg ;;
706 -sharedstatedir | --sharedstatedir | --sharedstatedi \
707 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
708 | --sharedst | --shareds | --shared | --share | --shar \
710 ac_prev=sharedstatedir ;;
711 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
712 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
713 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
715 sharedstatedir=$ac_optarg ;;
717 -site | --site | --sit)
719 -site=* | --site=* | --sit=*)
722 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
724 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
727 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
728 | --syscon | --sysco | --sysc | --sys | --sy)
729 ac_prev=sysconfdir ;;
730 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
731 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
732 sysconfdir=$ac_optarg ;;
734 -target | --target | --targe | --targ | --tar | --ta | --t)
735 ac_prev=target_alias ;;
736 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
737 target_alias=$ac_optarg ;;
739 -v | -verbose | --verbose | --verbos | --verbo | --verb)
742 -version | --version | --versio | --versi | --vers | -V)
746 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
747 # Reject names that are not valid shell variable names.
748 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
749 { echo "$as_me: error: invalid package name: $ac_package" >&2
750 { (exit 1); exit 1; }; }
751 ac_package=`echo $ac_package| sed 's/-/_/g'`
753 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
756 eval "with_$ac_package='$ac_optarg'" ;;
758 -without-* | --without-*)
759 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
760 # Reject names that are not valid shell variable names.
761 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
762 { echo "$as_me: error: invalid package name: $ac_package" >&2
763 { (exit 1); exit 1; }; }
764 ac_package=`echo $ac_package | sed 's/-/_/g'`
765 eval "with_$ac_package=no" ;;
768 # Obsolete; use --with-x.
771 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
772 | --x-incl | --x-inc | --x-in | --x-i)
773 ac_prev=x_includes ;;
774 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
775 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
776 x_includes=$ac_optarg ;;
778 -x-libraries | --x-libraries | --x-librarie | --x-librari \
779 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
780 ac_prev=x_libraries ;;
781 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
782 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
783 x_libraries=$ac_optarg ;;
785 -*) { echo "$as_me: error: unrecognized option: $ac_option
786 Try \`$0 --help' for more information." >&2
787 { (exit 1); exit 1; }; }
791 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
792 # Reject names that are not valid shell variable names.
793 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
794 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
795 { (exit 1); exit 1; }; }
796 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
797 eval "$ac_envvar='$ac_optarg'"
801 # FIXME: should be removed in autoconf 3.0.
802 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
803 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
804 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
805 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
811 if test -n "$ac_prev"; then
812 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
813 { echo "$as_me: error: missing argument to $ac_option" >&2
814 { (exit 1); exit 1; }; }
817 # Be sure to have absolute paths.
818 for ac_var in exec_prefix prefix
820 eval ac_val=$`echo $ac_var`
822 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
823 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
824 { (exit 1); exit 1; }; };;
828 # Be sure to have absolute paths.
829 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
830 localstatedir libdir includedir oldincludedir infodir mandir
832 eval ac_val=$`echo $ac_var`
834 [\\/$]* | ?:[\\/]* ) ;;
835 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
836 { (exit 1); exit 1; }; };;
840 # There might be people who depend on the old broken behavior: `$host'
841 # used to hold the argument of --host etc.
842 # FIXME: To remove some day.
847 # FIXME: To remove some day.
848 if test "x$host_alias" != x; then
849 if test "x$build_alias" = x; then
850 cross_compiling=maybe
851 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
852 If a cross compiler is detected then cross compile mode will be used." >&2
853 elif test "x$build_alias" != "x$host_alias"; then
859 test -n "$host_alias" && ac_tool_prefix=$host_alias-
861 test "$silent" = yes && exec 6>/dev/null
864 # Find the source files, if location was not specified.
865 if test -z "$srcdir"; then
866 ac_srcdir_defaulted=yes
867 # Try the directory containing this script, then its parent.
868 ac_confdir=`(dirname "$0") 2>/dev/null ||
869 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
870 X"$0" : 'X\(//\)[^/]' \| \
871 X"$0" : 'X\(//\)$' \| \
872 X"$0" : 'X\(/\)' \| \
873 . : '\(.\)' 2>/dev/null ||
875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
876 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
877 /^X\(\/\/\)$/{ s//\1/; q; }
878 /^X\(\/\).*/{ s//\1/; q; }
881 if test ! -r $srcdir/$ac_unique_file; then
885 ac_srcdir_defaulted=no
887 if test ! -r $srcdir/$ac_unique_file; then
888 if test "$ac_srcdir_defaulted" = yes; then
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
890 { (exit 1); exit 1; }; }
892 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
893 { (exit 1); exit 1; }; }
896 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
897 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
898 { (exit 1); exit 1; }; }
899 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
900 ac_env_build_alias_set=${build_alias+set}
901 ac_env_build_alias_value=$build_alias
902 ac_cv_env_build_alias_set=${build_alias+set}
903 ac_cv_env_build_alias_value=$build_alias
904 ac_env_host_alias_set=${host_alias+set}
905 ac_env_host_alias_value=$host_alias
906 ac_cv_env_host_alias_set=${host_alias+set}
907 ac_cv_env_host_alias_value=$host_alias
908 ac_env_target_alias_set=${target_alias+set}
909 ac_env_target_alias_value=$target_alias
910 ac_cv_env_target_alias_set=${target_alias+set}
911 ac_cv_env_target_alias_value=$target_alias
912 ac_env_CC_set=${CC+set}
914 ac_cv_env_CC_set=${CC+set}
915 ac_cv_env_CC_value=$CC
916 ac_env_CFLAGS_set=${CFLAGS+set}
917 ac_env_CFLAGS_value=$CFLAGS
918 ac_cv_env_CFLAGS_set=${CFLAGS+set}
919 ac_cv_env_CFLAGS_value=$CFLAGS
920 ac_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_env_LDFLAGS_value=$LDFLAGS
922 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
923 ac_cv_env_LDFLAGS_value=$LDFLAGS
924 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_env_CPPFLAGS_value=$CPPFLAGS
926 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
927 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
928 ac_env_CPP_set=${CPP+set}
929 ac_env_CPP_value=$CPP
930 ac_cv_env_CPP_set=${CPP+set}
931 ac_cv_env_CPP_value=$CPP
934 # Report the --help message.
936 if test "$ac_init_help" = "long"; then
937 # Omit some internal or obsolete options to make the list less imposing.
938 # This message is too long to be a string in the A/UX 3.1 sh.
940 \`configure' configures this package to adapt to many kinds of systems.
942 Usage: $0 [OPTION]... [VAR=VALUE]...
944 To assign environment variables (e.g., CC, CFLAGS...), specify them as
945 VAR=VALUE. See below for descriptions of some of the useful variables.
947 Defaults for the options are specified in brackets.
950 -h, --help display this help and exit
951 --help=short display options specific to this package
952 --help=recursive display the short help of all the included packages
953 -V, --version display version information and exit
954 -q, --quiet, --silent do not print \`checking...' messages
955 --cache-file=FILE cache test results in FILE [disabled]
956 -C, --config-cache alias for \`--cache-file=config.cache'
957 -n, --no-create do not create output files
958 --srcdir=DIR find the sources in DIR [configure dir or \`..']
963 Installation directories:
964 --prefix=PREFIX install architecture-independent files in PREFIX
966 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
969 By default, \`make install' will install all the files in
970 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
971 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
972 for instance \`--prefix=\$HOME'.
974 For better control, use the options below.
976 Fine tuning of the installation directories:
977 --bindir=DIR user executables [EPREFIX/bin]
978 --sbindir=DIR system admin executables [EPREFIX/sbin]
979 --libexecdir=DIR program executables [EPREFIX/libexec]
980 --datadir=DIR read-only architecture-independent data [PREFIX/share]
981 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
982 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
983 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
984 --libdir=DIR object code libraries [EPREFIX/lib]
985 --includedir=DIR C header files [PREFIX/include]
986 --oldincludedir=DIR C header files for non-gcc [/usr/include]
987 --infodir=DIR info documentation [PREFIX/info]
988 --mandir=DIR man documentation [PREFIX/man]
994 --program-prefix=PREFIX prepend PREFIX to installed program names
995 --program-suffix=SUFFIX append SUFFIX to installed program names
996 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
999 --build=BUILD configure for building on BUILD [guessed]
1000 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1001 --target=TARGET configure for building compilers for TARGET [HOST]
1005 if test -n "$ac_init_help"; then
1010 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1011 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1012 --disable-dependency-tracking Speeds up one-time builds
1013 --enable-dependency-tracking Do not reject slow dependency extractors
1014 --enable-shared=PKGS build shared libraries default=yes
1015 --enable-static=PKGS build static libraries default=yes
1016 --enable-fast-install=PKGS optimize for fast installation default=yes
1017 --disable-libtool-lock avoid locking (might break parallel builds)
1018 --disable-rpath do not hardcode runtime library paths
1019 --disable-nls do not use Native Language Support
1022 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1023 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1024 --with-gnu-ld assume the C compiler uses GNU ld default=no
1025 --with-pic try to use only PIC/non-PIC objects default=use both
1026 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1027 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1028 --with-included-gettext use the GNU gettext library included here
1029 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
1030 --without-libintl-prefix don't search for libintl in includedir and libdir
1032 Some influential environment variables:
1033 CC C compiler command
1034 CFLAGS C compiler flags
1035 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1036 nonstandard directory <lib dir>
1037 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1038 headers in a nonstandard directory <include dir>
1041 Use these variables to override the choices made by `configure' or to help
1042 it to find libraries and programs with nonstandard names/locations.
1047 if test "$ac_init_help" = "recursive"; then
1048 # If there are subdirs, report their specific --help.
1050 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1051 test -d $ac_dir || continue
1054 if test "$ac_dir" != .; then
1055 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1056 # A "../" for each directory in $ac_dir_suffix.
1057 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1059 ac_dir_suffix= ac_top_builddir=
1063 .) # No --srcdir option. We are building in place.
1065 if test -z "$ac_top_builddir"; then
1068 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1070 [\\/]* | ?:[\\/]* ) # Absolute path.
1071 ac_srcdir=$srcdir$ac_dir_suffix;
1072 ac_top_srcdir=$srcdir ;;
1074 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1075 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1078 # Do not use `cd foo && pwd` to compute absolute paths, because
1079 # the directories may not exist.
1081 .) ac_abs_builddir="$ac_dir";;
1084 .) ac_abs_builddir=`pwd`;;
1085 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1086 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1089 case $ac_abs_builddir in
1090 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1092 case ${ac_top_builddir}. in
1093 .) ac_abs_top_builddir=$ac_abs_builddir;;
1094 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1095 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1098 case $ac_abs_builddir in
1099 .) ac_abs_srcdir=$ac_srcdir;;
1102 .) ac_abs_srcdir=$ac_abs_builddir;;
1103 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1104 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1107 case $ac_abs_builddir in
1108 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1110 case $ac_top_srcdir in
1111 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1112 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1113 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1118 # Check for guested configure; otherwise get Cygnus style configure.
1119 if test -f $ac_srcdir/configure.gnu; then
1121 $SHELL $ac_srcdir/configure.gnu --help=recursive
1122 elif test -f $ac_srcdir/configure; then
1124 $SHELL $ac_srcdir/configure --help=recursive
1125 elif test -f $ac_srcdir/configure.ac ||
1126 test -f $ac_srcdir/configure.in; then
1128 $ac_configure --help
1130 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1136 test -n "$ac_init_help" && exit 0
1137 if $ac_init_version; then
1140 Copyright (C) 2003 Free Software Foundation, Inc.
1141 This configure script is free software; the Free Software Foundation
1142 gives unlimited permission to copy, distribute and modify it.
1148 This file contains any messages produced by compilers while
1149 running configure, to aid debugging if configure makes a mistake.
1151 It was created by $as_me, which was
1152 generated by GNU Autoconf 2.59. Invocation command line was
1163 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1164 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1165 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1166 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1167 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1169 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1170 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1172 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1173 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1174 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1175 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1176 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1177 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1178 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1186 test -z "$as_dir" && as_dir=.
1187 echo "PATH: $as_dir"
1202 # Keep a trace of the command line.
1203 # Strip out --no-create and --no-recursion so they do not pile up.
1204 # Strip out --silent because we don't want to record it for future runs.
1205 # Also quote any args containing shell meta-characters.
1206 # Make two passes to allow for proper duplicate-argument suppression.
1211 ac_must_keep_next=false
1217 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219 | -silent | --silent | --silen | --sile | --sil)
1221 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1222 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1225 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1227 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1228 if test $ac_must_keep_next = true; then
1229 ac_must_keep_next=false # Got value, back to normal.
1232 *=* | --config-cache | -C | -disable-* | --disable-* \
1233 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1234 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1235 | -with-* | --with-* | -without-* | --without-* | --x)
1236 case "$ac_configure_args0 " in
1237 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1240 -* ) ac_must_keep_next=true ;;
1243 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1244 # Get rid of the leading space.
1250 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1251 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1253 # When interrupted or exit'd, cleanup temporary files, and complete
1254 # config.log. We remove comments because anyway the quotes in there
1255 # would cause problems or look ugly.
1256 # WARNING: Be sure not to use single quotes in there, as some shells,
1257 # such as our DU 5.0 friend, will then `close' the trap.
1258 trap 'exit_status=$?
1259 # Save into config.log some information that might help in debugging.
1264 ## ---------------- ##
1265 ## Cache variables. ##
1266 ## ---------------- ##
1269 # The following way of writing the cache mishandles newlines in values,
1272 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1275 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1276 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1280 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1287 ## ----------------- ##
1288 ## Output variables. ##
1289 ## ----------------- ##
1292 for ac_var in $ac_subst_vars
1294 eval ac_val=$`echo $ac_var`
1295 echo "$ac_var='"'"'$ac_val'"'"'"
1299 if test -n "$ac_subst_files"; then
1306 for ac_var in $ac_subst_files
1308 eval ac_val=$`echo $ac_var`
1309 echo "$ac_var='"'"'$ac_val'"'"'"
1314 if test -s confdefs.h; then
1321 sed "/^$/d" confdefs.h | sort
1324 test "$ac_signal" != 0 &&
1325 echo "$as_me: caught signal $ac_signal"
1326 echo "$as_me: exit $exit_status"
1328 rm -f core *.core &&
1329 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1332 for ac_signal in 1 2 13 15; do
1333 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1337 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1338 rm -rf conftest* confdefs.h
1339 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1342 # Predefined preprocessor variables.
1344 cat >>confdefs.h <<_ACEOF
1345 #define PACKAGE_NAME "$PACKAGE_NAME"
1349 cat >>confdefs.h <<_ACEOF
1350 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1354 cat >>confdefs.h <<_ACEOF
1355 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1359 cat >>confdefs.h <<_ACEOF
1360 #define PACKAGE_STRING "$PACKAGE_STRING"
1364 cat >>confdefs.h <<_ACEOF
1365 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1369 # Let the site file select an alternate cache file if it wants to.
1370 # Prefer explicitly selected file to automatically selected ones.
1371 if test -z "$CONFIG_SITE"; then
1372 if test "x$prefix" != xNONE; then
1373 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1375 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1378 for ac_site_file in $CONFIG_SITE; do
1379 if test -r "$ac_site_file"; then
1380 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1381 echo "$as_me: loading site script $ac_site_file" >&6;}
1382 sed 's/^/| /' "$ac_site_file" >&5
1387 if test -r "$cache_file"; then
1388 # Some versions of bash will fail to source /dev/null (special
1389 # files actually), so we avoid doing that.
1390 if test -f "$cache_file"; then
1391 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1392 echo "$as_me: loading cache $cache_file" >&6;}
1394 [\\/]* | ?:[\\/]* ) . $cache_file;;
1395 *) . ./$cache_file;;
1399 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1400 echo "$as_me: creating cache $cache_file" >&6;}
1404 # Check that the precious variables saved in the cache have kept the same
1406 ac_cache_corrupted=false
1407 for ac_var in `(set) 2>&1 |
1408 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1409 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1410 eval ac_new_set=\$ac_env_${ac_var}_set
1411 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1412 eval ac_new_val="\$ac_env_${ac_var}_value"
1413 case $ac_old_set,$ac_new_set in
1415 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1416 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1417 ac_cache_corrupted=: ;;
1419 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1420 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1421 ac_cache_corrupted=: ;;
1424 if test "x$ac_old_val" != "x$ac_new_val"; then
1425 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1426 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1427 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1428 echo "$as_me: former value: $ac_old_val" >&2;}
1429 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1430 echo "$as_me: current value: $ac_new_val" >&2;}
1431 ac_cache_corrupted=:
1434 # Pass precious variables to config.status.
1435 if test "$ac_new_set" = set; then
1437 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1438 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1439 *) ac_arg=$ac_var=$ac_new_val ;;
1441 case " $ac_configure_args " in
1442 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1443 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1447 if $ac_cache_corrupted; then
1448 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1449 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1450 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1451 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1452 { (exit 1); exit 1; }; }
1456 ac_cpp='$CPP $CPPFLAGS'
1457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1480 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1481 if test -f $ac_dir/install-sh; then
1483 ac_install_sh="$ac_aux_dir/install-sh -c"
1485 elif test -f $ac_dir/install.sh; then
1487 ac_install_sh="$ac_aux_dir/install.sh -c"
1489 elif test -f $ac_dir/shtool; then
1491 ac_install_sh="$ac_aux_dir/shtool install -c"
1495 if test -z "$ac_aux_dir"; then
1496 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1497 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1498 { (exit 1); exit 1; }; }
1500 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1501 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1502 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1504 # Make sure we can run config.sub.
1505 $ac_config_sub sun4 >/dev/null 2>&1 ||
1506 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1507 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1508 { (exit 1); exit 1; }; }
1510 echo "$as_me:$LINENO: checking build system type" >&5
1511 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1512 if test "${ac_cv_build+set}" = set; then
1513 echo $ECHO_N "(cached) $ECHO_C" >&6
1515 ac_cv_build_alias=$build_alias
1516 test -z "$ac_cv_build_alias" &&
1517 ac_cv_build_alias=`$ac_config_guess`
1518 test -z "$ac_cv_build_alias" &&
1519 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1520 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1521 { (exit 1); exit 1; }; }
1522 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1523 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1524 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1525 { (exit 1); exit 1; }; }
1528 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1529 echo "${ECHO_T}$ac_cv_build" >&6
1531 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1532 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1533 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1536 echo "$as_me:$LINENO: checking host system type" >&5
1537 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1538 if test "${ac_cv_host+set}" = set; then
1539 echo $ECHO_N "(cached) $ECHO_C" >&6
1541 ac_cv_host_alias=$host_alias
1542 test -z "$ac_cv_host_alias" &&
1543 ac_cv_host_alias=$ac_cv_build_alias
1544 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1545 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1546 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1547 { (exit 1); exit 1; }; }
1550 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1551 echo "${ECHO_T}$ac_cv_host" >&6
1553 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1554 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1555 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1558 echo "$as_me:$LINENO: checking target system type" >&5
1559 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1560 if test "${ac_cv_target+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1563 ac_cv_target_alias=$target_alias
1564 test "x$ac_cv_target_alias" = "x" &&
1565 ac_cv_target_alias=$ac_cv_host_alias
1566 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1567 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1568 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1569 { (exit 1); exit 1; }; }
1572 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1573 echo "${ECHO_T}$ac_cv_target" >&6
1574 target=$ac_cv_target
1575 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1576 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1577 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1580 # The aliases save the names the user supplied, while $host etc.
1581 # will get canonicalized.
1582 test -n "$target_alias" &&
1583 test "$program_prefix$program_suffix$program_transform_name" = \
1585 program_prefix=${target_alias}-
1587 ac_config_headers="$ac_config_headers "
1589 am__api_version="1.6"
1590 # Find a good install program. We prefer a C program (faster),
1591 # so one script is as good as another. But avoid the broken or
1592 # incompatible versions:
1593 # SysV /etc/install, /usr/sbin/install
1594 # SunOS /usr/etc/install
1595 # IRIX /sbin/install
1597 # AmigaOS /C/install, which installs bootblocks on floppy discs
1598 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1599 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1600 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1601 # OS/2's system install, which has a completely different semantic
1602 # ./install, which can be erroneously created by make from ./install.sh.
1603 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1604 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1605 if test -z "$INSTALL"; then
1606 if test "${ac_cv_path_install+set}" = set; then
1607 echo $ECHO_N "(cached) $ECHO_C" >&6
1609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1613 test -z "$as_dir" && as_dir=.
1614 # Account for people who put trailing slashes in PATH elements.
1616 ./ | .// | /cC/* | \
1617 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1618 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1621 # OSF1 and SCO ODT 3.0 have their own names for install.
1622 # Don't use installbsd from OSF since it installs stuff as root
1624 for ac_prog in ginstall scoinst install; do
1625 for ac_exec_ext in '' $ac_executable_extensions; do
1626 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1627 if test $ac_prog = install &&
1628 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1629 # AIX install. It has an incompatible calling convention.
1631 elif test $ac_prog = install &&
1632 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1633 # program-specific install script used by HP pwplus--don't use.
1636 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1648 if test "${ac_cv_path_install+set}" = set; then
1649 INSTALL=$ac_cv_path_install
1651 # As a last resort, use the slow shell script. We don't cache a
1652 # path for INSTALL within a source directory, because that will
1653 # break other packages using the cache if that directory is
1654 # removed, or if the path is relative.
1655 INSTALL=$ac_install_sh
1658 echo "$as_me:$LINENO: result: $INSTALL" >&5
1659 echo "${ECHO_T}$INSTALL" >&6
1661 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1662 # It thinks the first close brace ends the variable substitution.
1663 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1665 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1667 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1669 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1670 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1673 echo timestamp > conftest.file
1674 # Do `set' in a subshell so we don't clobber the current shell's
1675 # arguments. Must try -L first in case configure is actually a
1676 # symlink; some systems play weird games with the mod time of symlinks
1677 # (eg FreeBSD returns the mod time of the symlink's containing
1680 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1681 if test "$*" = "X"; then
1683 set X `ls -t $srcdir/configure conftest.file`
1686 if test "$*" != "X $srcdir/configure conftest.file" \
1687 && test "$*" != "X conftest.file $srcdir/configure"; then
1689 # If neither matched, then we have a broken ls. This can happen
1690 # if, for instance, CONFIG_SHELL is bash and it inherits a
1691 # broken ls alias from the environment. This has actually
1692 # happened. Such a system could not be considered "sane".
1693 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1694 alias in your environment" >&5
1695 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1696 alias in your environment" >&2;}
1697 { (exit 1); exit 1; }; }
1700 test "$2" = conftest.file
1706 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1707 Check your system clock" >&5
1708 echo "$as_me: error: newly created file is older than distributed files!
1709 Check your system clock" >&2;}
1710 { (exit 1); exit 1; }; }
1712 echo "$as_me:$LINENO: result: yes" >&5
1713 echo "${ECHO_T}yes" >&6
1714 test "$program_prefix" != NONE &&
1715 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1716 # Use a double $ so make ignores it.
1717 test "$program_suffix" != NONE &&
1718 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1719 # Double any \ or $. echo might interpret backslashes.
1720 # By default was `s,x,x', remove it if useless.
1721 cat <<\_ACEOF >conftest.sed
1722 s/[\\$]/&&/g;s/;s,x,x,$//
1724 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1728 # expand $ac_aux_dir to an absolute path
1729 am_aux_dir=`cd $ac_aux_dir && pwd`
1731 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1732 # Use eval to expand $SHELL
1733 if eval "$MISSING --run true"; then
1734 am_missing_run="$MISSING --run "
1737 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1738 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1741 for ac_prog in gawk mawk nawk awk
1743 # Extract the first word of "$ac_prog", so it can be a program name with args.
1744 set dummy $ac_prog; ac_word=$2
1745 echo "$as_me:$LINENO: checking for $ac_word" >&5
1746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1747 if test "${ac_cv_prog_AWK+set}" = set; then
1748 echo $ECHO_N "(cached) $ECHO_C" >&6
1750 if test -n "$AWK"; then
1751 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1757 test -z "$as_dir" && as_dir=.
1758 for ac_exec_ext in '' $ac_executable_extensions; do
1759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1760 ac_cv_prog_AWK="$ac_prog"
1761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1770 if test -n "$AWK"; then
1771 echo "$as_me:$LINENO: result: $AWK" >&5
1772 echo "${ECHO_T}$AWK" >&6
1774 echo "$as_me:$LINENO: result: no" >&5
1775 echo "${ECHO_T}no" >&6
1778 test -n "$AWK" && break
1781 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1782 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1783 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1784 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1785 echo $ECHO_N "(cached) $ECHO_C" >&6
1787 cat >conftest.make <<\_ACEOF
1789 @echo 'ac_maketemp="$(MAKE)"'
1791 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1792 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1793 if test -n "$ac_maketemp"; then
1794 eval ac_cv_prog_make_${ac_make}_set=yes
1796 eval ac_cv_prog_make_${ac_make}_set=no
1800 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1801 echo "$as_me:$LINENO: result: yes" >&5
1802 echo "${ECHO_T}yes" >&6
1805 echo "$as_me:$LINENO: result: no" >&5
1806 echo "${ECHO_T}no" >&6
1807 SET_MAKE="MAKE=${MAKE-make}"
1810 # test to see if srcdir already configured
1811 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1812 test -f $srcdir/config.status; then
1813 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1814 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1815 { (exit 1); exit 1; }; }
1818 # Define the identity of the package.
1823 cat >>confdefs.h <<_ACEOF
1824 #define PACKAGE "$PACKAGE"
1828 cat >>confdefs.h <<_ACEOF
1829 #define VERSION "$VERSION"
1832 # Some tools Automake needs.
1834 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1837 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1840 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1843 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1846 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1849 AMTAR=${AMTAR-"${am_missing_run}tar"}
1851 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1853 # Installed binaries are usually stripped using `strip' when the user
1854 # run `make install-strip'. However `strip' might not be the right
1855 # tool to use in cross-compilation environments, therefore Automake
1856 # will honor the `STRIP' environment variable to overrule this program.
1857 if test "$cross_compiling" != no; then
1858 if test -n "$ac_tool_prefix"; then
1859 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1860 set dummy ${ac_tool_prefix}strip; ac_word=$2
1861 echo "$as_me:$LINENO: checking for $ac_word" >&5
1862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1863 if test "${ac_cv_prog_STRIP+set}" = set; then
1864 echo $ECHO_N "(cached) $ECHO_C" >&6
1866 if test -n "$STRIP"; then
1867 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1873 test -z "$as_dir" && as_dir=.
1874 for ac_exec_ext in '' $ac_executable_extensions; do
1875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1876 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1885 STRIP=$ac_cv_prog_STRIP
1886 if test -n "$STRIP"; then
1887 echo "$as_me:$LINENO: result: $STRIP" >&5
1888 echo "${ECHO_T}$STRIP" >&6
1890 echo "$as_me:$LINENO: result: no" >&5
1891 echo "${ECHO_T}no" >&6
1895 if test -z "$ac_cv_prog_STRIP"; then
1897 # Extract the first word of "strip", so it can be a program name with args.
1898 set dummy strip; ac_word=$2
1899 echo "$as_me:$LINENO: checking for $ac_word" >&5
1900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1901 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1902 echo $ECHO_N "(cached) $ECHO_C" >&6
1904 if test -n "$ac_ct_STRIP"; then
1905 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911 test -z "$as_dir" && as_dir=.
1912 for ac_exec_ext in '' $ac_executable_extensions; do
1913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1914 ac_cv_prog_ac_ct_STRIP="strip"
1915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1921 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1924 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1925 if test -n "$ac_ct_STRIP"; then
1926 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1927 echo "${ECHO_T}$ac_ct_STRIP" >&6
1929 echo "$as_me:$LINENO: result: no" >&5
1930 echo "${ECHO_T}no" >&6
1935 STRIP="$ac_cv_prog_STRIP"
1939 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1941 # We need awk for the "check" target. The system "awk" is bad on
1946 # Add the stamp file to the list of files AC keeps track of,
1947 # along with our hook.
1948 ac_config_headers="$ac_config_headers config.h"
1953 ALL_LINGUAS="cs da de es eu_ES fi fr gl hu id is it ja ko no pl pt pt_BR ro ru sk sl sr sv tr uk wa zh zh_CN.GB2312"
1955 rm -f .deps 2>/dev/null
1956 mkdir .deps 2>/dev/null
1957 if test -d .deps; then
1960 # MS-DOS does not allow filenames that begin with a dot.
1963 rmdir .deps 2>/dev/null
1966 ac_config_commands="$ac_config_commands depfiles"
1969 am_make=${MAKE-make}
1970 cat > confinc << 'END'
1974 # If we don't find an include directive, just comment out the code.
1975 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1976 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1980 # First try GNU make style include.
1981 echo "include confinc" > confmf
1982 # We grep out `Entering directory' and `Leaving directory'
1983 # messages which can occur if `w' ends up in MAKEFLAGS.
1984 # In particular we don't look at `^make:' because GNU make might
1985 # be invoked under some other name (usually "gmake"), in which
1986 # case it prints its new name instead of `make'.
1987 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
1992 # Now try BSD make style include.
1993 if test "$am__include" = "#"; then
1994 echo '.include "confinc"' > confmf
1995 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1996 am__include=.include
2003 echo "$as_me:$LINENO: result: $_am_result" >&5
2004 echo "${ECHO_T}$_am_result" >&6
2005 rm -f confinc confmf
2007 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2008 if test "${enable_dependency_tracking+set}" = set; then
2009 enableval="$enable_dependency_tracking"
2012 if test "x$enable_dependency_tracking" != xno; then
2013 am_depcomp="$ac_aux_dir/depcomp"
2018 if test "x$enable_dependency_tracking" != xno; then
2029 ac_cpp='$CPP $CPPFLAGS'
2030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2033 if test -n "$ac_tool_prefix"; then
2034 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2035 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2036 echo "$as_me:$LINENO: checking for $ac_word" >&5
2037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2038 if test "${ac_cv_prog_CC+set}" = set; then
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
2041 if test -n "$CC"; then
2042 ac_cv_prog_CC="$CC" # Let the user override the test.
2044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048 test -z "$as_dir" && as_dir=.
2049 for ac_exec_ext in '' $ac_executable_extensions; do
2050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2051 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2061 if test -n "$CC"; then
2062 echo "$as_me:$LINENO: result: $CC" >&5
2063 echo "${ECHO_T}$CC" >&6
2065 echo "$as_me:$LINENO: result: no" >&5
2066 echo "${ECHO_T}no" >&6
2070 if test -z "$ac_cv_prog_CC"; then
2072 # Extract the first word of "gcc", so it can be a program name with args.
2073 set dummy gcc; ac_word=$2
2074 echo "$as_me:$LINENO: checking for $ac_word" >&5
2075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2076 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2077 echo $ECHO_N "(cached) $ECHO_C" >&6
2079 if test -n "$ac_ct_CC"; then
2080 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086 test -z "$as_dir" && as_dir=.
2087 for ac_exec_ext in '' $ac_executable_extensions; do
2088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2089 ac_cv_prog_ac_ct_CC="gcc"
2090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2098 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2099 if test -n "$ac_ct_CC"; then
2100 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2101 echo "${ECHO_T}$ac_ct_CC" >&6
2103 echo "$as_me:$LINENO: result: no" >&5
2104 echo "${ECHO_T}no" >&6
2112 if test -z "$CC"; then
2113 if test -n "$ac_tool_prefix"; then
2114 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2115 set dummy ${ac_tool_prefix}cc; ac_word=$2
2116 echo "$as_me:$LINENO: checking for $ac_word" >&5
2117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2118 if test "${ac_cv_prog_CC+set}" = set; then
2119 echo $ECHO_N "(cached) $ECHO_C" >&6
2121 if test -n "$CC"; then
2122 ac_cv_prog_CC="$CC" # Let the user override the test.
2124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128 test -z "$as_dir" && as_dir=.
2129 for ac_exec_ext in '' $ac_executable_extensions; do
2130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2131 ac_cv_prog_CC="${ac_tool_prefix}cc"
2132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2141 if test -n "$CC"; then
2142 echo "$as_me:$LINENO: result: $CC" >&5
2143 echo "${ECHO_T}$CC" >&6
2145 echo "$as_me:$LINENO: result: no" >&5
2146 echo "${ECHO_T}no" >&6
2150 if test -z "$ac_cv_prog_CC"; then
2152 # Extract the first word of "cc", so it can be a program name with args.
2153 set dummy cc; ac_word=$2
2154 echo "$as_me:$LINENO: checking for $ac_word" >&5
2155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2156 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2157 echo $ECHO_N "(cached) $ECHO_C" >&6
2159 if test -n "$ac_ct_CC"; then
2160 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2166 test -z "$as_dir" && as_dir=.
2167 for ac_exec_ext in '' $ac_executable_extensions; do
2168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2169 ac_cv_prog_ac_ct_CC="cc"
2170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2178 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2179 if test -n "$ac_ct_CC"; then
2180 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2181 echo "${ECHO_T}$ac_ct_CC" >&6
2183 echo "$as_me:$LINENO: result: no" >&5
2184 echo "${ECHO_T}no" >&6
2193 if test -z "$CC"; then
2194 # Extract the first word of "cc", so it can be a program name with args.
2195 set dummy cc; ac_word=$2
2196 echo "$as_me:$LINENO: checking for $ac_word" >&5
2197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2198 if test "${ac_cv_prog_CC+set}" = set; then
2199 echo $ECHO_N "(cached) $ECHO_C" >&6
2201 if test -n "$CC"; then
2202 ac_cv_prog_CC="$CC" # Let the user override the test.
2205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2209 test -z "$as_dir" && as_dir=.
2210 for ac_exec_ext in '' $ac_executable_extensions; do
2211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2212 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2213 ac_prog_rejected=yes
2217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2223 if test $ac_prog_rejected = yes; then
2224 # We found a bogon in the path, so make sure we never use it.
2225 set dummy $ac_cv_prog_CC
2227 if test $# != 0; then
2228 # We chose a different compiler from the bogus one.
2229 # However, it has the same basename, so the bogon will be chosen
2230 # first if we set CC to just the basename; use the full file name.
2232 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2238 if test -n "$CC"; then
2239 echo "$as_me:$LINENO: result: $CC" >&5
2240 echo "${ECHO_T}$CC" >&6
2242 echo "$as_me:$LINENO: result: no" >&5
2243 echo "${ECHO_T}no" >&6
2247 if test -z "$CC"; then
2248 if test -n "$ac_tool_prefix"; then
2251 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2252 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2253 echo "$as_me:$LINENO: checking for $ac_word" >&5
2254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2255 if test "${ac_cv_prog_CC+set}" = set; then
2256 echo $ECHO_N "(cached) $ECHO_C" >&6
2258 if test -n "$CC"; then
2259 ac_cv_prog_CC="$CC" # Let the user override the test.
2261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2265 test -z "$as_dir" && as_dir=.
2266 for ac_exec_ext in '' $ac_executable_extensions; do
2267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2268 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2278 if test -n "$CC"; then
2279 echo "$as_me:$LINENO: result: $CC" >&5
2280 echo "${ECHO_T}$CC" >&6
2282 echo "$as_me:$LINENO: result: no" >&5
2283 echo "${ECHO_T}no" >&6
2286 test -n "$CC" && break
2289 if test -z "$CC"; then
2293 # Extract the first word of "$ac_prog", so it can be a program name with args.
2294 set dummy $ac_prog; ac_word=$2
2295 echo "$as_me:$LINENO: checking for $ac_word" >&5
2296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2297 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
2300 if test -n "$ac_ct_CC"; then
2301 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2307 test -z "$as_dir" && as_dir=.
2308 for ac_exec_ext in '' $ac_executable_extensions; do
2309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2310 ac_cv_prog_ac_ct_CC="$ac_prog"
2311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2319 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2320 if test -n "$ac_ct_CC"; then
2321 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2322 echo "${ECHO_T}$ac_ct_CC" >&6
2324 echo "$as_me:$LINENO: result: no" >&5
2325 echo "${ECHO_T}no" >&6
2328 test -n "$ac_ct_CC" && break
2337 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2338 See \`config.log' for more details." >&5
2339 echo "$as_me: error: no acceptable C compiler found in \$PATH
2340 See \`config.log' for more details." >&2;}
2341 { (exit 1); exit 1; }; }
2343 # Provide some information about the compiler.
2344 echo "$as_me:$LINENO:" \
2345 "checking for C compiler version" >&5
2346 ac_compiler=`set X $ac_compile; echo $2`
2347 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2348 (eval $ac_compiler --version </dev/null >&5) 2>&5
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); }
2352 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2353 (eval $ac_compiler -v </dev/null >&5) 2>&5
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }
2357 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2358 (eval $ac_compiler -V </dev/null >&5) 2>&5
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); }
2363 cat >conftest.$ac_ext <<_ACEOF
2366 cat confdefs.h >>conftest.$ac_ext
2367 cat >>conftest.$ac_ext <<_ACEOF
2368 /* end confdefs.h. */
2378 ac_clean_files_save=$ac_clean_files
2379 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2380 # Try to create an executable without -o first, disregard a.out.
2381 # It will help us diagnose broken compilers, and finding out an intuition
2383 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2384 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2385 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2386 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2387 (eval $ac_link_default) 2>&5
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); }; then
2391 # Find the output, starting from the most likely. This scheme is
2392 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2395 # Be careful to initialize this variable, since it used to be cached.
2396 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2398 # b.out is created by i960 compilers.
2399 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2401 test -f "$ac_file" || continue
2403 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2406 # This is the source file.
2409 # We found the default executable, but exeext='' is most
2413 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2414 # FIXME: I believe we export ac_cv_exeext for Libtool,
2415 # but it would be cool to find out if it's true. Does anybody
2416 # maintain Libtool? --akim.
2424 echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.$ac_ext >&5
2427 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2428 See \`config.log' for more details." >&5
2429 echo "$as_me: error: C compiler cannot create executables
2430 See \`config.log' for more details." >&2;}
2431 { (exit 77); exit 77; }; }
2434 ac_exeext=$ac_cv_exeext
2435 echo "$as_me:$LINENO: result: $ac_file" >&5
2436 echo "${ECHO_T}$ac_file" >&6
2438 # Check the compiler produces executables we can run. If not, either
2439 # the compiler is broken, or we cross compile.
2440 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2441 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2442 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2443 # If not cross compiling, check that we can run a simple program.
2444 if test "$cross_compiling" != yes; then
2445 if { ac_try='./$ac_file'
2446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; }; then
2453 if test "$cross_compiling" = maybe; then
2456 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2457 If you meant to cross compile, use \`--host'.
2458 See \`config.log' for more details." >&5
2459 echo "$as_me: error: cannot run C compiled programs.
2460 If you meant to cross compile, use \`--host'.
2461 See \`config.log' for more details." >&2;}
2462 { (exit 1); exit 1; }; }
2466 echo "$as_me:$LINENO: result: yes" >&5
2467 echo "${ECHO_T}yes" >&6
2469 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2470 ac_clean_files=$ac_clean_files_save
2471 # Check the compiler produces executables we can run. If not, either
2472 # the compiler is broken, or we cross compile.
2473 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2474 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2475 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2476 echo "${ECHO_T}$cross_compiling" >&6
2478 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2479 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2481 (eval $ac_link) 2>&5
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); }; then
2485 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2486 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2487 # work properly (i.e., refer to `conftest.exe'), while it won't with
2489 for ac_file in conftest.exe conftest conftest.*; do
2490 test -f "$ac_file" || continue
2492 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2493 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2500 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2501 See \`config.log' for more details." >&5
2502 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2503 See \`config.log' for more details." >&2;}
2504 { (exit 1); exit 1; }; }
2507 rm -f conftest$ac_cv_exeext
2508 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2509 echo "${ECHO_T}$ac_cv_exeext" >&6
2511 rm -f conftest.$ac_ext
2512 EXEEXT=$ac_cv_exeext
2514 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2515 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2516 if test "${ac_cv_objext+set}" = set; then
2517 echo $ECHO_N "(cached) $ECHO_C" >&6
2519 cat >conftest.$ac_ext <<_ACEOF
2522 cat confdefs.h >>conftest.$ac_ext
2523 cat >>conftest.$ac_ext <<_ACEOF
2524 /* end confdefs.h. */
2534 rm -f conftest.o conftest.obj
2535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2536 (eval $ac_compile) 2>&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; then
2540 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2542 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2543 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2548 echo "$as_me: failed program was:" >&5
2549 sed 's/^/| /' conftest.$ac_ext >&5
2551 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2552 See \`config.log' for more details." >&5
2553 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2554 See \`config.log' for more details." >&2;}
2555 { (exit 1); exit 1; }; }
2558 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2560 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2561 echo "${ECHO_T}$ac_cv_objext" >&6
2562 OBJEXT=$ac_cv_objext
2564 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2565 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2566 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2567 echo $ECHO_N "(cached) $ECHO_C" >&6
2569 cat >conftest.$ac_ext <<_ACEOF
2572 cat confdefs.h >>conftest.$ac_ext
2573 cat >>conftest.$ac_ext <<_ACEOF
2574 /* end confdefs.h. */
2587 rm -f conftest.$ac_objext
2588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2589 (eval $ac_compile) 2>conftest.er1
2591 grep -v '^ *+' conftest.er1 >conftest.err
2593 cat conftest.err >&5
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); } &&
2596 { ac_try='test -z "$ac_c_werror_flag"
2597 || test ! -s conftest.err'
2598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); }; } &&
2603 { ac_try='test -s conftest.$ac_objext'
2604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); }; }; then
2611 echo "$as_me: failed program was:" >&5
2612 sed 's/^/| /' conftest.$ac_ext >&5
2616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2617 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2620 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2621 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2622 GCC=`test $ac_compiler_gnu = yes && echo yes`
2623 ac_test_CFLAGS=${CFLAGS+set}
2624 ac_save_CFLAGS=$CFLAGS
2626 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2627 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2628 if test "${ac_cv_prog_cc_g+set}" = set; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
2631 cat >conftest.$ac_ext <<_ACEOF
2634 cat confdefs.h >>conftest.$ac_ext
2635 cat >>conftest.$ac_ext <<_ACEOF
2636 /* end confdefs.h. */
2646 rm -f conftest.$ac_objext
2647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2648 (eval $ac_compile) 2>conftest.er1
2650 grep -v '^ *+' conftest.er1 >conftest.err
2652 cat conftest.err >&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); } &&
2655 { ac_try='test -z "$ac_c_werror_flag"
2656 || test ! -s conftest.err'
2657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }; } &&
2662 { ac_try='test -s conftest.$ac_objext'
2663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }; }; then
2670 echo "$as_me: failed program was:" >&5
2671 sed 's/^/| /' conftest.$ac_ext >&5
2675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2677 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2678 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2679 if test "$ac_test_CFLAGS" = set; then
2680 CFLAGS=$ac_save_CFLAGS
2681 elif test $ac_cv_prog_cc_g = yes; then
2682 if test "$GCC" = yes; then
2688 if test "$GCC" = yes; then
2694 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2695 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2696 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2699 ac_cv_prog_cc_stdc=no
2701 cat >conftest.$ac_ext <<_ACEOF
2704 cat confdefs.h >>conftest.$ac_ext
2705 cat >>conftest.$ac_ext <<_ACEOF
2706 /* end confdefs.h. */
2709 #include <sys/types.h>
2710 #include <sys/stat.h>
2711 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2712 struct buf { int x; };
2713 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2714 static char *e (p, i)
2720 static char *f (char * (*g) (char **, int), char **p, ...)
2725 s = g (p, va_arg (v,int));
2730 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2731 function prototypes and stuff, but not '\xHH' hex character constants.
2732 These don't provoke an error unfortunately, instead are silently treated
2733 as 'x'. The following induces an error, until -std1 is added to get
2734 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2735 array size at least. It's necessary to write '\x00'==0 to get something
2736 that's true only with -std1. */
2737 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2739 int test (int i, double x);
2740 struct s1 {int (*f) (int a);};
2741 struct s2 {int (*f) (double a);};
2742 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2748 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2753 # Don't try gcc -ansi; that turns off useful extensions and
2754 # breaks some systems' header files.
2755 # AIX -qlanglvl=ansi
2756 # Ultrix and OSF/1 -std1
2757 # HP-UX 10.20 and later -Ae
2758 # HP-UX older versions -Aa -D_HPUX_SOURCE
2759 # SVR4 -Xc -D__EXTENSIONS__
2760 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2762 CC="$ac_save_CC $ac_arg"
2763 rm -f conftest.$ac_objext
2764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2765 (eval $ac_compile) 2>conftest.er1
2767 grep -v '^ *+' conftest.er1 >conftest.err
2769 cat conftest.err >&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); } &&
2772 { ac_try='test -z "$ac_c_werror_flag"
2773 || test ! -s conftest.err'
2774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }; } &&
2779 { ac_try='test -s conftest.$ac_objext'
2780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; }; then
2785 ac_cv_prog_cc_stdc=$ac_arg
2788 echo "$as_me: failed program was:" >&5
2789 sed 's/^/| /' conftest.$ac_ext >&5
2792 rm -f conftest.err conftest.$ac_objext
2794 rm -f conftest.$ac_ext conftest.$ac_objext
2799 case "x$ac_cv_prog_cc_stdc" in
2801 echo "$as_me:$LINENO: result: none needed" >&5
2802 echo "${ECHO_T}none needed" >&6 ;;
2804 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2805 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2806 CC="$CC $ac_cv_prog_cc_stdc" ;;
2809 # Some people use a C++ compiler to compile C. Since we use `exit',
2810 # in C++ we need to declare it. In case someone uses the same compiler
2811 # for both compiling C and C++ we need to have the C++ compiler decide
2812 # the declaration of exit, since it's the most demanding environment.
2813 cat >conftest.$ac_ext <<_ACEOF
2818 rm -f conftest.$ac_objext
2819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2820 (eval $ac_compile) 2>conftest.er1
2822 grep -v '^ *+' conftest.er1 >conftest.err
2824 cat conftest.err >&5
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); } &&
2827 { ac_try='test -z "$ac_c_werror_flag"
2828 || test ! -s conftest.err'
2829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); }; } &&
2834 { ac_try='test -s conftest.$ac_objext'
2835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; }; then
2840 for ac_declaration in \
2842 'extern "C" void std::exit (int) throw (); using std::exit;' \
2843 'extern "C" void std::exit (int); using std::exit;' \
2844 'extern "C" void exit (int) throw ();' \
2845 'extern "C" void exit (int);' \
2848 cat >conftest.$ac_ext <<_ACEOF
2851 cat confdefs.h >>conftest.$ac_ext
2852 cat >>conftest.$ac_ext <<_ACEOF
2853 /* end confdefs.h. */
2864 rm -f conftest.$ac_objext
2865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2866 (eval $ac_compile) 2>conftest.er1
2868 grep -v '^ *+' conftest.er1 >conftest.err
2870 cat conftest.err >&5
2871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); } &&
2873 { ac_try='test -z "$ac_c_werror_flag"
2874 || test ! -s conftest.err'
2875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); }; } &&
2880 { ac_try='test -s conftest.$ac_objext'
2881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); }; }; then
2888 echo "$as_me: failed program was:" >&5
2889 sed 's/^/| /' conftest.$ac_ext >&5
2893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2894 cat >conftest.$ac_ext <<_ACEOF
2897 cat confdefs.h >>conftest.$ac_ext
2898 cat >>conftest.$ac_ext <<_ACEOF
2899 /* end confdefs.h. */
2909 rm -f conftest.$ac_objext
2910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2911 (eval $ac_compile) 2>conftest.er1
2913 grep -v '^ *+' conftest.er1 >conftest.err
2915 cat conftest.err >&5
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); } &&
2918 { ac_try='test -z "$ac_c_werror_flag"
2919 || test ! -s conftest.err'
2920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }; } &&
2925 { ac_try='test -s conftest.$ac_objext'
2926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }; }; then
2933 echo "$as_me: failed program was:" >&5
2934 sed 's/^/| /' conftest.$ac_ext >&5
2937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2940 if test -n "$ac_declaration"; then
2941 echo '#ifdef __cplusplus' >>confdefs.h
2942 echo $ac_declaration >>confdefs.h
2943 echo '#endif' >>confdefs.h
2947 echo "$as_me: failed program was:" >&5
2948 sed 's/^/| /' conftest.$ac_ext >&5
2951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2953 ac_cpp='$CPP $CPPFLAGS'
2954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2958 depcc="$CC" am_compiler_list=
2960 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2961 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2962 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2963 echo $ECHO_N "(cached) $ECHO_C" >&6
2965 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2966 # We make a subdir and do the tests there. Otherwise we can end up
2967 # making bogus files that we don't know about and never remove. For
2968 # instance it was reported that on HP-UX the gcc test will end up
2969 # making a dummy file named `D' -- because `-MD' means `put the output
2972 # Copy depcomp to subdir because otherwise we won't find it if we're
2973 # using a relative directory.
2974 cp "$am_depcomp" conftest.dir
2977 am_cv_CC_dependencies_compiler_type=none
2978 if test "$am_compiler_list" = ""; then
2979 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2981 for depmode in $am_compiler_list; do
2982 # We need to recreate these files for each test, as the compiler may
2983 # overwrite some of them when testing with obscure command lines.
2984 # This happens at least with the AIX C compiler.
2985 echo '#include "conftest.h"' > conftest.c
2986 echo 'int i;' > conftest.h
2987 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2991 # after this tag, mechanisms are not by side-effect, so they'll
2992 # only be used when explicitly requested
2993 if test "x$enable_dependency_tracking" = xyes; then
3001 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3002 # mode. It turns out that the SunPro C++ compiler does not properly
3003 # handle `-M -o', and we need to detect this.
3004 if depmode=$depmode \
3005 source=conftest.c object=conftest.o \
3006 depfile=conftest.Po tmpdepfile=conftest.TPo \
3007 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3008 grep conftest.h conftest.Po > /dev/null 2>&1 &&
3009 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3010 am_cv_CC_dependencies_compiler_type=$depmode
3018 am_cv_CC_dependencies_compiler_type=none
3022 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3023 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3024 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3029 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3030 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3031 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3032 echo $ECHO_N "(cached) $ECHO_C" >&6
3034 ac_check_lib_save_LIBS=$LIBS
3035 LIBS="-lcposix $LIBS"
3036 cat >conftest.$ac_ext <<_ACEOF
3039 cat confdefs.h >>conftest.$ac_ext
3040 cat >>conftest.$ac_ext <<_ACEOF
3041 /* end confdefs.h. */
3043 /* Override any gcc2 internal prototype to avoid an error. */
3047 /* We use char because int might match the return type of a gcc2
3048 builtin and then its argument prototype would still apply. */
3058 rm -f conftest.$ac_objext conftest$ac_exeext
3059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3060 (eval $ac_link) 2>conftest.er1
3062 grep -v '^ *+' conftest.er1 >conftest.err
3064 cat conftest.err >&5
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); } &&
3067 { ac_try='test -z "$ac_c_werror_flag"
3068 || test ! -s conftest.err'
3069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); }; } &&
3074 { ac_try='test -s conftest$ac_exeext'
3075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); }; }; then
3080 ac_cv_lib_cposix_strerror=yes
3082 echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3085 ac_cv_lib_cposix_strerror=no
3087 rm -f conftest.err conftest.$ac_objext \
3088 conftest$ac_exeext conftest.$ac_ext
3089 LIBS=$ac_check_lib_save_LIBS
3091 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3092 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
3093 if test $ac_cv_lib_cposix_strerror = yes; then
3094 LIBS="$LIBS -lcposix"
3101 ac_cpp='$CPP $CPPFLAGS'
3102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3105 if test -n "$ac_tool_prefix"; then
3106 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3107 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3108 echo "$as_me:$LINENO: checking for $ac_word" >&5
3109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3110 if test "${ac_cv_prog_CC+set}" = set; then
3111 echo $ECHO_N "(cached) $ECHO_C" >&6
3113 if test -n "$CC"; then
3114 ac_cv_prog_CC="$CC" # Let the user override the test.
3116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120 test -z "$as_dir" && as_dir=.
3121 for ac_exec_ext in '' $ac_executable_extensions; do
3122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3123 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3133 if test -n "$CC"; then
3134 echo "$as_me:$LINENO: result: $CC" >&5
3135 echo "${ECHO_T}$CC" >&6
3137 echo "$as_me:$LINENO: result: no" >&5
3138 echo "${ECHO_T}no" >&6
3142 if test -z "$ac_cv_prog_CC"; then
3144 # Extract the first word of "gcc", so it can be a program name with args.
3145 set dummy gcc; ac_word=$2
3146 echo "$as_me:$LINENO: checking for $ac_word" >&5
3147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3148 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3149 echo $ECHO_N "(cached) $ECHO_C" >&6
3151 if test -n "$ac_ct_CC"; then
3152 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158 test -z "$as_dir" && as_dir=.
3159 for ac_exec_ext in '' $ac_executable_extensions; do
3160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3161 ac_cv_prog_ac_ct_CC="gcc"
3162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3170 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3171 if test -n "$ac_ct_CC"; then
3172 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3173 echo "${ECHO_T}$ac_ct_CC" >&6
3175 echo "$as_me:$LINENO: result: no" >&5
3176 echo "${ECHO_T}no" >&6
3184 if test -z "$CC"; then
3185 if test -n "$ac_tool_prefix"; then
3186 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3187 set dummy ${ac_tool_prefix}cc; ac_word=$2
3188 echo "$as_me:$LINENO: checking for $ac_word" >&5
3189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3190 if test "${ac_cv_prog_CC+set}" = set; then
3191 echo $ECHO_N "(cached) $ECHO_C" >&6
3193 if test -n "$CC"; then
3194 ac_cv_prog_CC="$CC" # Let the user override the test.
3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 test -z "$as_dir" && as_dir=.
3201 for ac_exec_ext in '' $ac_executable_extensions; do
3202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3203 ac_cv_prog_CC="${ac_tool_prefix}cc"
3204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3213 if test -n "$CC"; then
3214 echo "$as_me:$LINENO: result: $CC" >&5
3215 echo "${ECHO_T}$CC" >&6
3217 echo "$as_me:$LINENO: result: no" >&5
3218 echo "${ECHO_T}no" >&6
3222 if test -z "$ac_cv_prog_CC"; then
3224 # Extract the first word of "cc", so it can be a program name with args.
3225 set dummy cc; ac_word=$2
3226 echo "$as_me:$LINENO: checking for $ac_word" >&5
3227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3228 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3229 echo $ECHO_N "(cached) $ECHO_C" >&6
3231 if test -n "$ac_ct_CC"; then
3232 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238 test -z "$as_dir" && as_dir=.
3239 for ac_exec_ext in '' $ac_executable_extensions; do
3240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3241 ac_cv_prog_ac_ct_CC="cc"
3242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3250 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3251 if test -n "$ac_ct_CC"; then
3252 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3253 echo "${ECHO_T}$ac_ct_CC" >&6
3255 echo "$as_me:$LINENO: result: no" >&5
3256 echo "${ECHO_T}no" >&6
3265 if test -z "$CC"; then
3266 # Extract the first word of "cc", so it can be a program name with args.
3267 set dummy cc; ac_word=$2
3268 echo "$as_me:$LINENO: checking for $ac_word" >&5
3269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3270 if test "${ac_cv_prog_CC+set}" = set; then
3271 echo $ECHO_N "(cached) $ECHO_C" >&6
3273 if test -n "$CC"; then
3274 ac_cv_prog_CC="$CC" # Let the user override the test.
3277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281 test -z "$as_dir" && as_dir=.
3282 for ac_exec_ext in '' $ac_executable_extensions; do
3283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3284 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3285 ac_prog_rejected=yes
3289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3295 if test $ac_prog_rejected = yes; then
3296 # We found a bogon in the path, so make sure we never use it.
3297 set dummy $ac_cv_prog_CC
3299 if test $# != 0; then
3300 # We chose a different compiler from the bogus one.
3301 # However, it has the same basename, so the bogon will be chosen
3302 # first if we set CC to just the basename; use the full file name.
3304 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3310 if test -n "$CC"; then
3311 echo "$as_me:$LINENO: result: $CC" >&5
3312 echo "${ECHO_T}$CC" >&6
3314 echo "$as_me:$LINENO: result: no" >&5
3315 echo "${ECHO_T}no" >&6
3319 if test -z "$CC"; then
3320 if test -n "$ac_tool_prefix"; then
3323 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3324 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3325 echo "$as_me:$LINENO: checking for $ac_word" >&5
3326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3327 if test "${ac_cv_prog_CC+set}" = set; then
3328 echo $ECHO_N "(cached) $ECHO_C" >&6
3330 if test -n "$CC"; then
3331 ac_cv_prog_CC="$CC" # Let the user override the test.
3333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337 test -z "$as_dir" && as_dir=.
3338 for ac_exec_ext in '' $ac_executable_extensions; do
3339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3340 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3350 if test -n "$CC"; then
3351 echo "$as_me:$LINENO: result: $CC" >&5
3352 echo "${ECHO_T}$CC" >&6
3354 echo "$as_me:$LINENO: result: no" >&5
3355 echo "${ECHO_T}no" >&6
3358 test -n "$CC" && break
3361 if test -z "$CC"; then
3365 # Extract the first word of "$ac_prog", so it can be a program name with args.
3366 set dummy $ac_prog; ac_word=$2
3367 echo "$as_me:$LINENO: checking for $ac_word" >&5
3368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3369 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3370 echo $ECHO_N "(cached) $ECHO_C" >&6
3372 if test -n "$ac_ct_CC"; then
3373 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379 test -z "$as_dir" && as_dir=.
3380 for ac_exec_ext in '' $ac_executable_extensions; do
3381 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3382 ac_cv_prog_ac_ct_CC="$ac_prog"
3383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3391 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3392 if test -n "$ac_ct_CC"; then
3393 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3394 echo "${ECHO_T}$ac_ct_CC" >&6
3396 echo "$as_me:$LINENO: result: no" >&5
3397 echo "${ECHO_T}no" >&6
3400 test -n "$ac_ct_CC" && break
3409 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3410 See \`config.log' for more details." >&5
3411 echo "$as_me: error: no acceptable C compiler found in \$PATH
3412 See \`config.log' for more details." >&2;}
3413 { (exit 1); exit 1; }; }
3415 # Provide some information about the compiler.
3416 echo "$as_me:$LINENO:" \
3417 "checking for C compiler version" >&5
3418 ac_compiler=`set X $ac_compile; echo $2`
3419 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3420 (eval $ac_compiler --version </dev/null >&5) 2>&5
3422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423 (exit $ac_status); }
3424 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3425 (eval $ac_compiler -v </dev/null >&5) 2>&5
3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); }
3429 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3430 (eval $ac_compiler -V </dev/null >&5) 2>&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); }
3435 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3436 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3437 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3438 echo $ECHO_N "(cached) $ECHO_C" >&6
3440 cat >conftest.$ac_ext <<_ACEOF
3443 cat confdefs.h >>conftest.$ac_ext
3444 cat >>conftest.$ac_ext <<_ACEOF
3445 /* end confdefs.h. */
3458 rm -f conftest.$ac_objext
3459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3460 (eval $ac_compile) 2>conftest.er1
3462 grep -v '^ *+' conftest.er1 >conftest.err
3464 cat conftest.err >&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); } &&
3467 { ac_try='test -z "$ac_c_werror_flag"
3468 || test ! -s conftest.err'
3469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }; } &&
3474 { ac_try='test -s conftest.$ac_objext'
3475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); }; }; then
3482 echo "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.$ac_ext >&5
3487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3488 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3491 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3492 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3493 GCC=`test $ac_compiler_gnu = yes && echo yes`
3494 ac_test_CFLAGS=${CFLAGS+set}
3495 ac_save_CFLAGS=$CFLAGS
3497 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3498 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3499 if test "${ac_cv_prog_cc_g+set}" = set; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3502 cat >conftest.$ac_ext <<_ACEOF
3505 cat confdefs.h >>conftest.$ac_ext
3506 cat >>conftest.$ac_ext <<_ACEOF
3507 /* end confdefs.h. */
3517 rm -f conftest.$ac_objext
3518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3519 (eval $ac_compile) 2>conftest.er1
3521 grep -v '^ *+' conftest.er1 >conftest.err
3523 cat conftest.err >&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); } &&
3526 { ac_try='test -z "$ac_c_werror_flag"
3527 || test ! -s conftest.err'
3528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); }; } &&
3533 { ac_try='test -s conftest.$ac_objext'
3534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); }; }; then
3541 echo "$as_me: failed program was:" >&5
3542 sed 's/^/| /' conftest.$ac_ext >&5
3546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3548 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3549 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3550 if test "$ac_test_CFLAGS" = set; then
3551 CFLAGS=$ac_save_CFLAGS
3552 elif test $ac_cv_prog_cc_g = yes; then
3553 if test "$GCC" = yes; then
3559 if test "$GCC" = yes; then
3565 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3566 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3567 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3568 echo $ECHO_N "(cached) $ECHO_C" >&6
3570 ac_cv_prog_cc_stdc=no
3572 cat >conftest.$ac_ext <<_ACEOF
3575 cat confdefs.h >>conftest.$ac_ext
3576 cat >>conftest.$ac_ext <<_ACEOF
3577 /* end confdefs.h. */
3580 #include <sys/types.h>
3581 #include <sys/stat.h>
3582 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3583 struct buf { int x; };
3584 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3585 static char *e (p, i)
3591 static char *f (char * (*g) (char **, int), char **p, ...)
3596 s = g (p, va_arg (v,int));
3601 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3602 function prototypes and stuff, but not '\xHH' hex character constants.
3603 These don't provoke an error unfortunately, instead are silently treated
3604 as 'x'. The following induces an error, until -std1 is added to get
3605 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3606 array size at least. It's necessary to write '\x00'==0 to get something
3607 that's true only with -std1. */
3608 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3610 int test (int i, double x);
3611 struct s1 {int (*f) (int a);};
3612 struct s2 {int (*f) (double a);};
3613 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3619 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3624 # Don't try gcc -ansi; that turns off useful extensions and
3625 # breaks some systems' header files.
3626 # AIX -qlanglvl=ansi
3627 # Ultrix and OSF/1 -std1
3628 # HP-UX 10.20 and later -Ae
3629 # HP-UX older versions -Aa -D_HPUX_SOURCE
3630 # SVR4 -Xc -D__EXTENSIONS__
3631 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3633 CC="$ac_save_CC $ac_arg"
3634 rm -f conftest.$ac_objext
3635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3636 (eval $ac_compile) 2>conftest.er1
3638 grep -v '^ *+' conftest.er1 >conftest.err
3640 cat conftest.err >&5
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); } &&
3643 { ac_try='test -z "$ac_c_werror_flag"
3644 || test ! -s conftest.err'
3645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); }; } &&
3650 { ac_try='test -s conftest.$ac_objext'
3651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); }; }; then
3656 ac_cv_prog_cc_stdc=$ac_arg
3659 echo "$as_me: failed program was:" >&5
3660 sed 's/^/| /' conftest.$ac_ext >&5
3663 rm -f conftest.err conftest.$ac_objext
3665 rm -f conftest.$ac_ext conftest.$ac_objext
3670 case "x$ac_cv_prog_cc_stdc" in
3672 echo "$as_me:$LINENO: result: none needed" >&5
3673 echo "${ECHO_T}none needed" >&6 ;;
3675 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3676 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3677 CC="$CC $ac_cv_prog_cc_stdc" ;;
3680 # Some people use a C++ compiler to compile C. Since we use `exit',
3681 # in C++ we need to declare it. In case someone uses the same compiler
3682 # for both compiling C and C++ we need to have the C++ compiler decide
3683 # the declaration of exit, since it's the most demanding environment.
3684 cat >conftest.$ac_ext <<_ACEOF
3689 rm -f conftest.$ac_objext
3690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3691 (eval $ac_compile) 2>conftest.er1
3693 grep -v '^ *+' conftest.er1 >conftest.err
3695 cat conftest.err >&5
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); } &&
3698 { ac_try='test -z "$ac_c_werror_flag"
3699 || test ! -s conftest.err'
3700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); }; } &&
3705 { ac_try='test -s conftest.$ac_objext'
3706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); }; }; then
3711 for ac_declaration in \
3713 'extern "C" void std::exit (int) throw (); using std::exit;' \
3714 'extern "C" void std::exit (int); using std::exit;' \
3715 'extern "C" void exit (int) throw ();' \
3716 'extern "C" void exit (int);' \
3719 cat >conftest.$ac_ext <<_ACEOF
3722 cat confdefs.h >>conftest.$ac_ext
3723 cat >>conftest.$ac_ext <<_ACEOF
3724 /* end confdefs.h. */
3735 rm -f conftest.$ac_objext
3736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3737 (eval $ac_compile) 2>conftest.er1
3739 grep -v '^ *+' conftest.er1 >conftest.err
3741 cat conftest.err >&5
3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743 (exit $ac_status); } &&
3744 { ac_try='test -z "$ac_c_werror_flag"
3745 || test ! -s conftest.err'
3746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); }; } &&
3751 { ac_try='test -s conftest.$ac_objext'
3752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756 (exit $ac_status); }; }; then
3759 echo "$as_me: failed program was:" >&5
3760 sed 's/^/| /' conftest.$ac_ext >&5
3764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3765 cat >conftest.$ac_ext <<_ACEOF
3768 cat confdefs.h >>conftest.$ac_ext
3769 cat >>conftest.$ac_ext <<_ACEOF
3770 /* end confdefs.h. */
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"
3790 || test ! -s conftest.err'
3791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); }; } &&
3796 { ac_try='test -s conftest.$ac_objext'
3797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); }; }; then
3804 echo "$as_me: failed program was:" >&5
3805 sed 's/^/| /' conftest.$ac_ext >&5
3808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3811 if test -n "$ac_declaration"; then
3812 echo '#ifdef __cplusplus' >>confdefs.h
3813 echo $ac_declaration >>confdefs.h
3814 echo '#endif' >>confdefs.h
3818 echo "$as_me: failed program was:" >&5
3819 sed 's/^/| /' conftest.$ac_ext >&5
3822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3824 ac_cpp='$CPP $CPPFLAGS'
3825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3829 depcc="$CC" am_compiler_list=
3831 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3832 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3833 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3834 echo $ECHO_N "(cached) $ECHO_C" >&6
3836 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3837 # We make a subdir and do the tests there. Otherwise we can end up
3838 # making bogus files that we don't know about and never remove. For
3839 # instance it was reported that on HP-UX the gcc test will end up
3840 # making a dummy file named `D' -- because `-MD' means `put the output
3843 # Copy depcomp to subdir because otherwise we won't find it if we're
3844 # using a relative directory.
3845 cp "$am_depcomp" conftest.dir
3848 am_cv_CC_dependencies_compiler_type=none
3849 if test "$am_compiler_list" = ""; then
3850 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3852 for depmode in $am_compiler_list; do
3853 # We need to recreate these files for each test, as the compiler may
3854 # overwrite some of them when testing with obscure command lines.
3855 # This happens at least with the AIX C compiler.
3856 echo '#include "conftest.h"' > conftest.c
3857 echo 'int i;' > conftest.h
3858 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3862 # after this tag, mechanisms are not by side-effect, so they'll
3863 # only be used when explicitly requested
3864 if test "x$enable_dependency_tracking" = xyes; then
3872 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3873 # mode. It turns out that the SunPro C++ compiler does not properly
3874 # handle `-M -o', and we need to detect this.
3875 if depmode=$depmode \
3876 source=conftest.c object=conftest.o \
3877 depfile=conftest.Po tmpdepfile=conftest.TPo \
3878 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3879 grep conftest.h conftest.Po > /dev/null 2>&1 &&
3880 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3881 am_cv_CC_dependencies_compiler_type=$depmode
3889 am_cv_CC_dependencies_compiler_type=none
3893 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3894 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3895 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3899 ac_cpp='$CPP $CPPFLAGS'
3900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3903 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3904 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3905 # On Suns, sometimes $CPP names a directory.
3906 if test -n "$CPP" && test -d "$CPP"; then
3909 if test -z "$CPP"; then
3910 if test "${ac_cv_prog_CPP+set}" = set; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
3913 # Double quotes because CPP needs to be expanded
3914 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3917 for ac_c_preproc_warn_flag in '' yes
3919 # Use a header file that comes with gcc, so configuring glibc
3920 # with a fresh cross-compiler works.
3921 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3922 # <limits.h> exists even on freestanding compilers.
3923 # On the NeXT, cc -E runs the code through the compiler's parser,
3924 # not just through cpp. "Syntax error" is here to catch this case.
3925 cat >conftest.$ac_ext <<_ACEOF
3928 cat confdefs.h >>conftest.$ac_ext
3929 cat >>conftest.$ac_ext <<_ACEOF
3930 /* end confdefs.h. */
3932 # include <limits.h>
3934 # include <assert.h>
3938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3941 grep -v '^ *+' conftest.er1 >conftest.err
3943 cat conftest.err >&5
3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945 (exit $ac_status); } >/dev/null; then
3946 if test -s conftest.err; then
3947 ac_cpp_err=$ac_c_preproc_warn_flag
3948 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3955 if test -z "$ac_cpp_err"; then
3958 echo "$as_me: failed program was:" >&5
3959 sed 's/^/| /' conftest.$ac_ext >&5
3961 # Broken: fails on valid input.
3964 rm -f conftest.err conftest.$ac_ext
3966 # OK, works on sane cases. Now check whether non-existent headers
3967 # can be detected and how.
3968 cat >conftest.$ac_ext <<_ACEOF
3971 cat confdefs.h >>conftest.$ac_ext
3972 cat >>conftest.$ac_ext <<_ACEOF
3973 /* end confdefs.h. */
3974 #include <ac_nonexistent.h>
3976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3977 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3979 grep -v '^ *+' conftest.er1 >conftest.err
3981 cat conftest.err >&5
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); } >/dev/null; then
3984 if test -s conftest.err; then
3985 ac_cpp_err=$ac_c_preproc_warn_flag
3986 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3993 if test -z "$ac_cpp_err"; then
3994 # Broken: success on invalid input.
3997 echo "$as_me: failed program was:" >&5
3998 sed 's/^/| /' conftest.$ac_ext >&5
4000 # Passes both tests.
4004 rm -f conftest.err conftest.$ac_ext
4007 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4008 rm -f conftest.err conftest.$ac_ext
4009 if $ac_preproc_ok; then
4021 echo "$as_me:$LINENO: result: $CPP" >&5
4022 echo "${ECHO_T}$CPP" >&6
4024 for ac_c_preproc_warn_flag in '' yes
4026 # Use a header file that comes with gcc, so configuring glibc
4027 # with a fresh cross-compiler works.
4028 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4029 # <limits.h> exists even on freestanding compilers.
4030 # On the NeXT, cc -E runs the code through the compiler's parser,
4031 # not just through cpp. "Syntax error" is here to catch this case.
4032 cat >conftest.$ac_ext <<_ACEOF
4035 cat confdefs.h >>conftest.$ac_ext
4036 cat >>conftest.$ac_ext <<_ACEOF
4037 /* end confdefs.h. */
4039 # include <limits.h>
4041 # include <assert.h>
4045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4046 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4048 grep -v '^ *+' conftest.er1 >conftest.err
4050 cat conftest.err >&5
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); } >/dev/null; then
4053 if test -s conftest.err; then
4054 ac_cpp_err=$ac_c_preproc_warn_flag
4055 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4062 if test -z "$ac_cpp_err"; then
4065 echo "$as_me: failed program was:" >&5
4066 sed 's/^/| /' conftest.$ac_ext >&5
4068 # Broken: fails on valid input.
4071 rm -f conftest.err conftest.$ac_ext
4073 # OK, works on sane cases. Now check whether non-existent headers
4074 # can be detected and how.
4075 cat >conftest.$ac_ext <<_ACEOF
4078 cat confdefs.h >>conftest.$ac_ext
4079 cat >>conftest.$ac_ext <<_ACEOF
4080 /* end confdefs.h. */
4081 #include <ac_nonexistent.h>
4083 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4084 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4086 grep -v '^ *+' conftest.er1 >conftest.err
4088 cat conftest.err >&5
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); } >/dev/null; then
4091 if test -s conftest.err; then
4092 ac_cpp_err=$ac_c_preproc_warn_flag
4093 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4100 if test -z "$ac_cpp_err"; then
4101 # Broken: success on invalid input.
4104 echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.$ac_ext >&5
4107 # Passes both tests.
4111 rm -f conftest.err conftest.$ac_ext
4114 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4115 rm -f conftest.err conftest.$ac_ext
4116 if $ac_preproc_ok; then
4119 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4120 See \`config.log' for more details." >&5
4121 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4122 See \`config.log' for more details." >&2;}
4123 { (exit 1); exit 1; }; }
4127 ac_cpp='$CPP $CPPFLAGS'
4128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4133 echo "$as_me:$LINENO: checking for egrep" >&5
4134 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4135 if test "${ac_cv_prog_egrep+set}" = set; then
4136 echo $ECHO_N "(cached) $ECHO_C" >&6
4138 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4139 then ac_cv_prog_egrep='grep -E'
4140 else ac_cv_prog_egrep='egrep'
4143 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4144 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4145 EGREP=$ac_cv_prog_egrep
4148 if test $ac_cv_c_compiler_gnu = yes; then
4149 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4150 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
4151 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4154 ac_pattern="Autoconf.*'x'"
4155 cat >conftest.$ac_ext <<_ACEOF
4158 cat confdefs.h >>conftest.$ac_ext
4159 cat >>conftest.$ac_ext <<_ACEOF
4160 /* end confdefs.h. */
4164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4165 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4166 ac_cv_prog_gcc_traditional=yes
4168 ac_cv_prog_gcc_traditional=no
4173 if test $ac_cv_prog_gcc_traditional = no; then
4174 cat >conftest.$ac_ext <<_ACEOF
4177 cat confdefs.h >>conftest.$ac_ext
4178 cat >>conftest.$ac_ext <<_ACEOF
4179 /* end confdefs.h. */
4183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4184 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4185 ac_cv_prog_gcc_traditional=yes
4191 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4192 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
4193 if test $ac_cv_prog_gcc_traditional = yes; then
4194 CC="$CC -traditional"
4201 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
4202 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
4203 if test "${am_cv_prog_cc_stdc+set}" = set; then
4204 echo $ECHO_N "(cached) $ECHO_C" >&6
4206 am_cv_prog_cc_stdc=no
4208 # Don't try gcc -ansi; that turns off useful extensions and
4209 # breaks some systems' header files.
4210 # AIX -qlanglvl=ansi
4211 # Ultrix and OSF/1 -std1
4212 # HP-UX 10.20 and later -Ae
4213 # HP-UX older versions -Aa -D_HPUX_SOURCE
4214 # SVR4 -Xc -D__EXTENSIONS__
4215 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4217 CC="$ac_save_CC $ac_arg"
4218 cat >conftest.$ac_ext <<_ACEOF
4221 cat confdefs.h >>conftest.$ac_ext
4222 cat >>conftest.$ac_ext <<_ACEOF
4223 /* end confdefs.h. */
4226 #include <sys/types.h>
4227 #include <sys/stat.h>
4228 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4229 struct buf { int x; };
4230 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4231 static char *e (p, i)
4237 static char *f (char * (*g) (char **, int), char **p, ...)
4242 s = g (p, va_arg (v,int));
4246 int test (int i, double x);
4247 struct s1 {int (*f) (int a);};
4248 struct s2 {int (*f) (double a);};
4249 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4257 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4263 rm -f conftest.$ac_objext
4264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4265 (eval $ac_compile) 2>conftest.er1
4267 grep -v '^ *+' conftest.er1 >conftest.err
4269 cat conftest.err >&5
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); } &&
4272 { ac_try='test -z "$ac_c_werror_flag"
4273 || test ! -s conftest.err'
4274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); }; } &&
4279 { ac_try='test -s conftest.$ac_objext'
4280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); }; }; then
4285 am_cv_prog_cc_stdc="$ac_arg"; break
4287 echo "$as_me: failed program was:" >&5
4288 sed 's/^/| /' conftest.$ac_ext >&5
4291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4297 if test -z "$am_cv_prog_cc_stdc"; then
4298 echo "$as_me:$LINENO: result: none needed" >&5
4299 echo "${ECHO_T}none needed" >&6
4301 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
4302 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
4304 case "x$am_cv_prog_cc_stdc" in
4306 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4309 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4319 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4320 inttypes.h stdint.h unistd.h
4322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4323 echo "$as_me:$LINENO: checking for $ac_header" >&5
4324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4326 echo $ECHO_N "(cached) $ECHO_C" >&6
4328 cat >conftest.$ac_ext <<_ACEOF
4331 cat confdefs.h >>conftest.$ac_ext
4332 cat >>conftest.$ac_ext <<_ACEOF
4333 /* end confdefs.h. */
4334 $ac_includes_default
4336 #include <$ac_header>
4338 rm -f conftest.$ac_objext
4339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4340 (eval $ac_compile) 2>conftest.er1
4342 grep -v '^ *+' conftest.er1 >conftest.err
4344 cat conftest.err >&5
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); } &&
4347 { ac_try='test -z "$ac_c_werror_flag"
4348 || test ! -s conftest.err'
4349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); }; } &&
4354 { ac_try='test -s conftest.$ac_objext'
4355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); }; }; then
4360 eval "$as_ac_Header=yes"
4362 echo "$as_me: failed program was:" >&5
4363 sed 's/^/| /' conftest.$ac_ext >&5
4365 eval "$as_ac_Header=no"
4367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4372 cat >>confdefs.h <<_ACEOF
4373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4383 echo "$as_me:$LINENO: checking for function prototypes" >&5
4384 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4385 if test "$am_cv_prog_cc_stdc" != no; then
4386 echo "$as_me:$LINENO: result: yes" >&5
4387 echo "${ECHO_T}yes" >&6
4389 cat >>confdefs.h <<\_ACEOF
4390 #define PROTOTYPES 1
4395 echo "$as_me:$LINENO: result: no" >&5
4396 echo "${ECHO_T}no" >&6
4397 U=_ ANSI2KNR=./ansi2knr
4399 # Ensure some checks needed by ansi2knr itself.
4400 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4401 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4402 if test "${ac_cv_header_stdc+set}" = set; then
4403 echo $ECHO_N "(cached) $ECHO_C" >&6
4405 cat >conftest.$ac_ext <<_ACEOF
4408 cat confdefs.h >>conftest.$ac_ext
4409 cat >>conftest.$ac_ext <<_ACEOF
4410 /* end confdefs.h. */
4424 rm -f conftest.$ac_objext
4425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4426 (eval $ac_compile) 2>conftest.er1
4428 grep -v '^ *+' conftest.er1 >conftest.err
4430 cat conftest.err >&5
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); } &&
4433 { ac_try='test -z "$ac_c_werror_flag"
4434 || test ! -s conftest.err'
4435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); }; } &&
4440 { ac_try='test -s conftest.$ac_objext'
4441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); }; }; then
4446 ac_cv_header_stdc=yes
4448 echo "$as_me: failed program was:" >&5
4449 sed 's/^/| /' conftest.$ac_ext >&5
4451 ac_cv_header_stdc=no
4453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4455 if test $ac_cv_header_stdc = yes; then
4456 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4457 cat >conftest.$ac_ext <<_ACEOF
4460 cat confdefs.h >>conftest.$ac_ext
4461 cat >>conftest.$ac_ext <<_ACEOF
4462 /* end confdefs.h. */
4466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4467 $EGREP "memchr" >/dev/null 2>&1; then
4470 ac_cv_header_stdc=no
4476 if test $ac_cv_header_stdc = yes; then
4477 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4478 cat >conftest.$ac_ext <<_ACEOF
4481 cat confdefs.h >>conftest.$ac_ext
4482 cat >>conftest.$ac_ext <<_ACEOF
4483 /* end confdefs.h. */
4487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4488 $EGREP "free" >/dev/null 2>&1; then
4491 ac_cv_header_stdc=no
4497 if test $ac_cv_header_stdc = yes; then
4498 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4499 if test "$cross_compiling" = yes; then
4502 cat >conftest.$ac_ext <<_ACEOF
4505 cat confdefs.h >>conftest.$ac_ext
4506 cat >>conftest.$ac_ext <<_ACEOF
4507 /* end confdefs.h. */
4509 #if ((' ' & 0x0FF) == 0x020)
4510 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4511 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4513 # define ISLOWER(c) \
4514 (('a' <= (c) && (c) <= 'i') \
4515 || ('j' <= (c) && (c) <= 'r') \
4516 || ('s' <= (c) && (c) <= 'z'))
4517 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4520 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4525 for (i = 0; i < 256; i++)
4526 if (XOR (islower (i), ISLOWER (i))
4527 || toupper (i) != TOUPPER (i))
4532 rm -f conftest$ac_exeext
4533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4534 (eval $ac_link) 2>&5
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542 (exit $ac_status); }; }; then
4545 echo "$as_me: program exited with status $ac_status" >&5
4546 echo "$as_me: failed program was:" >&5
4547 sed 's/^/| /' conftest.$ac_ext >&5
4550 ac_cv_header_stdc=no
4552 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4556 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4557 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4558 if test $ac_cv_header_stdc = yes; then
4560 cat >>confdefs.h <<\_ACEOF
4561 #define STDC_HEADERS 1
4567 for ac_header in string.h
4569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4571 echo "$as_me:$LINENO: checking for $ac_header" >&5
4572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6
4576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4579 # Is the header compilable?
4580 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4581 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4582 cat >conftest.$ac_ext <<_ACEOF
4585 cat confdefs.h >>conftest.$ac_ext
4586 cat >>conftest.$ac_ext <<_ACEOF
4587 /* end confdefs.h. */
4588 $ac_includes_default
4589 #include <$ac_header>
4591 rm -f conftest.$ac_objext
4592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4593 (eval $ac_compile) 2>conftest.er1
4595 grep -v '^ *+' conftest.er1 >conftest.err
4597 cat conftest.err >&5
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); } &&
4600 { ac_try='test -z "$ac_c_werror_flag"
4601 || test ! -s conftest.err'
4602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); }; } &&
4607 { ac_try='test -s conftest.$ac_objext'
4608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); }; }; then
4613 ac_header_compiler=yes
4615 echo "$as_me: failed program was:" >&5
4616 sed 's/^/| /' conftest.$ac_ext >&5
4618 ac_header_compiler=no
4620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4621 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4622 echo "${ECHO_T}$ac_header_compiler" >&6
4624 # Is the header present?
4625 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4626 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4627 cat >conftest.$ac_ext <<_ACEOF
4630 cat confdefs.h >>conftest.$ac_ext
4631 cat >>conftest.$ac_ext <<_ACEOF
4632 /* end confdefs.h. */
4633 #include <$ac_header>
4635 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4636 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4638 grep -v '^ *+' conftest.er1 >conftest.err
4640 cat conftest.err >&5
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); } >/dev/null; then
4643 if test -s conftest.err; then
4644 ac_cpp_err=$ac_c_preproc_warn_flag
4645 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4652 if test -z "$ac_cpp_err"; then
4653 ac_header_preproc=yes
4655 echo "$as_me: failed program was:" >&5
4656 sed 's/^/| /' conftest.$ac_ext >&5
4658 ac_header_preproc=no
4660 rm -f conftest.err conftest.$ac_ext
4661 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4662 echo "${ECHO_T}$ac_header_preproc" >&6
4664 # So? What about this header?
4665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4667 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4668 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4670 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4671 ac_header_preproc=yes
4674 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4675 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4676 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4677 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4678 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4679 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4680 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4681 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4683 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4684 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4685 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4688 ## ------------------------------------------ ##
4689 ## Report this to the AC_PACKAGE_NAME lists. ##
4690 ## ------------------------------------------ ##
4693 sed "s/^/$as_me: WARNING: /" >&2
4696 echo "$as_me:$LINENO: checking for $ac_header" >&5
4697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 eval "$as_ac_Header=\$ac_header_preproc"
4703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4707 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4708 cat >>confdefs.h <<_ACEOF
4709 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4718 # Check whether --enable-shared or --disable-shared was given.
4719 if test "${enable_shared+set}" = set; then
4720 enableval="$enable_shared"
4721 p=${PACKAGE-default}
4723 yes) enable_shared=yes ;;
4724 no) enable_shared=no ;;
4727 # Look at the argument we got. We use all the common list separators.
4728 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4729 for pkg in $enableval; do
4730 if test "X$pkg" = "X$p"; then
4740 # Check whether --enable-static or --disable-static was given.
4741 if test "${enable_static+set}" = set; then
4742 enableval="$enable_static"
4743 p=${PACKAGE-default}
4745 yes) enable_static=yes ;;
4746 no) enable_static=no ;;
4749 # Look at the argument we got. We use all the common list separators.
4750 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4751 for pkg in $enableval; do
4752 if test "X$pkg" = "X$p"; then
4762 # Check whether --enable-fast-install or --disable-fast-install was given.
4763 if test "${enable_fast_install+set}" = set; then
4764 enableval="$enable_fast_install"
4765 p=${PACKAGE-default}
4767 yes) enable_fast_install=yes ;;
4768 no) enable_fast_install=no ;;
4770 enable_fast_install=no
4771 # Look at the argument we got. We use all the common list separators.
4772 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4773 for pkg in $enableval; do
4774 if test "X$pkg" = "X$p"; then
4775 enable_fast_install=yes
4782 enable_fast_install=yes
4784 # Find the correct PATH separator. Usually this is `:', but
4785 # DJGPP uses `;' like DOS.
4786 if test "X${PATH_SEPARATOR+set}" != Xset; then
4787 UNAME=${UNAME-`uname 2>/dev/null`}
4789 *-DOS) lt_cv_sys_path_separator=';' ;;
4790 *) lt_cv_sys_path_separator=':' ;;
4792 PATH_SEPARATOR=$lt_cv_sys_path_separator
4796 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4797 if test "${with_gnu_ld+set}" = set; then
4798 withval="$with_gnu_ld"
4799 test "$withval" = no || with_gnu_ld=yes
4804 if test "$GCC" = yes; then
4805 # Check if gcc -print-prog-name=ld gives a path.
4806 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4807 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4810 # gcc leaves a trailing carriage return which upsets mingw
4811 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4813 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4816 # Accept absolute paths.
4817 [\\/]* | [A-Za-z]:[\\/]*)
4818 re_direlt='/[^/][^/]*/\.\./'
4819 # Canonicalize the path of ld
4820 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4821 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4822 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4824 test -z "$LD" && LD="$ac_prog"
4827 # If it fails, then pretend we aren't using GCC.
4831 # If it is relative, then search for the first ld in PATH.
4835 elif test "$with_gnu_ld" = yes; then
4836 echo "$as_me:$LINENO: checking for GNU ld" >&5
4837 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4839 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4840 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4842 if test "${lt_cv_path_LD+set}" = set; then
4843 echo $ECHO_N "(cached) $ECHO_C" >&6
4845 if test -z "$LD"; then
4846 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4847 for ac_dir in $PATH; do
4848 test -z "$ac_dir" && ac_dir=.
4849 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4850 lt_cv_path_LD="$ac_dir/$ac_prog"
4851 # Check to see if the program is GNU ld. I'd rather use --version,
4852 # but apparently some GNU ld's only accept -v.
4853 # Break only if it was the GNU/non-GNU ld that we prefer.
4854 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4855 test "$with_gnu_ld" != no && break
4857 test "$with_gnu_ld" != yes && break
4863 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4868 if test -n "$LD"; then
4869 echo "$as_me:$LINENO: result: $LD" >&5
4870 echo "${ECHO_T}$LD" >&6
4872 echo "$as_me:$LINENO: result: no" >&5
4873 echo "${ECHO_T}no" >&6
4875 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4876 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4877 { (exit 1); exit 1; }; }
4878 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4879 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4880 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4881 echo $ECHO_N "(cached) $ECHO_C" >&6
4883 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4884 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4885 lt_cv_prog_gnu_ld=yes
4887 lt_cv_prog_gnu_ld=no
4890 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4891 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4892 with_gnu_ld=$lt_cv_prog_gnu_ld
4895 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4896 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4897 if test "${lt_cv_ld_reload_flag+set}" = set; then
4898 echo $ECHO_N "(cached) $ECHO_C" >&6
4900 lt_cv_ld_reload_flag='-r'
4902 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4903 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4904 reload_flag=$lt_cv_ld_reload_flag
4905 test -n "$reload_flag" && reload_flag=" $reload_flag"
4907 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4908 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4909 if test "${lt_cv_path_NM+set}" = set; then
4910 echo $ECHO_N "(cached) $ECHO_C" >&6
4912 if test -n "$NM"; then
4913 # Let the user override the test.
4916 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4917 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4918 test -z "$ac_dir" && ac_dir=.
4919 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4920 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4921 # Check to see if the nm accepts a BSD-compat flag.
4922 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4923 # nm: unknown option "B" ignored
4924 # Tru64's nm complains that /dev/null is an invalid object file
4925 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4926 lt_cv_path_NM="$tmp_nm -B"
4928 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4929 lt_cv_path_NM="$tmp_nm -p"
4932 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4933 continue # so that we can try to find one that supports BSD flags
4938 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4943 echo "$as_me:$LINENO: result: $NM" >&5
4944 echo "${ECHO_T}$NM" >&6
4946 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4947 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4949 if test "$LN_S" = "ln -s"; then
4950 echo "$as_me:$LINENO: result: yes" >&5
4951 echo "${ECHO_T}yes" >&6
4953 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4954 echo "${ECHO_T}no, using $LN_S" >&6
4957 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4958 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4959 if test "${lt_cv_deplibs_check_method+set}" = set; then
4960 echo $ECHO_N "(cached) $ECHO_C" >&6
4962 lt_cv_file_magic_cmd='$MAGIC_CMD'
4963 lt_cv_file_magic_test_file=
4964 lt_cv_deplibs_check_method='unknown'
4965 # Need to set the preceding variable on all platforms that support
4966 # interlibrary dependencies.
4967 # 'none' -- dependencies not supported.
4968 # `unknown' -- same as none, but documents that we really don't know.
4969 # 'pass_all' -- all dependencies passed with no checks.
4970 # 'test_compile' -- check by making test program.
4971 # 'file_magic [[regex]]' -- check by looking for files in library path
4972 # which responds to the $file_magic_cmd with a given egrep regex.
4973 # If you have `file' or equivalent on your system and you're not sure
4974 # whether `pass_all' will *always* work, you probably want this one.
4978 lt_cv_deplibs_check_method=pass_all
4982 lt_cv_deplibs_check_method=pass_all
4986 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4987 lt_cv_file_magic_cmd='/usr/bin/file -L'
4988 lt_cv_file_magic_test_file=/shlib/libc.so
4991 cygwin* | mingw* | pw32*)
4992 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4993 lt_cv_file_magic_cmd='$OBJDUMP -f'
4996 darwin* | rhapsody*)
4997 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4998 lt_cv_file_magic_cmd='/usr/bin/file -L'
5000 rhapsody* | darwin1.[012])
5001 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
5004 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5010 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5013 # Not sure whether the presence of OpenBSD here was a mistake.
5014 # Let's accept both of them until this is cleared up.
5015 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5016 lt_cv_file_magic_cmd=/usr/bin/file
5017 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5021 lt_cv_deplibs_check_method=pass_all
5026 lt_cv_deplibs_check_method=pass_all
5030 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5031 lt_cv_file_magic_cmd=/usr/bin/file
5032 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5038 # this will be overridden with pass_all, but let us keep it just in case
5039 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5043 *-32|*"-32 ") libmagic=32-bit;;
5044 *-n32|*"-n32 ") libmagic=N32;;
5045 *-64|*"-64 ") libmagic=64-bit;;
5046 *) libmagic=never-match;;
5048 # this will be overridden with pass_all, but let us keep it just in case
5049 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5052 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5053 lt_cv_deplibs_check_method=pass_all
5056 # This must be Linux ELF.
5059 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* )
5060 lt_cv_deplibs_check_method=pass_all ;;
5062 # glibc up to 2.1.1 does not perform some relocations on ARM
5063 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
5065 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
5069 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5070 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5072 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
5077 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5078 lt_cv_file_magic_cmd=/usr/bin/file
5079 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5083 lt_cv_file_magic_cmd=/usr/bin/file
5084 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5085 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5086 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
5088 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
5092 osf3* | osf4* | osf5*)
5093 # this will be overridden with pass_all, but let us keep it just in case
5094 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5095 lt_cv_file_magic_test_file=/shlib/libc.so
5096 lt_cv_deplibs_check_method=pass_all
5100 lt_cv_deplibs_check_method=pass_all
5104 lt_cv_deplibs_check_method=pass_all
5105 lt_cv_file_magic_test_file=/lib/libc.so
5108 sysv5uw[78]* | sysv4*uw2*)
5109 lt_cv_deplibs_check_method=pass_all
5112 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5113 case $host_vendor in
5115 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5116 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5119 lt_cv_deplibs_check_method=pass_all
5122 lt_cv_file_magic_cmd='/bin/file'
5123 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5126 lt_cv_file_magic_cmd='/bin/file'
5127 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5128 lt_cv_file_magic_test_file=/lib/libc.so
5135 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5136 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5137 file_magic_cmd=$lt_cv_file_magic_cmd
5138 deplibs_check_method=$lt_cv_deplibs_check_method
5146 # Check for command to grab the raw symbol name followed by C symbol from nm.
5147 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
5148 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
5149 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5150 echo $ECHO_N "(cached) $ECHO_C" >&6
5153 # These are sane defaults that work on at least a few old systems.
5154 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5156 # Character class describing NM global symbol codes.
5157 symcode='[BCDEGRST]'
5159 # Regexp to match symbols that can be accessed directly from C.
5160 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5162 # Transform the above into a raw symbol and a C symbol.
5163 symxfrm='\1 \2\3 \3'
5165 # Transform an extracted symbol line into a proper C declaration
5166 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
5168 # Transform an extracted symbol line into symbol name and symbol address
5169 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5171 # Define system-specific variables.
5176 cygwin* | mingw* | pw32*)
5177 symcode='[ABCDGISTW]'
5179 hpux*) # Its linker distinguishes data from code symbols
5180 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5181 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5184 symcode='[BCDEGRST]'
5194 # Handle CRLF in mingw tool chain
5198 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5202 # If we're using GNU nm, then use its standard symbol codes.
5203 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
5204 symcode='[ABCDGISTW]'
5207 # Try without a prefix undercore, then with it.
5208 for ac_symprfx in "" "_"; do
5210 # Write the raw and C identifiers.
5211 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5213 # Check to see that the pipe works correctly.
5216 cat > conftest.$ac_ext <<EOF
5221 void nm_test_func(){}
5225 int main(){nm_test_var='a';nm_test_func();return(0);}
5228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5229 (eval $ac_compile) 2>&5
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); }; then
5233 # Now try to grab the symbols.
5235 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5236 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); } && test -s "$nlist"; then
5240 # Try sorting and uniquifying the output.
5241 if sort "$nlist" | uniq > "$nlist"T; then
5242 mv -f "$nlist"T "$nlist"
5247 # Make sure that we snagged all the symbols we need.
5248 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
5249 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
5250 cat <<EOF > conftest.$ac_ext
5256 # Now generate the symbol file.
5257 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
5259 cat <<EOF >> conftest.$ac_ext
5260 #if defined (__STDC__) && __STDC__
5261 # define lt_ptr void *
5263 # define lt_ptr char *
5267 /* The mapping between symbol names and symbols. */
5272 lt_preloaded_symbols[] =
5275 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
5276 cat <<\EOF >> conftest.$ac_ext
5284 # Now try linking the two files.
5285 mv conftest.$ac_objext conftstm.$ac_objext
5287 save_CFLAGS="$CFLAGS"
5288 LIBS="conftstm.$ac_objext"
5289 CFLAGS="$CFLAGS$no_builtin_flag"
5290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5291 (eval $ac_link) 2>&5
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); } && test -s conftest; then
5298 CFLAGS="$save_CFLAGS"
5300 echo "cannot find nm_test_func in $nlist" >&5
5303 echo "cannot find nm_test_var in $nlist" >&5
5306 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5309 echo "$progname: failed program was:" >&5
5310 cat conftest.$ac_ext >&5
5312 rm -f conftest* conftst*
5314 # Do not use the global_symbol_pipe unless it works.
5315 if test "$pipe_works" = yes; then
5318 lt_cv_sys_global_symbol_pipe=
5324 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
5325 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5326 global_symbol_to_cdecl=
5327 global_symbol_to_c_name_address=
5329 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
5330 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
5332 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
5334 echo "$as_me:$LINENO: result: failed" >&5
5335 echo "${ECHO_T}failed" >&6
5337 echo "$as_me:$LINENO: result: ok" >&5
5338 echo "${ECHO_T}ok" >&6
5342 for ac_header in dlfcn.h
5344 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5346 echo "$as_me:$LINENO: checking for $ac_header" >&5
5347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5349 echo $ECHO_N "(cached) $ECHO_C" >&6
5351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5354 # Is the header compilable?
5355 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5356 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5357 cat >conftest.$ac_ext <<_ACEOF
5360 cat confdefs.h >>conftest.$ac_ext
5361 cat >>conftest.$ac_ext <<_ACEOF
5362 /* end confdefs.h. */
5363 $ac_includes_default
5364 #include <$ac_header>
5366 rm -f conftest.$ac_objext
5367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5368 (eval $ac_compile) 2>conftest.er1
5370 grep -v '^ *+' conftest.er1 >conftest.err
5372 cat conftest.err >&5
5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); } &&
5375 { ac_try='test -z "$ac_c_werror_flag"
5376 || test ! -s conftest.err'
5377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); }; } &&
5382 { ac_try='test -s conftest.$ac_objext'
5383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); }; }; then
5388 ac_header_compiler=yes
5390 echo "$as_me: failed program was:" >&5
5391 sed 's/^/| /' conftest.$ac_ext >&5
5393 ac_header_compiler=no
5395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5396 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5397 echo "${ECHO_T}$ac_header_compiler" >&6
5399 # Is the header present?
5400 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5401 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5402 cat >conftest.$ac_ext <<_ACEOF
5405 cat confdefs.h >>conftest.$ac_ext
5406 cat >>conftest.$ac_ext <<_ACEOF
5407 /* end confdefs.h. */
5408 #include <$ac_header>
5410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5413 grep -v '^ *+' conftest.er1 >conftest.err
5415 cat conftest.err >&5
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); } >/dev/null; then
5418 if test -s conftest.err; then
5419 ac_cpp_err=$ac_c_preproc_warn_flag
5420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5427 if test -z "$ac_cpp_err"; then
5428 ac_header_preproc=yes
5430 echo "$as_me: failed program was:" >&5
5431 sed 's/^/| /' conftest.$ac_ext >&5
5433 ac_header_preproc=no
5435 rm -f conftest.err conftest.$ac_ext
5436 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5437 echo "${ECHO_T}$ac_header_preproc" >&6
5439 # So? What about this header?
5440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5442 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5445 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5446 ac_header_preproc=yes
5449 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5451 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5452 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5453 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5454 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5455 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5456 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5459 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5460 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5463 ## ------------------------------------------ ##
5464 ## Report this to the AC_PACKAGE_NAME lists. ##
5465 ## ------------------------------------------ ##
5468 sed "s/^/$as_me: WARNING: /" >&2
5471 echo "$as_me:$LINENO: checking for $ac_header" >&5
5472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5474 echo $ECHO_N "(cached) $ECHO_C" >&6
5476 eval "$as_ac_Header=\$ac_header_preproc"
5478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5479 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5483 cat >>confdefs.h <<_ACEOF
5484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5495 # Only perform the check for file, if the check method requires it
5496 case $deplibs_check_method in
5498 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5499 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5500 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5501 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5502 echo $ECHO_N "(cached) $ECHO_C" >&6
5506 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5509 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5512 ac_save_MAGIC_CMD="$MAGIC_CMD"
5513 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5514 ac_dummy="/usr/bin:$PATH"
5515 for ac_dir in $ac_dummy; do
5516 test -z "$ac_dir" && ac_dir=.
5517 if test -f $ac_dir/${ac_tool_prefix}file; then
5518 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5519 if test -n "$file_magic_test_file"; then
5520 case $deplibs_check_method in
5522 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5523 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5524 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5525 egrep "$file_magic_regex" > /dev/null; then
5530 *** Warning: the command libtool uses to detect shared libraries,
5531 *** $file_magic_cmd, produces output that libtool cannot recognize.
5532 *** The result is that libtool may fail to recognize shared libraries
5533 *** as such. This will affect the creation of libtool libraries that
5534 *** depend on shared libraries, but programs linked with such libtool
5535 *** libraries will work regardless of this problem. Nevertheless, you
5536 *** may want to report the problem to your system manager and/or to
5537 *** bug-libtool@gnu.org
5547 MAGIC_CMD="$ac_save_MAGIC_CMD"
5552 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5553 if test -n "$MAGIC_CMD"; then
5554 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5555 echo "${ECHO_T}$MAGIC_CMD" >&6
5557 echo "$as_me:$LINENO: result: no" >&5
5558 echo "${ECHO_T}no" >&6
5561 if test -z "$lt_cv_path_MAGIC_CMD"; then
5562 if test -n "$ac_tool_prefix"; then
5563 echo "$as_me:$LINENO: checking for file" >&5
5564 echo $ECHO_N "checking for file... $ECHO_C" >&6
5565 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5566 echo $ECHO_N "(cached) $ECHO_C" >&6
5570 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5573 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5576 ac_save_MAGIC_CMD="$MAGIC_CMD"
5577 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5578 ac_dummy="/usr/bin:$PATH"
5579 for ac_dir in $ac_dummy; do
5580 test -z "$ac_dir" && ac_dir=.
5581 if test -f $ac_dir/file; then
5582 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5583 if test -n "$file_magic_test_file"; then
5584 case $deplibs_check_method in
5586 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5587 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5588 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5589 egrep "$file_magic_regex" > /dev/null; then
5594 *** Warning: the command libtool uses to detect shared libraries,
5595 *** $file_magic_cmd, produces output that libtool cannot recognize.
5596 *** The result is that libtool may fail to recognize shared libraries
5597 *** as such. This will affect the creation of libtool libraries that
5598 *** depend on shared libraries, but programs linked with such libtool
5599 *** libraries will work regardless of this problem. Nevertheless, you
5600 *** may want to report the problem to your system manager and/or to
5601 *** bug-libtool@gnu.org
5611 MAGIC_CMD="$ac_save_MAGIC_CMD"
5616 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5617 if test -n "$MAGIC_CMD"; then
5618 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5619 echo "${ECHO_T}$MAGIC_CMD" >&6
5621 echo "$as_me:$LINENO: result: no" >&5
5622 echo "${ECHO_T}no" >&6
5634 if test -n "$ac_tool_prefix"; then
5635 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5636 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5637 echo "$as_me:$LINENO: checking for $ac_word" >&5
5638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5639 if test "${ac_cv_prog_RANLIB+set}" = set; then
5640 echo $ECHO_N "(cached) $ECHO_C" >&6
5642 if test -n "$RANLIB"; then
5643 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5649 test -z "$as_dir" && as_dir=.
5650 for ac_exec_ext in '' $ac_executable_extensions; do
5651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5652 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5661 RANLIB=$ac_cv_prog_RANLIB
5662 if test -n "$RANLIB"; then
5663 echo "$as_me:$LINENO: result: $RANLIB" >&5
5664 echo "${ECHO_T}$RANLIB" >&6
5666 echo "$as_me:$LINENO: result: no" >&5
5667 echo "${ECHO_T}no" >&6
5671 if test -z "$ac_cv_prog_RANLIB"; then
5672 ac_ct_RANLIB=$RANLIB
5673 # Extract the first word of "ranlib", so it can be a program name with args.
5674 set dummy ranlib; ac_word=$2
5675 echo "$as_me:$LINENO: checking for $ac_word" >&5
5676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5677 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5678 echo $ECHO_N "(cached) $ECHO_C" >&6
5680 if test -n "$ac_ct_RANLIB"; then
5681 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5687 test -z "$as_dir" && as_dir=.
5688 for ac_exec_ext in '' $ac_executable_extensions; do
5689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5690 ac_cv_prog_ac_ct_RANLIB="ranlib"
5691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5697 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5700 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5701 if test -n "$ac_ct_RANLIB"; then
5702 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5703 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5705 echo "$as_me:$LINENO: result: no" >&5
5706 echo "${ECHO_T}no" >&6
5709 RANLIB=$ac_ct_RANLIB
5711 RANLIB="$ac_cv_prog_RANLIB"
5714 if test -n "$ac_tool_prefix"; then
5715 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5716 set dummy ${ac_tool_prefix}strip; ac_word=$2
5717 echo "$as_me:$LINENO: checking for $ac_word" >&5
5718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5719 if test "${ac_cv_prog_STRIP+set}" = set; then
5720 echo $ECHO_N "(cached) $ECHO_C" >&6
5722 if test -n "$STRIP"; then
5723 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5729 test -z "$as_dir" && as_dir=.
5730 for ac_exec_ext in '' $ac_executable_extensions; do
5731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5732 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5741 STRIP=$ac_cv_prog_STRIP
5742 if test -n "$STRIP"; then
5743 echo "$as_me:$LINENO: result: $STRIP" >&5
5744 echo "${ECHO_T}$STRIP" >&6
5746 echo "$as_me:$LINENO: result: no" >&5
5747 echo "${ECHO_T}no" >&6
5751 if test -z "$ac_cv_prog_STRIP"; then
5753 # Extract the first word of "strip", so it can be a program name with args.
5754 set dummy strip; ac_word=$2
5755 echo "$as_me:$LINENO: checking for $ac_word" >&5
5756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5757 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
5760 if test -n "$ac_ct_STRIP"; then
5761 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767 test -z "$as_dir" && as_dir=.
5768 for ac_exec_ext in '' $ac_executable_extensions; do
5769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5770 ac_cv_prog_ac_ct_STRIP="strip"
5771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5777 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5780 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5781 if test -n "$ac_ct_STRIP"; then
5782 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5783 echo "${ECHO_T}$ac_ct_STRIP" >&6
5785 echo "$as_me:$LINENO: result: no" >&5
5786 echo "${ECHO_T}no" >&6
5791 STRIP="$ac_cv_prog_STRIP"
5798 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5799 if test "${enable_libtool_lock+set}" = set; then
5800 enableval="$enable_libtool_lock"
5803 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5805 # Some flags need to be propagated to the compiler or linker for good
5809 # Find out which ABI we are using.
5810 echo '#line 5810 "configure"' > conftest.$ac_ext
5811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5812 (eval $ac_compile) 2>&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); }; then
5816 case `/usr/bin/file conftest.$ac_objext` in
5832 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5833 SAVE_CFLAGS="$CFLAGS"
5834 CFLAGS="$CFLAGS -belf"
5835 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5836 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5837 if test "${lt_cv_cc_needs_belf+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5843 ac_cpp='$CPP $CPPFLAGS'
5844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5848 cat >conftest.$ac_ext <<_ACEOF
5851 cat confdefs.h >>conftest.$ac_ext
5852 cat >>conftest.$ac_ext <<_ACEOF
5853 /* end confdefs.h. */
5863 rm -f conftest.$ac_objext conftest$ac_exeext
5864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5865 (eval $ac_link) 2>conftest.er1
5867 grep -v '^ *+' conftest.er1 >conftest.err
5869 cat conftest.err >&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } &&
5872 { ac_try='test -z "$ac_c_werror_flag"
5873 || test ! -s conftest.err'
5874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }; } &&
5879 { ac_try='test -s conftest$ac_exeext'
5880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); }; }; then
5885 lt_cv_cc_needs_belf=yes
5887 echo "$as_me: failed program was:" >&5
5888 sed 's/^/| /' conftest.$ac_ext >&5
5890 lt_cv_cc_needs_belf=no
5892 rm -f conftest.err conftest.$ac_objext \
5893 conftest$ac_exeext conftest.$ac_ext
5895 ac_cpp='$CPP $CPPFLAGS'
5896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5901 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5902 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5903 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5904 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5905 CFLAGS="$SAVE_CFLAGS"
5912 # Sed substitution that helps us do robust quoting. It backslashifies
5913 # metacharacters that are still active within double-quoted strings.
5914 Xsed='sed -e s/^X//'
5915 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5917 # Same as above, but do not quote variable references.
5918 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5920 # Sed substitution to delay expansion of an escaped shell variable in a
5921 # double_quote_subst'ed string.
5922 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5928 default_ofile=libtool
5929 can_build_shared=yes
5931 # All known linkers require a `.a' archive for static linking (except M$VC,
5932 # which needs '.lib').
5934 ltmain="$ac_aux_dir/ltmain.sh"
5935 ofile="$default_ofile"
5936 with_gnu_ld="$lt_cv_prog_gnu_ld"
5937 need_locks="$enable_libtool_lock"
5940 old_CFLAGS="$CFLAGS"
5942 # Set sane defaults for various variables
5943 test -z "$AR" && AR=ar
5944 test -z "$AR_FLAGS" && AR_FLAGS=cru
5945 test -z "$AS" && AS=as
5946 test -z "$CC" && CC=cc
5947 test -z "$DLLTOOL" && DLLTOOL=dlltool
5948 test -z "$LD" && LD=ld
5949 test -z "$LN_S" && LN_S="ln -s"
5950 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5951 test -z "$NM" && NM=nm
5952 test -z "$OBJDUMP" && OBJDUMP=objdump
5953 test -z "$RANLIB" && RANLIB=:
5954 test -z "$STRIP" && STRIP=:
5955 test -z "$ac_objext" && ac_objext=o
5957 if test x"$host" != x"$build"; then
5958 ac_tool_prefix=${host_alias}-
5963 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5966 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5971 # AIX sometimes has problems with the GCC collect2 program. For some
5972 # reason, if we set the COLLECT_NAMES environment variable, the problems
5973 # vanish in a puff of smoke.
5974 if test "X${COLLECT_NAMES+set}" != Xset; then
5976 export COLLECT_NAMES
5981 # Determine commands to create old-style static archives.
5982 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5983 old_postinstall_cmds='chmod 644 $oldlib'
5984 old_postuninstall_cmds=
5986 if test -n "$RANLIB"; then
5989 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5992 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5995 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5998 # Allow CC to be a program name with arguments.
6002 echo "$as_me:$LINENO: checking for objdir" >&5
6003 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6004 rm -f .libs 2>/dev/null
6005 mkdir .libs 2>/dev/null
6006 if test -d .libs; then
6009 # MS-DOS does not allow filenames that begin with a dot.
6012 rmdir .libs 2>/dev/null
6013 echo "$as_me:$LINENO: result: $objdir" >&5
6014 echo "${ECHO_T}$objdir" >&6
6018 # Check whether --with-pic or --without-pic was given.
6019 if test "${with_pic+set}" = set; then
6025 test -z "$pic_mode" && pic_mode=default
6027 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
6028 # in isolation, and that seeing it set (from the cache) indicates that
6029 # the associated values are set (in the cache) correctly too.
6030 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6031 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6032 if test "${lt_cv_prog_cc_pic+set}" = set; then
6033 echo $ECHO_N "(cached) $ECHO_C" >&6
6036 lt_cv_prog_cc_shlib=
6038 lt_cv_prog_cc_static=
6039 lt_cv_prog_cc_no_builtin=
6040 lt_cv_prog_cc_can_build_shared=$can_build_shared
6042 if test "$GCC" = yes; then
6043 lt_cv_prog_cc_wl='-Wl,'
6044 lt_cv_prog_cc_static='-static'
6048 # Below there is a dirty hack to force normal static linking with -ldl
6049 # The problem is because libdl dynamically linked with both libc and
6050 # libC (AIX C++ library), which obviously doesn't included in libraries
6051 # list by gcc. This cause undefined symbols with -static flags.
6052 # This hack allows C programs to be linked with "-static -ldl", but
6053 # not sure about C++ programs.
6054 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
6057 # FIXME: we need at least 68020 code to build shared libraries, but
6058 # adding the `-m68020' flag to GCC prevents building anything better,
6060 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
6062 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
6063 # PIC is the default for these OSes.
6065 darwin* | rhapsody*)
6066 # PIC is the default on this platform
6067 # Common symbols not allowed in MH_DYLIB files
6068 lt_cv_prog_cc_pic='-fno-common'
6070 cygwin* | mingw* | pw32* | os2*)
6071 # This hack is so that the source file can tell whether it is being
6072 # built for inclusion in a dll (and should export symbols for example).
6073 lt_cv_prog_cc_pic='-DDLL_EXPORT'
6076 if test -d /usr/nec; then
6077 lt_cv_prog_cc_pic=-Kconform_pic
6081 lt_cv_prog_cc_pic='-fPIC'
6085 # PORTME Check for PIC flags for the system compiler.
6087 aix3* | aix4* | aix5*)
6088 lt_cv_prog_cc_wl='-Wl,'
6089 # All AIX code is PIC.
6090 if test "$host_cpu" = ia64; then
6091 # AIX 5 now supports IA64 processor
6092 lt_cv_prog_cc_static='-Bstatic'
6094 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
6098 hpux9* | hpux10* | hpux11*)
6099 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
6100 lt_cv_prog_cc_wl='-Wl,'
6101 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
6102 lt_cv_prog_cc_pic='+Z'
6106 lt_cv_prog_cc_wl='-Wl,'
6107 lt_cv_prog_cc_static='-non_shared'
6108 # PIC (with -KPIC) is the default.
6111 cygwin* | mingw* | pw32* | os2*)
6112 # This hack is so that the source file can tell whether it is being
6113 # built for inclusion in a dll (and should export symbols for example).
6114 lt_cv_prog_cc_pic='-DDLL_EXPORT'
6118 lt_cv_prog_cc_pic='-KPIC'
6119 lt_cv_prog_cc_static='-Bstatic'
6122 osf3* | osf4* | osf5*)
6123 # All OSF/1 code is PIC.
6124 lt_cv_prog_cc_wl='-Wl,'
6125 lt_cv_prog_cc_static='-non_shared'
6129 lt_cv_prog_cc_pic='-Kpic'
6130 lt_cv_prog_cc_static='-dn'
6131 lt_cv_prog_cc_shlib='-belf'
6135 lt_cv_prog_cc_pic='-KPIC'
6136 lt_cv_prog_cc_static='-Bstatic'
6137 lt_cv_prog_cc_wl='-Wl,'
6141 lt_cv_prog_cc_pic='-PIC'
6142 lt_cv_prog_cc_static='-Bstatic'
6143 lt_cv_prog_cc_wl='-Qoption ld '
6146 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6147 lt_cv_prog_cc_pic='-KPIC'
6148 lt_cv_prog_cc_static='-Bstatic'
6149 if test "x$host_vendor" = xsni; then
6150 lt_cv_prog_cc_wl='-LD'
6152 lt_cv_prog_cc_wl='-Wl,'
6157 lt_cv_prog_cc_pic='-pic'
6158 lt_cv_prog_cc_static='-Bstatic'
6162 if test -d /usr/nec ;then
6163 lt_cv_prog_cc_pic='-Kconform_pic'
6164 lt_cv_prog_cc_static='-Bstatic'
6169 lt_cv_prog_cc_can_build_shared=no
6176 if test -z "$lt_cv_prog_cc_pic"; then
6177 echo "$as_me:$LINENO: result: none" >&5
6178 echo "${ECHO_T}none" >&6
6180 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
6181 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
6183 # Check to make sure the pic_flag actually works.
6184 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
6185 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
6186 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
6187 echo $ECHO_N "(cached) $ECHO_C" >&6
6189 save_CFLAGS="$CFLAGS"
6190 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
6191 cat >conftest.$ac_ext <<_ACEOF
6194 cat confdefs.h >>conftest.$ac_ext
6195 cat >>conftest.$ac_ext <<_ACEOF
6196 /* end confdefs.h. */
6206 rm -f conftest.$ac_objext
6207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6208 (eval $ac_compile) 2>conftest.er1
6210 grep -v '^ *+' conftest.er1 >conftest.err
6212 cat conftest.err >&5
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); } &&
6215 { ac_try='test -z "$ac_c_werror_flag"
6216 || test ! -s conftest.err'
6217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); }; } &&
6222 { ac_try='test -s conftest.$ac_objext'
6223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); }; }; then
6229 hpux9* | hpux10* | hpux11*)
6230 # On HP-UX, both CC and GCC only warn that PIC is supported... then
6231 # they create non-PIC objects. So, if there were any warnings, we
6232 # assume that PIC is not supported.
6233 if test -s conftest.err; then
6234 lt_cv_prog_cc_pic_works=no
6236 lt_cv_prog_cc_pic_works=yes
6240 lt_cv_prog_cc_pic_works=yes
6245 echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.$ac_ext >&5
6248 lt_cv_prog_cc_pic_works=no
6251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6252 CFLAGS="$save_CFLAGS"
6257 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
6259 lt_cv_prog_cc_can_build_shared=no
6261 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
6264 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
6265 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
6268 # Check for any special shared library compilation flags.
6269 if test -n "$lt_cv_prog_cc_shlib"; then
6270 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
6271 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
6272 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
6274 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6275 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6276 lt_cv_prog_cc_can_build_shared=no
6280 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
6281 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
6282 if test "${lt_cv_prog_cc_static_works+set}" = set; then
6283 echo $ECHO_N "(cached) $ECHO_C" >&6
6285 lt_cv_prog_cc_static_works=no
6286 save_LDFLAGS="$LDFLAGS"
6287 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
6288 cat >conftest.$ac_ext <<_ACEOF
6291 cat confdefs.h >>conftest.$ac_ext
6292 cat >>conftest.$ac_ext <<_ACEOF
6293 /* end confdefs.h. */
6303 rm -f conftest.$ac_objext conftest$ac_exeext
6304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6305 (eval $ac_link) 2>conftest.er1
6307 grep -v '^ *+' conftest.er1 >conftest.err
6309 cat conftest.err >&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); } &&
6312 { ac_try='test -z "$ac_c_werror_flag"
6313 || test ! -s conftest.err'
6314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); }; } &&
6319 { ac_try='test -s conftest$ac_exeext'
6320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); }; }; then
6325 lt_cv_prog_cc_static_works=yes
6327 echo "$as_me: failed program was:" >&5
6328 sed 's/^/| /' conftest.$ac_ext >&5
6331 rm -f conftest.err conftest.$ac_objext \
6332 conftest$ac_exeext conftest.$ac_ext
6333 LDFLAGS="$save_LDFLAGS"
6338 # Belt *and* braces to stop my trousers falling down:
6339 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
6340 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
6341 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
6343 pic_flag="$lt_cv_prog_cc_pic"
6344 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
6345 wl="$lt_cv_prog_cc_wl"
6346 link_static_flag="$lt_cv_prog_cc_static"
6347 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
6348 can_build_shared="$lt_cv_prog_cc_can_build_shared"
6351 # Check to see if options -o and -c are simultaneously supported by compiler
6352 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6353 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6354 if test "${lt_cv_compiler_c_o+set}" = set; then
6355 echo $ECHO_N "(cached) $ECHO_C" >&6
6358 $rm -r conftest 2>/dev/null
6361 echo "int some_variable = 0;" > conftest.$ac_ext
6363 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6364 # that will create temporary files in the current directory regardless of
6365 # the output directory. Thus, making CWD read-only will cause this test
6366 # to fail, enabling locking or at least warning the user not to do parallel
6369 save_CFLAGS="$CFLAGS"
6370 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
6372 if { (eval echo configure:6372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
6373 # The compiler can only warn and ignore the option if not recognized
6374 # So say no if there are warnings
6375 if test -s out/conftest.err; then
6376 lt_cv_compiler_c_o=no
6378 lt_cv_compiler_c_o=yes
6381 # Append any errors to the config.log.
6382 cat out/conftest.err 1>&5
6383 lt_cv_compiler_c_o=no
6385 CFLAGS="$save_CFLAGS"
6391 $rm -r conftest 2>/dev/null
6395 compiler_c_o=$lt_cv_compiler_c_o
6396 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
6397 echo "${ECHO_T}$compiler_c_o" >&6
6399 if test x"$compiler_c_o" = x"yes"; then
6400 # Check to see if we can write to a .lo
6401 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
6402 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
6403 if test "${lt_cv_compiler_o_lo+set}" = set; then
6404 echo $ECHO_N "(cached) $ECHO_C" >&6
6407 lt_cv_compiler_o_lo=no
6408 save_CFLAGS="$CFLAGS"
6409 CFLAGS="$CFLAGS -c -o conftest.lo"
6410 save_objext="$ac_objext"
6412 cat >conftest.$ac_ext <<_ACEOF
6415 cat confdefs.h >>conftest.$ac_ext
6416 cat >>conftest.$ac_ext <<_ACEOF
6417 /* end confdefs.h. */
6422 int some_variable = 0;
6427 rm -f conftest.$ac_objext
6428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6429 (eval $ac_compile) 2>conftest.er1
6431 grep -v '^ *+' conftest.er1 >conftest.err
6433 cat conftest.err >&5
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); } &&
6436 { ac_try='test -z "$ac_c_werror_flag"
6437 || test ! -s conftest.err'
6438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); }; } &&
6443 { ac_try='test -s conftest.$ac_objext'
6444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); }; }; then
6449 # The compiler can only warn and ignore the option if not recognized
6450 # So say no if there are warnings
6451 if test -s conftest.err; then
6452 lt_cv_compiler_o_lo=no
6454 lt_cv_compiler_o_lo=yes
6458 echo "$as_me: failed program was:" >&5
6459 sed 's/^/| /' conftest.$ac_ext >&5
6462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6463 ac_objext="$save_objext"
6464 CFLAGS="$save_CFLAGS"
6468 compiler_o_lo=$lt_cv_compiler_o_lo
6469 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
6470 echo "${ECHO_T}$compiler_o_lo" >&6
6475 # Check to see if we can do hard links to lock some files if needed
6476 hard_links="nottested"
6477 if test "$compiler_c_o" = no && test "$need_locks" != no; then
6478 # do not overwrite the value of need_locks provided by the user
6479 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6480 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6483 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6485 ln conftest.a conftest.b 2>&5 || hard_links=no
6486 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6487 echo "$as_me:$LINENO: result: $hard_links" >&5
6488 echo "${ECHO_T}$hard_links" >&6
6489 if test "$hard_links" = no; then
6490 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6491 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6498 if test "$GCC" = yes; then
6499 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
6500 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6501 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6502 echo "int some_variable = 0;" > conftest.$ac_ext
6503 save_CFLAGS="$CFLAGS"
6504 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
6505 compiler_rtti_exceptions=no
6506 cat >conftest.$ac_ext <<_ACEOF
6509 cat confdefs.h >>conftest.$ac_ext
6510 cat >>conftest.$ac_ext <<_ACEOF
6511 /* end confdefs.h. */
6516 int some_variable = 0;
6521 rm -f conftest.$ac_objext
6522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6523 (eval $ac_compile) 2>conftest.er1
6525 grep -v '^ *+' conftest.er1 >conftest.err
6527 cat conftest.err >&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); } &&
6530 { ac_try='test -z "$ac_c_werror_flag"
6531 || test ! -s conftest.err'
6532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); }; } &&
6537 { ac_try='test -s conftest.$ac_objext'
6538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); }; }; then
6543 # The compiler can only warn and ignore the option if not recognized
6544 # So say no if there are warnings
6545 if test -s conftest.err; then
6546 compiler_rtti_exceptions=no
6548 compiler_rtti_exceptions=yes
6552 echo "$as_me: failed program was:" >&5
6553 sed 's/^/| /' conftest.$ac_ext >&5
6556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6557 CFLAGS="$save_CFLAGS"
6558 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
6559 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
6561 if test "$compiler_rtti_exceptions" = "yes"; then
6562 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
6564 no_builtin_flag=' -fno-builtin'
6568 # See if the linker supports building shared libraries.
6569 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
6570 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
6572 allow_undefined_flag=
6574 need_lib_prefix=unknown
6575 need_version=unknown
6576 # when you set need_version to no, make sure it does not cause -set_version
6577 # flags to be left without arguments
6579 archive_expsym_cmds=
6580 old_archive_from_new_cmds=
6581 old_archive_from_expsyms_cmds=
6582 export_dynamic_flag_spec=
6583 whole_archive_flag_spec=
6584 thread_safe_flag_spec=
6585 hardcode_into_libs=no
6586 hardcode_libdir_flag_spec=
6587 hardcode_libdir_separator=
6590 hardcode_shlibpath_var=unsupported
6592 link_all_deplibs=unknown
6593 always_export_symbols=no
6594 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
6595 # include_expsyms should be a list of space-separated symbols to be *always*
6596 # included in the symbol list
6598 # exclude_expsyms can be an egrep regular expression of symbols to exclude
6599 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6600 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6601 # as well as any symbol that contains `d'.
6602 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6603 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6604 # platforms (ab)use it in PIC code, but their linkers get confused if
6605 # the symbol is explicitly referenced. Since portable code cannot
6606 # rely on this symbol name, it's probably fine to never include it in
6607 # preloaded symbol tables.
6608 extract_expsyms_cmds=
6611 cygwin* | mingw* | pw32*)
6612 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6613 # When not using gcc, we currently assume that we are using
6614 # Microsoft Visual C++.
6615 if test "$GCC" != yes; then
6625 if test "$with_gnu_ld" = yes; then
6626 # If archive_cmds runs LD, not CC, wlarc should be empty
6629 # See if GNU ld supports shared libraries.
6631 aix3* | aix4* | aix5*)
6632 # On AIX, the GNU linker is very broken
6633 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
6637 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6638 *** to be unable to reliably create shared libraries on AIX.
6639 *** Therefore, libtool is disabling shared libraries support. If you
6640 *** really care for shared libraries, you may want to modify your PATH
6641 *** so that a non-GNU linker is found, and then restart.
6647 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6648 hardcode_libdir_flag_spec='-L$libdir'
6649 hardcode_minus_L=yes
6651 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6652 # that the semantics of dynamic libraries on AmigaOS, at least up
6653 # to version 4, is to share data among multiple programs linked
6654 # with the same dynamic library. Since this doesn't match the
6655 # behavior of shared libraries on other platforms, we can use
6661 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6662 allow_undefined_flag=unsupported
6663 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6664 # support --undefined. This deserves some investigation. FIXME
6665 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6671 cygwin* | mingw* | pw32*)
6672 # hardcode_libdir_flag_spec is actually meaningless, as there is
6673 # no search path for DLLs.
6674 hardcode_libdir_flag_spec='-L$libdir'
6675 allow_undefined_flag=unsupported
6676 always_export_symbols=yes
6678 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6679 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6680 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6681 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6682 else $CC -o impgen impgen.c ; fi)~
6683 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
6685 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6687 # cygwin and mingw dlls have different entry points and sets of symbols
6689 # FIXME: what about values for MSVC?
6690 dll_entry=__cygwin_dll_entry@12
6691 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6695 dll_entry=_DllMainCRTStartup@12
6696 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6700 # mingw and cygwin differ, and it's simplest to just exclude the union
6701 # of the two symbol sets.
6702 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6704 # recent cygwin and mingw systems supply a stub DllMain which the user
6705 # can override, but on older systems we have to supply one (in ltdll.c)
6706 if test "x$lt_cv_need_dllmain" = "xyes"; then
6707 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6708 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
6709 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6715 # Extract the symbol export list from an `--export-all' def file,
6716 # then regenerate the def file from the symbol export list, so that
6717 # the compiled dll only exports the symbol export list.
6718 # Be careful not to strip the DATA tag left be newer dlltools.
6719 export_symbols_cmds="$ltdll_cmds"'
6720 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6721 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6723 # If the export-symbols file already is a .def file (1st line
6724 # is EXPORTS), use it as is.
6725 # If DATA tags from a recent dlltool are present, honour them!
6726 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
6727 cp $export_symbols $output_objdir/$soname-def;
6729 echo EXPORTS > $output_objdir/$soname-def;
6731 cat $export_symbols | while read symbol; do
6734 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6735 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6737 _lt_hint=`expr 1 + \$_lt_hint`;
6741 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6742 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
6743 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6744 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
6745 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6749 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6750 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6753 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6754 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6759 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6763 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6764 *** create shared libraries on Solaris systems. Therefore, libtool
6765 *** is disabling shared libraries support. We urge you to upgrade GNU
6766 *** binutils to release 2.9.1 or newer. Another option is to modify
6767 *** your PATH or compiler configuration so that the native linker is
6768 *** used, and then restart.
6771 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6772 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6773 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6780 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6783 hardcode_shlibpath_var=no
6787 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6788 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6789 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6796 if test "$ld_shlibs" = yes; then
6797 runpath_var=LD_RUN_PATH
6798 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6799 export_dynamic_flag_spec='${wl}--export-dynamic'
6801 cygwin* | mingw* | pw32*)
6802 # dlltool doesn't understand --whole-archive et. al.
6803 whole_archive_flag_spec=
6806 # ancient GNU ld didn't support --whole-archive et. al.
6807 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6808 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6810 whole_archive_flag_spec=
6816 # PORTME fill in a description of your system's linker (not GNU ld)
6819 allow_undefined_flag=unsupported
6820 always_export_symbols=yes
6821 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6822 # Note: this linker hardcodes the directories in LIBPATH if there
6823 # are no directories specified by -L.
6824 hardcode_minus_L=yes
6825 if test "$GCC" = yes && test -z "$link_static_flag"; then
6826 # Neither direct hardcoding nor static linking is supported with a
6828 hardcode_direct=unsupported
6833 if test "$host_cpu" = ia64; then
6834 # On IA64, the linker does run time linking by default, so we don't
6835 # have to do anything special.
6836 aix_use_runtimelinking=no
6837 exp_sym_flag='-Bexport'
6840 aix_use_runtimelinking=no
6842 # Test if we are trying to use run time linking or normal
6843 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6844 # need to do runtime linking.
6845 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6846 for ld_flag in $LDFLAGS; do
6847 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6848 aix_use_runtimelinking=yes
6854 exp_sym_flag='-bexport'
6855 no_entry_flag='-bnoentry'
6858 # When large executables or shared objects are built, AIX ld can
6859 # have problems creating the table of contents. If linking a library
6860 # or program results in "error TOC overflow" add -mminimal-toc to
6861 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6862 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6866 hardcode_libdir_separator=':'
6867 if test "$GCC" = yes; then
6868 case $host_os in aix4.[012]|aix4.[012].*)
6869 collect2name=`${CC} -print-prog-name=collect2`
6870 if test -f "$collect2name" && \
6871 strings "$collect2name" | grep resolve_lib_name >/dev/null
6873 # We have reworked collect2
6876 # We have old collect2
6877 hardcode_direct=unsupported
6878 # It fails to find uninstalled libraries when the uninstalled
6879 # path is not listed in the libpath. Setting hardcode_minus_L
6880 # to unsupported forces relinking
6881 hardcode_minus_L=yes
6882 hardcode_libdir_flag_spec='-L$libdir'
6883 hardcode_libdir_separator=
6887 shared_flag='-shared'
6890 if test "$host_cpu" = ia64; then
6891 shared_flag='${wl}-G'
6893 if test "$aix_use_runtimelinking" = yes; then
6894 shared_flag='${wl}-G'
6896 shared_flag='${wl}-bM:SRE'
6901 # It seems that -bexpall can do strange things, so it is better to
6902 # generate a list of symbols to export.
6903 always_export_symbols=yes
6904 if test "$aix_use_runtimelinking" = yes; then
6905 # Warning - without using the other runtime loading flags (-brtl),
6906 # -berok will link without error, but may produce a broken library.
6907 allow_undefined_flag='-berok'
6908 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
6909 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6911 if test "$host_cpu" = ia64; then
6912 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6913 allow_undefined_flag="-z nodefs"
6914 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6916 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
6917 # Warning - without using the other run time loading flags,
6918 # -berok will link without error, but may produce a broken library.
6919 allow_undefined_flag='${wl}-berok'
6920 # This is a bit strange, but is similar to how AIX traditionally builds
6921 # it's shared libraries.
6922 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
6928 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6929 hardcode_libdir_flag_spec='-L$libdir'
6930 hardcode_minus_L=yes
6931 # see comment about different semantics on the GNU ld section
6935 cygwin* | mingw* | pw32*)
6936 # When not using gcc, we currently assume that we are using
6937 # Microsoft Visual C++.
6938 # hardcode_libdir_flag_spec is actually meaningless, as there is
6939 # no search path for DLLs.
6940 hardcode_libdir_flag_spec=' '
6941 allow_undefined_flag=unsupported
6942 # Tell ltmain to make .lib files, not .a files.
6944 # FIXME: Setting linknames here is a bad hack.
6945 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6946 # The linker will automatically build a .lib file if we build a DLL.
6947 old_archive_from_new_cmds='true'
6948 # FIXME: Should let the user specify the lib program.
6949 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6950 fix_srcfile_path='`cygpath -w "$srcfile"`'
6953 darwin* | rhapsody*)
6955 rhapsody* | darwin1.[012])
6956 allow_undefined_flag='-undefined suppress'
6959 allow_undefined_flag='-flat_namespace -undefined suppress'
6962 # FIXME: Relying on posixy $() will cause problems for
6963 # cross-compilation, but unfortunately the echo tests do not
6964 # yet detect zsh echo's removal of \ escapes.
6965 archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
6966 # We need to add '_' to the symbols in $export_symbols first
6967 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6969 hardcode_shlibpath_var=no
6970 whole_archive_flag_spec='-all_load $convenience'
6977 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6978 # support. Future versions do this automatically, but an explicit c++rt0.o
6979 # does not break anything, and helps significantly (at the cost of a little
6982 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6983 hardcode_libdir_flag_spec='-R$libdir'
6985 hardcode_shlibpath_var=no
6988 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6990 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6992 hardcode_minus_L=yes
6993 hardcode_shlibpath_var=no
6996 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6998 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6999 hardcode_libdir_flag_spec='-R$libdir'
7001 hardcode_shlibpath_var=no
7004 hpux9* | hpux10* | hpux11*)
7006 hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
7007 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
7009 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7010 hardcode_libdir_separator=:
7012 hardcode_minus_L=yes # Not in the search PATH, but as the default
7013 # location of the library.
7014 export_dynamic_flag_spec='${wl}-E'
7018 if test "$GCC" = yes; then
7019 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7021 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7023 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7024 hardcode_libdir_separator=:
7025 link_all_deplibs=yes
7029 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7030 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7032 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7034 hardcode_libdir_flag_spec='-R$libdir'
7036 hardcode_shlibpath_var=no
7040 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7042 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7043 hardcode_libdir_separator=:
7044 hardcode_shlibpath_var=no
7049 hardcode_shlibpath_var=no
7050 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7051 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
7052 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7053 export_dynamic_flag_spec='${wl}-E'
7056 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7057 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7058 hardcode_libdir_flag_spec='-R$libdir'
7061 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
7062 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7069 hardcode_libdir_flag_spec='-L$libdir'
7070 hardcode_minus_L=yes
7071 allow_undefined_flag=unsupported
7072 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
7073 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7077 if test "$GCC" = yes; then
7078 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7079 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7081 allow_undefined_flag=' -expect_unresolved \*'
7082 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7084 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7085 hardcode_libdir_separator=:
7088 osf4* | osf5*) # as osf3* with the addition of -msym flag
7089 if test "$GCC" = yes; then
7090 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7091 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7092 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7094 allow_undefined_flag=' -expect_unresolved \*'
7095 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7096 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7097 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7099 #Both c and cxx compiler support -rpath directly
7100 hardcode_libdir_flag_spec='-rpath $libdir'
7102 hardcode_libdir_separator=:
7106 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7107 hardcode_shlibpath_var=no
7108 runpath_var=LD_RUN_PATH
7109 hardcode_runpath_var=yes
7110 export_dynamic_flag_spec='${wl}-Bexport'
7114 # gcc --version < 3.0 without binutils cannot create self contained
7115 # shared libraries reliably, requiring libgcc.a to resolve some of
7116 # the object symbols generated in some cases. Libraries that use
7117 # assert need libgcc.a to resolve __eprintf, for example. Linking
7118 # a copy of libgcc.a into every shared library to guarantee resolving
7119 # such symbols causes other problems: According to Tim Van Holder
7120 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
7121 # (to the application) exception stack for one thing.
7122 no_undefined_flag=' -z defs'
7123 if test "$GCC" = yes; then
7124 case `$CC --version 2>/dev/null` in
7128 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
7129 *** create self contained shared libraries on Solaris systems, without
7130 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
7131 *** -no-undefined support, which will at least allow you to build shared
7132 *** libraries. However, you may find that when you link such libraries
7133 *** into an application without using GCC, you have to manually add
7134 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
7135 *** upgrade to a newer version of GCC. Another option is to rebuild your
7136 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
7143 # $CC -shared without GNU ld will not create a library from C++
7144 # object files and a static libstdc++, better avoid it by now
7145 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7146 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7147 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7148 hardcode_libdir_flag_spec='-R$libdir'
7149 hardcode_shlibpath_var=no
7151 solaris2.[0-5] | solaris2.[0-5].*) ;;
7152 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7153 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7155 link_all_deplibs=yes
7159 if test "x$host_vendor" = xsequent; then
7160 # Use $CC to link under sequent, because it throws in some extra .o
7161 # files that make .init and .fini sections work.
7162 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7164 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7166 hardcode_libdir_flag_spec='-L$libdir'
7168 hardcode_minus_L=yes
7169 hardcode_shlibpath_var=no
7173 if test "x$host_vendor" = xsno; then
7174 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
7175 hardcode_direct=yes # is this really true???
7177 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7178 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7180 runpath_var='LD_RUN_PATH'
7181 hardcode_shlibpath_var=no
7185 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7186 hardcode_shlibpath_var=no
7187 export_dynamic_flag_spec='-Bexport'
7191 no_undefined_flag=' -z text'
7192 # $CC -shared without GNU ld will not create a library from C++
7193 # object files and a static libstdc++, better avoid it by now
7194 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7195 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7196 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7197 hardcode_libdir_flag_spec=
7198 hardcode_shlibpath_var=no
7199 runpath_var='LD_RUN_PATH'
7203 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7204 hardcode_libdir_flag_spec='-L$libdir'
7205 hardcode_shlibpath_var=no
7209 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7210 hardcode_libdir_flag_spec='-L$libdir'
7211 hardcode_shlibpath_var=no
7215 if test -d /usr/nec; then
7216 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7217 hardcode_shlibpath_var=no
7218 runpath_var=LD_RUN_PATH
7219 hardcode_runpath_var=yes
7225 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7228 hardcode_shlibpath_var=no
7229 hardcode_runpath_var=yes
7230 runpath_var=LD_RUN_PATH
7233 sysv5uw7* | unixware7*)
7234 no_undefined_flag='${wl}-z ${wl}text'
7235 if test "$GCC" = yes; then
7236 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7238 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7240 runpath_var='LD_RUN_PATH'
7241 hardcode_shlibpath_var=no
7249 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7250 echo "${ECHO_T}$ld_shlibs" >&6
7251 test "$ld_shlibs" = no && can_build_shared=no
7253 # Check hardcoding attributes.
7254 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7255 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7257 if test -n "$hardcode_libdir_flag_spec" || \
7258 test -n "$runpath_var"; then
7260 # We can hardcode non-existant directories.
7261 if test "$hardcode_direct" != no &&
7262 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7263 # have to relink, otherwise we might link with an installed library
7264 # when we should be linking with a yet-to-be-installed one
7265 ## test "$hardcode_shlibpath_var" != no &&
7266 test "$hardcode_minus_L" != no; then
7267 # Linking always hardcodes the temporary library directory.
7268 hardcode_action=relink
7270 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7271 hardcode_action=immediate
7274 # We cannot hardcode anything, or else we can only hardcode existing
7276 hardcode_action=unsupported
7278 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7279 echo "${ECHO_T}$hardcode_action" >&6
7283 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7284 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7285 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7286 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7287 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7288 echo "$as_me:$LINENO: result: yes" >&5
7289 echo "${ECHO_T}yes" >&6
7291 echo "$as_me:$LINENO: result: no" >&5
7292 echo "${ECHO_T}no" >&6
7295 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7296 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7298 # PORTME Fill in your ld.so characteristics
7299 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7300 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7302 libname_spec='lib$name'
7309 shlibpath_overrides_runpath=unknown
7311 dynamic_linker="$host_os ld.so"
7312 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7313 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7318 library_names_spec='${libname}${release}.so$versuffix $libname.a'
7319 shlibpath_var=LIBPATH
7321 # AIX has no versioning support, so we append a major version to the name.
7322 soname_spec='${libname}${release}.so$major'
7327 if test "$host_cpu" = ia64; then
7328 # AIX 5 supports IA64
7329 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
7330 shlibpath_var=LD_LIBRARY_PATH
7332 # With GCC up to 2.95.x, collect2 would create an import file
7333 # for dependence libraries. The import file would start with
7334 # the line `#! .'. This would cause the generated library to
7335 # depend on `.', always an invalid library. This was fixed in
7336 # development snapshots of GCC prior to 3.0.
7338 aix4 | aix4.[01] | aix4.[01].*)
7339 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7341 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7348 # AIX (on Power*) has no versioning support, so currently we can
7349 # not hardcode correct soname into executable. Probably we can
7350 # add versioning support to collect2, so additional links can
7351 # be useful in future.
7352 if test "$aix_use_runtimelinking" = yes; then
7353 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7354 # instead of lib<name>.a to let people know that these are not
7355 # typical AIX shared libraries.
7356 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7358 # We preserve .a as extension for shared libraries through AIX4.2
7359 # and later when we are not doing run time linking.
7360 library_names_spec='${libname}${release}.a $libname.a'
7361 soname_spec='${libname}${release}.so$major'
7363 shlibpath_var=LIBPATH
7368 library_names_spec='$libname.ixlibrary $libname.a'
7369 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7370 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
7374 library_names_spec='${libname}.so'
7375 dynamic_linker="$host_os ld.so"
7376 shlibpath_var=LIBRARY_PATH
7382 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7383 soname_spec='${libname}${release}.so$major'
7384 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7385 shlibpath_var=LD_LIBRARY_PATH
7386 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7387 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7388 export_dynamic_flag_spec=-rdynamic
7389 # the default ld.so.conf also contains /usr/contrib/lib and
7390 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7391 # libtool to hard-code these into programs
7394 cygwin* | mingw* | pw32*)
7395 version_type=windows
7398 case $GCC,$host_os in
7400 library_names_spec='$libname.dll.a'
7401 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7402 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
7403 dldir=$destdir/`dirname \$dlpath`~
7404 test -d \$dldir || mkdir -p \$dldir~
7405 $install_prog .libs/$dlname \$dldir/$dlname'
7406 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
7407 dlpath=$dir/\$dldll~
7411 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7412 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
7415 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
7418 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
7421 dynamic_linker='Win32 ld.exe'
7422 # FIXME: first we should search . and the directory the executable is in
7426 darwin* | rhapsody*)
7427 dynamic_linker="$host_os dyld"
7431 # FIXME: Relying on posixy $() will cause problems for
7432 # cross-compilation, but unfortunately the echo tests do not
7433 # yet detect zsh echo's removal of \ escapes.
7434 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
7435 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
7436 shlibpath_overrides_runpath=yes
7437 shlibpath_var=DYLD_LIBRARY_PATH
7445 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7446 version_type=freebsd-$objformat
7447 case $version_type in
7449 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7454 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
7458 shlibpath_var=LD_LIBRARY_PATH
7461 shlibpath_overrides_runpath=yes
7464 shlibpath_overrides_runpath=no
7465 hardcode_into_libs=yes
7474 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
7475 soname_spec='${libname}${release}.so$major'
7476 shlibpath_var=LD_LIBRARY_PATH
7477 hardcode_into_libs=yes
7480 hpux9* | hpux10* | hpux11*)
7481 # Give a soname corresponding to the major version so that dld.sl refuses to
7482 # link against other versions.
7483 dynamic_linker="$host_os dld.sl"
7487 shlibpath_var=SHLIB_PATH
7488 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7489 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
7490 soname_spec='${libname}${release}.sl$major'
7491 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7492 postinstall_cmds='chmod 555 $lib'
7499 soname_spec='${libname}${release}.so$major'
7500 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
7506 case $LD in # libtool.m4 will add one of these switches to LD
7507 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
7508 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
7509 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
7510 *) libsuff= shlibsuff= libmagic=never-match;;
7514 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7515 shlibpath_overrides_runpath=no
7516 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7517 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7520 # No shared lib support for Linux oldld, aout, or coff.
7521 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
7525 # This must be Linux ELF.
7530 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7531 soname_spec='${libname}${release}.so$major'
7532 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7533 shlibpath_var=LD_LIBRARY_PATH
7534 shlibpath_overrides_runpath=no
7535 # This implies no fast_install, which is unacceptable.
7536 # Some rework will be needed to allow for fast_install
7537 # before this can be enabled.
7538 hardcode_into_libs=yes
7540 # We used to test for /lib/ld.so.1 and disable shared libraries on
7541 # powerpc, because MkLinux only supported shared libraries with the
7542 # GNU dynamic linker. Since this was broken with cross compilers,
7543 # most powerpc-linux boxes support dynamic linking these days and
7544 # people can always --disable-shared, the test was removed, and we
7545 # assume the GNU/Linux dynamic linker is in use.
7546 dynamic_linker='GNU/Linux ld.so'
7553 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7554 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7555 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7556 dynamic_linker='NetBSD (a.out) ld.so'
7558 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
7559 soname_spec='${libname}${release}.so$major'
7560 dynamic_linker='NetBSD ld.elf_so'
7562 shlibpath_var=LD_LIBRARY_PATH
7563 shlibpath_overrides_runpath=yes
7564 hardcode_into_libs=yes
7569 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7570 shlibpath_var=LD_LIBRARY_PATH
7571 shlibpath_overrides_runpath=yes
7578 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7580 openbsd2.[89] | openbsd2.[89].*)
7581 shlibpath_overrides_runpath=no
7584 shlibpath_overrides_runpath=yes
7588 shlibpath_overrides_runpath=yes
7590 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7591 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7592 shlibpath_var=LD_LIBRARY_PATH
7596 libname_spec='$name'
7598 library_names_spec='$libname.dll $libname.a'
7599 dynamic_linker='OS/2 ld.exe'
7600 shlibpath_var=LIBPATH
7603 osf3* | osf4* | osf5*)
7606 soname_spec='${libname}${release}.so'
7607 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7608 shlibpath_var=LD_LIBRARY_PATH
7609 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7610 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7615 soname_spec='${libname}${release}.so$major'
7616 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7617 shlibpath_var=LD_LIBRARY_PATH
7624 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7625 soname_spec='${libname}${release}.so$major'
7626 shlibpath_var=LD_LIBRARY_PATH
7627 shlibpath_overrides_runpath=yes
7628 hardcode_into_libs=yes
7629 # ldd complains unless libraries are executable
7630 postinstall_cmds='chmod +x $lib'
7635 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7636 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7637 shlibpath_var=LD_LIBRARY_PATH
7638 shlibpath_overrides_runpath=yes
7639 if test "$with_gnu_ld" = yes; then
7645 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7647 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7648 soname_spec='${libname}${release}.so$major'
7649 shlibpath_var=LD_LIBRARY_PATH
7650 case $host_vendor in
7652 shlibpath_overrides_runpath=no
7657 shlibpath_overrides_runpath=no
7658 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7665 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7666 soname_spec='${libname}${release}.so$major'
7667 shlibpath_var=LD_LIBRARY_PATH
7674 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7675 soname_spec='${libname}${release}.so$major'
7676 shlibpath_var=LD_LIBRARY_PATH
7680 if test -d /usr/nec ;then
7682 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7683 soname_spec='$libname.so.$major'
7684 shlibpath_var=LD_LIBRARY_PATH
7692 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7693 echo "${ECHO_T}$dynamic_linker" >&6
7694 test "$dynamic_linker" = no && can_build_shared=no
7696 # Report the final consequences.
7697 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
7698 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
7699 echo "$as_me:$LINENO: result: $can_build_shared" >&5
7700 echo "${ECHO_T}$can_build_shared" >&6
7702 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
7703 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
7704 test "$can_build_shared" = "no" && enable_shared=no
7706 # On AIX, shared libraries and static libraries use the same namespace, and
7707 # are all built from PIC.
7710 test "$enable_shared" = yes && enable_static=no
7711 if test -n "$RANLIB"; then
7712 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7713 postinstall_cmds='$RANLIB $lib'
7718 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7719 test "$enable_shared" = yes && enable_static=no
7723 echo "$as_me:$LINENO: result: $enable_shared" >&5
7724 echo "${ECHO_T}$enable_shared" >&6
7726 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
7727 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
7728 # Make sure either enable_shared or enable_static is yes.
7729 test "$enable_shared" = yes || enable_static=yes
7730 echo "$as_me:$LINENO: result: $enable_static" >&5
7731 echo "${ECHO_T}$enable_static" >&6
7733 if test "$hardcode_action" = relink; then
7734 # Fast installation is not supported
7735 enable_fast_install=no
7736 elif test "$shlibpath_overrides_runpath" = yes ||
7737 test "$enable_shared" = no; then
7738 # Fast installation is not necessary
7739 enable_fast_install=needless
7742 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7743 if test "$GCC" = yes; then
7744 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7747 if test "x$enable_dlopen" != xyes; then
7748 enable_dlopen=unknown
7749 enable_dlopen_self=unknown
7750 enable_dlopen_self_static=unknown
7757 lt_cv_dlopen="load_add_on"
7759 lt_cv_dlopen_self=yes
7762 cygwin* | mingw* | pw32*)
7763 lt_cv_dlopen="LoadLibrary"
7768 echo "$as_me:$LINENO: checking for shl_load" >&5
7769 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7770 if test "${ac_cv_func_shl_load+set}" = set; then
7771 echo $ECHO_N "(cached) $ECHO_C" >&6
7773 cat >conftest.$ac_ext <<_ACEOF
7776 cat confdefs.h >>conftest.$ac_ext
7777 cat >>conftest.$ac_ext <<_ACEOF
7778 /* end confdefs.h. */
7779 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7781 #define shl_load innocuous_shl_load
7783 /* System header to define __stub macros and hopefully few prototypes,
7784 which can conflict with char shl_load (); below.
7785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7786 <limits.h> exists even on freestanding compilers. */
7789 # include <limits.h>
7791 # include <assert.h>
7796 /* Override any gcc2 internal prototype to avoid an error. */
7801 /* We use char because int might match the return type of a gcc2
7802 builtin and then its argument prototype would still apply. */
7804 /* The GNU C library defines this for functions which it implements
7805 to always fail with ENOSYS. Some functions are actually named
7806 something starting with __ and the normal name is an alias. */
7807 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7810 char (*f) () = shl_load;
7819 return f != shl_load;
7824 rm -f conftest.$ac_objext conftest$ac_exeext
7825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7826 (eval $ac_link) 2>conftest.er1
7828 grep -v '^ *+' conftest.er1 >conftest.err
7830 cat conftest.err >&5
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); } &&
7833 { ac_try='test -z "$ac_c_werror_flag"
7834 || test ! -s conftest.err'
7835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); }; } &&
7840 { ac_try='test -s conftest$ac_exeext'
7841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); }; }; then
7846 ac_cv_func_shl_load=yes
7848 echo "$as_me: failed program was:" >&5
7849 sed 's/^/| /' conftest.$ac_ext >&5
7851 ac_cv_func_shl_load=no
7853 rm -f conftest.err conftest.$ac_objext \
7854 conftest$ac_exeext conftest.$ac_ext
7856 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7857 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7858 if test $ac_cv_func_shl_load = yes; then
7859 lt_cv_dlopen="shl_load"
7861 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7862 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7863 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7864 echo $ECHO_N "(cached) $ECHO_C" >&6
7866 ac_check_lib_save_LIBS=$LIBS
7868 cat >conftest.$ac_ext <<_ACEOF
7871 cat confdefs.h >>conftest.$ac_ext
7872 cat >>conftest.$ac_ext <<_ACEOF
7873 /* end confdefs.h. */
7875 /* Override any gcc2 internal prototype to avoid an error. */
7879 /* We use char because int might match the return type of a gcc2
7880 builtin and then its argument prototype would still apply. */
7890 rm -f conftest.$ac_objext conftest$ac_exeext
7891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7892 (eval $ac_link) 2>conftest.er1
7894 grep -v '^ *+' conftest.er1 >conftest.err
7896 cat conftest.err >&5
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); } &&
7899 { ac_try='test -z "$ac_c_werror_flag"
7900 || test ! -s conftest.err'
7901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905 (exit $ac_status); }; } &&
7906 { ac_try='test -s conftest$ac_exeext'
7907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); }; }; then
7912 ac_cv_lib_dld_shl_load=yes
7914 echo "$as_me: failed program was:" >&5
7915 sed 's/^/| /' conftest.$ac_ext >&5
7917 ac_cv_lib_dld_shl_load=no
7919 rm -f conftest.err conftest.$ac_objext \
7920 conftest$ac_exeext conftest.$ac_ext
7921 LIBS=$ac_check_lib_save_LIBS
7923 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7924 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7925 if test $ac_cv_lib_dld_shl_load = yes; then
7926 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7928 echo "$as_me:$LINENO: checking for dlopen" >&5
7929 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7930 if test "${ac_cv_func_dlopen+set}" = set; then
7931 echo $ECHO_N "(cached) $ECHO_C" >&6
7933 cat >conftest.$ac_ext <<_ACEOF
7936 cat confdefs.h >>conftest.$ac_ext
7937 cat >>conftest.$ac_ext <<_ACEOF
7938 /* end confdefs.h. */
7939 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7941 #define dlopen innocuous_dlopen
7943 /* System header to define __stub macros and hopefully few prototypes,
7944 which can conflict with char dlopen (); below.
7945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7946 <limits.h> exists even on freestanding compilers. */
7949 # include <limits.h>
7951 # include <assert.h>
7956 /* Override any gcc2 internal prototype to avoid an error. */
7961 /* We use char because int might match the return type of a gcc2
7962 builtin and then its argument prototype would still apply. */
7964 /* The GNU C library defines this for functions which it implements
7965 to always fail with ENOSYS. Some functions are actually named
7966 something starting with __ and the normal name is an alias. */
7967 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7970 char (*f) () = dlopen;
7984 rm -f conftest.$ac_objext conftest$ac_exeext
7985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7986 (eval $ac_link) 2>conftest.er1
7988 grep -v '^ *+' conftest.er1 >conftest.err
7990 cat conftest.err >&5
7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992 (exit $ac_status); } &&
7993 { ac_try='test -z "$ac_c_werror_flag"
7994 || test ! -s conftest.err'
7995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); }; } &&
8000 { ac_try='test -s conftest$ac_exeext'
8001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); }; }; then
8006 ac_cv_func_dlopen=yes
8008 echo "$as_me: failed program was:" >&5
8009 sed 's/^/| /' conftest.$ac_ext >&5
8011 ac_cv_func_dlopen=no
8013 rm -f conftest.err conftest.$ac_objext \
8014 conftest$ac_exeext conftest.$ac_ext
8016 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8017 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8018 if test $ac_cv_func_dlopen = yes; then
8019 lt_cv_dlopen="dlopen"
8021 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8022 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8023 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8024 echo $ECHO_N "(cached) $ECHO_C" >&6
8026 ac_check_lib_save_LIBS=$LIBS
8028 cat >conftest.$ac_ext <<_ACEOF
8031 cat confdefs.h >>conftest.$ac_ext
8032 cat >>conftest.$ac_ext <<_ACEOF
8033 /* end confdefs.h. */
8035 /* Override any gcc2 internal prototype to avoid an error. */
8039 /* We use char because int might match the return type of a gcc2
8040 builtin and then its argument prototype would still apply. */
8050 rm -f conftest.$ac_objext conftest$ac_exeext
8051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8052 (eval $ac_link) 2>conftest.er1
8054 grep -v '^ *+' conftest.er1 >conftest.err
8056 cat conftest.err >&5
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); } &&
8059 { ac_try='test -z "$ac_c_werror_flag"
8060 || test ! -s conftest.err'
8061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); }; } &&
8066 { ac_try='test -s conftest$ac_exeext'
8067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); }; }; then
8072 ac_cv_lib_dl_dlopen=yes
8074 echo "$as_me: failed program was:" >&5
8075 sed 's/^/| /' conftest.$ac_ext >&5
8077 ac_cv_lib_dl_dlopen=no
8079 rm -f conftest.err conftest.$ac_objext \
8080 conftest$ac_exeext conftest.$ac_ext
8081 LIBS=$ac_check_lib_save_LIBS
8083 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8084 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8085 if test $ac_cv_lib_dl_dlopen = yes; then
8086 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8088 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8089 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8090 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8091 echo $ECHO_N "(cached) $ECHO_C" >&6
8093 ac_check_lib_save_LIBS=$LIBS
8095 cat >conftest.$ac_ext <<_ACEOF
8098 cat confdefs.h >>conftest.$ac_ext
8099 cat >>conftest.$ac_ext <<_ACEOF
8100 /* end confdefs.h. */
8102 /* Override any gcc2 internal prototype to avoid an error. */
8106 /* We use char because int might match the return type of a gcc2
8107 builtin and then its argument prototype would still apply. */
8117 rm -f conftest.$ac_objext conftest$ac_exeext
8118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8119 (eval $ac_link) 2>conftest.er1
8121 grep -v '^ *+' conftest.er1 >conftest.err
8123 cat conftest.err >&5
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); } &&
8126 { ac_try='test -z "$ac_c_werror_flag"
8127 || test ! -s conftest.err'
8128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); }; } &&
8133 { ac_try='test -s conftest$ac_exeext'
8134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); }; }; then
8139 ac_cv_lib_svld_dlopen=yes
8141 echo "$as_me: failed program was:" >&5
8142 sed 's/^/| /' conftest.$ac_ext >&5
8144 ac_cv_lib_svld_dlopen=no
8146 rm -f conftest.err conftest.$ac_objext \
8147 conftest$ac_exeext conftest.$ac_ext
8148 LIBS=$ac_check_lib_save_LIBS
8150 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8151 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8152 if test $ac_cv_lib_svld_dlopen = yes; then
8153 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8155 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8156 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8157 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8158 echo $ECHO_N "(cached) $ECHO_C" >&6
8160 ac_check_lib_save_LIBS=$LIBS
8162 cat >conftest.$ac_ext <<_ACEOF
8165 cat confdefs.h >>conftest.$ac_ext
8166 cat >>conftest.$ac_ext <<_ACEOF
8167 /* end confdefs.h. */
8169 /* Override any gcc2 internal prototype to avoid an error. */
8173 /* We use char because int might match the return type of a gcc2
8174 builtin and then its argument prototype would still apply. */
8184 rm -f conftest.$ac_objext conftest$ac_exeext
8185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8186 (eval $ac_link) 2>conftest.er1
8188 grep -v '^ *+' conftest.er1 >conftest.err
8190 cat conftest.err >&5
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); } &&
8193 { ac_try='test -z "$ac_c_werror_flag"
8194 || test ! -s conftest.err'
8195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); }; } &&
8200 { ac_try='test -s conftest$ac_exeext'
8201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); }; }; then
8206 ac_cv_lib_dld_dld_link=yes
8208 echo "$as_me: failed program was:" >&5
8209 sed 's/^/| /' conftest.$ac_ext >&5
8211 ac_cv_lib_dld_dld_link=no
8213 rm -f conftest.err conftest.$ac_objext \
8214 conftest$ac_exeext conftest.$ac_ext
8215 LIBS=$ac_check_lib_save_LIBS
8217 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8218 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8219 if test $ac_cv_lib_dld_dld_link = yes; then
8220 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8241 if test "x$lt_cv_dlopen" != xno; then
8247 case $lt_cv_dlopen in
8249 save_CPPFLAGS="$CPPFLAGS"
8250 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8252 save_LDFLAGS="$LDFLAGS"
8253 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8256 LIBS="$lt_cv_dlopen_libs $LIBS"
8258 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8259 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8260 if test "${lt_cv_dlopen_self+set}" = set; then
8261 echo $ECHO_N "(cached) $ECHO_C" >&6
8263 if test "$cross_compiling" = yes; then :
8264 lt_cv_dlopen_self=cross
8266 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8267 lt_status=$lt_dlunknown
8268 cat > conftest.$ac_ext <<EOF
8269 #line 8269 "configure"
8270 #include "confdefs.h"
8279 # define LT_DLGLOBAL RTLD_GLOBAL
8282 # define LT_DLGLOBAL DL_GLOBAL
8284 # define LT_DLGLOBAL 0
8288 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8289 find out it does not work in some platform. */
8290 #ifndef LT_DLLAZY_OR_NOW
8292 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8295 # define LT_DLLAZY_OR_NOW DL_LAZY
8298 # define LT_DLLAZY_OR_NOW RTLD_NOW
8301 # define LT_DLLAZY_OR_NOW DL_NOW
8303 # define LT_DLLAZY_OR_NOW 0
8311 extern "C" void exit (int);
8314 void fnord() { int i=42;}
8317 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8318 int status = $lt_dlunknown;
8322 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8323 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8324 /* dlclose (self); */
8330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8331 (eval $ac_link) 2>&5
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8335 (./conftest; exit; ) 2>/dev/null
8338 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8339 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8340 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8343 # compilation failed
8344 lt_cv_dlopen_self=no
8351 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8352 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8354 if test "x$lt_cv_dlopen_self" = xyes; then
8355 LDFLAGS="$LDFLAGS $link_static_flag"
8356 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8357 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8358 if test "${lt_cv_dlopen_self_static+set}" = set; then
8359 echo $ECHO_N "(cached) $ECHO_C" >&6
8361 if test "$cross_compiling" = yes; then :
8362 lt_cv_dlopen_self_static=cross
8364 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8365 lt_status=$lt_dlunknown
8366 cat > conftest.$ac_ext <<EOF
8367 #line 8367 "configure"
8368 #include "confdefs.h"
8377 # define LT_DLGLOBAL RTLD_GLOBAL
8380 # define LT_DLGLOBAL DL_GLOBAL
8382 # define LT_DLGLOBAL 0
8386 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8387 find out it does not work in some platform. */
8388 #ifndef LT_DLLAZY_OR_NOW
8390 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8393 # define LT_DLLAZY_OR_NOW DL_LAZY
8396 # define LT_DLLAZY_OR_NOW RTLD_NOW
8399 # define LT_DLLAZY_OR_NOW DL_NOW
8401 # define LT_DLLAZY_OR_NOW 0
8409 extern "C" void exit (int);
8412 void fnord() { int i=42;}
8415 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8416 int status = $lt_dlunknown;
8420 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8421 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8422 /* dlclose (self); */
8428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8429 (eval $ac_link) 2>&5
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8433 (./conftest; exit; ) 2>/dev/null
8436 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8437 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8438 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8441 # compilation failed
8442 lt_cv_dlopen_self_static=no
8449 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8450 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8453 CPPFLAGS="$save_CPPFLAGS"
8454 LDFLAGS="$save_LDFLAGS"
8459 case $lt_cv_dlopen_self in
8460 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8461 *) enable_dlopen_self=unknown ;;
8464 case $lt_cv_dlopen_self_static in
8465 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8466 *) enable_dlopen_self_static=unknown ;;
8471 if test "$enable_shared" = yes && test "$GCC" = yes; then
8472 case $archive_cmds in
8474 # FIXME: we may have to deal with multi-command sequences.
8477 # Test whether the compiler implicitly links with -lc since on some
8478 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8479 # to ld, don't add -lc before -lgcc.
8480 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8481 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8482 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
8483 echo $ECHO_N "(cached) $ECHO_C" >&6
8486 echo 'static int dummy;' > conftest.$ac_ext
8488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8489 (eval $ac_compile) 2>&5
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); }; then
8495 libobjs=conftest.$ac_objext
8497 wl=$lt_cv_prog_cc_wl
8503 save_allow_undefined_flag=$allow_undefined_flag
8504 allow_undefined_flag=
8505 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8506 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); }
8511 lt_cv_archive_cmds_need_lc=no
8513 lt_cv_archive_cmds_need_lc=yes
8515 allow_undefined_flag=$save_allow_undefined_flag
8517 cat conftest.err 1>&5
8521 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
8522 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
8526 need_lc=${lt_cv_archive_cmds_need_lc-yes}
8528 # The second clause should only fire when bootstrapping the
8529 # libtool distribution, otherwise you forgot to ship ltmain.sh
8530 # with your package, and you will get complaints that there are
8531 # no rules to generate ltmain.sh.
8532 if test -f "$ltmain"; then
8535 # If there is no Makefile yet, we rely on a make rule to execute
8536 # `config.status --recheck' to rerun these tests and create the
8537 # libtool script then.
8538 test -f Makefile && make "$ltmain"
8541 if test -f "$ltmain"; then
8542 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
8545 echo creating $ofile
8547 # Now quote all the things that may contain metacharacters while being
8548 # careful not to overquote the AC_SUBSTed values. We take copies of the
8549 # variables and quote the copies for generation of the libtool script.
8550 for var in echo old_CC old_CFLAGS \
8551 AR AR_FLAGS CC LD LN_S NM SHELL \
8552 reload_flag reload_cmds wl \
8553 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
8554 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
8555 library_names_spec soname_spec \
8556 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
8557 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
8558 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
8559 old_striplib striplib file_magic_cmd export_symbols_cmds \
8560 deplibs_check_method allow_undefined_flag no_undefined_flag \
8561 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
8562 global_symbol_to_c_name_address \
8563 hardcode_libdir_flag_spec hardcode_libdir_separator \
8564 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8565 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
8568 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
8569 old_postinstall_cmds | old_postuninstall_cmds | \
8570 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
8571 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
8572 postinstall_cmds | postuninstall_cmds | \
8573 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8574 # Double-quote double-evaled strings.
8575 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8578 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8583 cat <<__EOF__ > "${ofile}T"
8586 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8587 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8588 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8590 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
8591 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8593 # This program is free software; you can redistribute it and/or modify
8594 # it under the terms of the GNU General Public License as published by
8595 # the Free Software Foundation; either version 2 of the License, or
8596 # (at your option) any later version.
8598 # This program is distributed in the hope that it will be useful, but
8599 # WITHOUT ANY WARRANTY; without even the implied warranty of
8600 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8601 # General Public License for more details.
8603 # You should have received a copy of the GNU General Public License
8604 # along with this program; if not, write to the Free Software
8605 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8607 # As a special exception to the GNU General Public License, if you
8608 # distribute this file as part of a program that contains a
8609 # configuration script generated by Autoconf, you may include it under
8610 # the same distribution terms that you use for the rest of that program.
8612 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8613 Xsed="sed -e s/^X//"
8615 # The HP-UX ksh and POSIX shell print the target directory to stdout
8617 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8619 # ### BEGIN LIBTOOL CONFIG
8621 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8623 # Shell to use when invoking shell scripts.
8626 # Whether or not to build shared libraries.
8627 build_libtool_libs=$enable_shared
8629 # Whether or not to build static libraries.
8630 build_old_libs=$enable_static
8632 # Whether or not to add -lc for building shared libraries.
8633 build_libtool_need_lc=$need_lc
8635 # Whether or not to optimize for fast installation.
8636 fast_install=$enable_fast_install
8639 host_alias=$host_alias
8642 # An echo program that does not interpret backslashes.
8647 AR_FLAGS=$lt_AR_FLAGS
8649 # The default C compiler.
8652 # Is the compiler the GNU C compiler?
8655 # The linker used to build libraries.
8658 # Whether we need hard or soft links.
8661 # A BSD-compatible nm program.
8664 # A symbol stripping program
8667 # Used to examine libraries when file_magic_cmd begins "file"
8668 MAGIC_CMD=$MAGIC_CMD
8670 # Used on cygwin: DLL creation program.
8673 # Used on cygwin: object dumper.
8676 # Used on cygwin: assembler.
8679 # The name of the directory that contains temporary libtool files.
8682 # How to create reloadable object files.
8683 reload_flag=$lt_reload_flag
8684 reload_cmds=$lt_reload_cmds
8686 # How to pass a linker flag through the compiler.
8689 # Object file suffix (normally "o").
8692 # Old archive suffix (normally "a").
8695 # Executable file suffix (normally "").
8698 # Additional compiler flags for building library objects.
8699 pic_flag=$lt_pic_flag
8702 # Does compiler simultaneously support -c and -o options?
8703 compiler_c_o=$lt_compiler_c_o
8705 # Can we write directly to a .lo ?
8706 compiler_o_lo=$lt_compiler_o_lo
8708 # Must we lock files when doing compilation ?
8709 need_locks=$lt_need_locks
8711 # Do we need the lib prefix for modules?
8712 need_lib_prefix=$need_lib_prefix
8714 # Do we need a version for libraries?
8715 need_version=$need_version
8717 # Whether dlopen is supported.
8718 dlopen_support=$enable_dlopen
8720 # Whether dlopen of programs is supported.
8721 dlopen_self=$enable_dlopen_self
8723 # Whether dlopen of statically linked programs is supported.
8724 dlopen_self_static=$enable_dlopen_self_static
8726 # Compiler flag to prevent dynamic linking.
8727 link_static_flag=$lt_link_static_flag
8729 # Compiler flag to turn off builtin functions.
8730 no_builtin_flag=$lt_no_builtin_flag
8732 # Compiler flag to allow reflexive dlopens.
8733 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8735 # Compiler flag to generate shared objects directly from archives.
8736 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8738 # Compiler flag to generate thread-safe objects.
8739 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8741 # Library versioning type.
8742 version_type=$version_type
8744 # Format of library name prefix.
8745 libname_spec=$lt_libname_spec
8747 # List of archive names. First name is the real one, the rest are links.
8748 # The last name is the one that the linker finds with -lNAME.
8749 library_names_spec=$lt_library_names_spec
8751 # The coded name of the library, if different from the real name.
8752 soname_spec=$lt_soname_spec
8754 # Commands used to build and install an old-style archive.
8756 old_archive_cmds=$lt_old_archive_cmds
8757 old_postinstall_cmds=$lt_old_postinstall_cmds
8758 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8760 # Create an old-style archive from a shared archive.
8761 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8763 # Create a temporary old-style archive to link instead of a shared archive.
8764 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8766 # Commands used to build and install a shared archive.
8767 archive_cmds=$lt_archive_cmds
8768 archive_expsym_cmds=$lt_archive_expsym_cmds
8769 postinstall_cmds=$lt_postinstall_cmds
8770 postuninstall_cmds=$lt_postuninstall_cmds
8772 # Commands to strip libraries.
8773 old_striplib=$lt_old_striplib
8774 striplib=$lt_striplib
8776 # Method to check whether dependent libraries are shared objects.
8777 deplibs_check_method=$lt_deplibs_check_method
8779 # Command to use when deplibs_check_method == file_magic.
8780 file_magic_cmd=$lt_file_magic_cmd
8782 # Flag that allows shared libraries with undefined symbols to be built.
8783 allow_undefined_flag=$lt_allow_undefined_flag
8785 # Flag that forces no undefined symbols.
8786 no_undefined_flag=$lt_no_undefined_flag
8788 # Commands used to finish a libtool library installation in a directory.
8789 finish_cmds=$lt_finish_cmds
8791 # Same as above, but a single script fragment to be evaled but not shown.
8792 finish_eval=$lt_finish_eval
8794 # Take the output of nm and produce a listing of raw symbols and C names.
8795 global_symbol_pipe=$lt_global_symbol_pipe
8797 # Transform the output of nm in a proper C declaration
8798 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
8800 # Transform the output of nm in a C name address pair
8801 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
8803 # This is the shared library runtime path variable.
8804 runpath_var=$runpath_var
8806 # This is the shared library path variable.
8807 shlibpath_var=$shlibpath_var
8809 # Is shlibpath searched before the hard-coded library search path?
8810 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8812 # How to hardcode a shared library path into an executable.
8813 hardcode_action=$hardcode_action
8815 # Whether we should hardcode library paths into libraries.
8816 hardcode_into_libs=$hardcode_into_libs
8818 # Flag to hardcode \$libdir into a binary during linking.
8819 # This must work even if \$libdir does not exist.
8820 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8822 # Whether we need a single -rpath flag with a separated argument.
8823 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8825 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8827 hardcode_direct=$hardcode_direct
8829 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8831 hardcode_minus_L=$hardcode_minus_L
8833 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8834 # the resulting binary.
8835 hardcode_shlibpath_var=$hardcode_shlibpath_var
8837 # Variables whose values should be saved in libtool wrapper scripts and
8838 # restored at relink time.
8839 variables_saved_for_relink="$variables_saved_for_relink"
8841 # Whether libtool must link a program against all its dependency libraries.
8842 link_all_deplibs=$link_all_deplibs
8844 # Compile-time system search path for libraries
8845 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8847 # Run-time system search path for libraries
8848 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8850 # Fix the shell variable \$srcfile for the compiler.
8851 fix_srcfile_path="$fix_srcfile_path"
8853 # Set to yes if exported symbols are required.
8854 always_export_symbols=$always_export_symbols
8856 # The commands to list exported symbols.
8857 export_symbols_cmds=$lt_export_symbols_cmds
8859 # The commands to extract the exported symbol list from a shared archive.
8860 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8862 # Symbols that should not be listed in the preloaded symbols.
8863 exclude_expsyms=$lt_exclude_expsyms
8865 # Symbols that must always be exported.
8866 include_expsyms=$lt_include_expsyms
8868 # ### END LIBTOOL CONFIG
8874 cat <<\EOF >> "${ofile}T"
8876 # AIX sometimes has problems with the GCC collect2 program. For some
8877 # reason, if we set the COLLECT_NAMES environment variable, the problems
8878 # vanish in a puff of smoke.
8879 if test "X${COLLECT_NAMES+set}" != Xset; then
8881 export COLLECT_NAMES
8888 cygwin* | mingw* | pw32* | os2*)
8889 cat <<'EOF' >> "${ofile}T"
8890 # This is a source program that is used to create dlls on Windows
8891 # Don't remove nor modify the starting and closing comments
8892 # /* ltdll.c starts here */
8893 # #define WIN32_LEAN_AND_MEAN
8894 # #include <windows.h>
8895 # #undef WIN32_LEAN_AND_MEAN
8896 # #include <stdio.h>
8898 # #ifndef __CYGWIN__
8899 # # ifdef __CYGWIN32__
8900 # # define __CYGWIN__ __CYGWIN32__
8904 # #ifdef __cplusplus
8907 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8908 # #ifdef __cplusplus
8913 # #include <cygwin/cygwin_dll.h>
8914 # DECLARE_CYGWIN_DLL( DllMain );
8916 # HINSTANCE __hDllInstance_base;
8919 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8921 # __hDllInstance_base = hInst;
8924 # /* ltdll.c ends here */
8925 # This is a source program that is used to create import libraries
8926 # on Windows for dlls which lack them. Don't remove nor modify the
8927 # starting and closing comments
8928 # /* impgen.c starts here */
8929 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
8931 # This file is part of GNU libtool.
8933 # This program is free software; you can redistribute it and/or modify
8934 # it under the terms of the GNU General Public License as published by
8935 # the Free Software Foundation; either version 2 of the License, or
8936 # (at your option) any later version.
8938 # This program is distributed in the hope that it will be useful,
8939 # but WITHOUT ANY WARRANTY; without even the implied warranty of
8940 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8941 # GNU General Public License for more details.
8943 # You should have received a copy of the GNU General Public License
8944 # along with this program; if not, write to the Free Software
8945 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8948 # #include <stdio.h> /* for printf() */
8949 # #include <unistd.h> /* for open(), lseek(), read() */
8950 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8951 # #include <string.h> /* for strdup() */
8953 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8955 # #define O_BINARY 0
8958 # static unsigned int
8959 # pe_get16 (fd, offset)
8963 # unsigned char b[2];
8964 # lseek (fd, offset, SEEK_SET);
8966 # return b[0] + (b[1]<<8);
8969 # static unsigned int
8970 # pe_get32 (fd, offset)
8974 # unsigned char b[4];
8975 # lseek (fd, offset, SEEK_SET);
8977 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8980 # static unsigned int
8984 # unsigned char *b = ptr;
8985 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8994 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8995 # unsigned long export_rva, export_size, nsections, secptr, expptr;
8996 # unsigned long name_rvas, nexp;
8997 # unsigned char *expdata, *erva;
8998 # char *filename, *dll_name;
9000 # filename = argv[1];
9002 # dll = open(filename, O_RDONLY|O_BINARY);
9006 # dll_name = filename;
9008 # for (i=0; filename[i]; i++)
9009 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
9010 # dll_name = filename + i +1;
9012 # pe_header_offset = pe_get32 (dll, 0x3c);
9013 # opthdr_ofs = pe_header_offset + 4 + 20;
9014 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
9016 # if (num_entries < 1) /* no exports */
9019 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
9020 # export_size = pe_get32 (dll, opthdr_ofs + 100);
9021 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
9022 # secptr = (pe_header_offset + 4 + 20 +
9023 # pe_get16 (dll, pe_header_offset + 4 + 16));
9026 # for (i = 0; i < nsections; i++)
9029 # unsigned long secptr1 = secptr + 40 * i;
9030 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
9031 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
9032 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
9033 # lseek(dll, secptr1, SEEK_SET);
9034 # read(dll, sname, 8);
9035 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
9037 # expptr = fptr + (export_rva - vaddr);
9038 # if (export_rva + export_size > vaddr + vsize)
9039 # export_size = vsize - (export_rva - vaddr);
9044 # expdata = (unsigned char*)malloc(export_size);
9045 # lseek (dll, expptr, SEEK_SET);
9046 # read (dll, expdata, export_size);
9047 # erva = expdata - export_rva;
9049 # nexp = pe_as32 (expdata+24);
9050 # name_rvas = pe_as32 (expdata+32);
9052 # printf ("EXPORTS\n");
9053 # for (i = 0; i<nexp; i++)
9055 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
9056 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
9061 # /* impgen.c ends here */
9067 # We use sed instead of cat because bash on DJGPP gets confused if
9068 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9069 # text mode, it properly converts lines to CR/LF. This bash problem
9070 # is reportedly fixed, but why not run on old versions too?
9071 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
9073 mv -f "${ofile}T" "$ofile" || \
9074 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
9082 # This can be used to rebuild libtool when needed
9083 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
9085 # Always use our own libtool.
9086 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9088 # Prevent multiple expansion
9092 # Find a good install program. We prefer a C program (faster),
9093 # so one script is as good as another. But avoid the broken or
9094 # incompatible versions:
9095 # SysV /etc/install, /usr/sbin/install
9096 # SunOS /usr/etc/install
9097 # IRIX /sbin/install
9099 # AmigaOS /C/install, which installs bootblocks on floppy discs
9100 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9101 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9102 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9103 # OS/2's system install, which has a completely different semantic
9104 # ./install, which can be erroneously created by make from ./install.sh.
9105 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
9106 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
9107 if test -z "$INSTALL"; then
9108 if test "${ac_cv_path_install+set}" = set; then
9109 echo $ECHO_N "(cached) $ECHO_C" >&6
9111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9115 test -z "$as_dir" && as_dir=.
9116 # Account for people who put trailing slashes in PATH elements.
9118 ./ | .// | /cC/* | \
9119 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9120 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
9123 # OSF1 and SCO ODT 3.0 have their own names for install.
9124 # Don't use installbsd from OSF since it installs stuff as root
9126 for ac_prog in ginstall scoinst install; do
9127 for ac_exec_ext in '' $ac_executable_extensions; do
9128 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9129 if test $ac_prog = install &&
9130 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9131 # AIX install. It has an incompatible calling convention.
9133 elif test $ac_prog = install &&
9134 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9135 # program-specific install script used by HP pwplus--don't use.
9138 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9150 if test "${ac_cv_path_install+set}" = set; then
9151 INSTALL=$ac_cv_path_install
9153 # As a last resort, use the slow shell script. We don't cache a
9154 # path for INSTALL within a source directory, because that will
9155 # break other packages using the cache if that directory is
9156 # removed, or if the path is relative.
9157 INSTALL=$ac_install_sh
9160 echo "$as_me:$LINENO: result: $INSTALL" >&5
9161 echo "${ECHO_T}$INSTALL" >&6
9163 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9164 # It thinks the first close brace ends the variable substitution.
9165 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9167 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9169 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9172 if test "X$CC" = Xgcc; then
9173 CFLAGS="-Wall $CFLAGS"
9181 *-*-solaris*) LIBS="$LIBS -L$l -R $l $*";;
9182 *) LIBS="$LIBS -L$l $*";;
9186 if test X"$GCC" = "Xyes" ; then
9187 TARGET="depend allprogs"
9191 # let the Makefile know that we're done with `depend', since we don't
9192 # have gcc we're not going to rebuild our dependencies at all.
9203 for ac_header in alloca.h float.h libintl.h mcheck.h unistd.h
9205 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9207 echo "$as_me:$LINENO: checking for $ac_header" >&5
9208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9210 echo $ECHO_N "(cached) $ECHO_C" >&6
9212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9213 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9215 # Is the header compilable?
9216 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9217 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9218 cat >conftest.$ac_ext <<_ACEOF
9221 cat confdefs.h >>conftest.$ac_ext
9222 cat >>conftest.$ac_ext <<_ACEOF
9223 /* end confdefs.h. */
9224 $ac_includes_default
9225 #include <$ac_header>
9227 rm -f conftest.$ac_objext
9228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9229 (eval $ac_compile) 2>conftest.er1
9231 grep -v '^ *+' conftest.er1 >conftest.err
9233 cat conftest.err >&5
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); } &&
9236 { ac_try='test -z "$ac_c_werror_flag"
9237 || test ! -s conftest.err'
9238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); }; } &&
9243 { ac_try='test -s conftest.$ac_objext'
9244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); }; }; then
9249 ac_header_compiler=yes
9251 echo "$as_me: failed program was:" >&5
9252 sed 's/^/| /' conftest.$ac_ext >&5
9254 ac_header_compiler=no
9256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9257 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9258 echo "${ECHO_T}$ac_header_compiler" >&6
9260 # Is the header present?
9261 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9262 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9263 cat >conftest.$ac_ext <<_ACEOF
9266 cat confdefs.h >>conftest.$ac_ext
9267 cat >>conftest.$ac_ext <<_ACEOF
9268 /* end confdefs.h. */
9269 #include <$ac_header>
9271 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9272 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9274 grep -v '^ *+' conftest.er1 >conftest.err
9276 cat conftest.err >&5
9277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278 (exit $ac_status); } >/dev/null; then
9279 if test -s conftest.err; then
9280 ac_cpp_err=$ac_c_preproc_warn_flag
9281 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9288 if test -z "$ac_cpp_err"; then
9289 ac_header_preproc=yes
9291 echo "$as_me: failed program was:" >&5
9292 sed 's/^/| /' conftest.$ac_ext >&5
9294 ac_header_preproc=no
9296 rm -f conftest.err conftest.$ac_ext
9297 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9298 echo "${ECHO_T}$ac_header_preproc" >&6
9300 # So? What about this header?
9301 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9303 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9304 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9306 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9307 ac_header_preproc=yes
9310 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9311 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9312 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9313 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9314 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9315 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9316 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9317 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9319 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9320 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9321 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9324 ## ------------------------------------------ ##
9325 ## Report this to the AC_PACKAGE_NAME lists. ##
9326 ## ------------------------------------------ ##
9329 sed "s/^/$as_me: WARNING: /" >&2
9332 echo "$as_me:$LINENO: checking for $ac_header" >&5
9333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9335 echo $ECHO_N "(cached) $ECHO_C" >&6
9337 eval "$as_ac_Header=\$ac_header_preproc"
9339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9340 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9343 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9344 cat >>confdefs.h <<_ACEOF
9345 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9352 echo "$as_me:$LINENO: checking for /usr/ucblib in LIBS" >&5
9353 echo $ECHO_N "checking for /usr/ucblib in LIBS... $ECHO_C" >&6
9354 if test -d /usr/ucblib ; then
9355 if test "$build" = "mips-sni-sysv4" ; then
9356 addlib /usr/ccs/lib -lc
9361 echo "$as_me:$LINENO: result: yes" >&5
9362 echo "${ECHO_T}yes" >&6
9364 echo "$as_me:$LINENO: result: no" >&5
9365 echo "${ECHO_T}no" >&6
9368 if test ! -f ../rpm.c
9370 echo "$as_me:$LINENO: checking for GNU xgettext" >&5
9371 echo $ECHO_N "checking for GNU xgettext... $ECHO_C" >&6
9372 xgettext --version 2>&1 | grep 'GNU gettext' >/dev/null 2>&1 || { { echo "$as_me:$LINENO: error:
9373 *** GNU gettext is required. The latest version
9374 *** is always available from ftp://ftp.gnu.org/gnu/gettext/." >&5
9375 echo "$as_me: error:
9376 *** GNU gettext is required. The latest version
9377 *** is always available from ftp://ftp.gnu.org/gnu/gettext/." >&2;}
9378 { (exit 1); exit 1; }; }
9379 echo "$as_me:$LINENO: result: yes" >&5
9380 echo "${ECHO_T}yes" >&6
9387 for ac_func in strerror mtrace getuid geteuid
9389 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9390 echo "$as_me:$LINENO: checking for $ac_func" >&5
9391 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9392 if eval "test \"\${$as_ac_var+set}\" = set"; then
9393 echo $ECHO_N "(cached) $ECHO_C" >&6
9395 cat >conftest.$ac_ext <<_ACEOF
9398 cat confdefs.h >>conftest.$ac_ext
9399 cat >>conftest.$ac_ext <<_ACEOF
9400 /* end confdefs.h. */
9401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9403 #define $ac_func innocuous_$ac_func
9405 /* System header to define __stub macros and hopefully few prototypes,
9406 which can conflict with char $ac_func (); below.
9407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9408 <limits.h> exists even on freestanding compilers. */
9411 # include <limits.h>
9413 # include <assert.h>
9418 /* Override any gcc2 internal prototype to avoid an error. */
9423 /* We use char because int might match the return type of a gcc2
9424 builtin and then its argument prototype would still apply. */
9426 /* The GNU C library defines this for functions which it implements
9427 to always fail with ENOSYS. Some functions are actually named
9428 something starting with __ and the normal name is an alias. */
9429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9432 char (*f) () = $ac_func;
9441 return f != $ac_func;
9446 rm -f conftest.$ac_objext conftest$ac_exeext
9447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9448 (eval $ac_link) 2>conftest.er1
9450 grep -v '^ *+' conftest.er1 >conftest.err
9452 cat conftest.err >&5
9453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454 (exit $ac_status); } &&
9455 { ac_try='test -z "$ac_c_werror_flag"
9456 || test ! -s conftest.err'
9457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); }; } &&
9462 { ac_try='test -s conftest$ac_exeext'
9463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); }; }; then
9468 eval "$as_ac_var=yes"
9470 echo "$as_me: failed program was:" >&5
9471 sed 's/^/| /' conftest.$ac_ext >&5
9473 eval "$as_ac_var=no"
9475 rm -f conftest.err conftest.$ac_objext \
9476 conftest$ac_exeext conftest.$ac_ext
9478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9479 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9480 if test `eval echo '${'$as_ac_var'}'` = yes; then
9481 cat >>confdefs.h <<_ACEOF
9482 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9488 echo "$as_me:$LINENO: checking for setreuid" >&5
9489 echo $ECHO_N "checking for setreuid... $ECHO_C" >&6
9490 if test "${ac_cv_func_setreuid+set}" = set; then
9491 echo $ECHO_N "(cached) $ECHO_C" >&6
9493 cat >conftest.$ac_ext <<_ACEOF
9496 cat confdefs.h >>conftest.$ac_ext
9497 cat >>conftest.$ac_ext <<_ACEOF
9498 /* end confdefs.h. */
9499 /* Define setreuid to an innocuous variant, in case <limits.h> declares setreuid.
9500 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9501 #define setreuid innocuous_setreuid
9503 /* System header to define __stub macros and hopefully few prototypes,
9504 which can conflict with char setreuid (); below.
9505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9506 <limits.h> exists even on freestanding compilers. */
9509 # include <limits.h>
9511 # include <assert.h>
9516 /* Override any gcc2 internal prototype to avoid an error. */
9521 /* We use char because int might match the return type of a gcc2
9522 builtin and then its argument prototype would still apply. */
9524 /* The GNU C library defines this for functions which it implements
9525 to always fail with ENOSYS. Some functions are actually named
9526 something starting with __ and the normal name is an alias. */
9527 #if defined (__stub_setreuid) || defined (__stub___setreuid)
9530 char (*f) () = setreuid;
9539 return f != setreuid;
9544 rm -f conftest.$ac_objext conftest$ac_exeext
9545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9546 (eval $ac_link) 2>conftest.er1
9548 grep -v '^ *+' conftest.er1 >conftest.err
9550 cat conftest.err >&5
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); } &&
9553 { ac_try='test -z "$ac_c_werror_flag"
9554 || test ! -s conftest.err'
9555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559 (exit $ac_status); }; } &&
9560 { ac_try='test -s conftest$ac_exeext'
9561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); }; }; then
9566 ac_cv_func_setreuid=yes
9568 echo "$as_me: failed program was:" >&5
9569 sed 's/^/| /' conftest.$ac_ext >&5
9571 ac_cv_func_setreuid=no
9573 rm -f conftest.err conftest.$ac_objext \
9574 conftest$ac_exeext conftest.$ac_ext
9576 echo "$as_me:$LINENO: result: $ac_cv_func_setreuid" >&5
9577 echo "${ECHO_T}$ac_cv_func_setreuid" >&6
9578 if test $ac_cv_func_setreuid = yes; then
9582 echo "$as_me:$LINENO: checking for setreuid in -lucb" >&5
9583 echo $ECHO_N "checking for setreuid in -lucb... $ECHO_C" >&6
9584 if test "${ac_cv_lib_ucb_setreuid+set}" = set; then
9585 echo $ECHO_N "(cached) $ECHO_C" >&6
9587 ac_check_lib_save_LIBS=$LIBS
9589 cat >conftest.$ac_ext <<_ACEOF
9592 cat confdefs.h >>conftest.$ac_ext
9593 cat >>conftest.$ac_ext <<_ACEOF
9594 /* end confdefs.h. */
9596 /* Override any gcc2 internal prototype to avoid an error. */
9600 /* We use char because int might match the return type of a gcc2
9601 builtin and then its argument prototype would still apply. */
9611 rm -f conftest.$ac_objext conftest$ac_exeext
9612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9613 (eval $ac_link) 2>conftest.er1
9615 grep -v '^ *+' conftest.er1 >conftest.err
9617 cat conftest.err >&5
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); } &&
9620 { ac_try='test -z "$ac_c_werror_flag"
9621 || test ! -s conftest.err'
9622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); }; } &&
9627 { ac_try='test -s conftest$ac_exeext'
9628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); }; }; then
9633 ac_cv_lib_ucb_setreuid=yes
9635 echo "$as_me: failed program was:" >&5
9636 sed 's/^/| /' conftest.$ac_ext >&5
9638 ac_cv_lib_ucb_setreuid=no
9640 rm -f conftest.err conftest.$ac_objext \
9641 conftest$ac_exeext conftest.$ac_ext
9642 LIBS=$ac_check_lib_save_LIBS
9644 echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_setreuid" >&5
9645 echo "${ECHO_T}$ac_cv_lib_ucb_setreuid" >&6
9646 if test $ac_cv_lib_ucb_setreuid = yes; then
9647 if echo $LIBS | grep -- -lucb >/dev/null ;then :; else LIBS="$LIBS -lc -lucb" USEUCB=y;fi
9656 if test -n "$ac_aux_dir"; then
9657 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
9659 if test -z "$MKINSTALLDIRS"; then
9660 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
9667 # Extract the first word of "msgfmt", so it can be a program name with args.
9668 set dummy msgfmt; ac_word=$2
9669 echo "$as_me:$LINENO: checking for $ac_word" >&5
9670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9671 if test "${ac_cv_path_MSGFMT+set}" = set; then
9672 echo $ECHO_N "(cached) $ECHO_C" >&6
9676 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9679 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
9680 for ac_dir in $PATH; do
9681 test -z "$ac_dir" && ac_dir=.
9682 if test -f $ac_dir/$ac_word; then
9683 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
9684 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
9685 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
9691 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
9695 MSGFMT="$ac_cv_path_MSGFMT"
9696 if test "$MSGFMT" != ":"; then
9697 echo "$as_me:$LINENO: result: $MSGFMT" >&5
9698 echo "${ECHO_T}$MSGFMT" >&6
9700 echo "$as_me:$LINENO: result: no" >&5
9701 echo "${ECHO_T}no" >&6
9704 # Extract the first word of "gmsgfmt", so it can be a program name with args.
9705 set dummy gmsgfmt; ac_word=$2
9706 echo "$as_me:$LINENO: checking for $ac_word" >&5
9707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9708 if test "${ac_cv_path_GMSGFMT+set}" = set; then
9709 echo $ECHO_N "(cached) $ECHO_C" >&6
9713 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
9716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9720 test -z "$as_dir" && as_dir=.
9721 for ac_exec_ext in '' $ac_executable_extensions; do
9722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9723 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
9724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9730 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
9734 GMSGFMT=$ac_cv_path_GMSGFMT
9736 if test -n "$GMSGFMT"; then
9737 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
9738 echo "${ECHO_T}$GMSGFMT" >&6
9740 echo "$as_me:$LINENO: result: no" >&5
9741 echo "${ECHO_T}no" >&6
9745 # Extract the first word of "xgettext", so it can be a program name with args.
9746 set dummy xgettext; ac_word=$2
9747 echo "$as_me:$LINENO: checking for $ac_word" >&5
9748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9749 if test "${ac_cv_path_XGETTEXT+set}" = set; then
9750 echo $ECHO_N "(cached) $ECHO_C" >&6
9754 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
9757 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
9758 for ac_dir in $PATH; do
9759 test -z "$ac_dir" && ac_dir=.
9760 if test -f $ac_dir/$ac_word; then
9761 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
9762 (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
9763 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
9769 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
9773 XGETTEXT="$ac_cv_path_XGETTEXT"
9774 if test "$XGETTEXT" != ":"; then
9775 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
9776 echo "${ECHO_T}$XGETTEXT" >&6
9778 echo "$as_me:$LINENO: result: no" >&5
9779 echo "${ECHO_T}no" >&6
9784 # Extract the first word of "msgmerge", so it can be a program name with args.
9785 set dummy msgmerge; ac_word=$2
9786 echo "$as_me:$LINENO: checking for $ac_word" >&5
9787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9788 if test "${ac_cv_path_MSGMERGE+set}" = set; then
9789 echo $ECHO_N "(cached) $ECHO_C" >&6
9793 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
9796 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
9797 for ac_dir in $PATH; do
9798 test -z "$ac_dir" && ac_dir=.
9799 if test -f $ac_dir/$ac_word; then
9800 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
9801 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
9807 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
9811 MSGMERGE="$ac_cv_path_MSGMERGE"
9812 if test "$MSGMERGE" != ":"; then
9813 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
9814 echo "${ECHO_T}$MSGMERGE" >&6
9816 echo "$as_me:$LINENO: result: no" >&5
9817 echo "${ECHO_T}no" >&6
9821 if test "$GMSGFMT" != ":"; then
9822 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
9823 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
9826 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
9827 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
9828 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
9833 if test "$XGETTEXT" != ":"; then
9834 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
9835 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
9838 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
9839 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
9845 ac_config_commands="$ac_config_commands default-1"
9848 if test -n "$ac_tool_prefix"; then
9849 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9850 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9851 echo "$as_me:$LINENO: checking for $ac_word" >&5
9852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9853 if test "${ac_cv_prog_RANLIB+set}" = set; then
9854 echo $ECHO_N "(cached) $ECHO_C" >&6
9856 if test -n "$RANLIB"; then
9857 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9863 test -z "$as_dir" && as_dir=.
9864 for ac_exec_ext in '' $ac_executable_extensions; do
9865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9866 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9875 RANLIB=$ac_cv_prog_RANLIB
9876 if test -n "$RANLIB"; then
9877 echo "$as_me:$LINENO: result: $RANLIB" >&5
9878 echo "${ECHO_T}$RANLIB" >&6
9880 echo "$as_me:$LINENO: result: no" >&5
9881 echo "${ECHO_T}no" >&6
9885 if test -z "$ac_cv_prog_RANLIB"; then
9886 ac_ct_RANLIB=$RANLIB
9887 # Extract the first word of "ranlib", so it can be a program name with args.
9888 set dummy ranlib; ac_word=$2
9889 echo "$as_me:$LINENO: checking for $ac_word" >&5
9890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9891 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9892 echo $ECHO_N "(cached) $ECHO_C" >&6
9894 if test -n "$ac_ct_RANLIB"; then
9895 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9901 test -z "$as_dir" && as_dir=.
9902 for ac_exec_ext in '' $ac_executable_extensions; do
9903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9904 ac_cv_prog_ac_ct_RANLIB="ranlib"
9905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9911 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
9914 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9915 if test -n "$ac_ct_RANLIB"; then
9916 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9917 echo "${ECHO_T}$ac_ct_RANLIB" >&6
9919 echo "$as_me:$LINENO: result: no" >&5
9920 echo "${ECHO_T}no" >&6
9923 RANLIB=$ac_ct_RANLIB
9925 RANLIB="$ac_cv_prog_RANLIB"
9928 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9929 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9930 if test "${ac_cv_c_const+set}" = set; then
9931 echo $ECHO_N "(cached) $ECHO_C" >&6
9933 cat >conftest.$ac_ext <<_ACEOF
9936 cat confdefs.h >>conftest.$ac_ext
9937 cat >>conftest.$ac_ext <<_ACEOF
9938 /* end confdefs.h. */
9943 /* FIXME: Include the comments suggested by Paul. */
9945 /* Ultrix mips cc rejects this. */
9946 typedef int charset[2];
9948 /* SunOS 4.1.1 cc rejects this. */
9949 char const *const *ccp;
9951 /* NEC SVR4.0.2 mips cc rejects this. */
9952 struct point {int x, y;};
9953 static struct point const zero = {0,0};
9954 /* AIX XL C 1.02.0.0 rejects this.
9955 It does not let you subtract one const X* pointer from another in
9956 an arm of an if-expression whose if-part is not a constant
9958 const char *g = "string";
9959 ccp = &g + (g ? g-g : 0);
9960 /* HPUX 7.0 cc rejects these. */
9963 ccp = (char const *const *) p;
9964 { /* SCO 3.2v4 cc rejects this. */
9966 char const *s = 0 ? (char *) 0 : (char const *) 0;
9970 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9972 const int *foo = &x[0];
9975 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9976 typedef const int *iptr;
9980 { /* AIX XL C 1.02.0.0 rejects this saying
9981 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9982 struct s { int j; const int *ap[3]; };
9983 struct s *b; b->j = 5;
9985 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9994 rm -f conftest.$ac_objext
9995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9996 (eval $ac_compile) 2>conftest.er1
9998 grep -v '^ *+' conftest.er1 >conftest.err
10000 cat conftest.err >&5
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); } &&
10003 { ac_try='test -z "$ac_c_werror_flag"
10004 || test ! -s conftest.err'
10005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10006 (eval $ac_try) 2>&5
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); }; } &&
10010 { ac_try='test -s conftest.$ac_objext'
10011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10012 (eval $ac_try) 2>&5
10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); }; }; then
10018 echo "$as_me: failed program was:" >&5
10019 sed 's/^/| /' conftest.$ac_ext >&5
10023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10025 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10026 echo "${ECHO_T}$ac_cv_c_const" >&6
10027 if test $ac_cv_c_const = no; then
10029 cat >>confdefs.h <<\_ACEOF
10035 echo "$as_me:$LINENO: checking for inline" >&5
10036 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10037 if test "${ac_cv_c_inline+set}" = set; then
10038 echo $ECHO_N "(cached) $ECHO_C" >&6
10041 for ac_kw in inline __inline__ __inline; do
10042 cat >conftest.$ac_ext <<_ACEOF
10045 cat confdefs.h >>conftest.$ac_ext
10046 cat >>conftest.$ac_ext <<_ACEOF
10047 /* end confdefs.h. */
10048 #ifndef __cplusplus
10050 static $ac_kw foo_t static_foo () {return 0; }
10051 $ac_kw foo_t foo () {return 0; }
10055 rm -f conftest.$ac_objext
10056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10057 (eval $ac_compile) 2>conftest.er1
10059 grep -v '^ *+' conftest.er1 >conftest.err
10061 cat conftest.err >&5
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); } &&
10064 { ac_try='test -z "$ac_c_werror_flag"
10065 || test ! -s conftest.err'
10066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10067 (eval $ac_try) 2>&5
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); }; } &&
10071 { ac_try='test -s conftest.$ac_objext'
10072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10073 (eval $ac_try) 2>&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); }; }; then
10077 ac_cv_c_inline=$ac_kw; break
10079 echo "$as_me: failed program was:" >&5
10080 sed 's/^/| /' conftest.$ac_ext >&5
10083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10087 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10088 echo "${ECHO_T}$ac_cv_c_inline" >&6
10091 case $ac_cv_c_inline in
10094 case $ac_cv_c_inline in
10096 *) ac_val=$ac_cv_c_inline;;
10098 cat >>confdefs.h <<_ACEOF
10099 #ifndef __cplusplus
10100 #define inline $ac_val
10106 echo "$as_me:$LINENO: checking for off_t" >&5
10107 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10108 if test "${ac_cv_type_off_t+set}" = set; then
10109 echo $ECHO_N "(cached) $ECHO_C" >&6
10111 cat >conftest.$ac_ext <<_ACEOF
10114 cat confdefs.h >>conftest.$ac_ext
10115 cat >>conftest.$ac_ext <<_ACEOF
10116 /* end confdefs.h. */
10117 $ac_includes_default
10123 if (sizeof (off_t))
10129 rm -f conftest.$ac_objext
10130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10131 (eval $ac_compile) 2>conftest.er1
10133 grep -v '^ *+' conftest.er1 >conftest.err
10135 cat conftest.err >&5
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); } &&
10138 { ac_try='test -z "$ac_c_werror_flag"
10139 || test ! -s conftest.err'
10140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10141 (eval $ac_try) 2>&5
10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); }; } &&
10145 { ac_try='test -s conftest.$ac_objext'
10146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10147 (eval $ac_try) 2>&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); }; }; then
10151 ac_cv_type_off_t=yes
10153 echo "$as_me: failed program was:" >&5
10154 sed 's/^/| /' conftest.$ac_ext >&5
10156 ac_cv_type_off_t=no
10158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10160 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10161 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10162 if test $ac_cv_type_off_t = yes; then
10166 cat >>confdefs.h <<_ACEOF
10172 echo "$as_me:$LINENO: checking for size_t" >&5
10173 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10174 if test "${ac_cv_type_size_t+set}" = set; then
10175 echo $ECHO_N "(cached) $ECHO_C" >&6
10177 cat >conftest.$ac_ext <<_ACEOF
10180 cat confdefs.h >>conftest.$ac_ext
10181 cat >>conftest.$ac_ext <<_ACEOF
10182 /* end confdefs.h. */
10183 $ac_includes_default
10189 if (sizeof (size_t))
10195 rm -f conftest.$ac_objext
10196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10197 (eval $ac_compile) 2>conftest.er1
10199 grep -v '^ *+' conftest.er1 >conftest.err
10201 cat conftest.err >&5
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); } &&
10204 { ac_try='test -z "$ac_c_werror_flag"
10205 || test ! -s conftest.err'
10206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10207 (eval $ac_try) 2>&5
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); }; } &&
10211 { ac_try='test -s conftest.$ac_objext'
10212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10213 (eval $ac_try) 2>&5
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); }; }; then
10217 ac_cv_type_size_t=yes
10219 echo "$as_me: failed program was:" >&5
10220 sed 's/^/| /' conftest.$ac_ext >&5
10222 ac_cv_type_size_t=no
10224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10226 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10227 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10228 if test $ac_cv_type_size_t = yes; then
10232 cat >>confdefs.h <<_ACEOF
10233 #define size_t unsigned
10238 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10239 # for constant arguments. Useless!
10240 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10241 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10242 if test "${ac_cv_working_alloca_h+set}" = set; then
10243 echo $ECHO_N "(cached) $ECHO_C" >&6
10245 cat >conftest.$ac_ext <<_ACEOF
10248 cat confdefs.h >>conftest.$ac_ext
10249 cat >>conftest.$ac_ext <<_ACEOF
10250 /* end confdefs.h. */
10251 #include <alloca.h>
10255 char *p = (char *) alloca (2 * sizeof (int));
10260 rm -f conftest.$ac_objext conftest$ac_exeext
10261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10262 (eval $ac_link) 2>conftest.er1
10264 grep -v '^ *+' conftest.er1 >conftest.err
10266 cat conftest.err >&5
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); } &&
10269 { ac_try='test -z "$ac_c_werror_flag"
10270 || test ! -s conftest.err'
10271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10272 (eval $ac_try) 2>&5
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); }; } &&
10276 { ac_try='test -s conftest$ac_exeext'
10277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10278 (eval $ac_try) 2>&5
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); }; }; then
10282 ac_cv_working_alloca_h=yes
10284 echo "$as_me: failed program was:" >&5
10285 sed 's/^/| /' conftest.$ac_ext >&5
10287 ac_cv_working_alloca_h=no
10289 rm -f conftest.err conftest.$ac_objext \
10290 conftest$ac_exeext conftest.$ac_ext
10292 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10293 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10294 if test $ac_cv_working_alloca_h = yes; then
10296 cat >>confdefs.h <<\_ACEOF
10297 #define HAVE_ALLOCA_H 1
10302 echo "$as_me:$LINENO: checking for alloca" >&5
10303 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10304 if test "${ac_cv_func_alloca_works+set}" = set; then
10305 echo $ECHO_N "(cached) $ECHO_C" >&6
10307 cat >conftest.$ac_ext <<_ACEOF
10310 cat confdefs.h >>conftest.$ac_ext
10311 cat >>conftest.$ac_ext <<_ACEOF
10312 /* end confdefs.h. */
10314 # define alloca __builtin_alloca
10317 # include <malloc.h>
10318 # define alloca _alloca
10321 # include <alloca.h>
10326 # ifndef alloca /* predefined by HP cc +Olibcalls */
10337 char *p = (char *) alloca (1);
10342 rm -f conftest.$ac_objext conftest$ac_exeext
10343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10344 (eval $ac_link) 2>conftest.er1
10346 grep -v '^ *+' conftest.er1 >conftest.err
10348 cat conftest.err >&5
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); } &&
10351 { ac_try='test -z "$ac_c_werror_flag"
10352 || test ! -s conftest.err'
10353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10354 (eval $ac_try) 2>&5
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); }; } &&
10358 { ac_try='test -s conftest$ac_exeext'
10359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10360 (eval $ac_try) 2>&5
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); }; }; then
10364 ac_cv_func_alloca_works=yes
10366 echo "$as_me: failed program was:" >&5
10367 sed 's/^/| /' conftest.$ac_ext >&5
10369 ac_cv_func_alloca_works=no
10371 rm -f conftest.err conftest.$ac_objext \
10372 conftest$ac_exeext conftest.$ac_ext
10374 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10375 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10377 if test $ac_cv_func_alloca_works = yes; then
10379 cat >>confdefs.h <<\_ACEOF
10380 #define HAVE_ALLOCA 1
10384 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10385 # that cause trouble. Some versions do not even contain alloca or
10386 # contain a buggy version. If you still want to use their alloca,
10387 # use ar to extract alloca.o from them instead of compiling alloca.c.
10389 ALLOCA=alloca.$ac_objext
10391 cat >>confdefs.h <<\_ACEOF
10396 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10397 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10398 if test "${ac_cv_os_cray+set}" = set; then
10399 echo $ECHO_N "(cached) $ECHO_C" >&6
10401 cat >conftest.$ac_ext <<_ACEOF
10404 cat confdefs.h >>conftest.$ac_ext
10405 cat >>conftest.$ac_ext <<_ACEOF
10406 /* end confdefs.h. */
10407 #if defined(CRAY) && ! defined(CRAY2)
10414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10415 $EGREP "webecray" >/dev/null 2>&1; then
10423 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10424 echo "${ECHO_T}$ac_cv_os_cray" >&6
10425 if test $ac_cv_os_cray = yes; then
10426 for ac_func in _getb67 GETB67 getb67; do
10427 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10428 echo "$as_me:$LINENO: checking for $ac_func" >&5
10429 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10430 if eval "test \"\${$as_ac_var+set}\" = set"; then
10431 echo $ECHO_N "(cached) $ECHO_C" >&6
10433 cat >conftest.$ac_ext <<_ACEOF
10436 cat confdefs.h >>conftest.$ac_ext
10437 cat >>conftest.$ac_ext <<_ACEOF
10438 /* end confdefs.h. */
10439 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10441 #define $ac_func innocuous_$ac_func
10443 /* System header to define __stub macros and hopefully few prototypes,
10444 which can conflict with char $ac_func (); below.
10445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10446 <limits.h> exists even on freestanding compilers. */
10449 # include <limits.h>
10451 # include <assert.h>
10456 /* Override any gcc2 internal prototype to avoid an error. */
10461 /* We use char because int might match the return type of a gcc2
10462 builtin and then its argument prototype would still apply. */
10464 /* The GNU C library defines this for functions which it implements
10465 to always fail with ENOSYS. Some functions are actually named
10466 something starting with __ and the normal name is an alias. */
10467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10470 char (*f) () = $ac_func;
10479 return f != $ac_func;
10484 rm -f conftest.$ac_objext conftest$ac_exeext
10485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10486 (eval $ac_link) 2>conftest.er1
10488 grep -v '^ *+' conftest.er1 >conftest.err
10490 cat conftest.err >&5
10491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); } &&
10493 { ac_try='test -z "$ac_c_werror_flag"
10494 || test ! -s conftest.err'
10495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10496 (eval $ac_try) 2>&5
10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499 (exit $ac_status); }; } &&
10500 { ac_try='test -s conftest$ac_exeext'
10501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10502 (eval $ac_try) 2>&5
10504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505 (exit $ac_status); }; }; then
10506 eval "$as_ac_var=yes"
10508 echo "$as_me: failed program was:" >&5
10509 sed 's/^/| /' conftest.$ac_ext >&5
10511 eval "$as_ac_var=no"
10513 rm -f conftest.err conftest.$ac_objext \
10514 conftest$ac_exeext conftest.$ac_ext
10516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10517 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10518 if test `eval echo '${'$as_ac_var'}'` = yes; then
10520 cat >>confdefs.h <<_ACEOF
10521 #define CRAY_STACKSEG_END $ac_func
10530 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10531 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10532 if test "${ac_cv_c_stack_direction+set}" = set; then
10533 echo $ECHO_N "(cached) $ECHO_C" >&6
10535 if test "$cross_compiling" = yes; then
10536 ac_cv_c_stack_direction=0
10538 cat >conftest.$ac_ext <<_ACEOF
10541 cat confdefs.h >>conftest.$ac_ext
10542 cat >>conftest.$ac_ext <<_ACEOF
10543 /* end confdefs.h. */
10545 find_stack_direction ()
10547 static char *addr = 0;
10552 return find_stack_direction ();
10555 return (&dummy > addr) ? 1 : -1;
10561 exit (find_stack_direction () < 0);
10564 rm -f conftest$ac_exeext
10565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10566 (eval $ac_link) 2>&5
10568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10571 (eval $ac_try) 2>&5
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); }; }; then
10575 ac_cv_c_stack_direction=1
10577 echo "$as_me: program exited with status $ac_status" >&5
10578 echo "$as_me: failed program was:" >&5
10579 sed 's/^/| /' conftest.$ac_ext >&5
10581 ( exit $ac_status )
10582 ac_cv_c_stack_direction=-1
10584 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10587 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10588 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10590 cat >>confdefs.h <<_ACEOF
10591 #define STACK_DIRECTION $ac_cv_c_stack_direction
10599 for ac_header in stdlib.h unistd.h
10601 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10602 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10603 echo "$as_me:$LINENO: checking for $ac_header" >&5
10604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10606 echo $ECHO_N "(cached) $ECHO_C" >&6
10608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10609 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10611 # Is the header compilable?
10612 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10613 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10614 cat >conftest.$ac_ext <<_ACEOF
10617 cat confdefs.h >>conftest.$ac_ext
10618 cat >>conftest.$ac_ext <<_ACEOF
10619 /* end confdefs.h. */
10620 $ac_includes_default
10621 #include <$ac_header>
10623 rm -f conftest.$ac_objext
10624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10625 (eval $ac_compile) 2>conftest.er1
10627 grep -v '^ *+' conftest.er1 >conftest.err
10629 cat conftest.err >&5
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); } &&
10632 { ac_try='test -z "$ac_c_werror_flag"
10633 || test ! -s conftest.err'
10634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10635 (eval $ac_try) 2>&5
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); }; } &&
10639 { ac_try='test -s conftest.$ac_objext'
10640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10641 (eval $ac_try) 2>&5
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); }; }; then
10645 ac_header_compiler=yes
10647 echo "$as_me: failed program was:" >&5
10648 sed 's/^/| /' conftest.$ac_ext >&5
10650 ac_header_compiler=no
10652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10653 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10654 echo "${ECHO_T}$ac_header_compiler" >&6
10656 # Is the header present?
10657 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10658 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10659 cat >conftest.$ac_ext <<_ACEOF
10662 cat confdefs.h >>conftest.$ac_ext
10663 cat >>conftest.$ac_ext <<_ACEOF
10664 /* end confdefs.h. */
10665 #include <$ac_header>
10667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10668 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10670 grep -v '^ *+' conftest.er1 >conftest.err
10672 cat conftest.err >&5
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); } >/dev/null; then
10675 if test -s conftest.err; then
10676 ac_cpp_err=$ac_c_preproc_warn_flag
10677 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10684 if test -z "$ac_cpp_err"; then
10685 ac_header_preproc=yes
10687 echo "$as_me: failed program was:" >&5
10688 sed 's/^/| /' conftest.$ac_ext >&5
10690 ac_header_preproc=no
10692 rm -f conftest.err conftest.$ac_ext
10693 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10694 echo "${ECHO_T}$ac_header_preproc" >&6
10696 # So? What about this header?
10697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10699 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10700 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10702 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10703 ac_header_preproc=yes
10706 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10707 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10708 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10709 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10710 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10711 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10712 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10713 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10715 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10716 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10717 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10720 ## ------------------------------------------ ##
10721 ## Report this to the AC_PACKAGE_NAME lists. ##
10722 ## ------------------------------------------ ##
10725 sed "s/^/$as_me: WARNING: /" >&2
10728 echo "$as_me:$LINENO: checking for $ac_header" >&5
10729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10731 echo $ECHO_N "(cached) $ECHO_C" >&6
10733 eval "$as_ac_Header=\$ac_header_preproc"
10735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10736 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10740 cat >>confdefs.h <<_ACEOF
10741 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10749 for ac_func in getpagesize
10751 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10752 echo "$as_me:$LINENO: checking for $ac_func" >&5
10753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10754 if eval "test \"\${$as_ac_var+set}\" = set"; then
10755 echo $ECHO_N "(cached) $ECHO_C" >&6
10757 cat >conftest.$ac_ext <<_ACEOF
10760 cat confdefs.h >>conftest.$ac_ext
10761 cat >>conftest.$ac_ext <<_ACEOF
10762 /* end confdefs.h. */
10763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10765 #define $ac_func innocuous_$ac_func
10767 /* System header to define __stub macros and hopefully few prototypes,
10768 which can conflict with char $ac_func (); below.
10769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10770 <limits.h> exists even on freestanding compilers. */
10773 # include <limits.h>
10775 # include <assert.h>
10780 /* Override any gcc2 internal prototype to avoid an error. */
10785 /* We use char because int might match the return type of a gcc2
10786 builtin and then its argument prototype would still apply. */
10788 /* The GNU C library defines this for functions which it implements
10789 to always fail with ENOSYS. Some functions are actually named
10790 something starting with __ and the normal name is an alias. */
10791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10794 char (*f) () = $ac_func;
10803 return f != $ac_func;
10808 rm -f conftest.$ac_objext conftest$ac_exeext
10809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10810 (eval $ac_link) 2>conftest.er1
10812 grep -v '^ *+' conftest.er1 >conftest.err
10814 cat conftest.err >&5
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); } &&
10817 { ac_try='test -z "$ac_c_werror_flag"
10818 || test ! -s conftest.err'
10819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10820 (eval $ac_try) 2>&5
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); }; } &&
10824 { ac_try='test -s conftest$ac_exeext'
10825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10826 (eval $ac_try) 2>&5
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); }; }; then
10830 eval "$as_ac_var=yes"
10832 echo "$as_me: failed program was:" >&5
10833 sed 's/^/| /' conftest.$ac_ext >&5
10835 eval "$as_ac_var=no"
10837 rm -f conftest.err conftest.$ac_objext \
10838 conftest$ac_exeext conftest.$ac_ext
10840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10841 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10842 if test `eval echo '${'$as_ac_var'}'` = yes; then
10843 cat >>confdefs.h <<_ACEOF
10844 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10850 echo "$as_me:$LINENO: checking for working mmap" >&5
10851 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
10852 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10853 echo $ECHO_N "(cached) $ECHO_C" >&6
10855 if test "$cross_compiling" = yes; then
10856 ac_cv_func_mmap_fixed_mapped=no
10858 cat >conftest.$ac_ext <<_ACEOF
10861 cat confdefs.h >>conftest.$ac_ext
10862 cat >>conftest.$ac_ext <<_ACEOF
10863 /* end confdefs.h. */
10864 $ac_includes_default
10865 /* malloc might have been renamed as rpl_malloc. */
10868 /* Thanks to Mike Haertel and Jim Avera for this test.
10869 Here is a matrix of mmap possibilities:
10870 mmap private not fixed
10871 mmap private fixed at somewhere currently unmapped
10872 mmap private fixed at somewhere already mapped
10873 mmap shared not fixed
10874 mmap shared fixed at somewhere currently unmapped
10875 mmap shared fixed at somewhere already mapped
10876 For private mappings, we should verify that changes cannot be read()
10877 back from the file, nor mmap's back from the file at a different
10878 address. (There have been systems where private was not correctly
10879 implemented like the infamous i386 svr4.0, and systems where the
10880 VM page cache was not coherent with the file system buffer cache
10881 like early versions of FreeBSD and possibly contemporary NetBSD.)
10882 For shared mappings, we should conversely verify that changes get
10883 propagated back to all the places they're supposed to be.
10885 Grep wants private fixed already mapped.
10886 The main things grep needs to know about mmap are:
10887 * does it exist and is it safe to write into the mmap'd area
10888 * how to use it (BSD variants) */
10891 #include <sys/mman.h>
10893 #if !STDC_HEADERS && !HAVE_STDLIB_H
10897 /* This mess was copied from the GNU getpagesize.h. */
10898 #if !HAVE_GETPAGESIZE
10899 /* Assume that all systems that can run configure have sys/param.h. */
10900 # if !HAVE_SYS_PARAM_H
10901 # define HAVE_SYS_PARAM_H 1
10904 # ifdef _SC_PAGESIZE
10905 # define getpagesize() sysconf(_SC_PAGESIZE)
10906 # else /* no _SC_PAGESIZE */
10907 # if HAVE_SYS_PARAM_H
10908 # include <sys/param.h>
10909 # ifdef EXEC_PAGESIZE
10910 # define getpagesize() EXEC_PAGESIZE
10911 # else /* no EXEC_PAGESIZE */
10913 # define getpagesize() NBPG * CLSIZE
10916 # endif /* no CLSIZE */
10917 # else /* no NBPG */
10919 # define getpagesize() NBPC
10920 # else /* no NBPC */
10922 # define getpagesize() PAGESIZE
10923 # endif /* PAGESIZE */
10924 # endif /* no NBPC */
10925 # endif /* no NBPG */
10926 # endif /* no EXEC_PAGESIZE */
10927 # else /* no HAVE_SYS_PARAM_H */
10928 # define getpagesize() 8192 /* punt totally */
10929 # endif /* no HAVE_SYS_PARAM_H */
10930 # endif /* no _SC_PAGESIZE */
10932 #endif /* no HAVE_GETPAGESIZE */
10937 char *data, *data2, *data3;
10941 pagesize = getpagesize ();
10943 /* First, make a file with some known garbage in it. */
10944 data = (char *) malloc (pagesize);
10947 for (i = 0; i < pagesize; ++i)
10948 *(data + i) = rand ();
10950 fd = creat ("conftest.mmap", 0600);
10953 if (write (fd, data, pagesize) != pagesize)
10957 /* Next, try to mmap the file at a fixed address which already has
10958 something else allocated at it. If we can, also make sure that
10959 we see the same garbage. */
10960 fd = open ("conftest.mmap", O_RDWR);
10963 data2 = (char *) malloc (2 * pagesize);
10966 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
10967 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10968 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10970 for (i = 0; i < pagesize; ++i)
10971 if (*(data + i) != *(data2 + i))
10974 /* Finally, make sure that changes to the mapped area do not
10975 percolate back to the file as seen by read(). (This is a bug on
10976 some variants of i386 svr4.0.) */
10977 for (i = 0; i < pagesize; ++i)
10978 *(data2 + i) = *(data2 + i) + 1;
10979 data3 = (char *) malloc (pagesize);
10982 if (read (fd, data3, pagesize) != pagesize)
10984 for (i = 0; i < pagesize; ++i)
10985 if (*(data + i) != *(data3 + i))
10991 rm -f conftest$ac_exeext
10992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10993 (eval $ac_link) 2>&5
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10998 (eval $ac_try) 2>&5
11000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); }; }; then
11002 ac_cv_func_mmap_fixed_mapped=yes
11004 echo "$as_me: program exited with status $ac_status" >&5
11005 echo "$as_me: failed program was:" >&5
11006 sed 's/^/| /' conftest.$ac_ext >&5
11008 ( exit $ac_status )
11009 ac_cv_func_mmap_fixed_mapped=no
11011 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11014 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
11015 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
11016 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11018 cat >>confdefs.h <<\_ACEOF
11019 #define HAVE_MMAP 1
11023 rm -f conftest.mmap
11026 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
11027 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
11028 if test "${ac_cv_gnu_library_2_1+set}" = set; then
11029 echo $ECHO_N "(cached) $ECHO_C" >&6
11031 cat >conftest.$ac_ext <<_ACEOF
11034 cat confdefs.h >>conftest.$ac_ext
11035 cat >>conftest.$ac_ext <<_ACEOF
11036 /* end confdefs.h. */
11038 #include <features.h>
11039 #ifdef __GNU_LIBRARY__
11040 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
11046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11047 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
11048 ac_cv_gnu_library_2_1=yes
11050 ac_cv_gnu_library_2_1=no
11057 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
11058 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
11060 GLIBC21="$ac_cv_gnu_library_2_1"
11065 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
11066 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
11067 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
11068 echo $ECHO_N "(cached) $ECHO_C" >&6
11071 if test "$cross_compiling" = yes; then
11073 # Guess based on the CPU.
11074 case "$host_cpu" in
11075 alpha* | i3456786 | m68k | s390*)
11076 gt_cv_int_divbyzero_sigfpe="guessing yes";;
11078 gt_cv_int_divbyzero_sigfpe="guessing no";;
11082 cat >conftest.$ac_ext <<_ACEOF
11085 cat confdefs.h >>conftest.$ac_ext
11086 cat >>conftest.$ac_ext <<_ACEOF
11087 /* end confdefs.h. */
11089 #include <stdlib.h>
11090 #include <signal.h>
11094 sigfpe_handler (int sig)
11096 sigfpe_handler (sig) int sig;
11099 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
11100 exit (sig != SIGFPE);
11110 signal (SIGFPE, sigfpe_handler);
11111 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
11112 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
11113 signal (SIGTRAP, sigfpe_handler);
11115 /* Linux/SPARC yields signal SIGILL. */
11116 #if defined (__sparc__) && defined (__linux__)
11117 signal (SIGILL, sigfpe_handler);
11126 rm -f conftest$ac_exeext
11127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11128 (eval $ac_link) 2>&5
11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11133 (eval $ac_try) 2>&5
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); }; }; then
11137 gt_cv_int_divbyzero_sigfpe=yes
11139 echo "$as_me: program exited with status $ac_status" >&5
11140 echo "$as_me: failed program was:" >&5
11141 sed 's/^/| /' conftest.$ac_ext >&5
11143 ( exit $ac_status )
11144 gt_cv_int_divbyzero_sigfpe=no
11146 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11150 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
11151 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
11152 case "$gt_cv_int_divbyzero_sigfpe" in
11157 cat >>confdefs.h <<_ACEOF
11158 #define INTDIV0_RAISES_SIGFPE $value
11163 echo "$as_me:$LINENO: checking for inttypes.h" >&5
11164 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
11165 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
11166 echo $ECHO_N "(cached) $ECHO_C" >&6
11168 cat >conftest.$ac_ext <<_ACEOF
11171 cat confdefs.h >>conftest.$ac_ext
11172 cat >>conftest.$ac_ext <<_ACEOF
11173 /* end confdefs.h. */
11174 #include <sys/types.h>
11175 #include <inttypes.h>
11179 uintmax_t i = (uintmax_t) -1;
11184 rm -f conftest.$ac_objext
11185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11186 (eval $ac_compile) 2>conftest.er1
11188 grep -v '^ *+' conftest.er1 >conftest.err
11190 cat conftest.err >&5
11191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192 (exit $ac_status); } &&
11193 { ac_try='test -z "$ac_c_werror_flag"
11194 || test ! -s conftest.err'
11195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11196 (eval $ac_try) 2>&5
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); }; } &&
11200 { ac_try='test -s conftest.$ac_objext'
11201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11202 (eval $ac_try) 2>&5
11204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205 (exit $ac_status); }; }; then
11206 jm_ac_cv_header_inttypes_h=yes
11208 echo "$as_me: failed program was:" >&5
11209 sed 's/^/| /' conftest.$ac_ext >&5
11211 jm_ac_cv_header_inttypes_h=no
11213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11215 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
11216 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
11217 if test $jm_ac_cv_header_inttypes_h = yes; then
11219 cat >>confdefs.h <<_ACEOF
11220 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
11226 echo "$as_me:$LINENO: checking for stdint.h" >&5
11227 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
11228 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
11229 echo $ECHO_N "(cached) $ECHO_C" >&6
11231 cat >conftest.$ac_ext <<_ACEOF
11234 cat confdefs.h >>conftest.$ac_ext
11235 cat >>conftest.$ac_ext <<_ACEOF
11236 /* end confdefs.h. */
11237 #include <sys/types.h>
11238 #include <stdint.h>
11242 uintmax_t i = (uintmax_t) -1;
11247 rm -f conftest.$ac_objext
11248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11249 (eval $ac_compile) 2>conftest.er1
11251 grep -v '^ *+' conftest.er1 >conftest.err
11253 cat conftest.err >&5
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); } &&
11256 { ac_try='test -z "$ac_c_werror_flag"
11257 || test ! -s conftest.err'
11258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11259 (eval $ac_try) 2>&5
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); }; } &&
11263 { ac_try='test -s conftest.$ac_objext'
11264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11265 (eval $ac_try) 2>&5
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); }; }; then
11269 jm_ac_cv_header_stdint_h=yes
11271 echo "$as_me: failed program was:" >&5
11272 sed 's/^/| /' conftest.$ac_ext >&5
11274 jm_ac_cv_header_stdint_h=no
11276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11278 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
11279 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
11280 if test $jm_ac_cv_header_stdint_h = yes; then
11282 cat >>confdefs.h <<_ACEOF
11283 #define HAVE_STDINT_H_WITH_UINTMAX 1
11289 echo "$as_me:$LINENO: checking for unsigned long long" >&5
11290 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
11291 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
11292 echo $ECHO_N "(cached) $ECHO_C" >&6
11294 cat >conftest.$ac_ext <<_ACEOF
11297 cat confdefs.h >>conftest.$ac_ext
11298 cat >>conftest.$ac_ext <<_ACEOF
11299 /* end confdefs.h. */
11300 unsigned long long ull = 1; int i = 63;
11304 unsigned long long ullmax = (unsigned long long) -1;
11305 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
11310 rm -f conftest.$ac_objext conftest$ac_exeext
11311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11312 (eval $ac_link) 2>conftest.er1
11314 grep -v '^ *+' conftest.er1 >conftest.err
11316 cat conftest.err >&5
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); } &&
11319 { ac_try='test -z "$ac_c_werror_flag"
11320 || test ! -s conftest.err'
11321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11322 (eval $ac_try) 2>&5
11324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); }; } &&
11326 { ac_try='test -s conftest$ac_exeext'
11327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11328 (eval $ac_try) 2>&5
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); }; }; then
11332 ac_cv_type_unsigned_long_long=yes
11334 echo "$as_me: failed program was:" >&5
11335 sed 's/^/| /' conftest.$ac_ext >&5
11337 ac_cv_type_unsigned_long_long=no
11339 rm -f conftest.err conftest.$ac_objext \
11340 conftest$ac_exeext conftest.$ac_ext
11342 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
11343 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
11344 if test $ac_cv_type_unsigned_long_long = yes; then
11346 cat >>confdefs.h <<\_ACEOF
11347 #define HAVE_UNSIGNED_LONG_LONG 1
11355 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
11357 test $ac_cv_type_unsigned_long_long = yes \
11358 && ac_type='unsigned long long' \
11359 || ac_type='unsigned long'
11361 cat >>confdefs.h <<_ACEOF
11362 #define uintmax_t $ac_type
11368 echo "$as_me:$LINENO: checking for inttypes.h" >&5
11369 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
11370 if test "${gt_cv_header_inttypes_h+set}" = set; then
11371 echo $ECHO_N "(cached) $ECHO_C" >&6
11374 cat >conftest.$ac_ext <<_ACEOF
11377 cat confdefs.h >>conftest.$ac_ext
11378 cat >>conftest.$ac_ext <<_ACEOF
11379 /* end confdefs.h. */
11380 #include <sys/types.h>
11381 #include <inttypes.h>
11390 rm -f conftest.$ac_objext
11391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11392 (eval $ac_compile) 2>conftest.er1
11394 grep -v '^ *+' conftest.er1 >conftest.err
11396 cat conftest.err >&5
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); } &&
11399 { ac_try='test -z "$ac_c_werror_flag"
11400 || test ! -s conftest.err'
11401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11402 (eval $ac_try) 2>&5
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); }; } &&
11406 { ac_try='test -s conftest.$ac_objext'
11407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11408 (eval $ac_try) 2>&5
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); }; }; then
11412 gt_cv_header_inttypes_h=yes
11414 echo "$as_me: failed program was:" >&5
11415 sed 's/^/| /' conftest.$ac_ext >&5
11417 gt_cv_header_inttypes_h=no
11419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11422 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
11423 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
11424 if test $gt_cv_header_inttypes_h = yes; then
11426 cat >>confdefs.h <<_ACEOF
11427 #define HAVE_INTTYPES_H 1
11434 if test $gt_cv_header_inttypes_h = yes; then
11435 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
11436 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
11437 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
11438 echo $ECHO_N "(cached) $ECHO_C" >&6
11441 cat >conftest.$ac_ext <<_ACEOF
11444 cat confdefs.h >>conftest.$ac_ext
11445 cat >>conftest.$ac_ext <<_ACEOF
11446 /* end confdefs.h. */
11447 #include <inttypes.h>
11460 rm -f conftest.$ac_objext
11461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11462 (eval $ac_compile) 2>conftest.er1
11464 grep -v '^ *+' conftest.er1 >conftest.err
11466 cat conftest.err >&5
11467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 (exit $ac_status); } &&
11469 { ac_try='test -z "$ac_c_werror_flag"
11470 || test ! -s conftest.err'
11471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11472 (eval $ac_try) 2>&5
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); }; } &&
11476 { ac_try='test -s conftest.$ac_objext'
11477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11478 (eval $ac_try) 2>&5
11480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481 (exit $ac_status); }; }; then
11482 gt_cv_inttypes_pri_broken=no
11484 echo "$as_me: failed program was:" >&5
11485 sed 's/^/| /' conftest.$ac_ext >&5
11487 gt_cv_inttypes_pri_broken=yes
11489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11492 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
11493 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
11495 if test "$gt_cv_inttypes_pri_broken" = yes; then
11497 cat >>confdefs.h <<_ACEOF
11498 #define PRI_MACROS_BROKEN 1
11504 if test "X$prefix" = "XNONE"; then
11505 acl_final_prefix="$ac_default_prefix"
11507 acl_final_prefix="$prefix"
11509 if test "X$exec_prefix" = "XNONE"; then
11510 acl_final_exec_prefix='${prefix}'
11512 acl_final_exec_prefix="$exec_prefix"
11514 acl_save_prefix="$prefix"
11515 prefix="$acl_final_prefix"
11516 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11517 prefix="$acl_save_prefix"
11520 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11521 if test "${with_gnu_ld+set}" = set; then
11522 withval="$with_gnu_ld"
11523 test "$withval" = no || with_gnu_ld=yes
11528 if test "$GCC" = yes; then
11529 # Check if gcc -print-prog-name=ld gives a path.
11530 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
11531 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
11534 # gcc leaves a trailing carriage return which upsets mingw
11535 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11537 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11540 # Accept absolute paths.
11541 [\\/]* | [A-Za-z]:[\\/]*)
11542 re_direlt='/[^/][^/]*/\.\./'
11543 # Canonicalize the path of ld
11544 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11545 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11546 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11548 test -z "$LD" && LD="$ac_prog"
11551 # If it fails, then pretend we aren't using GCC.
11555 # If it is relative, then search for the first ld in PATH.
11556 with_gnu_ld=unknown
11559 elif test "$with_gnu_ld" = yes; then
11560 echo "$as_me:$LINENO: checking for GNU ld" >&5
11561 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11563 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11564 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11566 if test "${acl_cv_path_LD+set}" = set; then
11567 echo $ECHO_N "(cached) $ECHO_C" >&6
11569 if test -z "$LD"; then
11570 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11571 for ac_dir in $PATH; do
11572 test -z "$ac_dir" && ac_dir=.
11573 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11574 acl_cv_path_LD="$ac_dir/$ac_prog"
11575 # Check to see if the program is GNU ld. I'd rather use --version,
11576 # but apparently some GNU ld's only accept -v.
11577 # Break only if it was the GNU/non-GNU ld that we prefer.
11578 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
11579 test "$with_gnu_ld" != no && break
11581 test "$with_gnu_ld" != yes && break
11587 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11591 LD="$acl_cv_path_LD"
11592 if test -n "$LD"; then
11593 echo "$as_me:$LINENO: result: $LD" >&5
11594 echo "${ECHO_T}$LD" >&6
11596 echo "$as_me:$LINENO: result: no" >&5
11597 echo "${ECHO_T}no" >&6
11599 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11600 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11601 { (exit 1); exit 1; }; }
11602 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11603 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11604 if test "${acl_cv_prog_gnu_ld+set}" = set; then
11605 echo $ECHO_N "(cached) $ECHO_C" >&6
11607 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11608 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
11609 acl_cv_prog_gnu_ld=yes
11611 acl_cv_prog_gnu_ld=no
11614 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
11615 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
11616 with_gnu_ld=$acl_cv_prog_gnu_ld
11620 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
11621 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
11622 if test "${acl_cv_rpath+set}" = set; then
11623 echo $ECHO_N "(cached) $ECHO_C" >&6
11626 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11627 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11629 rm -f ./conftest.sh
11633 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11634 echo "${ECHO_T}$acl_cv_rpath" >&6
11636 libext="$acl_cv_libext"
11637 shlibext="$acl_cv_shlibext"
11638 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11639 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11640 hardcode_direct="$acl_cv_hardcode_direct"
11641 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11642 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
11643 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
11644 # Check whether --enable-rpath or --disable-rpath was given.
11645 if test "${enable_rpath+set}" = set; then
11646 enableval="$enable_rpath"
11660 acl_save_prefix="$prefix"
11661 prefix="$acl_final_prefix"
11662 acl_save_exec_prefix="$exec_prefix"
11663 exec_prefix="$acl_final_exec_prefix"
11665 eval additional_includedir=\"$includedir\"
11666 eval additional_libdir=\"$libdir\"
11668 exec_prefix="$acl_save_exec_prefix"
11669 prefix="$acl_save_prefix"
11672 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
11673 if test "${with_libiconv_prefix+set}" = set; then
11674 withval="$with_libiconv_prefix"
11676 if test "X$withval" = "Xno"; then
11679 if test "X$withval" = "X"; then
11681 acl_save_prefix="$prefix"
11682 prefix="$acl_final_prefix"
11683 acl_save_exec_prefix="$exec_prefix"
11684 exec_prefix="$acl_final_exec_prefix"
11686 eval additional_includedir=\"$includedir\"
11687 eval additional_libdir=\"$libdir\"
11689 exec_prefix="$acl_save_exec_prefix"
11690 prefix="$acl_save_prefix"
11693 additional_includedir="$withval/include"
11694 additional_libdir="$withval/lib"
11704 names_already_handled=
11705 names_next_round='iconv '
11706 while test -n "$names_next_round"; do
11707 names_this_round="$names_next_round"
11709 for name in $names_this_round; do
11711 for n in $names_already_handled; do
11712 if test "$n" = "$name"; then
11713 already_handled=yes
11717 if test -z "$already_handled"; then
11718 names_already_handled="$names_already_handled $name"
11719 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11720 eval value=\"\$HAVE_LIB$uppername\"
11721 if test -n "$value"; then
11722 if test "$value" = yes; then
11723 eval value=\"\$LIB$uppername\"
11724 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11725 eval value=\"\$LTLIB$uppername\"
11726 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11735 if test $use_additional = yes; then
11736 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11737 found_dir="$additional_libdir"
11738 found_so="$additional_libdir/lib$name.$shlibext"
11739 if test -f "$additional_libdir/lib$name.la"; then
11740 found_la="$additional_libdir/lib$name.la"
11743 if test -f "$additional_libdir/lib$name.$libext"; then
11744 found_dir="$additional_libdir"
11745 found_a="$additional_libdir/lib$name.$libext"
11746 if test -f "$additional_libdir/lib$name.la"; then
11747 found_la="$additional_libdir/lib$name.la"
11752 if test "X$found_dir" = "X"; then
11753 for x in $LDFLAGS $LTLIBICONV; do
11755 acl_save_prefix="$prefix"
11756 prefix="$acl_final_prefix"
11757 acl_save_exec_prefix="$exec_prefix"
11758 exec_prefix="$acl_final_exec_prefix"
11760 exec_prefix="$acl_save_exec_prefix"
11761 prefix="$acl_save_prefix"
11765 dir=`echo "X$x" | sed -e 's/^X-L//'`
11766 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11768 found_so="$dir/lib$name.$shlibext"
11769 if test -f "$dir/lib$name.la"; then
11770 found_la="$dir/lib$name.la"
11773 if test -f "$dir/lib$name.$libext"; then
11775 found_a="$dir/lib$name.$libext"
11776 if test -f "$dir/lib$name.la"; then
11777 found_la="$dir/lib$name.la"
11783 if test "X$found_dir" != "X"; then
11788 if test "X$found_dir" != "X"; then
11789 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11790 if test "X$found_so" != "X"; then
11791 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11792 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11795 for x in $ltrpathdirs; do
11796 if test "X$x" = "X$found_dir"; then
11801 if test -z "$haveit"; then
11802 ltrpathdirs="$ltrpathdirs $found_dir"
11804 if test "$hardcode_direct" = yes; then
11805 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11807 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11808 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11810 for x in $rpathdirs; do
11811 if test "X$x" = "X$found_dir"; then
11816 if test -z "$haveit"; then
11817 rpathdirs="$rpathdirs $found_dir"
11821 for x in $LDFLAGS $LIBICONV; do
11823 acl_save_prefix="$prefix"
11824 prefix="$acl_final_prefix"
11825 acl_save_exec_prefix="$exec_prefix"
11826 exec_prefix="$acl_final_exec_prefix"
11828 exec_prefix="$acl_save_exec_prefix"
11829 prefix="$acl_save_prefix"
11831 if test "X$x" = "X-L$found_dir"; then
11836 if test -z "$haveit"; then
11837 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11839 if test "$hardcode_minus_L" != no; then
11840 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11842 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11848 if test "X$found_a" != "X"; then
11849 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11851 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11854 additional_includedir=
11855 case "$found_dir" in
11857 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11858 additional_includedir="$basedir/include"
11861 if test "X$additional_includedir" != "X"; then
11862 if test "X$additional_includedir" != "X/usr/include"; then
11864 if test "X$additional_includedir" = "X/usr/local/include"; then
11865 if test -n "$GCC"; then
11867 linux*) haveit=yes;;
11871 if test -z "$haveit"; then
11872 for x in $CPPFLAGS $INCICONV; do
11874 acl_save_prefix="$prefix"
11875 prefix="$acl_final_prefix"
11876 acl_save_exec_prefix="$exec_prefix"
11877 exec_prefix="$acl_final_exec_prefix"
11879 exec_prefix="$acl_save_exec_prefix"
11880 prefix="$acl_save_prefix"
11882 if test "X$x" = "X-I$additional_includedir"; then
11887 if test -z "$haveit"; then
11888 if test -d "$additional_includedir"; then
11889 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11895 if test -n "$found_la"; then
11896 save_libdir="$libdir"
11897 case "$found_la" in
11898 */* | *\\*) . "$found_la" ;;
11899 *) . "./$found_la" ;;
11901 libdir="$save_libdir"
11902 for dep in $dependency_libs; do
11905 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11906 if test "X$additional_libdir" != "X/usr/lib"; then
11908 if test "X$additional_libdir" = "X/usr/local/lib"; then
11909 if test -n "$GCC"; then
11911 linux*) haveit=yes;;
11915 if test -z "$haveit"; then
11917 for x in $LDFLAGS $LIBICONV; do
11919 acl_save_prefix="$prefix"
11920 prefix="$acl_final_prefix"
11921 acl_save_exec_prefix="$exec_prefix"
11922 exec_prefix="$acl_final_exec_prefix"
11924 exec_prefix="$acl_save_exec_prefix"
11925 prefix="$acl_save_prefix"
11927 if test "X$x" = "X-L$additional_libdir"; then
11932 if test -z "$haveit"; then
11933 if test -d "$additional_libdir"; then
11934 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11938 for x in $LDFLAGS $LTLIBICONV; do
11940 acl_save_prefix="$prefix"
11941 prefix="$acl_final_prefix"
11942 acl_save_exec_prefix="$exec_prefix"
11943 exec_prefix="$acl_final_exec_prefix"
11945 exec_prefix="$acl_save_exec_prefix"
11946 prefix="$acl_save_prefix"
11948 if test "X$x" = "X-L$additional_libdir"; then
11953 if test -z "$haveit"; then
11954 if test -d "$additional_libdir"; then
11955 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11962 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11963 if test "$enable_rpath" != no; then
11965 for x in $rpathdirs; do
11966 if test "X$x" = "X$dir"; then
11971 if test -z "$haveit"; then
11972 rpathdirs="$rpathdirs $dir"
11975 for x in $ltrpathdirs; do
11976 if test "X$x" = "X$dir"; then
11981 if test -z "$haveit"; then
11982 ltrpathdirs="$ltrpathdirs $dir"
11987 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11990 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11993 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11994 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12000 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12001 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12007 if test "X$rpathdirs" != "X"; then
12008 if test -n "$hardcode_libdir_separator"; then
12010 for found_dir in $rpathdirs; do
12011 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12013 acl_save_libdir="$libdir"
12015 eval flag=\"$hardcode_libdir_flag_spec\"
12016 libdir="$acl_save_libdir"
12017 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12019 for found_dir in $rpathdirs; do
12020 acl_save_libdir="$libdir"
12021 libdir="$found_dir"
12022 eval flag=\"$hardcode_libdir_flag_spec\"
12023 libdir="$acl_save_libdir"
12024 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12028 if test "X$ltrpathdirs" != "X"; then
12029 for found_dir in $ltrpathdirs; do
12030 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12047 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
12048 stdlib.h string.h unistd.h sys/param.h
12050 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12051 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12052 echo "$as_me:$LINENO: checking for $ac_header" >&5
12053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12055 echo $ECHO_N "(cached) $ECHO_C" >&6
12057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12060 # Is the header compilable?
12061 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12062 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12063 cat >conftest.$ac_ext <<_ACEOF
12066 cat confdefs.h >>conftest.$ac_ext
12067 cat >>conftest.$ac_ext <<_ACEOF
12068 /* end confdefs.h. */
12069 $ac_includes_default
12070 #include <$ac_header>
12072 rm -f conftest.$ac_objext
12073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12074 (eval $ac_compile) 2>conftest.er1
12076 grep -v '^ *+' conftest.er1 >conftest.err
12078 cat conftest.err >&5
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); } &&
12081 { ac_try='test -z "$ac_c_werror_flag"
12082 || test ! -s conftest.err'
12083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12084 (eval $ac_try) 2>&5
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); }; } &&
12088 { ac_try='test -s conftest.$ac_objext'
12089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12090 (eval $ac_try) 2>&5
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 (exit $ac_status); }; }; then
12094 ac_header_compiler=yes
12096 echo "$as_me: failed program was:" >&5
12097 sed 's/^/| /' conftest.$ac_ext >&5
12099 ac_header_compiler=no
12101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12102 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12103 echo "${ECHO_T}$ac_header_compiler" >&6
12105 # Is the header present?
12106 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12107 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12108 cat >conftest.$ac_ext <<_ACEOF
12111 cat confdefs.h >>conftest.$ac_ext
12112 cat >>conftest.$ac_ext <<_ACEOF
12113 /* end confdefs.h. */
12114 #include <$ac_header>
12116 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12117 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12119 grep -v '^ *+' conftest.er1 >conftest.err
12121 cat conftest.err >&5
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); } >/dev/null; then
12124 if test -s conftest.err; then
12125 ac_cpp_err=$ac_c_preproc_warn_flag
12126 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12133 if test -z "$ac_cpp_err"; then
12134 ac_header_preproc=yes
12136 echo "$as_me: failed program was:" >&5
12137 sed 's/^/| /' conftest.$ac_ext >&5
12139 ac_header_preproc=no
12141 rm -f conftest.err conftest.$ac_ext
12142 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12143 echo "${ECHO_T}$ac_header_preproc" >&6
12145 # So? What about this header?
12146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12148 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12149 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12151 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12152 ac_header_preproc=yes
12155 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12156 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12157 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12158 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12159 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12160 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12161 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12162 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12165 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12166 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12169 ## ------------------------------------------ ##
12170 ## Report this to the AC_PACKAGE_NAME lists. ##
12171 ## ------------------------------------------ ##
12174 sed "s/^/$as_me: WARNING: /" >&2
12177 echo "$as_me:$LINENO: checking for $ac_header" >&5
12178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12180 echo $ECHO_N "(cached) $ECHO_C" >&6
12182 eval "$as_ac_Header=\$ac_header_preproc"
12184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12189 cat >>confdefs.h <<_ACEOF
12190 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12218 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
12219 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
12220 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
12222 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12223 echo "$as_me:$LINENO: checking for $ac_func" >&5
12224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12225 if eval "test \"\${$as_ac_var+set}\" = set"; then
12226 echo $ECHO_N "(cached) $ECHO_C" >&6
12228 cat >conftest.$ac_ext <<_ACEOF
12231 cat confdefs.h >>conftest.$ac_ext
12232 cat >>conftest.$ac_ext <<_ACEOF
12233 /* end confdefs.h. */
12234 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12236 #define $ac_func innocuous_$ac_func
12238 /* System header to define __stub macros and hopefully few prototypes,
12239 which can conflict with char $ac_func (); below.
12240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12241 <limits.h> exists even on freestanding compilers. */
12244 # include <limits.h>
12246 # include <assert.h>
12251 /* Override any gcc2 internal prototype to avoid an error. */
12256 /* We use char because int might match the return type of a gcc2
12257 builtin and then its argument prototype would still apply. */
12259 /* The GNU C library defines this for functions which it implements
12260 to always fail with ENOSYS. Some functions are actually named
12261 something starting with __ and the normal name is an alias. */
12262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12265 char (*f) () = $ac_func;
12274 return f != $ac_func;
12279 rm -f conftest.$ac_objext conftest$ac_exeext
12280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12281 (eval $ac_link) 2>conftest.er1
12283 grep -v '^ *+' conftest.er1 >conftest.err
12285 cat conftest.err >&5
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); } &&
12288 { ac_try='test -z "$ac_c_werror_flag"
12289 || test ! -s conftest.err'
12290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12291 (eval $ac_try) 2>&5
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294 (exit $ac_status); }; } &&
12295 { ac_try='test -s conftest$ac_exeext'
12296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12297 (eval $ac_try) 2>&5
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); }; }; then
12301 eval "$as_ac_var=yes"
12303 echo "$as_me: failed program was:" >&5
12304 sed 's/^/| /' conftest.$ac_ext >&5
12306 eval "$as_ac_var=no"
12308 rm -f conftest.err conftest.$ac_objext \
12309 conftest$ac_exeext conftest.$ac_ext
12311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12312 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12313 if test `eval echo '${'$as_ac_var'}'` = yes; then
12314 cat >>confdefs.h <<_ACEOF
12315 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12327 am_save_CPPFLAGS="$CPPFLAGS"
12329 for element in $INCICONV; do
12331 for x in $CPPFLAGS; do
12333 acl_save_prefix="$prefix"
12334 prefix="$acl_final_prefix"
12335 acl_save_exec_prefix="$exec_prefix"
12336 exec_prefix="$acl_final_exec_prefix"
12338 exec_prefix="$acl_save_exec_prefix"
12339 prefix="$acl_save_prefix"
12341 if test "X$x" = "X$element"; then
12346 if test -z "$haveit"; then
12347 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12352 echo "$as_me:$LINENO: checking for iconv" >&5
12353 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
12354 if test "${am_cv_func_iconv+set}" = set; then
12355 echo $ECHO_N "(cached) $ECHO_C" >&6
12358 am_cv_func_iconv="no, consider installing GNU libiconv"
12360 cat >conftest.$ac_ext <<_ACEOF
12363 cat confdefs.h >>conftest.$ac_ext
12364 cat >>conftest.$ac_ext <<_ACEOF
12365 /* end confdefs.h. */
12366 #include <stdlib.h>
12371 iconv_t cd = iconv_open("","");
12372 iconv(cd,NULL,NULL,NULL,NULL);
12378 rm -f conftest.$ac_objext conftest$ac_exeext
12379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12380 (eval $ac_link) 2>conftest.er1
12382 grep -v '^ *+' conftest.er1 >conftest.err
12384 cat conftest.err >&5
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); } &&
12387 { ac_try='test -z "$ac_c_werror_flag"
12388 || test ! -s conftest.err'
12389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12390 (eval $ac_try) 2>&5
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); }; } &&
12394 { ac_try='test -s conftest$ac_exeext'
12395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12396 (eval $ac_try) 2>&5
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); }; }; then
12400 am_cv_func_iconv=yes
12402 echo "$as_me: failed program was:" >&5
12403 sed 's/^/| /' conftest.$ac_ext >&5
12406 rm -f conftest.err conftest.$ac_objext \
12407 conftest$ac_exeext conftest.$ac_ext
12408 if test "$am_cv_func_iconv" != yes; then
12409 am_save_LIBS="$LIBS"
12410 LIBS="$LIBS $LIBICONV"
12411 cat >conftest.$ac_ext <<_ACEOF
12414 cat confdefs.h >>conftest.$ac_ext
12415 cat >>conftest.$ac_ext <<_ACEOF
12416 /* end confdefs.h. */
12417 #include <stdlib.h>
12422 iconv_t cd = iconv_open("","");
12423 iconv(cd,NULL,NULL,NULL,NULL);
12429 rm -f conftest.$ac_objext conftest$ac_exeext
12430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12431 (eval $ac_link) 2>conftest.er1
12433 grep -v '^ *+' conftest.er1 >conftest.err
12435 cat conftest.err >&5
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); } &&
12438 { ac_try='test -z "$ac_c_werror_flag"
12439 || test ! -s conftest.err'
12440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12441 (eval $ac_try) 2>&5
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); }; } &&
12445 { ac_try='test -s conftest$ac_exeext'
12446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12447 (eval $ac_try) 2>&5
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); }; }; then
12451 am_cv_lib_iconv=yes
12452 am_cv_func_iconv=yes
12454 echo "$as_me: failed program was:" >&5
12455 sed 's/^/| /' conftest.$ac_ext >&5
12458 rm -f conftest.err conftest.$ac_objext \
12459 conftest$ac_exeext conftest.$ac_ext
12460 LIBS="$am_save_LIBS"
12464 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12465 echo "${ECHO_T}$am_cv_func_iconv" >&6
12466 if test "$am_cv_func_iconv" = yes; then
12468 cat >>confdefs.h <<\_ACEOF
12469 #define HAVE_ICONV 1
12473 if test "$am_cv_lib_iconv" = yes; then
12474 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12475 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
12476 echo "$as_me:$LINENO: result: $LIBICONV" >&5
12477 echo "${ECHO_T}$LIBICONV" >&6
12479 CPPFLAGS="$am_save_CPPFLAGS"
12486 if test "$am_cv_func_iconv" = yes; then
12487 echo "$as_me:$LINENO: checking for iconv declaration" >&5
12488 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
12489 if test "${am_cv_proto_iconv+set}" = set; then
12490 echo $ECHO_N "(cached) $ECHO_C" >&6
12493 cat >conftest.$ac_ext <<_ACEOF
12496 cat confdefs.h >>conftest.$ac_ext
12497 cat >>conftest.$ac_ext <<_ACEOF
12498 /* end confdefs.h. */
12500 #include <stdlib.h>
12506 #if defined(__STDC__) || defined(__cplusplus)
12507 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12520 rm -f conftest.$ac_objext
12521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12522 (eval $ac_compile) 2>conftest.er1
12524 grep -v '^ *+' conftest.er1 >conftest.err
12526 cat conftest.err >&5
12527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528 (exit $ac_status); } &&
12529 { ac_try='test -z "$ac_c_werror_flag"
12530 || test ! -s conftest.err'
12531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12532 (eval $ac_try) 2>&5
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); }; } &&
12536 { ac_try='test -s conftest.$ac_objext'
12537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12538 (eval $ac_try) 2>&5
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); }; }; then
12542 am_cv_proto_iconv_arg1=""
12544 echo "$as_me: failed program was:" >&5
12545 sed 's/^/| /' conftest.$ac_ext >&5
12547 am_cv_proto_iconv_arg1="const"
12549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12550 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
12553 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12554 echo "$as_me:$LINENO: result: ${ac_t:-
12555 }$am_cv_proto_iconv" >&5
12556 echo "${ECHO_T}${ac_t:-
12557 }$am_cv_proto_iconv" >&6
12559 cat >>confdefs.h <<_ACEOF
12560 #define ICONV_CONST $am_cv_proto_iconv_arg1
12566 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12567 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
12568 if test "${am_cv_langinfo_codeset+set}" = set; then
12569 echo $ECHO_N "(cached) $ECHO_C" >&6
12571 cat >conftest.$ac_ext <<_ACEOF
12574 cat confdefs.h >>conftest.$ac_ext
12575 cat >>conftest.$ac_ext <<_ACEOF
12576 /* end confdefs.h. */
12577 #include <langinfo.h>
12581 char* cs = nl_langinfo(CODESET);
12586 rm -f conftest.$ac_objext conftest$ac_exeext
12587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12588 (eval $ac_link) 2>conftest.er1
12590 grep -v '^ *+' conftest.er1 >conftest.err
12592 cat conftest.err >&5
12593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594 (exit $ac_status); } &&
12595 { ac_try='test -z "$ac_c_werror_flag"
12596 || test ! -s conftest.err'
12597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12598 (eval $ac_try) 2>&5
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); }; } &&
12602 { ac_try='test -s conftest$ac_exeext'
12603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12604 (eval $ac_try) 2>&5
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); }; }; then
12608 am_cv_langinfo_codeset=yes
12610 echo "$as_me: failed program was:" >&5
12611 sed 's/^/| /' conftest.$ac_ext >&5
12613 am_cv_langinfo_codeset=no
12615 rm -f conftest.err conftest.$ac_objext \
12616 conftest$ac_exeext conftest.$ac_ext
12619 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12620 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
12621 if test $am_cv_langinfo_codeset = yes; then
12623 cat >>confdefs.h <<\_ACEOF
12624 #define HAVE_LANGINFO_CODESET 1
12629 if test $ac_cv_header_locale_h = yes; then
12631 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12632 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
12633 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
12634 echo $ECHO_N "(cached) $ECHO_C" >&6
12636 cat >conftest.$ac_ext <<_ACEOF
12639 cat confdefs.h >>conftest.$ac_ext
12640 cat >>conftest.$ac_ext <<_ACEOF
12641 /* end confdefs.h. */
12642 #include <locale.h>
12651 rm -f conftest.$ac_objext conftest$ac_exeext
12652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12653 (eval $ac_link) 2>conftest.er1
12655 grep -v '^ *+' conftest.er1 >conftest.err
12657 cat conftest.err >&5
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); } &&
12660 { ac_try='test -z "$ac_c_werror_flag"
12661 || test ! -s conftest.err'
12662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12663 (eval $ac_try) 2>&5
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); }; } &&
12667 { ac_try='test -s conftest$ac_exeext'
12668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12669 (eval $ac_try) 2>&5
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); }; }; then
12673 am_cv_val_LC_MESSAGES=yes
12675 echo "$as_me: failed program was:" >&5
12676 sed 's/^/| /' conftest.$ac_ext >&5
12678 am_cv_val_LC_MESSAGES=no
12680 rm -f conftest.err conftest.$ac_objext \
12681 conftest$ac_exeext conftest.$ac_ext
12683 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
12684 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
12685 if test $am_cv_val_LC_MESSAGES = yes; then
12687 cat >>confdefs.h <<\_ACEOF
12688 #define HAVE_LC_MESSAGES 1
12695 for ac_prog in bison
12697 # Extract the first word of "$ac_prog", so it can be a program name with args.
12698 set dummy $ac_prog; ac_word=$2
12699 echo "$as_me:$LINENO: checking for $ac_word" >&5
12700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12701 if test "${ac_cv_prog_INTLBISON+set}" = set; then
12702 echo $ECHO_N "(cached) $ECHO_C" >&6
12704 if test -n "$INTLBISON"; then
12705 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
12707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12708 for as_dir in $PATH
12711 test -z "$as_dir" && as_dir=.
12712 for ac_exec_ext in '' $ac_executable_extensions; do
12713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12714 ac_cv_prog_INTLBISON="$ac_prog"
12715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12723 INTLBISON=$ac_cv_prog_INTLBISON
12724 if test -n "$INTLBISON"; then
12725 echo "$as_me:$LINENO: result: $INTLBISON" >&5
12726 echo "${ECHO_T}$INTLBISON" >&6
12728 echo "$as_me:$LINENO: result: no" >&5
12729 echo "${ECHO_T}no" >&6
12732 test -n "$INTLBISON" && break
12735 if test -z "$INTLBISON"; then
12738 echo "$as_me:$LINENO: checking version of bison" >&5
12739 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
12740 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
12741 case $ac_prog_version in
12742 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
12743 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
12744 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
12745 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
12747 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
12748 echo "${ECHO_T}$ac_prog_version" >&6
12750 if test $ac_verc_fail = yes; then
12768 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12769 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12770 # Check whether --enable-nls or --disable-nls was given.
12771 if test "${enable_nls+set}" = set; then
12772 enableval="$enable_nls"
12777 echo "$as_me:$LINENO: result: $USE_NLS" >&5
12778 echo "${ECHO_T}$USE_NLS" >&6
12782 BUILD_INCLUDED_LIBINTL=no
12783 USE_INCLUDED_LIBINTL=no
12789 if test "$USE_NLS" = "yes"; then
12790 gt_use_preinstalled_gnugettext=no
12792 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12793 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
12795 # Check whether --with-included-gettext or --without-included-gettext was given.
12796 if test "${with_included_gettext+set}" = set; then
12797 withval="$with_included_gettext"
12798 nls_cv_force_use_gnu_gettext=$withval
12800 nls_cv_force_use_gnu_gettext=no
12802 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12803 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
12805 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12806 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12813 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12814 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
12815 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12816 echo $ECHO_N "(cached) $ECHO_C" >&6
12818 cat >conftest.$ac_ext <<_ACEOF
12821 cat confdefs.h >>conftest.$ac_ext
12822 cat >>conftest.$ac_ext <<_ACEOF
12823 /* end confdefs.h. */
12824 #include <libintl.h>
12825 extern int _nl_msg_cat_cntr;
12826 extern int *_nl_domain_bindings;
12830 bindtextdomain ("", "");
12831 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12836 rm -f conftest.$ac_objext conftest$ac_exeext
12837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12838 (eval $ac_link) 2>conftest.er1
12840 grep -v '^ *+' conftest.er1 >conftest.err
12842 cat conftest.err >&5
12843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); } &&
12845 { ac_try='test -z "$ac_c_werror_flag"
12846 || test ! -s conftest.err'
12847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12848 (eval $ac_try) 2>&5
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); }; } &&
12852 { ac_try='test -s conftest$ac_exeext'
12853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12854 (eval $ac_try) 2>&5
12856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); }; }; then
12858 gt_cv_func_gnugettext1_libc=yes
12860 echo "$as_me: failed program was:" >&5
12861 sed 's/^/| /' conftest.$ac_ext >&5
12863 gt_cv_func_gnugettext1_libc=no
12865 rm -f conftest.err conftest.$ac_objext \
12866 conftest$ac_exeext conftest.$ac_ext
12868 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12869 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
12871 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12877 acl_save_prefix="$prefix"
12878 prefix="$acl_final_prefix"
12879 acl_save_exec_prefix="$exec_prefix"
12880 exec_prefix="$acl_final_exec_prefix"
12882 eval additional_includedir=\"$includedir\"
12883 eval additional_libdir=\"$libdir\"
12885 exec_prefix="$acl_save_exec_prefix"
12886 prefix="$acl_save_prefix"
12889 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
12890 if test "${with_libintl_prefix+set}" = set; then
12891 withval="$with_libintl_prefix"
12893 if test "X$withval" = "Xno"; then
12896 if test "X$withval" = "X"; then
12898 acl_save_prefix="$prefix"
12899 prefix="$acl_final_prefix"
12900 acl_save_exec_prefix="$exec_prefix"
12901 exec_prefix="$acl_final_exec_prefix"
12903 eval additional_includedir=\"$includedir\"
12904 eval additional_libdir=\"$libdir\"
12906 exec_prefix="$acl_save_exec_prefix"
12907 prefix="$acl_save_prefix"
12910 additional_includedir="$withval/include"
12911 additional_libdir="$withval/lib"
12921 names_already_handled=
12922 names_next_round='intl '
12923 while test -n "$names_next_round"; do
12924 names_this_round="$names_next_round"
12926 for name in $names_this_round; do
12928 for n in $names_already_handled; do
12929 if test "$n" = "$name"; then
12930 already_handled=yes
12934 if test -z "$already_handled"; then
12935 names_already_handled="$names_already_handled $name"
12936 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12937 eval value=\"\$HAVE_LIB$uppername\"
12938 if test -n "$value"; then
12939 if test "$value" = yes; then
12940 eval value=\"\$LIB$uppername\"
12941 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12942 eval value=\"\$LTLIB$uppername\"
12943 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12952 if test $use_additional = yes; then
12953 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12954 found_dir="$additional_libdir"
12955 found_so="$additional_libdir/lib$name.$shlibext"
12956 if test -f "$additional_libdir/lib$name.la"; then
12957 found_la="$additional_libdir/lib$name.la"
12960 if test -f "$additional_libdir/lib$name.$libext"; then
12961 found_dir="$additional_libdir"
12962 found_a="$additional_libdir/lib$name.$libext"
12963 if test -f "$additional_libdir/lib$name.la"; then
12964 found_la="$additional_libdir/lib$name.la"
12969 if test "X$found_dir" = "X"; then
12970 for x in $LDFLAGS $LTLIBINTL; do
12972 acl_save_prefix="$prefix"
12973 prefix="$acl_final_prefix"
12974 acl_save_exec_prefix="$exec_prefix"
12975 exec_prefix="$acl_final_exec_prefix"
12977 exec_prefix="$acl_save_exec_prefix"
12978 prefix="$acl_save_prefix"
12982 dir=`echo "X$x" | sed -e 's/^X-L//'`
12983 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12985 found_so="$dir/lib$name.$shlibext"
12986 if test -f "$dir/lib$name.la"; then
12987 found_la="$dir/lib$name.la"
12990 if test -f "$dir/lib$name.$libext"; then
12992 found_a="$dir/lib$name.$libext"
12993 if test -f "$dir/lib$name.la"; then
12994 found_la="$dir/lib$name.la"
13000 if test "X$found_dir" != "X"; then
13005 if test "X$found_dir" != "X"; then
13006 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13007 if test "X$found_so" != "X"; then
13008 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13009 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13012 for x in $ltrpathdirs; do
13013 if test "X$x" = "X$found_dir"; then
13018 if test -z "$haveit"; then
13019 ltrpathdirs="$ltrpathdirs $found_dir"
13021 if test "$hardcode_direct" = yes; then
13022 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13024 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13025 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13027 for x in $rpathdirs; do
13028 if test "X$x" = "X$found_dir"; then
13033 if test -z "$haveit"; then
13034 rpathdirs="$rpathdirs $found_dir"
13038 for x in $LDFLAGS $LIBINTL; do
13040 acl_save_prefix="$prefix"
13041 prefix="$acl_final_prefix"
13042 acl_save_exec_prefix="$exec_prefix"
13043 exec_prefix="$acl_final_exec_prefix"
13045 exec_prefix="$acl_save_exec_prefix"
13046 prefix="$acl_save_prefix"
13048 if test "X$x" = "X-L$found_dir"; then
13053 if test -z "$haveit"; then
13054 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13056 if test "$hardcode_minus_L" != no; then
13057 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13059 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13065 if test "X$found_a" != "X"; then
13066 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
13068 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13071 additional_includedir=
13072 case "$found_dir" in
13074 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13075 additional_includedir="$basedir/include"
13078 if test "X$additional_includedir" != "X"; then
13079 if test "X$additional_includedir" != "X/usr/include"; then
13081 if test "X$additional_includedir" = "X/usr/local/include"; then
13082 if test -n "$GCC"; then
13084 linux*) haveit=yes;;
13088 if test -z "$haveit"; then
13089 for x in $CPPFLAGS $INCINTL; do
13091 acl_save_prefix="$prefix"
13092 prefix="$acl_final_prefix"
13093 acl_save_exec_prefix="$exec_prefix"
13094 exec_prefix="$acl_final_exec_prefix"
13096 exec_prefix="$acl_save_exec_prefix"
13097 prefix="$acl_save_prefix"
13099 if test "X$x" = "X-I$additional_includedir"; then
13104 if test -z "$haveit"; then
13105 if test -d "$additional_includedir"; then
13106 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13112 if test -n "$found_la"; then
13113 save_libdir="$libdir"
13114 case "$found_la" in
13115 */* | *\\*) . "$found_la" ;;
13116 *) . "./$found_la" ;;
13118 libdir="$save_libdir"
13119 for dep in $dependency_libs; do
13122 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13123 if test "X$additional_libdir" != "X/usr/lib"; then
13125 if test "X$additional_libdir" = "X/usr/local/lib"; then
13126 if test -n "$GCC"; then
13128 linux*) haveit=yes;;
13132 if test -z "$haveit"; then
13134 for x in $LDFLAGS $LIBINTL; do
13136 acl_save_prefix="$prefix"
13137 prefix="$acl_final_prefix"
13138 acl_save_exec_prefix="$exec_prefix"
13139 exec_prefix="$acl_final_exec_prefix"
13141 exec_prefix="$acl_save_exec_prefix"
13142 prefix="$acl_save_prefix"
13144 if test "X$x" = "X-L$additional_libdir"; then
13149 if test -z "$haveit"; then
13150 if test -d "$additional_libdir"; then
13151 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13155 for x in $LDFLAGS $LTLIBINTL; do
13157 acl_save_prefix="$prefix"
13158 prefix="$acl_final_prefix"
13159 acl_save_exec_prefix="$exec_prefix"
13160 exec_prefix="$acl_final_exec_prefix"
13162 exec_prefix="$acl_save_exec_prefix"
13163 prefix="$acl_save_prefix"
13165 if test "X$x" = "X-L$additional_libdir"; then
13170 if test -z "$haveit"; then
13171 if test -d "$additional_libdir"; then
13172 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13179 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13180 if test "$enable_rpath" != no; then
13182 for x in $rpathdirs; do
13183 if test "X$x" = "X$dir"; then
13188 if test -z "$haveit"; then
13189 rpathdirs="$rpathdirs $dir"
13192 for x in $ltrpathdirs; do
13193 if test "X$x" = "X$dir"; then
13198 if test -z "$haveit"; then
13199 ltrpathdirs="$ltrpathdirs $dir"
13204 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13207 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13210 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13211 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13217 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13218 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13224 if test "X$rpathdirs" != "X"; then
13225 if test -n "$hardcode_libdir_separator"; then
13227 for found_dir in $rpathdirs; do
13228 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13230 acl_save_libdir="$libdir"
13232 eval flag=\"$hardcode_libdir_flag_spec\"
13233 libdir="$acl_save_libdir"
13234 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13236 for found_dir in $rpathdirs; do
13237 acl_save_libdir="$libdir"
13238 libdir="$found_dir"
13239 eval flag=\"$hardcode_libdir_flag_spec\"
13240 libdir="$acl_save_libdir"
13241 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13245 if test "X$ltrpathdirs" != "X"; then
13246 for found_dir in $ltrpathdirs; do
13247 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13251 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13252 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
13253 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13254 echo $ECHO_N "(cached) $ECHO_C" >&6
13256 gt_save_CPPFLAGS="$CPPFLAGS"
13257 CPPFLAGS="$CPPFLAGS $INCINTL"
13258 gt_save_LIBS="$LIBS"
13259 LIBS="$LIBS $LIBINTL"
13260 cat >conftest.$ac_ext <<_ACEOF
13263 cat confdefs.h >>conftest.$ac_ext
13264 cat >>conftest.$ac_ext <<_ACEOF
13265 /* end confdefs.h. */
13266 #include <libintl.h>
13267 extern int _nl_msg_cat_cntr;
13272 const char *_nl_expand_alias ();
13276 bindtextdomain ("", "");
13277 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
13282 rm -f conftest.$ac_objext conftest$ac_exeext
13283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13284 (eval $ac_link) 2>conftest.er1
13286 grep -v '^ *+' conftest.er1 >conftest.err
13288 cat conftest.err >&5
13289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290 (exit $ac_status); } &&
13291 { ac_try='test -z "$ac_c_werror_flag"
13292 || test ! -s conftest.err'
13293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13294 (eval $ac_try) 2>&5
13296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297 (exit $ac_status); }; } &&
13298 { ac_try='test -s conftest$ac_exeext'
13299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13300 (eval $ac_try) 2>&5
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); }; }; then
13304 gt_cv_func_gnugettext1_libintl=yes
13306 echo "$as_me: failed program was:" >&5
13307 sed 's/^/| /' conftest.$ac_ext >&5
13309 gt_cv_func_gnugettext1_libintl=no
13311 rm -f conftest.err conftest.$ac_objext \
13312 conftest$ac_exeext conftest.$ac_ext
13313 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
13314 LIBS="$LIBS $LIBICONV"
13315 cat >conftest.$ac_ext <<_ACEOF
13318 cat confdefs.h >>conftest.$ac_ext
13319 cat >>conftest.$ac_ext <<_ACEOF
13320 /* end confdefs.h. */
13321 #include <libintl.h>
13322 extern int _nl_msg_cat_cntr;
13327 const char *_nl_expand_alias ();
13331 bindtextdomain ("", "");
13332 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
13337 rm -f conftest.$ac_objext conftest$ac_exeext
13338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13339 (eval $ac_link) 2>conftest.er1
13341 grep -v '^ *+' conftest.er1 >conftest.err
13343 cat conftest.err >&5
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); } &&
13346 { ac_try='test -z "$ac_c_werror_flag"
13347 || test ! -s conftest.err'
13348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13349 (eval $ac_try) 2>&5
13351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); }; } &&
13353 { ac_try='test -s conftest$ac_exeext'
13354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13355 (eval $ac_try) 2>&5
13357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358 (exit $ac_status); }; }; then
13359 LIBINTL="$LIBINTL $LIBICONV"
13360 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13361 gt_cv_func_gnugettext1_libintl=yes
13364 echo "$as_me: failed program was:" >&5
13365 sed 's/^/| /' conftest.$ac_ext >&5
13368 rm -f conftest.err conftest.$ac_objext \
13369 conftest$ac_exeext conftest.$ac_ext
13371 CPPFLAGS="$gt_save_CPPFLAGS"
13372 LIBS="$gt_save_LIBS"
13374 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13375 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
13378 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13379 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13380 && test "$PACKAGE" != gettext; }; then
13381 gt_use_preinstalled_gnugettext=yes
13389 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13390 nls_cv_use_gnu_gettext=yes
13394 if test "$nls_cv_use_gnu_gettext" = "yes"; then
13395 INTLOBJS="\$(GETTOBJS)"
13396 BUILD_INCLUDED_LIBINTL=yes
13397 USE_INCLUDED_LIBINTL=yes
13398 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
13399 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
13400 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13403 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13404 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13409 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13410 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13412 cat >>confdefs.h <<\_ACEOF
13413 #define ENABLE_NLS 1
13421 if test "$USE_NLS" = "yes"; then
13423 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13424 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13425 echo "$as_me:$LINENO: checking how to link with libintl" >&5
13426 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
13427 echo "$as_me:$LINENO: result: $LIBINTL" >&5
13428 echo "${ECHO_T}$LIBINTL" >&6
13430 for element in $INCINTL; do
13432 for x in $CPPFLAGS; do
13434 acl_save_prefix="$prefix"
13435 prefix="$acl_final_prefix"
13436 acl_save_exec_prefix="$exec_prefix"
13437 exec_prefix="$acl_final_exec_prefix"
13439 exec_prefix="$acl_save_exec_prefix"
13440 prefix="$acl_save_prefix"
13442 if test "X$x" = "X$element"; then
13447 if test -z "$haveit"; then
13448 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13455 cat >>confdefs.h <<\_ACEOF
13456 #define HAVE_GETTEXT 1
13460 cat >>confdefs.h <<\_ACEOF
13461 #define HAVE_DCGETTEXT 1
13470 if test "$PACKAGE" = gettext; then
13471 BUILD_INCLUDED_LIBINTL=yes
13479 nls_cv_header_intl=
13480 nls_cv_header_libgt=
13491 INTL_LIBTOOL_SUFFIX_PREFIX=
13495 INTLLIBS="$LIBINTL"
13503 POPT_SOURCE_PATH="`pwd`"
13505 cat >>confdefs.h <<_ACEOF
13506 #define POPT_SOURCE_PATH "$POPT_SOURCE_PATH"
13511 ac_config_files="$ac_config_files Doxyfile Makefile intl/Makefile po/Makefile.in"
13512 cat >confcache <<\_ACEOF
13513 # This file is a shell script that caches the results of configure
13514 # tests run on this system so they can be shared between configure
13515 # scripts and configure runs, see configure's option --config-cache.
13516 # It is not useful on other systems. If it contains results you don't
13517 # want to keep, you may remove or edit it.
13519 # config.status only pays attention to the cache file if you give it
13520 # the --recheck option to rerun configure.
13522 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13523 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13524 # following values.
13528 # The following way of writing the cache mishandles newlines in values,
13529 # but we know of no workaround that is simple, portable, and efficient.
13530 # So, don't put newlines in cache variables' values.
13531 # Ultrix sh set writes to stderr and can't be redirected directly,
13532 # and sets the high bit in the cache file unless we assign to the vars.
13535 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13537 # `set' does not quote correctly, so add quotes (double-quote
13538 # substitution turns \\\\ into \\, and sed turns \\ into \).
13541 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13544 # `set' quotes correctly as required by POSIX, so do not add quotes.
13546 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13553 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13555 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13557 if diff $cache_file confcache >/dev/null 2>&1; then :; else
13558 if test -w $cache_file; then
13559 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13560 cat confcache >$cache_file
13562 echo "not updating unwritable cache $cache_file"
13567 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13568 # Let make expand exec_prefix.
13569 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13571 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13572 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13573 # trailing colons and then remove the whole line if VPATH becomes empty
13574 # (actually we leave an empty line to preserve line numbers).
13575 if test "x$srcdir" = x.; then
13576 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13577 s/:*\$(srcdir):*/:/;
13578 s/:*\${srcdir}:*/:/;
13580 s/^\([^=]*=[ ]*\):*/\1/;
13586 DEFS=-DHAVE_CONFIG_H
13590 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13591 # 1. Remove the extension, and $U if already installed.
13592 ac_i=`echo "$ac_i" |
13593 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13595 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13596 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13598 LIBOBJS=$ac_libobjs
13600 LTLIBOBJS=$ac_ltlibobjs
13603 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13604 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13605 Usually this means the macro was only invoked conditionally." >&5
13606 echo "$as_me: error: conditional \"AMDEP\" was never defined.
13607 Usually this means the macro was only invoked conditionally." >&2;}
13608 { (exit 1); exit 1; }; }
13611 : ${CONFIG_STATUS=./config.status}
13612 ac_clean_files_save=$ac_clean_files
13613 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13614 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13615 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13616 cat >$CONFIG_STATUS <<_ACEOF
13618 # Generated by $as_me.
13619 # Run this file to recreate the current configuration.
13620 # Compiler output produced by configure, useful for debugging
13621 # configure, is in config.log if it exists.
13624 ac_cs_recheck=false
13626 SHELL=\${CONFIG_SHELL-$SHELL}
13629 cat >>$CONFIG_STATUS <<\_ACEOF
13630 ## --------------------- ##
13631 ## M4sh Initialization. ##
13632 ## --------------------- ##
13634 # Be Bourne compatible
13635 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13638 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13639 # is contrary to our usage. Disable this feature.
13640 alias -g '${1+"$@"}'='"$@"'
13641 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13644 DUALCASE=1; export DUALCASE # for MKS sh
13646 # Support unset when possible.
13647 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13654 # Work around bugs in pre-3.0 UWIN ksh.
13655 $as_unset ENV MAIL MAILPATH
13662 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13663 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13664 LC_TELEPHONE LC_TIME
13666 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13667 eval $as_var=C; export $as_var
13673 # Required to use basename.
13674 if expr a : '\(a\)' >/dev/null 2>&1; then
13680 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13681 as_basename=basename
13687 # Name of the executable.
13688 as_me=`$as_basename "$0" ||
13689 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13690 X"$0" : 'X\(//\)$' \| \
13691 X"$0" : 'X\(/\)$' \| \
13692 . : '\(.\)' 2>/dev/null ||
13694 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13695 /^X\/\(\/\/\)$/{ s//\1/; q; }
13696 /^X\/\(\/\).*/{ s//\1/; q; }
13700 # PATH needs CR, and LINENO needs CR and PATH.
13701 # Avoid depending upon Character Ranges.
13702 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13703 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13704 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13705 as_cr_digits='0123456789'
13706 as_cr_alnum=$as_cr_Letters$as_cr_digits
13708 # The user is always right.
13709 if test "${PATH_SEPARATOR+set}" != set; then
13710 echo "#! /bin/sh" >conf$$.sh
13711 echo "exit 0" >>conf$$.sh
13713 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13722 as_lineno_1=$LINENO
13723 as_lineno_2=$LINENO
13724 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13725 test "x$as_lineno_1" != "x$as_lineno_2" &&
13726 test "x$as_lineno_3" = "x$as_lineno_2" || {
13727 # Find who we are. Look in the path if we contain no path at all
13730 *[\\/]* ) as_myself=$0 ;;
13731 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13732 for as_dir in $PATH
13735 test -z "$as_dir" && as_dir=.
13736 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13741 # We did not find ourselves, most probably we were run as `sh COMMAND'
13742 # in which case we are not to be found in the path.
13743 if test "x$as_myself" = x; then
13746 if test ! -f "$as_myself"; then
13747 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13748 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13749 { (exit 1); exit 1; }; }
13751 case $CONFIG_SHELL in
13753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13754 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13757 test -z "$as_dir" && as_dir=.
13758 for as_base in sh bash ksh sh5; do
13761 if ("$as_dir/$as_base" -c '
13762 as_lineno_1=$LINENO
13763 as_lineno_2=$LINENO
13764 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13765 test "x$as_lineno_1" != "x$as_lineno_2" &&
13766 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13767 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13768 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13769 CONFIG_SHELL=$as_dir/$as_base
13770 export CONFIG_SHELL
13771 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13779 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13780 # uniformly replaced by the line number. The first 'sed' inserts a
13781 # line-number line before each line; the second 'sed' does the real
13782 # work. The second script uses 'N' to pair each line-number line
13783 # with the numbered line, and appends trailing '-' during
13784 # substitution so that $LINENO is not a special case at line end.
13785 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13786 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13787 sed '=' <$as_myself |
13792 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13795 s,^['$as_cr_digits']*\n,,
13796 ' >$as_me.lineno &&
13797 chmod +x $as_me.lineno ||
13798 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13799 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13800 { (exit 1); exit 1; }; }
13802 # Don't try to exec as it changes $[0], causing all sort of problems
13803 # (the dirname of $[0] is not the place where we might find the
13804 # original and so on. Autoconf is especially sensible to this).
13806 # Exit status is that of the last command.
13811 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13812 *c*,-n*) ECHO_N= ECHO_C='
13814 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13815 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13818 if expr a : '\(a\)' >/dev/null 2>&1; then
13824 rm -f conf$$ conf$$.exe conf$$.file
13826 if ln -s conf$$.file conf$$ 2>/dev/null; then
13827 # We could just check for DJGPP; but this test a) works b) is more generic
13828 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13829 if test -f conf$$.exe; then
13830 # Don't use ln at all; we don't have any links
13835 elif ln conf$$.file conf$$ 2>/dev/null; then
13840 rm -f conf$$ conf$$.exe conf$$.file
13842 if mkdir -p . 2>/dev/null; then
13845 test -d ./-p && rmdir ./-p
13849 as_executable_p="test -f"
13851 # Sed expression to map a string onto a valid CPP name.
13852 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13854 # Sed expression to map a string onto a valid variable name.
13855 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13859 # We need space, tab and new line, in precisely that order.
13869 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13870 # report actual input values of CONFIG_FILES etc. instead of their
13871 # values after options handling. Logging --version etc. is OK.
13875 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13876 ## Running $as_me. ##
13881 This file was extended by $as_me, which was
13882 generated by GNU Autoconf 2.59. Invocation command line was
13884 CONFIG_FILES = $CONFIG_FILES
13885 CONFIG_HEADERS = $CONFIG_HEADERS
13886 CONFIG_LINKS = $CONFIG_LINKS
13887 CONFIG_COMMANDS = $CONFIG_COMMANDS
13891 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13895 # Files that config.status was made for.
13896 if test -n "$ac_config_files"; then
13897 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13900 if test -n "$ac_config_headers"; then
13901 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13904 if test -n "$ac_config_links"; then
13905 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13908 if test -n "$ac_config_commands"; then
13909 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13912 cat >>$CONFIG_STATUS <<\_ACEOF
13915 \`$as_me' instantiates files from templates according to the
13916 current configuration.
13918 Usage: $0 [OPTIONS] [FILE]...
13920 -h, --help print this help, then exit
13921 -V, --version print version number, then exit
13922 -q, --quiet do not print progress messages
13923 -d, --debug don't remove temporary files
13924 --recheck update $as_me by reconfiguring in the same conditions
13925 --file=FILE[:TEMPLATE]
13926 instantiate the configuration file FILE
13927 --header=FILE[:TEMPLATE]
13928 instantiate the configuration header FILE
13930 Configuration files:
13933 Configuration headers:
13936 Configuration commands:
13939 Report bugs to <bug-autoconf@gnu.org>."
13942 cat >>$CONFIG_STATUS <<_ACEOF
13945 configured by $0, generated by GNU Autoconf 2.59,
13946 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13948 Copyright (C) 2003 Free Software Foundation, Inc.
13949 This config.status script is free software; the Free Software Foundation
13950 gives unlimited permission to copy, distribute and modify it."
13955 cat >>$CONFIG_STATUS <<\_ACEOF
13956 # If no file are specified by the user, then we need to provide default
13957 # value. By we need to know if files were specified by the user.
13963 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13964 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13972 *) # This is not an option, so the user has probably given explicit
13975 ac_need_defaults=false;;
13979 # Handling of the options.
13981 cat >>$CONFIG_STATUS <<\_ACEOF
13982 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13984 --version | --vers* | -V )
13985 echo "$ac_cs_version"; exit 0 ;;
13987 # Conflict between --help and --header
13988 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13989 Try \`$0 --help' for more information." >&5
13990 echo "$as_me: error: ambiguous option: $1
13991 Try \`$0 --help' for more information." >&2;}
13992 { (exit 1); exit 1; }; };;
13993 --help | --hel | -h )
13994 echo "$ac_cs_usage"; exit 0 ;;
13995 --debug | --d* | -d )
13997 --file | --fil | --fi | --f )
13999 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14000 ac_need_defaults=false;;
14001 --header | --heade | --head | --hea )
14003 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14004 ac_need_defaults=false;;
14005 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14006 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14009 # This is an error.
14010 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14011 Try \`$0 --help' for more information." >&5
14012 echo "$as_me: error: unrecognized option: $1
14013 Try \`$0 --help' for more information." >&2;}
14014 { (exit 1); exit 1; }; } ;;
14016 *) ac_config_targets="$ac_config_targets $1" ;;
14022 ac_configure_extra_args=
14024 if $ac_cs_silent; then
14026 ac_configure_extra_args="$ac_configure_extra_args --silent"
14030 cat >>$CONFIG_STATUS <<_ACEOF
14031 if \$ac_cs_recheck; then
14032 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14033 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14038 cat >>$CONFIG_STATUS <<_ACEOF
14040 # INIT-COMMANDS section.
14043 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14044 # Capture the value of obsolete $ALL_LINGUAS because we need it to compute
14045 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
14047 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
14048 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14049 LINGUAS="${LINGUAS-%UNSET%}"
14056 cat >>$CONFIG_STATUS <<\_ACEOF
14057 for ac_config_target in $ac_config_targets
14059 case "$ac_config_target" in
14060 # Handling of arguments.
14061 "Doxyfile" ) CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
14062 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14063 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
14064 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
14065 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14066 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14067 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14068 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14069 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14070 { (exit 1); exit 1; }; };;
14074 # If the user did not use the arguments to specify the items to instantiate,
14075 # then the envvar interface is used. Set only those that are not.
14076 # We use the long form for the default assignment because of an extremely
14077 # bizarre bug on SunOS 4.1.3.
14078 if $ac_need_defaults; then
14079 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14080 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14081 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14084 # Have a temporary directory for convenience. Make it in the build tree
14085 # simply because there is no reason to put it here, and in addition,
14086 # creating and moving files from /tmp can sometimes cause problems.
14087 # Create a temporary directory, and hook for its removal unless debugging.
14090 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14091 trap '{ (exit 1); exit 1; }' 1 2 13 15
14094 # Create a (secure) tmp directory for tmp files.
14097 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14098 test -n "$tmp" && test -d "$tmp"
14101 tmp=./confstat$$-$RANDOM
14102 (umask 077 && mkdir $tmp)
14105 echo "$me: cannot create a temporary directory in ." >&2
14106 { (exit 1); exit 1; }
14111 cat >>$CONFIG_STATUS <<_ACEOF
14114 # CONFIG_FILES section.
14117 # No need to generate the scripts if there are no CONFIG_FILES.
14118 # This happens for instance when ./config.status config.h
14119 if test -n "\$CONFIG_FILES"; then
14120 # Protect against being on the right side of a sed subst in config.status.
14121 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14122 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14123 s,@SHELL@,$SHELL,;t t
14124 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14125 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14126 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14127 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14128 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14129 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14130 s,@exec_prefix@,$exec_prefix,;t t
14131 s,@prefix@,$prefix,;t t
14132 s,@program_transform_name@,$program_transform_name,;t t
14133 s,@bindir@,$bindir,;t t
14134 s,@sbindir@,$sbindir,;t t
14135 s,@libexecdir@,$libexecdir,;t t
14136 s,@datadir@,$datadir,;t t
14137 s,@sysconfdir@,$sysconfdir,;t t
14138 s,@sharedstatedir@,$sharedstatedir,;t t
14139 s,@localstatedir@,$localstatedir,;t t
14140 s,@libdir@,$libdir,;t t
14141 s,@includedir@,$includedir,;t t
14142 s,@oldincludedir@,$oldincludedir,;t t
14143 s,@infodir@,$infodir,;t t
14144 s,@mandir@,$mandir,;t t
14145 s,@build_alias@,$build_alias,;t t
14146 s,@host_alias@,$host_alias,;t t
14147 s,@target_alias@,$target_alias,;t t
14148 s,@DEFS@,$DEFS,;t t
14149 s,@ECHO_C@,$ECHO_C,;t t
14150 s,@ECHO_N@,$ECHO_N,;t t
14151 s,@ECHO_T@,$ECHO_T,;t t
14152 s,@LIBS@,$LIBS,;t t
14153 s,@build@,$build,;t t
14154 s,@build_cpu@,$build_cpu,;t t
14155 s,@build_vendor@,$build_vendor,;t t
14156 s,@build_os@,$build_os,;t t
14157 s,@host@,$host,;t t
14158 s,@host_cpu@,$host_cpu,;t t
14159 s,@host_vendor@,$host_vendor,;t t
14160 s,@host_os@,$host_os,;t t
14161 s,@target@,$target,;t t
14162 s,@target_cpu@,$target_cpu,;t t
14163 s,@target_vendor@,$target_vendor,;t t
14164 s,@target_os@,$target_os,;t t
14165 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14166 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14167 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14168 s,@PACKAGE@,$PACKAGE,;t t
14169 s,@VERSION@,$VERSION,;t t
14170 s,@ACLOCAL@,$ACLOCAL,;t t
14171 s,@AUTOCONF@,$AUTOCONF,;t t
14172 s,@AUTOMAKE@,$AUTOMAKE,;t t
14173 s,@AUTOHEADER@,$AUTOHEADER,;t t
14174 s,@MAKEINFO@,$MAKEINFO,;t t
14175 s,@AMTAR@,$AMTAR,;t t
14176 s,@install_sh@,$install_sh,;t t
14177 s,@STRIP@,$STRIP,;t t
14178 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14179 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
14181 s,@SET_MAKE@,$SET_MAKE,;t t
14183 s,@CFLAGS@,$CFLAGS,;t t
14184 s,@LDFLAGS@,$LDFLAGS,;t t
14185 s,@CPPFLAGS@,$CPPFLAGS,;t t
14186 s,@ac_ct_CC@,$ac_ct_CC,;t t
14187 s,@EXEEXT@,$EXEEXT,;t t
14188 s,@OBJEXT@,$OBJEXT,;t t
14189 s,@DEPDIR@,$DEPDIR,;t t
14190 s,@am__include@,$am__include,;t t
14191 s,@am__quote@,$am__quote,;t t
14192 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
14193 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
14194 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
14195 s,@CCDEPMODE@,$CCDEPMODE,;t t
14197 s,@EGREP@,$EGREP,;t t
14199 s,@ANSI2KNR@,$ANSI2KNR,;t t
14200 s,@LN_S@,$LN_S,;t t
14201 s,@ECHO@,$ECHO,;t t
14202 s,@RANLIB@,$RANLIB,;t t
14203 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14204 s,@LIBTOOL@,$LIBTOOL,;t t
14205 s,@TARGET@,$TARGET,;t t
14206 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
14207 s,@MSGFMT@,$MSGFMT,;t t
14208 s,@GMSGFMT@,$GMSGFMT,;t t
14209 s,@XGETTEXT@,$XGETTEXT,;t t
14210 s,@MSGMERGE@,$MSGMERGE,;t t
14211 s,@ALLOCA@,$ALLOCA,;t t
14212 s,@GLIBC21@,$GLIBC21,;t t
14213 s,@LIBICONV@,$LIBICONV,;t t
14214 s,@LTLIBICONV@,$LTLIBICONV,;t t
14215 s,@INTLBISON@,$INTLBISON,;t t
14216 s,@USE_NLS@,$USE_NLS,;t t
14217 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
14218 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
14219 s,@CATOBJEXT@,$CATOBJEXT,;t t
14220 s,@INTLOBJS@,$INTLOBJS,;t t
14221 s,@DATADIRNAME@,$DATADIRNAME,;t t
14222 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
14223 s,@GENCAT@,$GENCAT,;t t
14224 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
14225 s,@INTLLIBS@,$INTLLIBS,;t t
14226 s,@LIBINTL@,$LIBINTL,;t t
14227 s,@LTLIBINTL@,$LTLIBINTL,;t t
14228 s,@POSUB@,$POSUB,;t t
14229 s,@POPT_SOURCE_PATH@,$POPT_SOURCE_PATH,;t t
14230 s,@LIBOBJS@,$LIBOBJS,;t t
14231 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
14236 cat >>$CONFIG_STATUS <<\_ACEOF
14237 # Split the substitutions into bite-sized pieces for seds with
14238 # small command number limits, like on Digital OSF/1 and HP-UX.
14239 ac_max_sed_lines=48
14240 ac_sed_frag=1 # Number of current file.
14241 ac_beg=1 # First line for current file.
14242 ac_end=$ac_max_sed_lines # Line after last line for current file.
14245 while $ac_more_lines; do
14246 if test $ac_beg -gt 1; then
14247 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14249 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14251 if test ! -s $tmp/subs.frag; then
14252 ac_more_lines=false
14254 # The purpose of the label and of the branching condition is to
14255 # speed up the sed processing (if there are no `@' at all, there
14256 # is no need to browse any of the substitutions).
14257 # These are the two extra sed commands mentioned above.
14259 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14260 if test -z "$ac_sed_cmds"; then
14261 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14263 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14265 ac_sed_frag=`expr $ac_sed_frag + 1`
14267 ac_end=`expr $ac_end + $ac_max_sed_lines`
14270 if test -z "$ac_sed_cmds"; then
14273 fi # test -n "$CONFIG_FILES"
14276 cat >>$CONFIG_STATUS <<\_ACEOF
14277 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14278 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14280 - | *:- | *:-:* ) # input from stdin
14282 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14283 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14284 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14285 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14286 * ) ac_file_in=$ac_file.in ;;
14289 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14290 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14291 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14292 X"$ac_file" : 'X\(//\)[^/]' \| \
14293 X"$ac_file" : 'X\(//\)$' \| \
14294 X"$ac_file" : 'X\(/\)' \| \
14295 . : '\(.\)' 2>/dev/null ||
14297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14298 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14299 /^X\(\/\/\)$/{ s//\1/; q; }
14300 /^X\(\/\).*/{ s//\1/; q; }
14302 { if $as_mkdir_p; then
14307 while test ! -d "$as_dir"; do
14308 as_dirs="$as_dir $as_dirs"
14309 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14311 X"$as_dir" : 'X\(//\)[^/]' \| \
14312 X"$as_dir" : 'X\(//\)$' \| \
14313 X"$as_dir" : 'X\(/\)' \| \
14314 . : '\(.\)' 2>/dev/null ||
14316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14317 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14318 /^X\(\/\/\)$/{ s//\1/; q; }
14319 /^X\(\/\).*/{ s//\1/; q; }
14322 test ! -n "$as_dirs" || mkdir $as_dirs
14323 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14324 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14325 { (exit 1); exit 1; }; }; }
14329 if test "$ac_dir" != .; then
14330 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14331 # A "../" for each directory in $ac_dir_suffix.
14332 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14334 ac_dir_suffix= ac_top_builddir=
14338 .) # No --srcdir option. We are building in place.
14340 if test -z "$ac_top_builddir"; then
14343 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14345 [\\/]* | ?:[\\/]* ) # Absolute path.
14346 ac_srcdir=$srcdir$ac_dir_suffix;
14347 ac_top_srcdir=$srcdir ;;
14348 *) # Relative path.
14349 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14350 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14353 # Do not use `cd foo && pwd` to compute absolute paths, because
14354 # the directories may not exist.
14356 .) ac_abs_builddir="$ac_dir";;
14359 .) ac_abs_builddir=`pwd`;;
14360 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14361 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14364 case $ac_abs_builddir in
14365 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14367 case ${ac_top_builddir}. in
14368 .) ac_abs_top_builddir=$ac_abs_builddir;;
14369 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14370 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14373 case $ac_abs_builddir in
14374 .) ac_abs_srcdir=$ac_srcdir;;
14377 .) ac_abs_srcdir=$ac_abs_builddir;;
14378 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14379 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14382 case $ac_abs_builddir in
14383 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14385 case $ac_top_srcdir in
14386 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14387 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14388 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14394 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14395 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14398 if test x"$ac_file" != x-; then
14399 { echo "$as_me:$LINENO: creating $ac_file" >&5
14400 echo "$as_me: creating $ac_file" >&6;}
14403 # Let's still pretend it is `configure' which instantiates (i.e., don't
14404 # use $as_me), people would be surprised to read:
14405 # /* config.h. Generated by config.status. */
14406 if test x"$ac_file" = x-; then
14409 configure_input="$ac_file. "
14411 configure_input=$configure_input"Generated from `echo $ac_file_in |
14412 sed 's,.*/,,'` by configure."
14414 # First look for the input files in the build tree, otherwise in the
14416 ac_file_inputs=`IFS=:
14417 for f in $ac_file_in; do
14419 -) echo $tmp/stdin ;;
14421 # Absolute (can't be DOS-style, as IFS=:)
14422 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14423 echo "$as_me: error: cannot find input file: $f" >&2;}
14424 { (exit 1); exit 1; }; }
14427 if test -f "$f"; then
14430 elif test -f "$srcdir/$f"; then
14435 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14436 echo "$as_me: error: cannot find input file: $f" >&2;}
14437 { (exit 1); exit 1; }; }
14440 done` || { (exit 1); exit 1; }
14442 cat >>$CONFIG_STATUS <<_ACEOF
14446 cat >>$CONFIG_STATUS <<\_ACEOF
14448 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14449 s,@configure_input@,$configure_input,;t t
14450 s,@srcdir@,$ac_srcdir,;t t
14451 s,@abs_srcdir@,$ac_abs_srcdir,;t t
14452 s,@top_srcdir@,$ac_top_srcdir,;t t
14453 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14454 s,@builddir@,$ac_builddir,;t t
14455 s,@abs_builddir@,$ac_abs_builddir,;t t
14456 s,@top_builddir@,$ac_top_builddir,;t t
14457 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14458 s,@INSTALL@,$ac_INSTALL,;t t
14459 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14461 if test x"$ac_file" != x-; then
14462 mv $tmp/out $ac_file
14470 cat >>$CONFIG_STATUS <<\_ACEOF
14473 # CONFIG_HEADER section.
14476 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14477 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14479 # ac_d sets the value in "#define NAME VALUE" lines.
14480 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14481 ac_dB='[ ].*$,\1#\2'
14484 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14485 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14486 ac_uB='$,\1#\2define\3'
14490 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14491 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14493 - | *:- | *:-:* ) # input from stdin
14495 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14496 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14497 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14498 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14499 * ) ac_file_in=$ac_file.in ;;
14502 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14503 echo "$as_me: creating $ac_file" >&6;}
14505 # First look for the input files in the build tree, otherwise in the
14507 ac_file_inputs=`IFS=:
14508 for f in $ac_file_in; do
14510 -) echo $tmp/stdin ;;
14512 # Absolute (can't be DOS-style, as IFS=:)
14513 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14514 echo "$as_me: error: cannot find input file: $f" >&2;}
14515 { (exit 1); exit 1; }; }
14516 # Do quote $f, to prevent DOS paths from being IFS'd.
14519 if test -f "$f"; then
14522 elif test -f "$srcdir/$f"; then
14527 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14528 echo "$as_me: error: cannot find input file: $f" >&2;}
14529 { (exit 1); exit 1; }; }
14532 done` || { (exit 1); exit 1; }
14533 # Remove the trailing spaces.
14534 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14538 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14539 # `conftest.undefs', that substitutes the proper values into
14540 # config.h.in to produce config.h. The first handles `#define'
14541 # templates, and the second `#undef' templates.
14542 # And first: Protect against being on the right side of a sed subst in
14543 # config.status. Protect against being in an unquoted here document
14544 # in config.status.
14545 rm -f conftest.defines conftest.undefs
14546 # Using a here document instead of a string reduces the quoting nightmare.
14547 # Putting comments in sed scripts is not portable.
14549 # `end' is used to avoid that the second main sed command (meant for
14550 # 0-ary CPP macros) applies to n-ary macro definitions.
14551 # See the Autoconf documentation for `clear'.
14552 cat >confdef2sed.sed <<\_ACEOF
14557 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14559 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14562 # If some macros were called several times there might be several times
14563 # the same #defines, which is useless. Nevertheless, we may not want to
14564 # sort them, since we want the *last* AC-DEFINE to be honored.
14565 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14566 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14567 rm -f confdef2sed.sed
14569 # This sed command replaces #undef with comments. This is necessary, for
14570 # example, in the case of _POSIX_SOURCE, which is predefined and required
14571 # on some systems where configure will not decide to define it.
14572 cat >>conftest.undefs <<\_ACEOF
14573 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14576 # Break up conftest.defines because some shells have a limit on the size
14577 # of here documents, and old seds have small limits too (100 cmds).
14578 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14579 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14580 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14581 echo ' :' >>$CONFIG_STATUS
14582 rm -f conftest.tail
14583 while grep . conftest.defines >/dev/null
14585 # Write a limited-size here document to $tmp/defines.sed.
14586 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14587 # Speed up: don't consider the non `#define' lines.
14588 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14589 # Work around the forget-to-reset-the-flag bug.
14590 echo 't clr' >>$CONFIG_STATUS
14591 echo ': clr' >>$CONFIG_STATUS
14592 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14594 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14596 mv $tmp/out $tmp/in
14598 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14599 rm -f conftest.defines
14600 mv conftest.tail conftest.defines
14602 rm -f conftest.defines
14603 echo ' fi # grep' >>$CONFIG_STATUS
14604 echo >>$CONFIG_STATUS
14606 # Break up conftest.undefs because some shells have a limit on the size
14607 # of here documents, and old seds have small limits too (100 cmds).
14608 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14609 rm -f conftest.tail
14610 while grep . conftest.undefs >/dev/null
14612 # Write a limited-size here document to $tmp/undefs.sed.
14613 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14614 # Speed up: don't consider the non `#undef'
14615 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14616 # Work around the forget-to-reset-the-flag bug.
14617 echo 't clr' >>$CONFIG_STATUS
14618 echo ': clr' >>$CONFIG_STATUS
14619 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14621 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14623 mv $tmp/out $tmp/in
14625 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14626 rm -f conftest.undefs
14627 mv conftest.tail conftest.undefs
14629 rm -f conftest.undefs
14631 cat >>$CONFIG_STATUS <<\_ACEOF
14632 # Let's still pretend it is `configure' which instantiates (i.e., don't
14633 # use $as_me), people would be surprised to read:
14634 # /* config.h. Generated by config.status. */
14635 if test x"$ac_file" = x-; then
14636 echo "/* Generated by configure. */" >$tmp/config.h
14638 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14640 cat $tmp/in >>$tmp/config.h
14642 if test x"$ac_file" != x-; then
14643 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14644 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14645 echo "$as_me: $ac_file is unchanged" >&6;}
14647 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14648 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14649 X"$ac_file" : 'X\(//\)[^/]' \| \
14650 X"$ac_file" : 'X\(//\)$' \| \
14651 X"$ac_file" : 'X\(/\)' \| \
14652 . : '\(.\)' 2>/dev/null ||
14654 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14655 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14656 /^X\(\/\/\)$/{ s//\1/; q; }
14657 /^X\(\/\).*/{ s//\1/; q; }
14659 { if $as_mkdir_p; then
14664 while test ! -d "$as_dir"; do
14665 as_dirs="$as_dir $as_dirs"
14666 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14667 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14668 X"$as_dir" : 'X\(//\)[^/]' \| \
14669 X"$as_dir" : 'X\(//\)$' \| \
14670 X"$as_dir" : 'X\(/\)' \| \
14671 . : '\(.\)' 2>/dev/null ||
14673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14674 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14675 /^X\(\/\/\)$/{ s//\1/; q; }
14676 /^X\(\/\).*/{ s//\1/; q; }
14679 test ! -n "$as_dirs" || mkdir $as_dirs
14680 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14681 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14682 { (exit 1); exit 1; }; }; }
14685 mv $tmp/config.h $ac_file
14689 rm -f $tmp/config.h
14691 # Run the commands associated with the file.
14693 config.h ) # update the timestamp
14694 echo 'timestamp for config.h' >"./stamp-h1"
14699 cat >>$CONFIG_STATUS <<\_ACEOF
14702 # CONFIG_COMMANDS section.
14704 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14705 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14706 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14707 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14708 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14709 X"$ac_dest" : 'X\(//\)[^/]' \| \
14710 X"$ac_dest" : 'X\(//\)$' \| \
14711 X"$ac_dest" : 'X\(/\)' \| \
14712 . : '\(.\)' 2>/dev/null ||
14714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14715 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14716 /^X\(\/\/\)$/{ s//\1/; q; }
14717 /^X\(\/\).*/{ s//\1/; q; }
14719 { if $as_mkdir_p; then
14724 while test ! -d "$as_dir"; do
14725 as_dirs="$as_dir $as_dirs"
14726 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14727 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14728 X"$as_dir" : 'X\(//\)[^/]' \| \
14729 X"$as_dir" : 'X\(//\)$' \| \
14730 X"$as_dir" : 'X\(/\)' \| \
14731 . : '\(.\)' 2>/dev/null ||
14733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14734 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14735 /^X\(\/\/\)$/{ s//\1/; q; }
14736 /^X\(\/\).*/{ s//\1/; q; }
14739 test ! -n "$as_dirs" || mkdir $as_dirs
14740 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14741 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14742 { (exit 1); exit 1; }; }; }
14746 if test "$ac_dir" != .; then
14747 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14748 # A "../" for each directory in $ac_dir_suffix.
14749 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14751 ac_dir_suffix= ac_top_builddir=
14755 .) # No --srcdir option. We are building in place.
14757 if test -z "$ac_top_builddir"; then
14760 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14762 [\\/]* | ?:[\\/]* ) # Absolute path.
14763 ac_srcdir=$srcdir$ac_dir_suffix;
14764 ac_top_srcdir=$srcdir ;;
14765 *) # Relative path.
14766 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14767 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14770 # Do not use `cd foo && pwd` to compute absolute paths, because
14771 # the directories may not exist.
14773 .) ac_abs_builddir="$ac_dir";;
14776 .) ac_abs_builddir=`pwd`;;
14777 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14778 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14781 case $ac_abs_builddir in
14782 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14784 case ${ac_top_builddir}. in
14785 .) ac_abs_top_builddir=$ac_abs_builddir;;
14786 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14787 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14790 case $ac_abs_builddir in
14791 .) ac_abs_srcdir=$ac_srcdir;;
14794 .) ac_abs_srcdir=$ac_abs_builddir;;
14795 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14796 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14799 case $ac_abs_builddir in
14800 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14802 case $ac_top_srcdir in
14803 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14804 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14805 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14810 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14811 echo "$as_me: executing $ac_dest commands" >&6;}
14813 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14814 # Strip MF so we end up with the name of the file.
14815 mf=`echo "$mf" | sed -e 's/:.*$//'`
14816 # Check whether this is an Automake generated Makefile or not.
14817 # We used to match only the files named `Makefile.in', but
14818 # some people rename them; so instead we look at the file content.
14819 # Grep'ing the first line is not enough: some people post-process
14820 # each Makefile.in and add a new line on top of each file to say so.
14821 # So let's grep whole file.
14822 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14823 dirpart=`(dirname "$mf") 2>/dev/null ||
14824 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14825 X"$mf" : 'X\(//\)[^/]' \| \
14826 X"$mf" : 'X\(//\)$' \| \
14827 X"$mf" : 'X\(/\)' \| \
14828 . : '\(.\)' 2>/dev/null ||
14830 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14831 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14832 /^X\(\/\/\)$/{ s//\1/; q; }
14833 /^X\(\/\).*/{ s//\1/; q; }
14838 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
14839 # Extract the definition of DEP_FILES from the Makefile without
14841 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
14842 test -z "$DEPDIR" && continue
14843 # When using ansi2knr, U may be empty or an underscore; expand it
14844 U=`sed -n -e '/^U = / s///p' < "$mf"`
14845 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
14846 # We invoke sed twice because it is the simplest approach to
14847 # changing $(DEPDIR) to its actual value in the expansion.
14848 for file in `sed -n -e '
14849 /^DEP_FILES = .*\\\\$/ {
14858 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
14859 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14860 # Make sure the directory exists.
14861 test -f "$dirpart/$file" && continue
14862 fdir=`(dirname "$file") 2>/dev/null ||
14863 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14864 X"$file" : 'X\(//\)[^/]' \| \
14865 X"$file" : 'X\(//\)$' \| \
14866 X"$file" : 'X\(/\)' \| \
14867 . : '\(.\)' 2>/dev/null ||
14869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14870 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14871 /^X\(\/\/\)$/{ s//\1/; q; }
14872 /^X\(\/\).*/{ s//\1/; q; }
14874 { if $as_mkdir_p; then
14875 mkdir -p $dirpart/$fdir
14877 as_dir=$dirpart/$fdir
14879 while test ! -d "$as_dir"; do
14880 as_dirs="$as_dir $as_dirs"
14881 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14882 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14883 X"$as_dir" : 'X\(//\)[^/]' \| \
14884 X"$as_dir" : 'X\(//\)$' \| \
14885 X"$as_dir" : 'X\(/\)' \| \
14886 . : '\(.\)' 2>/dev/null ||
14888 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14889 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14890 /^X\(\/\/\)$/{ s//\1/; q; }
14891 /^X\(\/\).*/{ s//\1/; q; }
14894 test ! -n "$as_dirs" || mkdir $as_dirs
14895 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
14896 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
14897 { (exit 1); exit 1; }; }; }
14899 # echo "creating $dirpart/$file"
14900 echo '# dummy' > "$dirpart/$file"
14905 for ac_file in $CONFIG_FILES; do
14906 # Support "outfile[:infile[:infile...]]"
14908 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14910 # PO directories have a Makefile.in generated from Makefile.in.in.
14911 case "$ac_file" in */Makefile.in)
14912 # Adjust a relative srcdir.
14913 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
14914 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
14915 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14916 # In autoconf-2.13 it is called $ac_given_srcdir.
14917 # In autoconf-2.50 it is called $srcdir.
14918 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14919 case "$ac_given_srcdir" in
14920 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14921 /*) top_srcdir="$ac_given_srcdir" ;;
14922 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14924 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14925 rm -f "$ac_dir/POTFILES"
14926 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14927 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
14928 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
14929 # on $ac_dir but don't depend on user-specified configuration
14931 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14932 # The LINGUAS file contains the set of available languages.
14933 if test -n "$ALL_LINGUAS"; then
14934 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14936 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14937 # Hide the ALL_LINGUAS assigment from automake.
14938 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
14940 case "$ac_given_srcdir" in
14942 *) srcdirpre='$(srcdir)/' ;;
14948 for lang in $ALL_LINGUAS; do
14949 POFILES="$POFILES $srcdirpre$lang.po"
14950 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14951 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14952 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14954 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14955 # environment variable.
14957 if test -n "$ALL_LINGUAS"; then
14958 for presentlang in $ALL_LINGUAS; do
14960 if test "%UNSET%" != "$LINGUAS"; then
14961 desiredlanguages="$LINGUAS"
14963 desiredlanguages="$ALL_LINGUAS"
14965 for desiredlang in $desiredlanguages; do
14966 # Use the presentlang catalog if desiredlang is
14967 # a. equal to presentlang, or
14968 # b. a variant of presentlang (because in this case,
14969 # presentlang can be used as a fallback for messages
14970 # which are not translated in the desiredlang catalog).
14971 case "$desiredlang" in
14972 "$presentlang"*) useit=yes;;
14975 if test $useit = yes; then
14976 INST_LINGUAS="$INST_LINGUAS $presentlang"
14981 if test -n "$INST_LINGUAS"; then
14982 for lang in $INST_LINGUAS; do
14983 CATALOGS="$CATALOGS $lang.gmo"
14986 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14987 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
14988 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14989 if test -f "$f"; then
14991 *.orig | *.bak | *~) ;;
14992 *) cat "$f" >> "$ac_dir/Makefile" ;;
15004 cat >>$CONFIG_STATUS <<\_ACEOF
15006 { (exit 0); exit 0; }
15008 chmod +x $CONFIG_STATUS
15009 ac_clean_files=$ac_clean_files_save
15012 # configure is writing to config.log, and then calls config.status.
15013 # config.status does its own redirection, appending to config.log.
15014 # Unfortunately, on DOS this fails, as config.log is still kept open
15015 # by configure, so config.status won't be able to write to it; its
15016 # output is simply discarded. So we exec the FD to /dev/null,
15017 # effectively closing config.log, so it can be properly (re)opened and
15018 # appended to by config.status. When coming back to configure, we
15019 # need to make the FD available again.
15020 if test "$no_create" != yes; then
15022 ac_config_status_args=
15023 test "$silent" = yes &&
15024 ac_config_status_args="$ac_config_status_args --quiet"
15026 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15028 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15029 # would make configure fail if this is the last instruction.
15030 $ac_cs_success || { (exit 1); exit 1; }