2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
305 # So, first we look for a working echo in the user's PATH.
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
358 # maybe with a smaller string...
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374 # Oops. We lost completely, so just stick with echo.
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
409 SHELL=${CONFIG_SHELL-/bin/sh}
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete. It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
416 # Identity of this package.
423 ac_unique_file="ldmain.c"
424 # Factoring default headers for most tests.
425 ac_includes_default="\
428 # include <sys/types.h>
431 # include <sys/stat.h>
442 # if !STDC_HEADERS && HAVE_MEMORY_H
448 # include <strings.h>
451 # include <inttypes.h>
461 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE use_sysroot TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS NO_WERROR LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO CPP USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE YACC LEX LEXLIB LEX_OUTPUT_ROOT MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE HDEFINES HOSTING_CRT0 HOSTING_LIBS NATIVE_LIB_DIRS STRINGIFY EMUL EMULATION_OFILES EMUL_EXTRA_OFILES LIB_PATH EMULATION_LIBPATH TESTBFDLIB datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
462 ac_subst_files='TDIRS'
464 # Initialize some variables set by options.
466 ac_init_version=false
467 # The variables have the same names as the options, with
468 # dashes changed to underlines.
476 program_transform_name=s,x,x,
484 # Installation directory options.
485 # These are left unexpanded so users can "make install exec_prefix=/foo"
486 # and all the variables that are supposed to be based on exec_prefix
487 # by default will actually change.
488 # Use braces instead of parens because sh, perl, etc. also accept them.
489 bindir='${exec_prefix}/bin'
490 sbindir='${exec_prefix}/sbin'
491 libexecdir='${exec_prefix}/libexec'
492 datadir='${prefix}/share'
493 sysconfdir='${prefix}/etc'
494 sharedstatedir='${prefix}/com'
495 localstatedir='${prefix}/var'
496 libdir='${exec_prefix}/lib'
497 includedir='${prefix}/include'
498 oldincludedir='/usr/include'
499 infodir='${prefix}/info'
500 mandir='${prefix}/man'
505 # If the previous option needs an argument, assign it.
506 if test -n "$ac_prev"; then
507 eval "$ac_prev=\$ac_option"
512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514 # Accept the important Cygnus configure options, so we can diagnose typos.
518 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
523 -build | --build | --buil | --bui | --bu)
524 ac_prev=build_alias ;;
525 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526 build_alias=$ac_optarg ;;
528 -cache-file | --cache-file | --cache-fil | --cache-fi \
529 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530 ac_prev=cache_file ;;
531 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
533 cache_file=$ac_optarg ;;
536 cache_file=config.cache ;;
538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 datadir=$ac_optarg ;;
544 -disable-* | --disable-*)
545 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
546 # Reject names that are not valid shell variable names.
547 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549 { (exit 1); exit 1; }; }
550 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551 eval "enable_$ac_feature=no" ;;
553 -enable-* | --enable-*)
554 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
555 # Reject names that are not valid shell variable names.
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
564 eval "enable_$ac_feature='$ac_optarg'" ;;
566 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568 | --exec | --exe | --ex)
569 ac_prev=exec_prefix ;;
570 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572 | --exec=* | --exe=* | --ex=*)
573 exec_prefix=$ac_optarg ;;
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
579 -help | --help | --hel | --he | -h)
581 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582 ac_init_help=recursive ;;
583 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584 ac_init_help=short ;;
586 -host | --host | --hos | --ho)
587 ac_prev=host_alias ;;
588 -host=* | --host=* | --hos=* | --ho=*)
589 host_alias=$ac_optarg ;;
591 -includedir | --includedir | --includedi | --included | --include \
592 | --includ | --inclu | --incl | --inc)
593 ac_prev=includedir ;;
594 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595 | --includ=* | --inclu=* | --incl=* | --inc=*)
596 includedir=$ac_optarg ;;
598 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601 infodir=$ac_optarg ;;
603 -libdir | --libdir | --libdi | --libd)
605 -libdir=* | --libdir=* | --libdi=* | --libd=*)
608 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609 | --libexe | --libex | --libe)
610 ac_prev=libexecdir ;;
611 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612 | --libexe=* | --libex=* | --libe=*)
613 libexecdir=$ac_optarg ;;
615 -localstatedir | --localstatedir | --localstatedi | --localstated \
616 | --localstate | --localstat | --localsta | --localst \
617 | --locals | --local | --loca | --loc | --lo)
618 ac_prev=localstatedir ;;
619 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
622 localstatedir=$ac_optarg ;;
624 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
630 # Obsolete; use --without-fp.
633 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634 | --no-cr | --no-c | -n)
637 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
641 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643 | --oldin | --oldi | --old | --ol | --o)
644 ac_prev=oldincludedir ;;
645 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
648 oldincludedir=$ac_optarg ;;
650 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
655 -program-prefix | --program-prefix | --program-prefi | --program-pref \
656 | --program-pre | --program-pr | --program-p)
657 ac_prev=program_prefix ;;
658 -program-prefix=* | --program-prefix=* | --program-prefi=* \
659 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
660 program_prefix=$ac_optarg ;;
662 -program-suffix | --program-suffix | --program-suffi | --program-suff \
663 | --program-suf | --program-su | --program-s)
664 ac_prev=program_suffix ;;
665 -program-suffix=* | --program-suffix=* | --program-suffi=* \
666 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
667 program_suffix=$ac_optarg ;;
669 -program-transform-name | --program-transform-name \
670 | --program-transform-nam | --program-transform-na \
671 | --program-transform-n | --program-transform- \
672 | --program-transform | --program-transfor \
673 | --program-transfo | --program-transf \
674 | --program-trans | --program-tran \
675 | --progr-tra | --program-tr | --program-t)
676 ac_prev=program_transform_name ;;
677 -program-transform-name=* | --program-transform-name=* \
678 | --program-transform-nam=* | --program-transform-na=* \
679 | --program-transform-n=* | --program-transform-=* \
680 | --program-transform=* | --program-transfor=* \
681 | --program-transfo=* | --program-transf=* \
682 | --program-trans=* | --program-tran=* \
683 | --progr-tra=* | --program-tr=* | --program-t=*)
684 program_transform_name=$ac_optarg ;;
686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687 | -silent | --silent | --silen | --sile | --sil)
690 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 sbindir=$ac_optarg ;;
696 -sharedstatedir | --sharedstatedir | --sharedstatedi \
697 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698 | --sharedst | --shareds | --shared | --share | --shar \
700 ac_prev=sharedstatedir ;;
701 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705 sharedstatedir=$ac_optarg ;;
707 -site | --site | --sit)
709 -site=* | --site=* | --sit=*)
712 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
717 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718 | --syscon | --sysco | --sysc | --sys | --sy)
719 ac_prev=sysconfdir ;;
720 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
722 sysconfdir=$ac_optarg ;;
724 -target | --target | --targe | --targ | --tar | --ta | --t)
725 ac_prev=target_alias ;;
726 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
727 target_alias=$ac_optarg ;;
729 -v | -verbose | --verbose | --verbos | --verbo | --verb)
732 -version | --version | --versio | --versi | --vers | -V)
736 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
737 # Reject names that are not valid shell variable names.
738 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739 { echo "$as_me: error: invalid package name: $ac_package" >&2
740 { (exit 1); exit 1; }; }
741 ac_package=`echo $ac_package| sed 's/-/_/g'`
743 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
746 eval "with_$ac_package='$ac_optarg'" ;;
748 -without-* | --without-*)
749 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
750 # Reject names that are not valid shell variable names.
751 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752 { echo "$as_me: error: invalid package name: $ac_package" >&2
753 { (exit 1); exit 1; }; }
754 ac_package=`echo $ac_package | sed 's/-/_/g'`
755 eval "with_$ac_package=no" ;;
758 # Obsolete; use --with-x.
761 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762 | --x-incl | --x-inc | --x-in | --x-i)
763 ac_prev=x_includes ;;
764 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
766 x_includes=$ac_optarg ;;
768 -x-libraries | --x-libraries | --x-librarie | --x-librari \
769 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770 ac_prev=x_libraries ;;
771 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
773 x_libraries=$ac_optarg ;;
775 -*) { echo "$as_me: error: unrecognized option: $ac_option
776 Try \`$0 --help' for more information." >&2
777 { (exit 1); exit 1; }; }
781 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782 # Reject names that are not valid shell variable names.
783 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785 { (exit 1); exit 1; }; }
786 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787 eval "$ac_envvar='$ac_optarg'"
791 # FIXME: should be removed in autoconf 3.0.
792 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
801 if test -n "$ac_prev"; then
802 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803 { echo "$as_me: error: missing argument to $ac_option" >&2
804 { (exit 1); exit 1; }; }
807 # Be sure to have absolute paths.
808 for ac_var in exec_prefix prefix
810 eval ac_val=$`echo $ac_var`
812 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814 { (exit 1); exit 1; }; };;
818 # Be sure to have absolute paths.
819 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820 localstatedir libdir includedir oldincludedir infodir mandir
822 eval ac_val=$`echo $ac_var`
824 [\\/$]* | ?:[\\/]* ) ;;
825 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826 { (exit 1); exit 1; }; };;
830 # There might be people who depend on the old broken behavior: `$host'
831 # used to hold the argument of --host etc.
832 # FIXME: To remove some day.
837 # FIXME: To remove some day.
838 if test "x$host_alias" != x; then
839 if test "x$build_alias" = x; then
840 cross_compiling=maybe
841 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842 If a cross compiler is detected then cross compile mode will be used." >&2
843 elif test "x$build_alias" != "x$host_alias"; then
849 test -n "$host_alias" && ac_tool_prefix=$host_alias-
851 test "$silent" = yes && exec 6>/dev/null
854 # Find the source files, if location was not specified.
855 if test -z "$srcdir"; then
856 ac_srcdir_defaulted=yes
857 # Try the directory containing this script, then its parent.
858 ac_confdir=`(dirname "$0") 2>/dev/null ||
859 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860 X"$0" : 'X\(//\)[^/]' \| \
861 X"$0" : 'X\(//\)$' \| \
862 X"$0" : 'X\(/\)' \| \
863 . : '\(.\)' 2>/dev/null ||
865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867 /^X\(\/\/\)$/{ s//\1/; q; }
868 /^X\(\/\).*/{ s//\1/; q; }
871 if test ! -r $srcdir/$ac_unique_file; then
875 ac_srcdir_defaulted=no
877 if test ! -r $srcdir/$ac_unique_file; then
878 if test "$ac_srcdir_defaulted" = yes; then
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880 { (exit 1); exit 1; }; }
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883 { (exit 1); exit 1; }; }
886 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888 { (exit 1); exit 1; }; }
889 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890 ac_env_build_alias_set=${build_alias+set}
891 ac_env_build_alias_value=$build_alias
892 ac_cv_env_build_alias_set=${build_alias+set}
893 ac_cv_env_build_alias_value=$build_alias
894 ac_env_host_alias_set=${host_alias+set}
895 ac_env_host_alias_value=$host_alias
896 ac_cv_env_host_alias_set=${host_alias+set}
897 ac_cv_env_host_alias_value=$host_alias
898 ac_env_target_alias_set=${target_alias+set}
899 ac_env_target_alias_value=$target_alias
900 ac_cv_env_target_alias_set=${target_alias+set}
901 ac_cv_env_target_alias_value=$target_alias
902 ac_env_CC_set=${CC+set}
904 ac_cv_env_CC_set=${CC+set}
905 ac_cv_env_CC_value=$CC
906 ac_env_CFLAGS_set=${CFLAGS+set}
907 ac_env_CFLAGS_value=$CFLAGS
908 ac_cv_env_CFLAGS_set=${CFLAGS+set}
909 ac_cv_env_CFLAGS_value=$CFLAGS
910 ac_env_LDFLAGS_set=${LDFLAGS+set}
911 ac_env_LDFLAGS_value=$LDFLAGS
912 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
913 ac_cv_env_LDFLAGS_value=$LDFLAGS
914 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
915 ac_env_CPPFLAGS_value=$CPPFLAGS
916 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
917 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
918 ac_env_CPP_set=${CPP+set}
919 ac_env_CPP_value=$CPP
920 ac_cv_env_CPP_set=${CPP+set}
921 ac_cv_env_CPP_value=$CPP
924 # Report the --help message.
926 if test "$ac_init_help" = "long"; then
927 # Omit some internal or obsolete options to make the list less imposing.
928 # This message is too long to be a string in the A/UX 3.1 sh.
930 \`configure' configures this package to adapt to many kinds of systems.
932 Usage: $0 [OPTION]... [VAR=VALUE]...
934 To assign environment variables (e.g., CC, CFLAGS...), specify them as
935 VAR=VALUE. See below for descriptions of some of the useful variables.
937 Defaults for the options are specified in brackets.
940 -h, --help display this help and exit
941 --help=short display options specific to this package
942 --help=recursive display the short help of all the included packages
943 -V, --version display version information and exit
944 -q, --quiet, --silent do not print \`checking...' messages
945 --cache-file=FILE cache test results in FILE [disabled]
946 -C, --config-cache alias for \`--cache-file=config.cache'
947 -n, --no-create do not create output files
948 --srcdir=DIR find the sources in DIR [configure dir or \`..']
953 Installation directories:
954 --prefix=PREFIX install architecture-independent files in PREFIX
956 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
959 By default, \`make install' will install all the files in
960 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
961 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
962 for instance \`--prefix=\$HOME'.
964 For better control, use the options below.
966 Fine tuning of the installation directories:
967 --bindir=DIR user executables [EPREFIX/bin]
968 --sbindir=DIR system admin executables [EPREFIX/sbin]
969 --libexecdir=DIR program executables [EPREFIX/libexec]
970 --datadir=DIR read-only architecture-independent data [PREFIX/share]
971 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
972 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
973 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
974 --libdir=DIR object code libraries [EPREFIX/lib]
975 --includedir=DIR C header files [PREFIX/include]
976 --oldincludedir=DIR C header files for non-gcc [/usr/include]
977 --infodir=DIR info documentation [PREFIX/info]
978 --mandir=DIR man documentation [PREFIX/man]
984 --program-prefix=PREFIX prepend PREFIX to installed program names
985 --program-suffix=SUFFIX append SUFFIX to installed program names
986 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
989 --build=BUILD configure for building on BUILD [guessed]
990 --host=HOST cross-compile to build programs to run on HOST [BUILD]
991 --target=TARGET configure for building compilers for TARGET [HOST]
995 if test -n "$ac_init_help"; then
1000 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1001 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1002 --disable-dependency-tracking speeds up one-time build
1003 --enable-dependency-tracking do not reject slow dependency extractors
1004 --enable-targets alternative target configurations
1005 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1006 --enable-werror treat compile warnings as errors
1007 --enable-build-warnings enable build-time compiler warnings
1008 --enable-shared[=PKGS]
1009 build shared libraries [default=yes]
1010 --enable-static[=PKGS]
1011 build static libraries [default=yes]
1012 --enable-fast-install[=PKGS]
1013 optimize for fast installation [default=yes]
1014 --disable-libtool-lock avoid locking (might break parallel builds)
1015 --disable-nls do not use Native Language Support
1016 --enable-maintainer-mode enable make rules and dependencies not useful
1017 (and sometimes confusing) to the casual installer
1020 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1021 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1022 --with-lib-path=dir1:dir2... set default LIB_PATH
1023 --with-sysroot=DIR Search for usr/lib et al within DIR.
1024 --with-pic try to use only PIC/non-PIC objects [default=use
1026 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1028 Some influential environment variables:
1029 CC C compiler command
1030 CFLAGS C compiler flags
1031 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1032 nonstandard directory <lib dir>
1033 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1034 headers in a nonstandard directory <include dir>
1037 Use these variables to override the choices made by `configure' or to help
1038 it to find libraries and programs with nonstandard names/locations.
1043 if test "$ac_init_help" = "recursive"; then
1044 # If there are subdirs, report their specific --help.
1046 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1047 test -d $ac_dir || continue
1050 if test "$ac_dir" != .; then
1051 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1052 # A "../" for each directory in $ac_dir_suffix.
1053 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1055 ac_dir_suffix= ac_top_builddir=
1059 .) # No --srcdir option. We are building in place.
1061 if test -z "$ac_top_builddir"; then
1064 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1066 [\\/]* | ?:[\\/]* ) # Absolute path.
1067 ac_srcdir=$srcdir$ac_dir_suffix;
1068 ac_top_srcdir=$srcdir ;;
1070 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1071 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1074 # Do not use `cd foo && pwd` to compute absolute paths, because
1075 # the directories may not exist.
1077 .) ac_abs_builddir="$ac_dir";;
1080 .) ac_abs_builddir=`pwd`;;
1081 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1082 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1085 case $ac_abs_builddir in
1086 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1088 case ${ac_top_builddir}. in
1089 .) ac_abs_top_builddir=$ac_abs_builddir;;
1090 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1091 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1094 case $ac_abs_builddir in
1095 .) ac_abs_srcdir=$ac_srcdir;;
1098 .) ac_abs_srcdir=$ac_abs_builddir;;
1099 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1100 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1103 case $ac_abs_builddir in
1104 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1106 case $ac_top_srcdir in
1107 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1108 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1109 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1114 # Check for guested configure; otherwise get Cygnus style configure.
1115 if test -f $ac_srcdir/configure.gnu; then
1117 $SHELL $ac_srcdir/configure.gnu --help=recursive
1118 elif test -f $ac_srcdir/configure; then
1120 $SHELL $ac_srcdir/configure --help=recursive
1121 elif test -f $ac_srcdir/configure.ac ||
1122 test -f $ac_srcdir/configure.in; then
1124 $ac_configure --help
1126 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1132 test -n "$ac_init_help" && exit 0
1133 if $ac_init_version; then
1136 Copyright (C) 2003 Free Software Foundation, Inc.
1137 This configure script is free software; the Free Software Foundation
1138 gives unlimited permission to copy, distribute and modify it.
1144 This file contains any messages produced by compilers while
1145 running configure, to aid debugging if configure makes a mistake.
1147 It was created by $as_me, which was
1148 generated by GNU Autoconf 2.59. Invocation command line was
1159 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1160 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1161 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1162 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1163 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1165 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1166 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1168 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1169 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1170 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1171 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1172 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1173 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1174 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1182 test -z "$as_dir" && as_dir=.
1183 echo "PATH: $as_dir"
1198 # Keep a trace of the command line.
1199 # Strip out --no-create and --no-recursion so they do not pile up.
1200 # Strip out --silent because we don't want to record it for future runs.
1201 # Also quote any args containing shell meta-characters.
1202 # Make two passes to allow for proper duplicate-argument suppression.
1207 ac_must_keep_next=false
1213 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1214 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215 | -silent | --silent | --silen | --sile | --sil)
1217 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1218 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1223 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1224 if test $ac_must_keep_next = true; then
1225 ac_must_keep_next=false # Got value, back to normal.
1228 *=* | --config-cache | -C | -disable-* | --disable-* \
1229 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1230 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1231 | -with-* | --with-* | -without-* | --without-* | --x)
1232 case "$ac_configure_args0 " in
1233 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236 -* ) ac_must_keep_next=true ;;
1239 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1240 # Get rid of the leading space.
1246 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1247 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1249 # When interrupted or exit'd, cleanup temporary files, and complete
1250 # config.log. We remove comments because anyway the quotes in there
1251 # would cause problems or look ugly.
1252 # WARNING: Be sure not to use single quotes in there, as some shells,
1253 # such as our DU 5.0 friend, will then `close' the trap.
1254 trap 'exit_status=$?
1255 # Save into config.log some information that might help in debugging.
1260 ## ---------------- ##
1261 ## Cache variables. ##
1262 ## ---------------- ##
1265 # The following way of writing the cache mishandles newlines in values,
1268 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1272 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1276 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1283 ## ----------------- ##
1284 ## Output variables. ##
1285 ## ----------------- ##
1288 for ac_var in $ac_subst_vars
1290 eval ac_val=$`echo $ac_var`
1291 echo "$ac_var='"'"'$ac_val'"'"'"
1295 if test -n "$ac_subst_files"; then
1302 for ac_var in $ac_subst_files
1304 eval ac_val=$`echo $ac_var`
1305 echo "$ac_var='"'"'$ac_val'"'"'"
1310 if test -s confdefs.h; then
1317 sed "/^$/d" confdefs.h | sort
1320 test "$ac_signal" != 0 &&
1321 echo "$as_me: caught signal $ac_signal"
1322 echo "$as_me: exit $exit_status"
1324 rm -f core *.core &&
1325 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328 for ac_signal in 1 2 13 15; do
1329 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1333 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1334 rm -rf conftest* confdefs.h
1335 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338 # Predefined preprocessor variables.
1340 cat >>confdefs.h <<_ACEOF
1341 #define PACKAGE_NAME "$PACKAGE_NAME"
1345 cat >>confdefs.h <<_ACEOF
1346 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1350 cat >>confdefs.h <<_ACEOF
1351 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1355 cat >>confdefs.h <<_ACEOF
1356 #define PACKAGE_STRING "$PACKAGE_STRING"
1360 cat >>confdefs.h <<_ACEOF
1361 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1365 # Let the site file select an alternate cache file if it wants to.
1366 # Prefer explicitly selected file to automatically selected ones.
1367 if test -z "$CONFIG_SITE"; then
1368 if test "x$prefix" != xNONE; then
1369 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1371 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374 for ac_site_file in $CONFIG_SITE; do
1375 if test -r "$ac_site_file"; then
1376 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1377 echo "$as_me: loading site script $ac_site_file" >&6;}
1378 sed 's/^/| /' "$ac_site_file" >&5
1383 if test -r "$cache_file"; then
1384 # Some versions of bash will fail to source /dev/null (special
1385 # files actually), so we avoid doing that.
1386 if test -f "$cache_file"; then
1387 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1388 echo "$as_me: loading cache $cache_file" >&6;}
1390 [\\/]* | ?:[\\/]* ) . $cache_file;;
1391 *) . ./$cache_file;;
1395 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1396 echo "$as_me: creating cache $cache_file" >&6;}
1400 # Check that the precious variables saved in the cache have kept the same
1402 ac_cache_corrupted=false
1403 for ac_var in `(set) 2>&1 |
1404 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1405 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1406 eval ac_new_set=\$ac_env_${ac_var}_set
1407 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1408 eval ac_new_val="\$ac_env_${ac_var}_value"
1409 case $ac_old_set,$ac_new_set in
1411 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1412 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1413 ac_cache_corrupted=: ;;
1415 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1416 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1417 ac_cache_corrupted=: ;;
1420 if test "x$ac_old_val" != "x$ac_new_val"; then
1421 # differences in whitespace do not lead to failure.
1422 ac_old_val_w=`echo x $ac_old_val`
1423 ac_new_val_w=`echo x $ac_new_val`
1424 if test "$ac_old_val_w" != "$ac_new_val_w"; 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 ac_cache_corrupted=:
1429 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1430 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1431 eval $ac_var=\$ac_old_val
1433 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1434 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1435 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1436 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1439 # Pass precious variables to config.status.
1440 if test "$ac_new_set" = set; then
1442 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1443 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1444 *) ac_arg=$ac_var=$ac_new_val ;;
1446 case " $ac_configure_args " in
1447 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1448 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1452 if $ac_cache_corrupted; then
1453 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1454 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1455 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1456 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1457 { (exit 1); exit 1; }; }
1461 ac_cpp='$CPP $CPPFLAGS'
1462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1486 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1487 if test -f $ac_dir/install-sh; then
1489 ac_install_sh="$ac_aux_dir/install-sh -c"
1491 elif test -f $ac_dir/install.sh; then
1493 ac_install_sh="$ac_aux_dir/install.sh -c"
1495 elif test -f $ac_dir/shtool; then
1497 ac_install_sh="$ac_aux_dir/shtool install -c"
1501 if test -z "$ac_aux_dir"; then
1502 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1503 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1504 { (exit 1); exit 1; }; }
1506 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1507 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1508 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1510 # Make sure we can run config.sub.
1511 $ac_config_sub sun4 >/dev/null 2>&1 ||
1512 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1513 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1514 { (exit 1); exit 1; }; }
1516 echo "$as_me:$LINENO: checking build system type" >&5
1517 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1518 if test "${ac_cv_build+set}" = set; then
1519 echo $ECHO_N "(cached) $ECHO_C" >&6
1521 ac_cv_build_alias=$build_alias
1522 test -z "$ac_cv_build_alias" &&
1523 ac_cv_build_alias=`$ac_config_guess`
1524 test -z "$ac_cv_build_alias" &&
1525 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1526 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1527 { (exit 1); exit 1; }; }
1528 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1529 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1530 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1531 { (exit 1); exit 1; }; }
1534 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1535 echo "${ECHO_T}$ac_cv_build" >&6
1537 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1538 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1539 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1542 echo "$as_me:$LINENO: checking host system type" >&5
1543 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1544 if test "${ac_cv_host+set}" = set; then
1545 echo $ECHO_N "(cached) $ECHO_C" >&6
1547 ac_cv_host_alias=$host_alias
1548 test -z "$ac_cv_host_alias" &&
1549 ac_cv_host_alias=$ac_cv_build_alias
1550 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1551 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1552 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1553 { (exit 1); exit 1; }; }
1556 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1557 echo "${ECHO_T}$ac_cv_host" >&6
1559 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1560 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1561 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1564 echo "$as_me:$LINENO: checking target system type" >&5
1565 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1566 if test "${ac_cv_target+set}" = set; then
1567 echo $ECHO_N "(cached) $ECHO_C" >&6
1569 ac_cv_target_alias=$target_alias
1570 test "x$ac_cv_target_alias" = "x" &&
1571 ac_cv_target_alias=$ac_cv_host_alias
1572 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1573 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1574 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1575 { (exit 1); exit 1; }; }
1578 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1579 echo "${ECHO_T}$ac_cv_target" >&6
1580 target=$ac_cv_target
1581 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1582 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1583 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1586 # The aliases save the names the user supplied, while $host etc.
1587 # will get canonicalized.
1588 test -n "$target_alias" &&
1589 test "$program_prefix$program_suffix$program_transform_name" = \
1591 program_prefix=${target_alias}-
1593 ac_cpp='$CPP $CPPFLAGS'
1594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1597 if test -n "$ac_tool_prefix"; then
1598 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1599 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1600 echo "$as_me:$LINENO: checking for $ac_word" >&5
1601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1602 if test "${ac_cv_prog_CC+set}" = set; then
1603 echo $ECHO_N "(cached) $ECHO_C" >&6
1605 if test -n "$CC"; then
1606 ac_cv_prog_CC="$CC" # Let the user override the test.
1608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612 test -z "$as_dir" && as_dir=.
1613 for ac_exec_ext in '' $ac_executable_extensions; do
1614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1615 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1625 if test -n "$CC"; then
1626 echo "$as_me:$LINENO: result: $CC" >&5
1627 echo "${ECHO_T}$CC" >&6
1629 echo "$as_me:$LINENO: result: no" >&5
1630 echo "${ECHO_T}no" >&6
1634 if test -z "$ac_cv_prog_CC"; then
1636 # Extract the first word of "gcc", so it can be a program name with args.
1637 set dummy gcc; ac_word=$2
1638 echo "$as_me:$LINENO: checking for $ac_word" >&5
1639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1640 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1641 echo $ECHO_N "(cached) $ECHO_C" >&6
1643 if test -n "$ac_ct_CC"; then
1644 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650 test -z "$as_dir" && as_dir=.
1651 for ac_exec_ext in '' $ac_executable_extensions; do
1652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1653 ac_cv_prog_ac_ct_CC="gcc"
1654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1662 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1663 if test -n "$ac_ct_CC"; then
1664 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1665 echo "${ECHO_T}$ac_ct_CC" >&6
1667 echo "$as_me:$LINENO: result: no" >&5
1668 echo "${ECHO_T}no" >&6
1676 if test -z "$CC"; then
1677 if test -n "$ac_tool_prefix"; then
1678 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1679 set dummy ${ac_tool_prefix}cc; ac_word=$2
1680 echo "$as_me:$LINENO: checking for $ac_word" >&5
1681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1682 if test "${ac_cv_prog_CC+set}" = set; then
1683 echo $ECHO_N "(cached) $ECHO_C" >&6
1685 if test -n "$CC"; then
1686 ac_cv_prog_CC="$CC" # Let the user override the test.
1688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1692 test -z "$as_dir" && as_dir=.
1693 for ac_exec_ext in '' $ac_executable_extensions; do
1694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1695 ac_cv_prog_CC="${ac_tool_prefix}cc"
1696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1705 if test -n "$CC"; then
1706 echo "$as_me:$LINENO: result: $CC" >&5
1707 echo "${ECHO_T}$CC" >&6
1709 echo "$as_me:$LINENO: result: no" >&5
1710 echo "${ECHO_T}no" >&6
1714 if test -z "$ac_cv_prog_CC"; then
1716 # Extract the first word of "cc", so it can be a program name with args.
1717 set dummy cc; ac_word=$2
1718 echo "$as_me:$LINENO: checking for $ac_word" >&5
1719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1720 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1721 echo $ECHO_N "(cached) $ECHO_C" >&6
1723 if test -n "$ac_ct_CC"; then
1724 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1730 test -z "$as_dir" && as_dir=.
1731 for ac_exec_ext in '' $ac_executable_extensions; do
1732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1733 ac_cv_prog_ac_ct_CC="cc"
1734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1742 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1743 if test -n "$ac_ct_CC"; then
1744 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1745 echo "${ECHO_T}$ac_ct_CC" >&6
1747 echo "$as_me:$LINENO: result: no" >&5
1748 echo "${ECHO_T}no" >&6
1757 if test -z "$CC"; then
1758 # Extract the first word of "cc", so it can be a program name with args.
1759 set dummy cc; ac_word=$2
1760 echo "$as_me:$LINENO: checking for $ac_word" >&5
1761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1762 if test "${ac_cv_prog_CC+set}" = set; then
1763 echo $ECHO_N "(cached) $ECHO_C" >&6
1765 if test -n "$CC"; then
1766 ac_cv_prog_CC="$CC" # Let the user override the test.
1769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1773 test -z "$as_dir" && as_dir=.
1774 for ac_exec_ext in '' $ac_executable_extensions; do
1775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1776 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1777 ac_prog_rejected=yes
1781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1787 if test $ac_prog_rejected = yes; then
1788 # We found a bogon in the path, so make sure we never use it.
1789 set dummy $ac_cv_prog_CC
1791 if test $# != 0; then
1792 # We chose a different compiler from the bogus one.
1793 # However, it has the same basename, so the bogon will be chosen
1794 # first if we set CC to just the basename; use the full file name.
1796 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1802 if test -n "$CC"; then
1803 echo "$as_me:$LINENO: result: $CC" >&5
1804 echo "${ECHO_T}$CC" >&6
1806 echo "$as_me:$LINENO: result: no" >&5
1807 echo "${ECHO_T}no" >&6
1811 if test -z "$CC"; then
1812 if test -n "$ac_tool_prefix"; then
1815 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1816 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1817 echo "$as_me:$LINENO: checking for $ac_word" >&5
1818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1819 if test "${ac_cv_prog_CC+set}" = set; then
1820 echo $ECHO_N "(cached) $ECHO_C" >&6
1822 if test -n "$CC"; then
1823 ac_cv_prog_CC="$CC" # Let the user override the test.
1825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1829 test -z "$as_dir" && as_dir=.
1830 for ac_exec_ext in '' $ac_executable_extensions; do
1831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1832 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1842 if test -n "$CC"; then
1843 echo "$as_me:$LINENO: result: $CC" >&5
1844 echo "${ECHO_T}$CC" >&6
1846 echo "$as_me:$LINENO: result: no" >&5
1847 echo "${ECHO_T}no" >&6
1850 test -n "$CC" && break
1853 if test -z "$CC"; then
1857 # Extract the first word of "$ac_prog", so it can be a program name with args.
1858 set dummy $ac_prog; ac_word=$2
1859 echo "$as_me:$LINENO: checking for $ac_word" >&5
1860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1861 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1862 echo $ECHO_N "(cached) $ECHO_C" >&6
1864 if test -n "$ac_ct_CC"; then
1865 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1871 test -z "$as_dir" && as_dir=.
1872 for ac_exec_ext in '' $ac_executable_extensions; do
1873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1874 ac_cv_prog_ac_ct_CC="$ac_prog"
1875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1883 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1884 if test -n "$ac_ct_CC"; then
1885 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1886 echo "${ECHO_T}$ac_ct_CC" >&6
1888 echo "$as_me:$LINENO: result: no" >&5
1889 echo "${ECHO_T}no" >&6
1892 test -n "$ac_ct_CC" && break
1901 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1902 See \`config.log' for more details." >&5
1903 echo "$as_me: error: no acceptable C compiler found in \$PATH
1904 See \`config.log' for more details." >&2;}
1905 { (exit 1); exit 1; }; }
1907 # Provide some information about the compiler.
1908 echo "$as_me:$LINENO:" \
1909 "checking for C compiler version" >&5
1910 ac_compiler=`set X $ac_compile; echo $2`
1911 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1912 (eval $ac_compiler --version </dev/null >&5) 2>&5
1914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1915 (exit $ac_status); }
1916 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1917 (eval $ac_compiler -v </dev/null >&5) 2>&5
1919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1920 (exit $ac_status); }
1921 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1922 (eval $ac_compiler -V </dev/null >&5) 2>&5
1924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925 (exit $ac_status); }
1927 cat >conftest.$ac_ext <<_ACEOF
1930 cat confdefs.h >>conftest.$ac_ext
1931 cat >>conftest.$ac_ext <<_ACEOF
1932 /* end confdefs.h. */
1942 ac_clean_files_save=$ac_clean_files
1943 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1944 # Try to create an executable without -o first, disregard a.out.
1945 # It will help us diagnose broken compilers, and finding out an intuition
1947 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1948 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1949 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1950 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1951 (eval $ac_link_default) 2>&5
1953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1954 (exit $ac_status); }; then
1955 # Find the output, starting from the most likely. This scheme is
1956 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1959 # Be careful to initialize this variable, since it used to be cached.
1960 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1962 # b.out is created by i960 compilers.
1963 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1965 test -f "$ac_file" || continue
1967 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1970 # This is the source file.
1973 # We found the default executable, but exeext='' is most
1977 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1978 # FIXME: I believe we export ac_cv_exeext for Libtool,
1979 # but it would be cool to find out if it's true. Does anybody
1980 # maintain Libtool? --akim.
1988 echo "$as_me: failed program was:" >&5
1989 sed 's/^/| /' conftest.$ac_ext >&5
1991 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1992 See \`config.log' for more details." >&5
1993 echo "$as_me: error: C compiler cannot create executables
1994 See \`config.log' for more details." >&2;}
1995 { (exit 77); exit 77; }; }
1998 ac_exeext=$ac_cv_exeext
1999 echo "$as_me:$LINENO: result: $ac_file" >&5
2000 echo "${ECHO_T}$ac_file" >&6
2002 # Check the compiler produces executables we can run. If not, either
2003 # the compiler is broken, or we cross compile.
2004 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2005 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2006 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2007 # If not cross compiling, check that we can run a simple program.
2008 if test "$cross_compiling" != yes; then
2009 if { ac_try='./$ac_file'
2010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014 (exit $ac_status); }; }; then
2017 if test "$cross_compiling" = maybe; then
2020 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2021 If you meant to cross compile, use \`--host'.
2022 See \`config.log' for more details." >&5
2023 echo "$as_me: error: cannot run C compiled programs.
2024 If you meant to cross compile, use \`--host'.
2025 See \`config.log' for more details." >&2;}
2026 { (exit 1); exit 1; }; }
2030 echo "$as_me:$LINENO: result: yes" >&5
2031 echo "${ECHO_T}yes" >&6
2033 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2034 ac_clean_files=$ac_clean_files_save
2035 # Check the compiler produces executables we can run. If not, either
2036 # the compiler is broken, or we cross compile.
2037 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2038 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2039 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2040 echo "${ECHO_T}$cross_compiling" >&6
2042 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2043 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2045 (eval $ac_link) 2>&5
2047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048 (exit $ac_status); }; then
2049 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2050 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2051 # work properly (i.e., refer to `conftest.exe'), while it won't with
2053 for ac_file in conftest.exe conftest conftest.*; do
2054 test -f "$ac_file" || continue
2056 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2057 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2064 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2065 See \`config.log' for more details." >&5
2066 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2067 See \`config.log' for more details." >&2;}
2068 { (exit 1); exit 1; }; }
2071 rm -f conftest$ac_cv_exeext
2072 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2073 echo "${ECHO_T}$ac_cv_exeext" >&6
2075 rm -f conftest.$ac_ext
2076 EXEEXT=$ac_cv_exeext
2078 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2079 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2080 if test "${ac_cv_objext+set}" = set; then
2081 echo $ECHO_N "(cached) $ECHO_C" >&6
2083 cat >conftest.$ac_ext <<_ACEOF
2086 cat confdefs.h >>conftest.$ac_ext
2087 cat >>conftest.$ac_ext <<_ACEOF
2088 /* end confdefs.h. */
2098 rm -f conftest.o conftest.obj
2099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2100 (eval $ac_compile) 2>&5
2102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103 (exit $ac_status); }; then
2104 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2106 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2107 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2112 echo "$as_me: failed program was:" >&5
2113 sed 's/^/| /' conftest.$ac_ext >&5
2115 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2116 See \`config.log' for more details." >&5
2117 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2118 See \`config.log' for more details." >&2;}
2119 { (exit 1); exit 1; }; }
2122 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2124 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2125 echo "${ECHO_T}$ac_cv_objext" >&6
2126 OBJEXT=$ac_cv_objext
2128 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2129 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2130 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2133 cat >conftest.$ac_ext <<_ACEOF
2136 cat confdefs.h >>conftest.$ac_ext
2137 cat >>conftest.$ac_ext <<_ACEOF
2138 /* end confdefs.h. */
2151 rm -f conftest.$ac_objext
2152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2153 (eval $ac_compile) 2>conftest.er1
2155 grep -v '^ *+' conftest.er1 >conftest.err
2157 cat conftest.err >&5
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); } &&
2160 { ac_try='test -z "$ac_c_werror_flag"
2161 || test ! -s conftest.err'
2162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166 (exit $ac_status); }; } &&
2167 { ac_try='test -s conftest.$ac_objext'
2168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }; }; then
2175 echo "$as_me: failed program was:" >&5
2176 sed 's/^/| /' conftest.$ac_ext >&5
2180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2181 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2184 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2185 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2186 GCC=`test $ac_compiler_gnu = yes && echo yes`
2187 ac_test_CFLAGS=${CFLAGS+set}
2188 ac_save_CFLAGS=$CFLAGS
2190 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2191 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2192 if test "${ac_cv_prog_cc_g+set}" = set; then
2193 echo $ECHO_N "(cached) $ECHO_C" >&6
2195 cat >conftest.$ac_ext <<_ACEOF
2198 cat confdefs.h >>conftest.$ac_ext
2199 cat >>conftest.$ac_ext <<_ACEOF
2200 /* end confdefs.h. */
2210 rm -f conftest.$ac_objext
2211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2212 (eval $ac_compile) 2>conftest.er1
2214 grep -v '^ *+' conftest.er1 >conftest.err
2216 cat conftest.err >&5
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); } &&
2219 { ac_try='test -z "$ac_c_werror_flag"
2220 || test ! -s conftest.err'
2221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225 (exit $ac_status); }; } &&
2226 { ac_try='test -s conftest.$ac_objext'
2227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); }; }; then
2234 echo "$as_me: failed program was:" >&5
2235 sed 's/^/| /' conftest.$ac_ext >&5
2239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2241 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2242 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2243 if test "$ac_test_CFLAGS" = set; then
2244 CFLAGS=$ac_save_CFLAGS
2245 elif test $ac_cv_prog_cc_g = yes; then
2246 if test "$GCC" = yes; then
2252 if test "$GCC" = yes; then
2258 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2259 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2260 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2261 echo $ECHO_N "(cached) $ECHO_C" >&6
2263 ac_cv_prog_cc_stdc=no
2265 cat >conftest.$ac_ext <<_ACEOF
2268 cat confdefs.h >>conftest.$ac_ext
2269 cat >>conftest.$ac_ext <<_ACEOF
2270 /* end confdefs.h. */
2273 #include <sys/types.h>
2274 #include <sys/stat.h>
2275 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2276 struct buf { int x; };
2277 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2278 static char *e (p, i)
2284 static char *f (char * (*g) (char **, int), char **p, ...)
2289 s = g (p, va_arg (v,int));
2294 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2295 function prototypes and stuff, but not '\xHH' hex character constants.
2296 These don't provoke an error unfortunately, instead are silently treated
2297 as 'x'. The following induces an error, until -std1 is added to get
2298 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2299 array size at least. It's necessary to write '\x00'==0 to get something
2300 that's true only with -std1. */
2301 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2303 int test (int i, double x);
2304 struct s1 {int (*f) (int a);};
2305 struct s2 {int (*f) (double a);};
2306 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2312 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2317 # Don't try gcc -ansi; that turns off useful extensions and
2318 # breaks some systems' header files.
2319 # AIX -qlanglvl=ansi
2320 # Ultrix and OSF/1 -std1
2321 # HP-UX 10.20 and later -Ae
2322 # HP-UX older versions -Aa -D_HPUX_SOURCE
2323 # SVR4 -Xc -D__EXTENSIONS__
2324 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2326 CC="$ac_save_CC $ac_arg"
2327 rm -f conftest.$ac_objext
2328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2329 (eval $ac_compile) 2>conftest.er1
2331 grep -v '^ *+' conftest.er1 >conftest.err
2333 cat conftest.err >&5
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); } &&
2336 { ac_try='test -z "$ac_c_werror_flag"
2337 || test ! -s conftest.err'
2338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342 (exit $ac_status); }; } &&
2343 { ac_try='test -s conftest.$ac_objext'
2344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); }; }; then
2349 ac_cv_prog_cc_stdc=$ac_arg
2352 echo "$as_me: failed program was:" >&5
2353 sed 's/^/| /' conftest.$ac_ext >&5
2356 rm -f conftest.err conftest.$ac_objext
2358 rm -f conftest.$ac_ext conftest.$ac_objext
2363 case "x$ac_cv_prog_cc_stdc" in
2365 echo "$as_me:$LINENO: result: none needed" >&5
2366 echo "${ECHO_T}none needed" >&6 ;;
2368 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2369 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2370 CC="$CC $ac_cv_prog_cc_stdc" ;;
2373 # Some people use a C++ compiler to compile C. Since we use `exit',
2374 # in C++ we need to declare it. In case someone uses the same compiler
2375 # for both compiling C and C++ we need to have the C++ compiler decide
2376 # the declaration of exit, since it's the most demanding environment.
2377 cat >conftest.$ac_ext <<_ACEOF
2382 rm -f conftest.$ac_objext
2383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2384 (eval $ac_compile) 2>conftest.er1
2386 grep -v '^ *+' conftest.er1 >conftest.err
2388 cat conftest.err >&5
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); } &&
2391 { ac_try='test -z "$ac_c_werror_flag"
2392 || test ! -s conftest.err'
2393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; } &&
2398 { ac_try='test -s conftest.$ac_objext'
2399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); }; }; then
2404 for ac_declaration in \
2406 'extern "C" void std::exit (int) throw (); using std::exit;' \
2407 'extern "C" void std::exit (int); using std::exit;' \
2408 'extern "C" void exit (int) throw ();' \
2409 'extern "C" void exit (int);' \
2412 cat >conftest.$ac_ext <<_ACEOF
2415 cat confdefs.h >>conftest.$ac_ext
2416 cat >>conftest.$ac_ext <<_ACEOF
2417 /* end confdefs.h. */
2428 rm -f conftest.$ac_objext
2429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2430 (eval $ac_compile) 2>conftest.er1
2432 grep -v '^ *+' conftest.er1 >conftest.err
2434 cat conftest.err >&5
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); } &&
2437 { ac_try='test -z "$ac_c_werror_flag"
2438 || test ! -s conftest.err'
2439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); }; } &&
2444 { ac_try='test -s conftest.$ac_objext'
2445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }; }; then
2452 echo "$as_me: failed program was:" >&5
2453 sed 's/^/| /' conftest.$ac_ext >&5
2457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2458 cat >conftest.$ac_ext <<_ACEOF
2461 cat confdefs.h >>conftest.$ac_ext
2462 cat >>conftest.$ac_ext <<_ACEOF
2463 /* end confdefs.h. */
2473 rm -f conftest.$ac_objext
2474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2475 (eval $ac_compile) 2>conftest.er1
2477 grep -v '^ *+' conftest.er1 >conftest.err
2479 cat conftest.err >&5
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); } &&
2482 { ac_try='test -z "$ac_c_werror_flag"
2483 || test ! -s conftest.err'
2484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); }; } &&
2489 { ac_try='test -s conftest.$ac_objext'
2490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }; }; then
2497 echo "$as_me: failed program was:" >&5
2498 sed 's/^/| /' conftest.$ac_ext >&5
2501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2504 if test -n "$ac_declaration"; then
2505 echo '#ifdef __cplusplus' >>confdefs.h
2506 echo $ac_declaration >>confdefs.h
2507 echo '#endif' >>confdefs.h
2511 echo "$as_me: failed program was:" >&5
2512 sed 's/^/| /' conftest.$ac_ext >&5
2515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2517 ac_cpp='$CPP $CPPFLAGS'
2518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2523 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2524 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2525 if test "${ac_cv_search_strerror+set}" = set; then
2526 echo $ECHO_N "(cached) $ECHO_C" >&6
2528 ac_func_search_save_LIBS=$LIBS
2529 ac_cv_search_strerror=no
2530 cat >conftest.$ac_ext <<_ACEOF
2533 cat confdefs.h >>conftest.$ac_ext
2534 cat >>conftest.$ac_ext <<_ACEOF
2535 /* end confdefs.h. */
2537 /* Override any gcc2 internal prototype to avoid an error. */
2541 /* We use char because int might match the return type of a gcc2
2542 builtin and then its argument prototype would still apply. */
2552 rm -f conftest.$ac_objext conftest$ac_exeext
2553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2554 (eval $ac_link) 2>conftest.er1
2556 grep -v '^ *+' conftest.er1 >conftest.err
2558 cat conftest.err >&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); } &&
2561 { ac_try='test -z "$ac_c_werror_flag"
2562 || test ! -s conftest.err'
2563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }; } &&
2568 { ac_try='test -s conftest$ac_exeext'
2569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); }; }; then
2574 ac_cv_search_strerror="none required"
2576 echo "$as_me: failed program was:" >&5
2577 sed 's/^/| /' conftest.$ac_ext >&5
2580 rm -f conftest.err conftest.$ac_objext \
2581 conftest$ac_exeext conftest.$ac_ext
2582 if test "$ac_cv_search_strerror" = no; then
2583 for ac_lib in cposix; do
2584 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2585 cat >conftest.$ac_ext <<_ACEOF
2588 cat confdefs.h >>conftest.$ac_ext
2589 cat >>conftest.$ac_ext <<_ACEOF
2590 /* end confdefs.h. */
2592 /* Override any gcc2 internal prototype to avoid an error. */
2596 /* We use char because int might match the return type of a gcc2
2597 builtin and then its argument prototype would still apply. */
2607 rm -f conftest.$ac_objext conftest$ac_exeext
2608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2609 (eval $ac_link) 2>conftest.er1
2611 grep -v '^ *+' conftest.er1 >conftest.err
2613 cat conftest.err >&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); } &&
2616 { ac_try='test -z "$ac_c_werror_flag"
2617 || test ! -s conftest.err'
2618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; } &&
2623 { ac_try='test -s conftest$ac_exeext'
2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; }; then
2629 ac_cv_search_strerror="-l$ac_lib"
2632 echo "$as_me: failed program was:" >&5
2633 sed 's/^/| /' conftest.$ac_ext >&5
2636 rm -f conftest.err conftest.$ac_objext \
2637 conftest$ac_exeext conftest.$ac_ext
2640 LIBS=$ac_func_search_save_LIBS
2642 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2643 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2644 if test "$ac_cv_search_strerror" != no; then
2645 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2650 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2651 am__api_version="1.9"
2652 # Find a good install program. We prefer a C program (faster),
2653 # so one script is as good as another. But avoid the broken or
2654 # incompatible versions:
2655 # SysV /etc/install, /usr/sbin/install
2656 # SunOS /usr/etc/install
2657 # IRIX /sbin/install
2659 # AmigaOS /C/install, which installs bootblocks on floppy discs
2660 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2661 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2662 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2663 # OS/2's system install, which has a completely different semantic
2664 # ./install, which can be erroneously created by make from ./install.sh.
2665 # Reject install programs that cannot install multiple files.
2666 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2667 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2668 if test -z "$INSTALL"; then
2669 if test "${ac_cv_path_install+set}" = set; then
2670 echo $ECHO_N "(cached) $ECHO_C" >&6
2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676 test -z "$as_dir" && as_dir=.
2677 # Account for people who put trailing slashes in PATH elements.
2679 ./ | .// | /cC/* | \
2680 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2681 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2684 # OSF1 and SCO ODT 3.0 have their own names for install.
2685 # Don't use installbsd from OSF since it installs stuff as root
2687 for ac_prog in ginstall scoinst install; do
2688 for ac_exec_ext in '' $ac_executable_extensions; do
2689 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2690 if test $ac_prog = install &&
2691 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2692 # AIX install. It has an incompatible calling convention.
2694 elif test $ac_prog = install &&
2695 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2696 # program-specific install script used by HP pwplus--don't use.
2699 rm -rf conftest.one conftest.two conftest.dir
2700 echo one > conftest.one
2701 echo two > conftest.two
2703 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2704 test -s conftest.one && test -s conftest.two &&
2705 test -s conftest.dir/conftest.one &&
2706 test -s conftest.dir/conftest.two
2708 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2719 rm -rf conftest.one conftest.two conftest.dir
2722 if test "${ac_cv_path_install+set}" = set; then
2723 INSTALL=$ac_cv_path_install
2725 # As a last resort, use the slow shell script. Don't cache a
2726 # value for INSTALL within a source directory, because that will
2727 # break other packages using the cache if that directory is
2728 # removed, or if the value is a relative name.
2729 INSTALL=$ac_install_sh
2732 echo "$as_me:$LINENO: result: $INSTALL" >&5
2733 echo "${ECHO_T}$INSTALL" >&6
2735 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2736 # It thinks the first close brace ends the variable substitution.
2737 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2739 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2741 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2743 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2744 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2747 echo timestamp > conftest.file
2748 # Do `set' in a subshell so we don't clobber the current shell's
2749 # arguments. Must try -L first in case configure is actually a
2750 # symlink; some systems play weird games with the mod time of symlinks
2751 # (eg FreeBSD returns the mod time of the symlink's containing
2754 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2755 if test "$*" = "X"; then
2757 set X `ls -t $srcdir/configure conftest.file`
2760 if test "$*" != "X $srcdir/configure conftest.file" \
2761 && test "$*" != "X conftest.file $srcdir/configure"; then
2763 # If neither matched, then we have a broken ls. This can happen
2764 # if, for instance, CONFIG_SHELL is bash and it inherits a
2765 # broken ls alias from the environment. This has actually
2766 # happened. Such a system could not be considered "sane".
2767 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2768 alias in your environment" >&5
2769 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2770 alias in your environment" >&2;}
2771 { (exit 1); exit 1; }; }
2774 test "$2" = conftest.file
2780 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2781 Check your system clock" >&5
2782 echo "$as_me: error: newly created file is older than distributed files!
2783 Check your system clock" >&2;}
2784 { (exit 1); exit 1; }; }
2786 echo "$as_me:$LINENO: result: yes" >&5
2787 echo "${ECHO_T}yes" >&6
2788 test "$program_prefix" != NONE &&
2789 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2790 # Use a double $ so make ignores it.
2791 test "$program_suffix" != NONE &&
2792 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2793 # Double any \ or $. echo might interpret backslashes.
2794 # By default was `s,x,x', remove it if useless.
2795 cat <<\_ACEOF >conftest.sed
2796 s/[\\$]/&&/g;s/;s,x,x,$//
2798 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2801 # expand $ac_aux_dir to an absolute path
2802 am_aux_dir=`cd $ac_aux_dir && pwd`
2804 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2805 # Use eval to expand $SHELL
2806 if eval "$MISSING --run true"; then
2807 am_missing_run="$MISSING --run "
2810 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2811 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2814 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2815 # We used to keeping the `.' as first argument, in order to
2816 # allow $(mkdir_p) to be used without argument. As in
2817 # $(mkdir_p) $(somedir)
2818 # where $(somedir) is conditionally defined. However this is wrong
2820 # 1. if the package is installed by a user who cannot write `.'
2821 # make install will fail,
2822 # 2. the above comment should most certainly read
2823 # $(mkdir_p) $(DESTDIR)$(somedir)
2824 # so it does not work when $(somedir) is undefined and
2825 # $(DESTDIR) is not.
2826 # To support the latter case, we have to write
2827 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2828 # so the `.' trick is pointless.
2829 mkdir_p='mkdir -p --'
2831 # On NextStep and OpenStep, the `mkdir' command does not
2832 # recognize any option. It will interpret all options as
2833 # directories to create, and then abort because `.' already
2835 for d in ./-p ./--version;
2837 test -d $d && rmdir $d
2839 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2840 if test -f "$ac_aux_dir/mkinstalldirs"; then
2841 mkdir_p='$(mkinstalldirs)'
2843 mkdir_p='$(install_sh) -d'
2847 for ac_prog in gawk mawk nawk awk
2849 # Extract the first word of "$ac_prog", so it can be a program name with args.
2850 set dummy $ac_prog; ac_word=$2
2851 echo "$as_me:$LINENO: checking for $ac_word" >&5
2852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2853 if test "${ac_cv_prog_AWK+set}" = set; then
2854 echo $ECHO_N "(cached) $ECHO_C" >&6
2856 if test -n "$AWK"; then
2857 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863 test -z "$as_dir" && as_dir=.
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2866 ac_cv_prog_AWK="$ac_prog"
2867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2876 if test -n "$AWK"; then
2877 echo "$as_me:$LINENO: result: $AWK" >&5
2878 echo "${ECHO_T}$AWK" >&6
2880 echo "$as_me:$LINENO: result: no" >&5
2881 echo "${ECHO_T}no" >&6
2884 test -n "$AWK" && break
2887 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2888 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2889 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2890 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2891 echo $ECHO_N "(cached) $ECHO_C" >&6
2893 cat >conftest.make <<\_ACEOF
2895 @echo 'ac_maketemp="$(MAKE)"'
2897 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2898 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2899 if test -n "$ac_maketemp"; then
2900 eval ac_cv_prog_make_${ac_make}_set=yes
2902 eval ac_cv_prog_make_${ac_make}_set=no
2906 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2907 echo "$as_me:$LINENO: result: yes" >&5
2908 echo "${ECHO_T}yes" >&6
2911 echo "$as_me:$LINENO: result: no" >&5
2912 echo "${ECHO_T}no" >&6
2913 SET_MAKE="MAKE=${MAKE-make}"
2916 rm -rf .tst 2>/dev/null
2917 mkdir .tst 2>/dev/null
2918 if test -d .tst; then
2923 rmdir .tst 2>/dev/null
2925 DEPDIR="${am__leading_dot}deps"
2927 ac_config_commands="$ac_config_commands depfiles"
2930 am_make=${MAKE-make}
2931 cat > confinc << 'END'
2936 # If we don't find an include directive, just comment out the code.
2937 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2938 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2942 # First try GNU make style include.
2943 echo "include confinc" > confmf
2944 # We grep out `Entering directory' and `Leaving directory'
2945 # messages which can occur if `w' ends up in MAKEFLAGS.
2946 # In particular we don't look at `^make:' because GNU make might
2947 # be invoked under some other name (usually "gmake"), in which
2948 # case it prints its new name instead of `make'.
2949 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2954 # Now try BSD make style include.
2955 if test "$am__include" = "#"; then
2956 echo '.include "confinc"' > confmf
2957 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2958 am__include=.include
2965 echo "$as_me:$LINENO: result: $_am_result" >&5
2966 echo "${ECHO_T}$_am_result" >&6
2967 rm -f confinc confmf
2969 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2970 if test "${enable_dependency_tracking+set}" = set; then
2971 enableval="$enable_dependency_tracking"
2974 if test "x$enable_dependency_tracking" != xno; then
2975 am_depcomp="$ac_aux_dir/depcomp"
2980 if test "x$enable_dependency_tracking" != xno; then
2990 # test to see if srcdir already configured
2991 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2992 test -f $srcdir/config.status; then
2993 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2994 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2995 { (exit 1); exit 1; }; }
2998 # test whether we have cygpath
2999 if test -z "$CYGPATH_W"; then
3000 if (cygpath --version) >/dev/null 2>/dev/null; then
3001 CYGPATH_W='cygpath -w'
3008 # Define the identity of the package.
3010 VERSION=${BFD_VERSION}
3013 cat >>confdefs.h <<_ACEOF
3014 #define PACKAGE "$PACKAGE"
3018 cat >>confdefs.h <<_ACEOF
3019 #define VERSION "$VERSION"
3022 # Some tools Automake needs.
3024 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3027 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3030 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3033 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3036 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3038 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3040 # Installed binaries are usually stripped using `strip' when the user
3041 # run `make install-strip'. However `strip' might not be the right
3042 # tool to use in cross-compilation environments, therefore Automake
3043 # will honor the `STRIP' environment variable to overrule this program.
3044 if test "$cross_compiling" != no; then
3045 if test -n "$ac_tool_prefix"; then
3046 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3047 set dummy ${ac_tool_prefix}strip; ac_word=$2
3048 echo "$as_me:$LINENO: checking for $ac_word" >&5
3049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3050 if test "${ac_cv_prog_STRIP+set}" = set; then
3051 echo $ECHO_N "(cached) $ECHO_C" >&6
3053 if test -n "$STRIP"; then
3054 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060 test -z "$as_dir" && as_dir=.
3061 for ac_exec_ext in '' $ac_executable_extensions; do
3062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3063 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3072 STRIP=$ac_cv_prog_STRIP
3073 if test -n "$STRIP"; then
3074 echo "$as_me:$LINENO: result: $STRIP" >&5
3075 echo "${ECHO_T}$STRIP" >&6
3077 echo "$as_me:$LINENO: result: no" >&5
3078 echo "${ECHO_T}no" >&6
3082 if test -z "$ac_cv_prog_STRIP"; then
3084 # Extract the first word of "strip", so it can be a program name with args.
3085 set dummy strip; ac_word=$2
3086 echo "$as_me:$LINENO: checking for $ac_word" >&5
3087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3088 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3089 echo $ECHO_N "(cached) $ECHO_C" >&6
3091 if test -n "$ac_ct_STRIP"; then
3092 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098 test -z "$as_dir" && as_dir=.
3099 for ac_exec_ext in '' $ac_executable_extensions; do
3100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3101 ac_cv_prog_ac_ct_STRIP="strip"
3102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3108 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3111 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3112 if test -n "$ac_ct_STRIP"; then
3113 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3114 echo "${ECHO_T}$ac_ct_STRIP" >&6
3116 echo "$as_me:$LINENO: result: no" >&5
3117 echo "${ECHO_T}no" >&6
3122 STRIP="$ac_cv_prog_STRIP"
3126 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3128 # We need awk for the "check" target. The system "awk" is bad on
3130 # Always define AMTAR for backward compatibility.
3132 AMTAR=${AMTAR-"${am_missing_run}tar"}
3134 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3139 depcc="$CC" am_compiler_list=
3141 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3142 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3143 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3144 echo $ECHO_N "(cached) $ECHO_C" >&6
3146 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3147 # We make a subdir and do the tests there. Otherwise we can end up
3148 # making bogus files that we don't know about and never remove. For
3149 # instance it was reported that on HP-UX the gcc test will end up
3150 # making a dummy file named `D' -- because `-MD' means `put the output
3153 # Copy depcomp to subdir because otherwise we won't find it if we're
3154 # using a relative directory.
3155 cp "$am_depcomp" conftest.dir
3157 # We will build objects and dependencies in a subdirectory because
3158 # it helps to detect inapplicable dependency modes. For instance
3159 # both Tru64's cc and ICC support -MD to output dependencies as a
3160 # side effect of compilation, but ICC will put the dependencies in
3161 # the current directory while Tru64 will put them in the object
3165 am_cv_CC_dependencies_compiler_type=none
3166 if test "$am_compiler_list" = ""; then
3167 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3169 for depmode in $am_compiler_list; do
3170 # Setup a source with many dependencies, because some compilers
3171 # like to wrap large dependency lists on column 80 (with \), and
3172 # we should not choose a depcomp mode which is confused by this.
3174 # We need to recreate these files for each test, as the compiler may
3175 # overwrite some of them when testing with obscure command lines.
3176 # This happens at least with the AIX C compiler.
3178 for i in 1 2 3 4 5 6; do
3179 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3180 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3181 # Solaris 8's {/usr,}/bin/sh.
3182 touch sub/conftst$i.h
3184 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3188 # after this tag, mechanisms are not by side-effect, so they'll
3189 # only be used when explicitly requested
3190 if test "x$enable_dependency_tracking" = xyes; then
3198 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3199 # mode. It turns out that the SunPro C++ compiler does not properly
3200 # handle `-M -o', and we need to detect this.
3201 if depmode=$depmode \
3202 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3203 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3204 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3205 >/dev/null 2>conftest.err &&
3206 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3207 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3208 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3209 # icc doesn't choke on unknown options, it will just issue warnings
3210 # or remarks (even with -Werror). So we grep stderr for any message
3211 # that says an option was ignored or not supported.
3212 # When given -MP, icc 7.0 and 7.1 complain thusly:
3213 # icc: Command line warning: ignoring option '-M'; no argument required
3214 # The diagnosis changed in icc 8.0:
3215 # icc: Command line remark: option '-MP' not supported
3216 if (grep 'ignoring option' conftest.err ||
3217 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3218 am_cv_CC_dependencies_compiler_type=$depmode
3227 am_cv_CC_dependencies_compiler_type=none
3231 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3232 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3233 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3238 test "x$enable_dependency_tracking" != xno \
3239 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3241 am__fastdepCC_FALSE='#'
3243 am__fastdepCC_TRUE='#'
3244 am__fastdepCC_FALSE=
3251 # Check whether --with-lib-path or --without-lib-path was given.
3252 if test "${with_lib_path+set}" = set; then
3253 withval="$with_lib_path"
3256 # Check whether --enable-targets or --disable-targets was given.
3257 if test "${enable_targets+set}" = set; then
3258 enableval="$enable_targets"
3259 case "${enableval}" in
3260 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
3261 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
3262 { (exit 1); exit 1; }; }
3264 no) enable_targets= ;;
3265 *) enable_targets=$enableval ;;
3267 fi; # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
3268 if test "${enable_64_bit_bfd+set}" = set; then
3269 enableval="$enable_64_bit_bfd"
3270 case "${enableval}" in
3273 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
3274 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
3275 { (exit 1); exit 1; }; } ;;
3281 # Check whether --with-sysroot or --without-sysroot was given.
3282 if test "${with_sysroot+set}" = set; then
3283 withval="$with_sysroot"
3285 case ${with_sysroot} in
3286 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
3287 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3290 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3293 if test "x$prefix" = xNONE; then
3294 test_prefix=/usr/local
3298 if test "x$exec_prefix" = xNONE; then
3299 test_exec_prefix=$test_prefix
3301 test_exec_prefix=$exec_prefix
3303 case ${TARGET_SYSTEM_ROOT} in
3304 "${test_prefix}"|"${test_prefix}/"*|\
3305 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3306 '${prefix}'|'${prefix}/'*|\
3307 '${exec_prefix}'|'${exec_prefix}/'*)
3308 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3309 TARGET_SYSTEM_ROOT_DEFINE="$t"
3317 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
3325 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
3327 # Check whether --enable-werror or --disable-werror was given.
3328 if test "${enable_werror+set}" = set; then
3329 enableval="$enable_werror"
3330 case "${enableval}" in
3331 yes | y) ERROR_ON_WARNING="yes" ;;
3332 no | n) ERROR_ON_WARNING="no" ;;
3333 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
3334 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
3335 { (exit 1); exit 1; }; } ;;
3339 # Enable -Wno-format by default when using gcc on mingw
3342 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
3343 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
3349 # Enable -Werror by default when using gcc
3350 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
3351 ERROR_ON_WARNING=yes
3355 if test "${ERROR_ON_WARNING}" = yes ; then
3356 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
3357 NO_WERROR="-Wno-error"
3360 if test "${GCC}" = yes ; then
3361 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
3364 # Check whether --enable-build-warnings or --disable-build-warnings was given.
3365 if test "${enable_build_warnings+set}" = set; then
3366 enableval="$enable_build_warnings"
3367 case "${enableval}" in
3368 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
3369 no) if test "${GCC}" = yes ; then
3372 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3373 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
3374 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3375 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
3376 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3380 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
3381 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
3388 ac_config_headers="$ac_config_headers config.h:config.in"
3391 if test -z "$target" ; then
3392 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
3393 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
3394 { (exit 1); exit 1; }; }
3396 if test -z "$host" ; then
3397 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
3398 echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
3399 { (exit 1); exit 1; }; }
3402 # host-specific stuff:
3405 ac_cpp='$CPP $CPPFLAGS'
3406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3409 if test -n "$ac_tool_prefix"; then
3410 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3411 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3412 echo "$as_me:$LINENO: checking for $ac_word" >&5
3413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3414 if test "${ac_cv_prog_CC+set}" = set; then
3415 echo $ECHO_N "(cached) $ECHO_C" >&6
3417 if test -n "$CC"; then
3418 ac_cv_prog_CC="$CC" # Let the user override the test.
3420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424 test -z "$as_dir" && as_dir=.
3425 for ac_exec_ext in '' $ac_executable_extensions; do
3426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3427 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3437 if test -n "$CC"; then
3438 echo "$as_me:$LINENO: result: $CC" >&5
3439 echo "${ECHO_T}$CC" >&6
3441 echo "$as_me:$LINENO: result: no" >&5
3442 echo "${ECHO_T}no" >&6
3446 if test -z "$ac_cv_prog_CC"; then
3448 # Extract the first word of "gcc", so it can be a program name with args.
3449 set dummy gcc; ac_word=$2
3450 echo "$as_me:$LINENO: checking for $ac_word" >&5
3451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3452 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3453 echo $ECHO_N "(cached) $ECHO_C" >&6
3455 if test -n "$ac_ct_CC"; then
3456 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462 test -z "$as_dir" && as_dir=.
3463 for ac_exec_ext in '' $ac_executable_extensions; do
3464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3465 ac_cv_prog_ac_ct_CC="gcc"
3466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3474 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3475 if test -n "$ac_ct_CC"; then
3476 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3477 echo "${ECHO_T}$ac_ct_CC" >&6
3479 echo "$as_me:$LINENO: result: no" >&5
3480 echo "${ECHO_T}no" >&6
3488 if test -z "$CC"; then
3489 if test -n "$ac_tool_prefix"; then
3490 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3491 set dummy ${ac_tool_prefix}cc; ac_word=$2
3492 echo "$as_me:$LINENO: checking for $ac_word" >&5
3493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3494 if test "${ac_cv_prog_CC+set}" = set; then
3495 echo $ECHO_N "(cached) $ECHO_C" >&6
3497 if test -n "$CC"; then
3498 ac_cv_prog_CC="$CC" # Let the user override the test.
3500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504 test -z "$as_dir" && as_dir=.
3505 for ac_exec_ext in '' $ac_executable_extensions; do
3506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3507 ac_cv_prog_CC="${ac_tool_prefix}cc"
3508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3517 if test -n "$CC"; then
3518 echo "$as_me:$LINENO: result: $CC" >&5
3519 echo "${ECHO_T}$CC" >&6
3521 echo "$as_me:$LINENO: result: no" >&5
3522 echo "${ECHO_T}no" >&6
3526 if test -z "$ac_cv_prog_CC"; then
3528 # Extract the first word of "cc", so it can be a program name with args.
3529 set dummy cc; ac_word=$2
3530 echo "$as_me:$LINENO: checking for $ac_word" >&5
3531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3532 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3533 echo $ECHO_N "(cached) $ECHO_C" >&6
3535 if test -n "$ac_ct_CC"; then
3536 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542 test -z "$as_dir" && as_dir=.
3543 for ac_exec_ext in '' $ac_executable_extensions; do
3544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3545 ac_cv_prog_ac_ct_CC="cc"
3546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3554 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3555 if test -n "$ac_ct_CC"; then
3556 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3557 echo "${ECHO_T}$ac_ct_CC" >&6
3559 echo "$as_me:$LINENO: result: no" >&5
3560 echo "${ECHO_T}no" >&6
3569 if test -z "$CC"; then
3570 # Extract the first word of "cc", so it can be a program name with args.
3571 set dummy cc; ac_word=$2
3572 echo "$as_me:$LINENO: checking for $ac_word" >&5
3573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3574 if test "${ac_cv_prog_CC+set}" = set; then
3575 echo $ECHO_N "(cached) $ECHO_C" >&6
3577 if test -n "$CC"; then
3578 ac_cv_prog_CC="$CC" # Let the user override the test.
3581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585 test -z "$as_dir" && as_dir=.
3586 for ac_exec_ext in '' $ac_executable_extensions; do
3587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3588 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3589 ac_prog_rejected=yes
3593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3599 if test $ac_prog_rejected = yes; then
3600 # We found a bogon in the path, so make sure we never use it.
3601 set dummy $ac_cv_prog_CC
3603 if test $# != 0; then
3604 # We chose a different compiler from the bogus one.
3605 # However, it has the same basename, so the bogon will be chosen
3606 # first if we set CC to just the basename; use the full file name.
3608 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3614 if test -n "$CC"; then
3615 echo "$as_me:$LINENO: result: $CC" >&5
3616 echo "${ECHO_T}$CC" >&6
3618 echo "$as_me:$LINENO: result: no" >&5
3619 echo "${ECHO_T}no" >&6
3623 if test -z "$CC"; then
3624 if test -n "$ac_tool_prefix"; then
3627 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3628 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3629 echo "$as_me:$LINENO: checking for $ac_word" >&5
3630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3631 if test "${ac_cv_prog_CC+set}" = set; then
3632 echo $ECHO_N "(cached) $ECHO_C" >&6
3634 if test -n "$CC"; then
3635 ac_cv_prog_CC="$CC" # Let the user override the test.
3637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3641 test -z "$as_dir" && as_dir=.
3642 for ac_exec_ext in '' $ac_executable_extensions; do
3643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3644 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3654 if test -n "$CC"; then
3655 echo "$as_me:$LINENO: result: $CC" >&5
3656 echo "${ECHO_T}$CC" >&6
3658 echo "$as_me:$LINENO: result: no" >&5
3659 echo "${ECHO_T}no" >&6
3662 test -n "$CC" && break
3665 if test -z "$CC"; then
3669 # Extract the first word of "$ac_prog", so it can be a program name with args.
3670 set dummy $ac_prog; ac_word=$2
3671 echo "$as_me:$LINENO: checking for $ac_word" >&5
3672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3673 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3676 if test -n "$ac_ct_CC"; then
3677 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3683 test -z "$as_dir" && as_dir=.
3684 for ac_exec_ext in '' $ac_executable_extensions; do
3685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3686 ac_cv_prog_ac_ct_CC="$ac_prog"
3687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3695 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3696 if test -n "$ac_ct_CC"; then
3697 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3698 echo "${ECHO_T}$ac_ct_CC" >&6
3700 echo "$as_me:$LINENO: result: no" >&5
3701 echo "${ECHO_T}no" >&6
3704 test -n "$ac_ct_CC" && break
3713 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3714 See \`config.log' for more details." >&5
3715 echo "$as_me: error: no acceptable C compiler found in \$PATH
3716 See \`config.log' for more details." >&2;}
3717 { (exit 1); exit 1; }; }
3719 # Provide some information about the compiler.
3720 echo "$as_me:$LINENO:" \
3721 "checking for C compiler version" >&5
3722 ac_compiler=`set X $ac_compile; echo $2`
3723 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3724 (eval $ac_compiler --version </dev/null >&5) 2>&5
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); }
3728 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3729 (eval $ac_compiler -v </dev/null >&5) 2>&5
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); }
3733 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3734 (eval $ac_compiler -V </dev/null >&5) 2>&5
3736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737 (exit $ac_status); }
3739 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3740 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3741 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3742 echo $ECHO_N "(cached) $ECHO_C" >&6
3744 cat >conftest.$ac_ext <<_ACEOF
3747 cat confdefs.h >>conftest.$ac_ext
3748 cat >>conftest.$ac_ext <<_ACEOF
3749 /* end confdefs.h. */
3762 rm -f conftest.$ac_objext
3763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3764 (eval $ac_compile) 2>conftest.er1
3766 grep -v '^ *+' conftest.er1 >conftest.err
3768 cat conftest.err >&5
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); } &&
3771 { ac_try='test -z "$ac_c_werror_flag"
3772 || test ! -s conftest.err'
3773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777 (exit $ac_status); }; } &&
3778 { ac_try='test -s conftest.$ac_objext'
3779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); }; }; then
3786 echo "$as_me: failed program was:" >&5
3787 sed 's/^/| /' conftest.$ac_ext >&5
3791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3792 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3795 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3796 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3797 GCC=`test $ac_compiler_gnu = yes && echo yes`
3798 ac_test_CFLAGS=${CFLAGS+set}
3799 ac_save_CFLAGS=$CFLAGS
3801 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3802 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3803 if test "${ac_cv_prog_cc_g+set}" = set; then
3804 echo $ECHO_N "(cached) $ECHO_C" >&6
3806 cat >conftest.$ac_ext <<_ACEOF
3809 cat confdefs.h >>conftest.$ac_ext
3810 cat >>conftest.$ac_ext <<_ACEOF
3811 /* end confdefs.h. */
3821 rm -f conftest.$ac_objext
3822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3823 (eval $ac_compile) 2>conftest.er1
3825 grep -v '^ *+' conftest.er1 >conftest.err
3827 cat conftest.err >&5
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); } &&
3830 { ac_try='test -z "$ac_c_werror_flag"
3831 || test ! -s conftest.err'
3832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); }; } &&
3837 { ac_try='test -s conftest.$ac_objext'
3838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); }; }; then
3845 echo "$as_me: failed program was:" >&5
3846 sed 's/^/| /' conftest.$ac_ext >&5
3850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3852 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3853 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3854 if test "$ac_test_CFLAGS" = set; then
3855 CFLAGS=$ac_save_CFLAGS
3856 elif test $ac_cv_prog_cc_g = yes; then
3857 if test "$GCC" = yes; then
3863 if test "$GCC" = yes; then
3869 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3870 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3871 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3872 echo $ECHO_N "(cached) $ECHO_C" >&6
3874 ac_cv_prog_cc_stdc=no
3876 cat >conftest.$ac_ext <<_ACEOF
3879 cat confdefs.h >>conftest.$ac_ext
3880 cat >>conftest.$ac_ext <<_ACEOF
3881 /* end confdefs.h. */
3884 #include <sys/types.h>
3885 #include <sys/stat.h>
3886 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3887 struct buf { int x; };
3888 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3889 static char *e (p, i)
3895 static char *f (char * (*g) (char **, int), char **p, ...)
3900 s = g (p, va_arg (v,int));
3905 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3906 function prototypes and stuff, but not '\xHH' hex character constants.
3907 These don't provoke an error unfortunately, instead are silently treated
3908 as 'x'. The following induces an error, until -std1 is added to get
3909 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3910 array size at least. It's necessary to write '\x00'==0 to get something
3911 that's true only with -std1. */
3912 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3914 int test (int i, double x);
3915 struct s1 {int (*f) (int a);};
3916 struct s2 {int (*f) (double a);};
3917 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3923 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3928 # Don't try gcc -ansi; that turns off useful extensions and
3929 # breaks some systems' header files.
3930 # AIX -qlanglvl=ansi
3931 # Ultrix and OSF/1 -std1
3932 # HP-UX 10.20 and later -Ae
3933 # HP-UX older versions -Aa -D_HPUX_SOURCE
3934 # SVR4 -Xc -D__EXTENSIONS__
3935 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3937 CC="$ac_save_CC $ac_arg"
3938 rm -f conftest.$ac_objext
3939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3940 (eval $ac_compile) 2>conftest.er1
3942 grep -v '^ *+' conftest.er1 >conftest.err
3944 cat conftest.err >&5
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); } &&
3947 { ac_try='test -z "$ac_c_werror_flag"
3948 || test ! -s conftest.err'
3949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); }; } &&
3954 { ac_try='test -s conftest.$ac_objext'
3955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); }; }; then
3960 ac_cv_prog_cc_stdc=$ac_arg
3963 echo "$as_me: failed program was:" >&5
3964 sed 's/^/| /' conftest.$ac_ext >&5
3967 rm -f conftest.err conftest.$ac_objext
3969 rm -f conftest.$ac_ext conftest.$ac_objext
3974 case "x$ac_cv_prog_cc_stdc" in
3976 echo "$as_me:$LINENO: result: none needed" >&5
3977 echo "${ECHO_T}none needed" >&6 ;;
3979 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3980 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3981 CC="$CC $ac_cv_prog_cc_stdc" ;;
3984 # Some people use a C++ compiler to compile C. Since we use `exit',
3985 # in C++ we need to declare it. In case someone uses the same compiler
3986 # for both compiling C and C++ we need to have the C++ compiler decide
3987 # the declaration of exit, since it's the most demanding environment.
3988 cat >conftest.$ac_ext <<_ACEOF
3993 rm -f conftest.$ac_objext
3994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3995 (eval $ac_compile) 2>conftest.er1
3997 grep -v '^ *+' conftest.er1 >conftest.err
3999 cat conftest.err >&5
4000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); } &&
4002 { ac_try='test -z "$ac_c_werror_flag"
4003 || test ! -s conftest.err'
4004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); }; } &&
4009 { ac_try='test -s conftest.$ac_objext'
4010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); }; }; then
4015 for ac_declaration in \
4017 'extern "C" void std::exit (int) throw (); using std::exit;' \
4018 'extern "C" void std::exit (int); using std::exit;' \
4019 'extern "C" void exit (int) throw ();' \
4020 'extern "C" void exit (int);' \
4023 cat >conftest.$ac_ext <<_ACEOF
4026 cat confdefs.h >>conftest.$ac_ext
4027 cat >>conftest.$ac_ext <<_ACEOF
4028 /* end confdefs.h. */
4039 rm -f conftest.$ac_objext
4040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4041 (eval $ac_compile) 2>conftest.er1
4043 grep -v '^ *+' conftest.er1 >conftest.err
4045 cat conftest.err >&5
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); } &&
4048 { ac_try='test -z "$ac_c_werror_flag"
4049 || test ! -s conftest.err'
4050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); }; } &&
4055 { ac_try='test -s conftest.$ac_objext'
4056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); }; }; then
4063 echo "$as_me: failed program was:" >&5
4064 sed 's/^/| /' conftest.$ac_ext >&5
4068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4069 cat >conftest.$ac_ext <<_ACEOF
4072 cat confdefs.h >>conftest.$ac_ext
4073 cat >>conftest.$ac_ext <<_ACEOF
4074 /* end confdefs.h. */
4084 rm -f conftest.$ac_objext
4085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4086 (eval $ac_compile) 2>conftest.er1
4088 grep -v '^ *+' conftest.er1 >conftest.err
4090 cat conftest.err >&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); } &&
4093 { ac_try='test -z "$ac_c_werror_flag"
4094 || test ! -s conftest.err'
4095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }; } &&
4100 { ac_try='test -s conftest.$ac_objext'
4101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); }; }; then
4108 echo "$as_me: failed program was:" >&5
4109 sed 's/^/| /' conftest.$ac_ext >&5
4112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4115 if test -n "$ac_declaration"; then
4116 echo '#ifdef __cplusplus' >>confdefs.h
4117 echo $ac_declaration >>confdefs.h
4118 echo '#endif' >>confdefs.h
4122 echo "$as_me: failed program was:" >&5
4123 sed 's/^/| /' conftest.$ac_ext >&5
4126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4128 ac_cpp='$CPP $CPPFLAGS'
4129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4134 cat >>confdefs.h <<\_ACEOF
4135 #define _GNU_SOURCE 1
4139 # Find a good install program. We prefer a C program (faster),
4140 # so one script is as good as another. But avoid the broken or
4141 # incompatible versions:
4142 # SysV /etc/install, /usr/sbin/install
4143 # SunOS /usr/etc/install
4144 # IRIX /sbin/install
4146 # AmigaOS /C/install, which installs bootblocks on floppy discs
4147 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4148 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4149 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4150 # OS/2's system install, which has a completely different semantic
4151 # ./install, which can be erroneously created by make from ./install.sh.
4152 # Reject install programs that cannot install multiple files.
4153 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4154 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4155 if test -z "$INSTALL"; then
4156 if test "${ac_cv_path_install+set}" = set; then
4157 echo $ECHO_N "(cached) $ECHO_C" >&6
4159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163 test -z "$as_dir" && as_dir=.
4164 # Account for people who put trailing slashes in PATH elements.
4166 ./ | .// | /cC/* | \
4167 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4168 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4171 # OSF1 and SCO ODT 3.0 have their own names for install.
4172 # Don't use installbsd from OSF since it installs stuff as root
4174 for ac_prog in ginstall scoinst install; do
4175 for ac_exec_ext in '' $ac_executable_extensions; do
4176 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4177 if test $ac_prog = install &&
4178 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4179 # AIX install. It has an incompatible calling convention.
4181 elif test $ac_prog = install &&
4182 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4183 # program-specific install script used by HP pwplus--don't use.
4186 rm -rf conftest.one conftest.two conftest.dir
4187 echo one > conftest.one
4188 echo two > conftest.two
4190 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4191 test -s conftest.one && test -s conftest.two &&
4192 test -s conftest.dir/conftest.one &&
4193 test -s conftest.dir/conftest.two
4195 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4206 rm -rf conftest.one conftest.two conftest.dir
4209 if test "${ac_cv_path_install+set}" = set; then
4210 INSTALL=$ac_cv_path_install
4212 # As a last resort, use the slow shell script. Don't cache a
4213 # value for INSTALL within a source directory, because that will
4214 # break other packages using the cache if that directory is
4215 # removed, or if the value is a relative name.
4216 INSTALL=$ac_install_sh
4219 echo "$as_me:$LINENO: result: $INSTALL" >&5
4220 echo "${ECHO_T}$INSTALL" >&6
4222 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4223 # It thinks the first close brace ends the variable substitution.
4224 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4226 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4228 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4233 macro_version='2.1a'
4234 macro_revision='1.2435'
4247 ltmain="$ac_aux_dir/ltmain.sh"
4257 # Check whether --enable-shared or --disable-shared was given.
4258 if test "${enable_shared+set}" = set; then
4259 enableval="$enable_shared"
4260 p=${PACKAGE-default}
4262 yes) enable_shared=yes ;;
4263 no) enable_shared=no ;;
4266 # Look at the argument we got. We use all the common list separators.
4267 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4268 for pkg in $enableval; do
4270 if test "X$pkg" = "X$p"; then
4288 # Check whether --enable-static or --disable-static was given.
4289 if test "${enable_static+set}" = set; then
4290 enableval="$enable_static"
4291 p=${PACKAGE-default}
4293 yes) enable_static=yes ;;
4294 no) enable_static=no ;;
4297 # Look at the argument we got. We use all the common list separators.
4298 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4299 for pkg in $enableval; do
4301 if test "X$pkg" = "X$p"; then
4320 # Check whether --with-pic or --without-pic was given.
4321 if test "${with_pic+set}" = set; then
4328 test -z "$pic_mode" && pic_mode=default
4336 # Check whether --enable-fast-install or --disable-fast-install was given.
4337 if test "${enable_fast_install+set}" = set; then
4338 enableval="$enable_fast_install"
4339 p=${PACKAGE-default}
4341 yes) enable_fast_install=yes ;;
4342 no) enable_fast_install=no ;;
4344 enable_fast_install=no
4345 # Look at the argument we got. We use all the common list separators.
4346 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4347 for pkg in $enableval; do
4349 if test "X$pkg" = "X$p"; then
4350 enable_fast_install=yes
4357 enable_fast_install=yes
4367 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4368 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4369 if test "${lt_cv_path_SED+set}" = set; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
4372 # Loop through the user's path and test for sed and gsed.
4373 # Then use that list of sed's as ones to test for truncation.
4374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378 test -z "$as_dir" && as_dir=.
4379 for lt_ac_prog in sed gsed; do
4380 for ac_exec_ext in '' $ac_executable_extensions; do
4381 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4382 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4390 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4391 # along with /bin/sed that truncates output.
4392 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4393 test ! -f $lt_ac_sed && continue
4394 cat /dev/null > conftest.in
4396 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4397 # Check for GNU sed and select it if it is found.
4398 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4399 lt_cv_path_SED=$lt_ac_sed
4403 cat conftest.in conftest.in >conftest.tmp
4404 mv conftest.tmp conftest.in
4405 cp conftest.in conftest.nl
4407 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4408 cmp -s conftest.out conftest.nl || break
4409 # 10000 chars as input seems more than enough
4410 test $lt_ac_count -gt 10 && break
4411 lt_ac_count=`expr $lt_ac_count + 1`
4412 if test $lt_ac_count -gt $lt_ac_max; then
4413 lt_ac_max=$lt_ac_count
4414 lt_cv_path_SED=$lt_ac_sed
4423 echo "$as_me:$LINENO: result: $SED" >&5
4424 echo "${ECHO_T}$SED" >&6
4426 test -z "$SED" && SED=sed
4427 Xsed="$SED -e 1s/^X//"
4439 echo "$as_me:$LINENO: checking for egrep" >&5
4440 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4441 if test "${ac_cv_prog_egrep+set}" = set; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4444 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4445 then ac_cv_prog_egrep='grep -E'
4446 else ac_cv_prog_egrep='egrep'
4449 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4450 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4451 EGREP=$ac_cv_prog_egrep
4454 echo "$as_me:$LINENO: checking for fgrep" >&5
4455 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4456 if test "${ac_cv_prog_fgrep+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4459 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4460 then ac_cv_prog_fgrep='grep -F'
4461 else ac_cv_prog_fgrep='fgrep'
4464 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4465 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4466 FGREP=$ac_cv_prog_fgrep
4469 test -z "$GREP" && GREP=grep
4489 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4490 if test "${with_gnu_ld+set}" = set; then
4491 withval="$with_gnu_ld"
4492 test "$withval" = no || with_gnu_ld=yes
4497 if test "$GCC" = yes; then
4498 # Check if gcc -print-prog-name=ld gives a path.
4499 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4500 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4503 # gcc leaves a trailing carriage return which upsets mingw
4504 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4506 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4509 # Accept absolute paths.
4511 re_direlt='/[^/][^/]*/\.\./'
4512 # Canonicalize the pathname of ld
4513 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4514 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4515 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4517 test -z "$LD" && LD="$ac_prog"
4520 # If it fails, then pretend we aren't using GCC.
4524 # If it is relative, then search for the first ld in PATH.
4528 elif test "$with_gnu_ld" = yes; then
4529 echo "$as_me:$LINENO: checking for GNU ld" >&5
4530 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4532 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4533 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4535 if test "${lt_cv_path_LD+set}" = set; then
4536 echo $ECHO_N "(cached) $ECHO_C" >&6
4538 if test -z "$LD"; then
4539 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4540 for ac_dir in $PATH; do
4542 test -z "$ac_dir" && ac_dir=.
4543 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4544 lt_cv_path_LD="$ac_dir/$ac_prog"
4545 # Check to see if the program is GNU ld. I'd rather use --version,
4546 # but apparently some variants of GNU ld only accept -v.
4547 # Break only if it was the GNU/non-GNU ld that we prefer.
4548 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4549 *GNU* | *'with BFD'*)
4550 test "$with_gnu_ld" != no && break
4553 test "$with_gnu_ld" != yes && break
4560 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4565 if test -n "$LD"; then
4566 echo "$as_me:$LINENO: result: $LD" >&5
4567 echo "${ECHO_T}$LD" >&6
4569 echo "$as_me:$LINENO: result: no" >&5
4570 echo "${ECHO_T}no" >&6
4572 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4573 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4574 { (exit 1); exit 1; }; }
4575 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4576 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4577 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4578 echo $ECHO_N "(cached) $ECHO_C" >&6
4580 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4581 case `$LD -v 2>&1 </dev/null` in
4582 *GNU* | *'with BFD'*)
4583 lt_cv_prog_gnu_ld=yes
4586 lt_cv_prog_gnu_ld=no
4590 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4591 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4592 with_gnu_ld=$lt_cv_prog_gnu_ld
4603 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4604 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4605 if test "${lt_cv_path_NM+set}" = set; then
4606 echo $ECHO_N "(cached) $ECHO_C" >&6
4608 if test -n "$NM"; then
4609 # Let the user override the test.
4612 lt_nm_to_check="${ac_tool_prefix}nm"
4613 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4614 lt_nm_to_check="$lt_nm_to_check nm"
4616 for lt_tmp_nm in $lt_nm_to_check; do
4617 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4618 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4620 test -z "$ac_dir" && ac_dir=.
4621 tmp_nm="$ac_dir/$lt_tmp_nm"
4622 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4623 # Check to see if the nm accepts a BSD-compat flag.
4624 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4625 # nm: unknown option "B" ignored
4626 # Tru64's nm complains that /dev/null is an invalid object file
4627 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4628 */dev/null* | *'Invalid file or object type'*)
4629 lt_cv_path_NM="$tmp_nm -B"
4633 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4635 lt_cv_path_NM="$tmp_nm -p"
4639 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4640 continue # so that we can try to find one that supports BSD flags
4649 : ${lt_cv_path_NM=no}
4652 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4653 echo "${ECHO_T}$lt_cv_path_NM" >&6
4654 if test "$lt_cv_path_NM" != "no"; then
4657 # Didn't find any BSD compatible name lister, look for dumpbin.
4658 if test -n "$ac_tool_prefix"; then
4659 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4661 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4662 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4663 echo "$as_me:$LINENO: checking for $ac_word" >&5
4664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4665 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4666 echo $ECHO_N "(cached) $ECHO_C" >&6
4668 if test -n "$DUMPBIN"; then
4669 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675 test -z "$as_dir" && as_dir=.
4676 for ac_exec_ext in '' $ac_executable_extensions; do
4677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4678 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4687 DUMPBIN=$ac_cv_prog_DUMPBIN
4688 if test -n "$DUMPBIN"; then
4689 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4690 echo "${ECHO_T}$DUMPBIN" >&6
4692 echo "$as_me:$LINENO: result: no" >&5
4693 echo "${ECHO_T}no" >&6
4696 test -n "$DUMPBIN" && break
4699 if test -z "$DUMPBIN"; then
4700 ac_ct_DUMPBIN=$DUMPBIN
4701 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4703 # Extract the first word of "$ac_prog", so it can be a program name with args.
4704 set dummy $ac_prog; ac_word=$2
4705 echo "$as_me:$LINENO: checking for $ac_word" >&5
4706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4707 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4708 echo $ECHO_N "(cached) $ECHO_C" >&6
4710 if test -n "$ac_ct_DUMPBIN"; then
4711 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717 test -z "$as_dir" && as_dir=.
4718 for ac_exec_ext in '' $ac_executable_extensions; do
4719 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4720 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4729 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4730 if test -n "$ac_ct_DUMPBIN"; then
4731 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4732 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4734 echo "$as_me:$LINENO: result: no" >&5
4735 echo "${ECHO_T}no" >&6
4738 test -n "$ac_ct_DUMPBIN" && break
4740 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4742 DUMPBIN=$ac_ct_DUMPBIN
4746 if test "$DUMPBIN" != ":"; then
4750 test -z "$NM" && NM=nm
4757 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4758 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4759 if test "${lt_cv_nm_interface+set}" = set; then
4760 echo $ECHO_N "(cached) $ECHO_C" >&6
4762 lt_cv_nm_interface="BSD nm"
4763 echo "int some_variable = 0;" > conftest.$ac_ext
4764 (eval echo "\"\$as_me:4764: $ac_compile\"" >&5)
4765 (eval "$ac_compile" 2>conftest.err)
4766 cat conftest.err >&5
4767 (eval echo "\"\$as_me:4767: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4768 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4769 cat conftest.err >&5
4770 (eval echo "\"\$as_me:4770: output\"" >&5)
4771 cat conftest.out >&5
4772 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4773 lt_cv_nm_interface="MS dumpbin"
4777 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4778 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4780 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4781 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4783 if test "$LN_S" = "ln -s"; then
4784 echo "$as_me:$LINENO: result: yes" >&5
4785 echo "${ECHO_T}yes" >&6
4787 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4788 echo "${ECHO_T}no, using $LN_S" >&6
4791 # find the maximum length of command line arguments
4792 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4793 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4794 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4795 echo $ECHO_N "(cached) $ECHO_C" >&6
4802 # On DJGPP, this test can blow up pretty badly due to problems in libc
4803 # (any single argument exceeding 2000 bytes causes a buffer overrun
4804 # during glob expansion). Even if it were fixed, the result of this
4805 # check would be larger than it should be.
4806 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4810 # Under GNU Hurd, this test is not required because there is
4811 # no limit to the length of command line arguments.
4812 # Libtool will interpret -1 as no limit whatsoever
4813 lt_cv_sys_max_cmd_len=-1;
4817 # On Win9x/ME, this test blows up -- it succeeds, but takes
4818 # about 5 minutes as the teststring grows exponentially.
4819 # Worse, since 9x/ME are not pre-emptively multitasking,
4820 # you end up with a "frozen" computer, even though with patience
4821 # the test eventually succeeds (with a max line length of 256k).
4822 # Instead, let's just punt: use the minimum linelength reported by
4823 # all of the supported platforms: 8192 (on NT/2K/XP).
4824 lt_cv_sys_max_cmd_len=8192;
4828 # On AmigaOS with pdksh, this test takes hours, literally.
4829 # So we just punt and use a minimum line length of 8192.
4830 lt_cv_sys_max_cmd_len=8192;
4833 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4834 # This has been around since 386BSD, at least. Likely further.
4835 if test -x /sbin/sysctl; then
4836 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4837 elif test -x /usr/sbin/sysctl; then
4838 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4840 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4842 # And add a safety zone
4843 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4844 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4848 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4849 lt_cv_sys_max_cmd_len=196608
4853 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4854 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4855 # nice to cause kernel panics so lets avoid the loop below.
4856 # First set a reasonable default.
4857 lt_cv_sys_max_cmd_len=16384
4859 if test -x /sbin/sysconfig; then
4860 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4861 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4866 lt_cv_sys_max_cmd_len=102400
4868 sysv5* | sco5v6* | sysv4.2uw2*)
4869 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4870 if test -n "$kargmax"; then
4871 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4873 lt_cv_sys_max_cmd_len=32768
4877 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4878 if test -n $lt_cv_sys_max_cmd_len; then
4879 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4880 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4882 # Make teststring a little bigger before we do anything with it.
4883 # a 1K string should be a reasonable start.
4884 for i in 1 2 3 4 5 6 7 8 ; do
4885 teststring=$teststring$teststring
4887 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4888 # If test is not a shell built-in, we'll probably end up computing a
4889 # maximum length that is only half of the actual maximum length, but
4891 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4892 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4893 test $i != 17 # 1/2 MB should be enough
4896 teststring=$teststring$teststring
4898 # Only check the string length outside the loop.
4899 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4901 # Add a significant safety factor because C++ compilers can tack on
4902 # massive amounts of additional arguments before passing them to the
4903 # linker. It appears as though 1/2 is a usable value.
4904 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4911 if test -n $lt_cv_sys_max_cmd_len ; then
4912 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4913 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4915 echo "$as_me:$LINENO: result: none" >&5
4916 echo "${ECHO_T}none" >&6
4918 max_cmd_len=$lt_cv_sys_max_cmd_len
4930 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4931 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4932 # Try some XSI features
4935 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4936 = c,a/b,, ) >/dev/null 2>&1 \
4938 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4939 echo "${ECHO_T}$xsi_shell" >&6
4942 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4943 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4945 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4947 && lt_shell_append=yes
4948 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4949 echo "${ECHO_T}$lt_shell_append" >&6
4952 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4962 # test EBCDIC or ASCII
4963 case `echo X|tr X '\101'` in
4964 A) # ASCII based system
4965 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4966 lt_SP2NL='tr \040 \012'
4967 lt_NL2SP='tr \015\012 \040\040'
4969 *) # EBCDIC based system
4970 lt_SP2NL='tr \100 \n'
4971 lt_NL2SP='tr \r\n \100\100'
4983 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4984 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4985 if test "${lt_cv_ld_reload_flag+set}" = set; then
4986 echo $ECHO_N "(cached) $ECHO_C" >&6
4988 lt_cv_ld_reload_flag='-r'
4990 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4991 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4992 reload_flag=$lt_cv_ld_reload_flag
4993 case $reload_flag in
4995 *) reload_flag=" $reload_flag" ;;
4997 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5000 if test "$GCC" = yes; then
5001 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5003 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5017 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5018 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5019 if test "${lt_cv_deplibs_check_method+set}" = set; then
5020 echo $ECHO_N "(cached) $ECHO_C" >&6
5022 lt_cv_file_magic_cmd='$MAGIC_CMD'
5023 lt_cv_file_magic_test_file=
5024 lt_cv_deplibs_check_method='unknown'
5025 # Need to set the preceding variable on all platforms that support
5026 # interlibrary dependencies.
5027 # 'none' -- dependencies not supported.
5028 # `unknown' -- same as none, but documents that we really don't know.
5029 # 'pass_all' -- all dependencies passed with no checks.
5030 # 'test_compile' -- check by making test program.
5031 # 'file_magic [[regex]]' -- check by looking for files in library path
5032 # which responds to the $file_magic_cmd with a given extended regex.
5033 # If you have `file' or equivalent on your system and you're not sure
5034 # whether `pass_all' will *always* work, you probably want this one.
5038 lt_cv_deplibs_check_method=pass_all
5042 lt_cv_deplibs_check_method=pass_all
5046 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5047 lt_cv_file_magic_cmd='/usr/bin/file -L'
5048 lt_cv_file_magic_test_file=/shlib/libc.so
5052 # func_win32_libid is a shell function defined in ltmain.sh
5053 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5054 lt_cv_file_magic_cmd='func_win32_libid'
5058 # Base MSYS/MinGW do not provide the 'file' command needed by
5059 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5060 # unless we find 'file', for example because we are cross-compiling.
5061 if ( file / ) >/dev/null 2>&1; then
5062 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5063 lt_cv_file_magic_cmd='func_win32_libid'
5065 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5066 lt_cv_file_magic_cmd='$OBJDUMP -f'
5070 darwin* | rhapsody*)
5071 lt_cv_deplibs_check_method=pass_all
5074 freebsd* | dragonfly*)
5075 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5078 # Not sure whether the presence of OpenBSD here was a mistake.
5079 # Let's accept both of them until this is cleared up.
5080 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5081 lt_cv_file_magic_cmd=/usr/bin/file
5082 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5086 lt_cv_deplibs_check_method=pass_all
5091 lt_cv_deplibs_check_method=pass_all
5094 hpux10.20* | hpux11*)
5095 lt_cv_file_magic_cmd=/usr/bin/file
5098 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5099 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5102 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5103 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5106 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5107 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5113 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5114 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5117 irix5* | irix6* | nonstopux*)
5119 *-32|*"-32 ") libmagic=32-bit;;
5120 *-n32|*"-n32 ") libmagic=N32;;
5121 *-64|*"-64 ") libmagic=64-bit;;
5122 *) libmagic=never-match;;
5124 lt_cv_deplibs_check_method=pass_all
5127 # This must be Linux ELF.
5128 linux* | k*bsd*-gnu)
5129 lt_cv_deplibs_check_method=pass_all
5133 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5134 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5136 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5141 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5142 lt_cv_file_magic_cmd=/usr/bin/file
5143 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5147 lt_cv_deplibs_check_method=pass_all
5151 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5152 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5154 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5158 osf3* | osf4* | osf5*)
5159 lt_cv_deplibs_check_method=pass_all
5163 lt_cv_deplibs_check_method=pass_all
5167 lt_cv_deplibs_check_method=pass_all
5170 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5171 lt_cv_deplibs_check_method=pass_all
5175 case $host_vendor in
5177 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]'
5178 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5181 lt_cv_deplibs_check_method=pass_all
5184 lt_cv_file_magic_cmd='/bin/file'
5185 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5188 lt_cv_file_magic_cmd='/bin/file'
5189 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5190 lt_cv_file_magic_test_file=/lib/libc.so
5193 lt_cv_deplibs_check_method=pass_all
5196 lt_cv_deplibs_check_method=pass_all
5202 lt_cv_deplibs_check_method=pass_all
5207 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5208 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5209 file_magic_cmd=$lt_cv_file_magic_cmd
5210 deplibs_check_method=$lt_cv_deplibs_check_method
5211 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5224 if test -n "$ac_tool_prefix"; then
5225 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5226 set dummy ${ac_tool_prefix}ar; ac_word=$2
5227 echo "$as_me:$LINENO: checking for $ac_word" >&5
5228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5229 if test "${ac_cv_prog_AR+set}" = set; then
5230 echo $ECHO_N "(cached) $ECHO_C" >&6
5232 if test -n "$AR"; then
5233 ac_cv_prog_AR="$AR" # Let the user override the test.
5235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5239 test -z "$as_dir" && as_dir=.
5240 for ac_exec_ext in '' $ac_executable_extensions; do
5241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5242 ac_cv_prog_AR="${ac_tool_prefix}ar"
5243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5252 if test -n "$AR"; then
5253 echo "$as_me:$LINENO: result: $AR" >&5
5254 echo "${ECHO_T}$AR" >&6
5256 echo "$as_me:$LINENO: result: no" >&5
5257 echo "${ECHO_T}no" >&6
5261 if test -z "$ac_cv_prog_AR"; then
5263 # Extract the first word of "ar", so it can be a program name with args.
5264 set dummy ar; ac_word=$2
5265 echo "$as_me:$LINENO: checking for $ac_word" >&5
5266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5267 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5268 echo $ECHO_N "(cached) $ECHO_C" >&6
5270 if test -n "$ac_ct_AR"; then
5271 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277 test -z "$as_dir" && as_dir=.
5278 for ac_exec_ext in '' $ac_executable_extensions; do
5279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5280 ac_cv_prog_ac_ct_AR="ar"
5281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5287 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5290 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5291 if test -n "$ac_ct_AR"; then
5292 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5293 echo "${ECHO_T}$ac_ct_AR" >&6
5295 echo "$as_me:$LINENO: result: no" >&5
5296 echo "${ECHO_T}no" >&6
5304 test -z "$AR" && AR=ar
5305 test -z "$AR_FLAGS" && AR_FLAGS=cru
5317 if test -n "$ac_tool_prefix"; then
5318 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5319 set dummy ${ac_tool_prefix}strip; ac_word=$2
5320 echo "$as_me:$LINENO: checking for $ac_word" >&5
5321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5322 if test "${ac_cv_prog_STRIP+set}" = set; then
5323 echo $ECHO_N "(cached) $ECHO_C" >&6
5325 if test -n "$STRIP"; then
5326 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332 test -z "$as_dir" && as_dir=.
5333 for ac_exec_ext in '' $ac_executable_extensions; do
5334 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5335 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5344 STRIP=$ac_cv_prog_STRIP
5345 if test -n "$STRIP"; then
5346 echo "$as_me:$LINENO: result: $STRIP" >&5
5347 echo "${ECHO_T}$STRIP" >&6
5349 echo "$as_me:$LINENO: result: no" >&5
5350 echo "${ECHO_T}no" >&6
5354 if test -z "$ac_cv_prog_STRIP"; then
5356 # Extract the first word of "strip", so it can be a program name with args.
5357 set dummy strip; ac_word=$2
5358 echo "$as_me:$LINENO: checking for $ac_word" >&5
5359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5360 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5361 echo $ECHO_N "(cached) $ECHO_C" >&6
5363 if test -n "$ac_ct_STRIP"; then
5364 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370 test -z "$as_dir" && as_dir=.
5371 for ac_exec_ext in '' $ac_executable_extensions; do
5372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5373 ac_cv_prog_ac_ct_STRIP="strip"
5374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5380 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5383 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5384 if test -n "$ac_ct_STRIP"; then
5385 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5386 echo "${ECHO_T}$ac_ct_STRIP" >&6
5388 echo "$as_me:$LINENO: result: no" >&5
5389 echo "${ECHO_T}no" >&6
5394 STRIP="$ac_cv_prog_STRIP"
5397 test -z "$STRIP" && STRIP=:
5404 if test -n "$ac_tool_prefix"; then
5405 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5406 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5407 echo "$as_me:$LINENO: checking for $ac_word" >&5
5408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5409 if test "${ac_cv_prog_RANLIB+set}" = set; then
5410 echo $ECHO_N "(cached) $ECHO_C" >&6
5412 if test -n "$RANLIB"; then
5413 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5419 test -z "$as_dir" && as_dir=.
5420 for ac_exec_ext in '' $ac_executable_extensions; do
5421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5422 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5431 RANLIB=$ac_cv_prog_RANLIB
5432 if test -n "$RANLIB"; then
5433 echo "$as_me:$LINENO: result: $RANLIB" >&5
5434 echo "${ECHO_T}$RANLIB" >&6
5436 echo "$as_me:$LINENO: result: no" >&5
5437 echo "${ECHO_T}no" >&6
5441 if test -z "$ac_cv_prog_RANLIB"; then
5442 ac_ct_RANLIB=$RANLIB
5443 # Extract the first word of "ranlib", so it can be a program name with args.
5444 set dummy ranlib; ac_word=$2
5445 echo "$as_me:$LINENO: checking for $ac_word" >&5
5446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5447 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5448 echo $ECHO_N "(cached) $ECHO_C" >&6
5450 if test -n "$ac_ct_RANLIB"; then
5451 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457 test -z "$as_dir" && as_dir=.
5458 for ac_exec_ext in '' $ac_executable_extensions; do
5459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5460 ac_cv_prog_ac_ct_RANLIB="ranlib"
5461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5467 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5470 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5471 if test -n "$ac_ct_RANLIB"; then
5472 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5473 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5475 echo "$as_me:$LINENO: result: no" >&5
5476 echo "${ECHO_T}no" >&6
5479 RANLIB=$ac_ct_RANLIB
5481 RANLIB="$ac_cv_prog_RANLIB"
5484 test -z "$RANLIB" && RANLIB=:
5491 # Determine commands to create old-style static archives.
5492 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5493 old_postinstall_cmds='chmod 644 $oldlib'
5494 old_postuninstall_cmds=
5496 if test -n "$RANLIB"; then
5499 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5502 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5505 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5541 # If no C compiler was specified, use CC.
5544 # If no C compiler flags were specified, use CFLAGS.
5545 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5547 # Allow CC to be a program name with arguments.
5551 # Check for command to grab the raw symbol name followed by C symbol from nm.
5552 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5553 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5554 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5555 echo $ECHO_N "(cached) $ECHO_C" >&6
5558 # These are sane defaults that work on at least a few old systems.
5559 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5561 # Character class describing NM global symbol codes.
5562 symcode='[BCDEGRST]'
5564 # Regexp to match symbols that can be accessed directly from C.
5565 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5567 # Define system-specific variables.
5572 cygwin* | mingw* | pw32*)
5573 symcode='[ABCDGISTW]'
5576 if test "$host_cpu" = ia64; then
5577 symcode='[ABCDEGRST]'
5581 symcode='[BCDEGRST]'
5584 symcode='[BCDEGQRST]'
5595 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5603 # If we're using GNU nm, then use its standard symbol codes.
5604 case `$NM -V 2>&1` in
5605 *GNU* | *'with BFD'*)
5606 symcode='[ABCDGIRSTW]' ;;
5609 # Transform an extracted symbol line into a proper C declaration.
5610 # Some systems (esp. on ia64) link data and code symbols differently,
5611 # so use this general approach.
5612 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5614 # Transform an extracted symbol line into symbol name and symbol address
5615 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5617 # Handle CRLF in mingw tool chain
5621 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5625 # Try without a prefix underscore, then with it.
5626 for ac_symprfx in "" "_"; do
5628 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5629 symxfrm="\\1 $ac_symprfx\\2 \\2"
5631 # Write the raw and C identifiers.
5632 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5633 # Fake it for dumpbin and say T for any non-static function
5634 # and D for any global variable.
5635 # Also find C++ and __fastcall symbols from MSVC++,
5636 # which start with @ or ?.
5637 lt_cv_sys_global_symbol_pipe="$AWK '"\
5638 " {last_section=section; section=\$ 3};"\
5639 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5640 " \$ 0!~/External *\|/{next};"\
5641 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5642 " {if(hide[section]) next};"\
5643 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5644 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5645 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5646 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5647 " ' prfx=^$ac_symprfx"
5649 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5652 # Check to see that the pipe works correctly.
5656 cat > conftest.$ac_ext <<_LT_EOF
5661 void nm_test_func(void);
5662 void nm_test_func(void){}
5666 int main(){nm_test_var='a';nm_test_func();return(0);}
5669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5670 (eval $ac_compile) 2>&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); }; then
5674 # Now try to grab the symbols.
5676 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5677 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); } && test -s "$nlist"; then
5681 # Try sorting and uniquifying the output.
5682 if sort "$nlist" | uniq > "$nlist"T; then
5683 mv -f "$nlist"T "$nlist"
5688 # Make sure that we snagged all the symbols we need.
5689 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5690 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5691 cat <<_LT_EOF > conftest.$ac_ext
5697 # Now generate the symbol file.
5698 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5700 cat <<_LT_EOF >> conftest.$ac_ext
5702 /* The mapping between symbol names and symbols. */
5707 lt__PROGRAM__LTX_preloaded_symbols[] =
5709 { "@PROGRAM@", (void *) 0 },
5711 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5712 cat <<\_LT_EOF >> conftest.$ac_ext
5716 /* This works around a problem in FreeBSD linker */
5717 #ifdef FREEBSD_WORKAROUND
5718 static const void *lt_preloaded_setup() {
5719 return lt__PROGRAM__LTX_preloaded_symbols;
5727 # Now try linking the two files.
5728 mv conftest.$ac_objext conftstm.$ac_objext
5729 lt_save_LIBS="$LIBS"
5730 lt_save_CFLAGS="$CFLAGS"
5731 LIBS="conftstm.$ac_objext"
5732 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5734 (eval $ac_link) 2>&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5740 LIBS="$lt_save_LIBS"
5741 CFLAGS="$lt_save_CFLAGS"
5743 echo "cannot find nm_test_func in $nlist" >&5
5746 echo "cannot find nm_test_var in $nlist" >&5
5749 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5752 echo "$progname: failed program was:" >&5
5753 cat conftest.$ac_ext >&5
5755 rm -f conftest* conftst*
5757 # Do not use the global_symbol_pipe unless it works.
5758 if test "$pipe_works" = yes; then
5761 lt_cv_sys_global_symbol_pipe=
5767 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5768 lt_cv_sys_global_symbol_to_cdecl=
5770 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5771 echo "$as_me:$LINENO: result: failed" >&5
5772 echo "${ECHO_T}failed" >&6
5774 echo "$as_me:$LINENO: result: ok" >&5
5775 echo "${ECHO_T}ok" >&6
5794 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5795 if test "${enable_libtool_lock+set}" = set; then
5796 enableval="$enable_libtool_lock"
5799 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5801 # Some flags need to be propagated to the compiler or linker for good
5805 # Find out which ABI we are using.
5806 echo 'int i;' > conftest.$ac_ext
5807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5808 (eval $ac_compile) 2>&5
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); }; then
5812 case `/usr/bin/file conftest.$ac_objext` in
5824 # Find out which ABI we are using.
5825 echo '#line 5825 "configure"' > conftest.$ac_ext
5826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5827 (eval $ac_compile) 2>&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; then
5831 if test "$lt_cv_prog_gnu_ld" = yes; then
5832 case `/usr/bin/file conftest.$ac_objext` in
5834 LD="${LD-ld} -melf32bsmip"
5837 LD="${LD-ld} -melf32bmipn32"
5840 LD="${LD-ld} -melf64bmip"
5844 case `/usr/bin/file conftest.$ac_objext` in
5860 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5861 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5862 # Find out which ABI we are using.
5863 echo 'int i;' > conftest.$ac_ext
5864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5865 (eval $ac_compile) 2>&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; then
5869 case `/usr/bin/file conftest.o` in
5872 x86_64-*kfreebsd*-gnu)
5873 LD="${LD-ld} -m elf_i386_fbsd"
5876 LD="${LD-ld} -m elf_i386"
5878 ppc64-*linux*|powerpc64-*linux*)
5879 LD="${LD-ld} -m elf32ppclinux"
5882 LD="${LD-ld} -m elf_s390"
5885 LD="${LD-ld} -m elf32_sparc"
5891 x86_64-*kfreebsd*-gnu)
5892 LD="${LD-ld} -m elf_x86_64_fbsd"
5895 LD="${LD-ld} -m elf_x86_64"
5897 ppc*-*linux*|powerpc*-*linux*)
5898 LD="${LD-ld} -m elf64ppc"
5900 s390*-*linux*|s390*-*tpf*)
5901 LD="${LD-ld} -m elf64_s390"
5904 LD="${LD-ld} -m elf64_sparc"
5914 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5915 SAVE_CFLAGS="$CFLAGS"
5916 CFLAGS="$CFLAGS -belf"
5917 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5918 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5919 if test "${lt_cv_cc_needs_belf+set}" = set; then
5920 echo $ECHO_N "(cached) $ECHO_C" >&6
5923 ac_cpp='$CPP $CPPFLAGS'
5924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5928 cat >conftest.$ac_ext <<_ACEOF
5931 cat confdefs.h >>conftest.$ac_ext
5932 cat >>conftest.$ac_ext <<_ACEOF
5933 /* end confdefs.h. */
5943 rm -f conftest.$ac_objext conftest$ac_exeext
5944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5945 (eval $ac_link) 2>conftest.er1
5947 grep -v '^ *+' conftest.er1 >conftest.err
5949 cat conftest.err >&5
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); } &&
5952 { ac_try='test -z "$ac_c_werror_flag"
5953 || test ! -s conftest.err'
5954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); }; } &&
5959 { ac_try='test -s conftest$ac_exeext'
5960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); }; }; then
5965 lt_cv_cc_needs_belf=yes
5967 echo "$as_me: failed program was:" >&5
5968 sed 's/^/| /' conftest.$ac_ext >&5
5970 lt_cv_cc_needs_belf=no
5972 rm -f conftest.err conftest.$ac_objext \
5973 conftest$ac_exeext conftest.$ac_ext
5975 ac_cpp='$CPP $CPPFLAGS'
5976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5981 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5982 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5983 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5984 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5985 CFLAGS="$SAVE_CFLAGS"
5989 # Find out which ABI we are using.
5990 echo 'int i;' > conftest.$ac_ext
5991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5992 (eval $ac_compile) 2>&5
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); }; then
5996 case `/usr/bin/file conftest.o` in
5998 case $lt_cv_prog_gnu_ld in
5999 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6000 *) LD="${LD-ld} -64" ;;
6009 need_locks="$enable_libtool_lock"
6012 ac_cpp='$CPP $CPPFLAGS'
6013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6016 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6017 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6018 # On Suns, sometimes $CPP names a directory.
6019 if test -n "$CPP" && test -d "$CPP"; then
6022 if test -z "$CPP"; then
6023 if test "${ac_cv_prog_CPP+set}" = set; then
6024 echo $ECHO_N "(cached) $ECHO_C" >&6
6026 # Double quotes because CPP needs to be expanded
6027 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6030 for ac_c_preproc_warn_flag in '' yes
6032 # Use a header file that comes with gcc, so configuring glibc
6033 # with a fresh cross-compiler works.
6034 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6035 # <limits.h> exists even on freestanding compilers.
6036 # On the NeXT, cc -E runs the code through the compiler's parser,
6037 # not just through cpp. "Syntax error" is here to catch this case.
6038 cat >conftest.$ac_ext <<_ACEOF
6041 cat confdefs.h >>conftest.$ac_ext
6042 cat >>conftest.$ac_ext <<_ACEOF
6043 /* end confdefs.h. */
6045 # include <limits.h>
6047 # include <assert.h>
6051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6052 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6054 grep -v '^ *+' conftest.er1 >conftest.err
6056 cat conftest.err >&5
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); } >/dev/null; then
6059 if test -s conftest.err; then
6060 ac_cpp_err=$ac_c_preproc_warn_flag
6061 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6068 if test -z "$ac_cpp_err"; then
6071 echo "$as_me: failed program was:" >&5
6072 sed 's/^/| /' conftest.$ac_ext >&5
6074 # Broken: fails on valid input.
6077 rm -f conftest.err conftest.$ac_ext
6079 # OK, works on sane cases. Now check whether non-existent headers
6080 # can be detected and how.
6081 cat >conftest.$ac_ext <<_ACEOF
6084 cat confdefs.h >>conftest.$ac_ext
6085 cat >>conftest.$ac_ext <<_ACEOF
6086 /* end confdefs.h. */
6087 #include <ac_nonexistent.h>
6089 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6090 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6092 grep -v '^ *+' conftest.er1 >conftest.err
6094 cat conftest.err >&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); } >/dev/null; then
6097 if test -s conftest.err; then
6098 ac_cpp_err=$ac_c_preproc_warn_flag
6099 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6106 if test -z "$ac_cpp_err"; then
6107 # Broken: success on invalid input.
6110 echo "$as_me: failed program was:" >&5
6111 sed 's/^/| /' conftest.$ac_ext >&5
6113 # Passes both tests.
6117 rm -f conftest.err conftest.$ac_ext
6120 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6121 rm -f conftest.err conftest.$ac_ext
6122 if $ac_preproc_ok; then
6134 echo "$as_me:$LINENO: result: $CPP" >&5
6135 echo "${ECHO_T}$CPP" >&6
6137 for ac_c_preproc_warn_flag in '' yes
6139 # Use a header file that comes with gcc, so configuring glibc
6140 # with a fresh cross-compiler works.
6141 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6142 # <limits.h> exists even on freestanding compilers.
6143 # On the NeXT, cc -E runs the code through the compiler's parser,
6144 # not just through cpp. "Syntax error" is here to catch this case.
6145 cat >conftest.$ac_ext <<_ACEOF
6148 cat confdefs.h >>conftest.$ac_ext
6149 cat >>conftest.$ac_ext <<_ACEOF
6150 /* end confdefs.h. */
6152 # include <limits.h>
6154 # include <assert.h>
6158 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6159 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6161 grep -v '^ *+' conftest.er1 >conftest.err
6163 cat conftest.err >&5
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); } >/dev/null; then
6166 if test -s conftest.err; then
6167 ac_cpp_err=$ac_c_preproc_warn_flag
6168 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6175 if test -z "$ac_cpp_err"; then
6178 echo "$as_me: failed program was:" >&5
6179 sed 's/^/| /' conftest.$ac_ext >&5
6181 # Broken: fails on valid input.
6184 rm -f conftest.err conftest.$ac_ext
6186 # OK, works on sane cases. Now check whether non-existent headers
6187 # can be detected and how.
6188 cat >conftest.$ac_ext <<_ACEOF
6191 cat confdefs.h >>conftest.$ac_ext
6192 cat >>conftest.$ac_ext <<_ACEOF
6193 /* end confdefs.h. */
6194 #include <ac_nonexistent.h>
6196 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6197 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6199 grep -v '^ *+' conftest.er1 >conftest.err
6201 cat conftest.err >&5
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); } >/dev/null; then
6204 if test -s conftest.err; then
6205 ac_cpp_err=$ac_c_preproc_warn_flag
6206 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6213 if test -z "$ac_cpp_err"; then
6214 # Broken: success on invalid input.
6217 echo "$as_me: failed program was:" >&5
6218 sed 's/^/| /' conftest.$ac_ext >&5
6220 # Passes both tests.
6224 rm -f conftest.err conftest.$ac_ext
6227 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6228 rm -f conftest.err conftest.$ac_ext
6229 if $ac_preproc_ok; then
6232 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6233 See \`config.log' for more details." >&5
6234 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6235 See \`config.log' for more details." >&2;}
6236 { (exit 1); exit 1; }; }
6240 ac_cpp='$CPP $CPPFLAGS'
6241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6246 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6247 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6248 if test "${ac_cv_header_stdc+set}" = set; then
6249 echo $ECHO_N "(cached) $ECHO_C" >&6
6251 cat >conftest.$ac_ext <<_ACEOF
6254 cat confdefs.h >>conftest.$ac_ext
6255 cat >>conftest.$ac_ext <<_ACEOF
6256 /* end confdefs.h. */
6270 rm -f conftest.$ac_objext
6271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6272 (eval $ac_compile) 2>conftest.er1
6274 grep -v '^ *+' conftest.er1 >conftest.err
6276 cat conftest.err >&5
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); } &&
6279 { ac_try='test -z "$ac_c_werror_flag"
6280 || test ! -s conftest.err'
6281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); }; } &&
6286 { ac_try='test -s conftest.$ac_objext'
6287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); }; }; then
6292 ac_cv_header_stdc=yes
6294 echo "$as_me: failed program was:" >&5
6295 sed 's/^/| /' conftest.$ac_ext >&5
6297 ac_cv_header_stdc=no
6299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6301 if test $ac_cv_header_stdc = yes; then
6302 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6303 cat >conftest.$ac_ext <<_ACEOF
6306 cat confdefs.h >>conftest.$ac_ext
6307 cat >>conftest.$ac_ext <<_ACEOF
6308 /* end confdefs.h. */
6312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6313 $EGREP "memchr" >/dev/null 2>&1; then
6316 ac_cv_header_stdc=no
6322 if test $ac_cv_header_stdc = yes; then
6323 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6324 cat >conftest.$ac_ext <<_ACEOF
6327 cat confdefs.h >>conftest.$ac_ext
6328 cat >>conftest.$ac_ext <<_ACEOF
6329 /* end confdefs.h. */
6333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6334 $EGREP "free" >/dev/null 2>&1; then
6337 ac_cv_header_stdc=no
6343 if test $ac_cv_header_stdc = yes; then
6344 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6345 if test "$cross_compiling" = yes; then
6348 cat >conftest.$ac_ext <<_ACEOF
6351 cat confdefs.h >>conftest.$ac_ext
6352 cat >>conftest.$ac_ext <<_ACEOF
6353 /* end confdefs.h. */
6355 #if ((' ' & 0x0FF) == 0x020)
6356 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6357 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6359 # define ISLOWER(c) \
6360 (('a' <= (c) && (c) <= 'i') \
6361 || ('j' <= (c) && (c) <= 'r') \
6362 || ('s' <= (c) && (c) <= 'z'))
6363 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6366 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6371 for (i = 0; i < 256; i++)
6372 if (XOR (islower (i), ISLOWER (i))
6373 || toupper (i) != TOUPPER (i))
6378 rm -f conftest$ac_exeext
6379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6380 (eval $ac_link) 2>&5
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); }; }; then
6391 echo "$as_me: program exited with status $ac_status" >&5
6392 echo "$as_me: failed program was:" >&5
6393 sed 's/^/| /' conftest.$ac_ext >&5
6396 ac_cv_header_stdc=no
6398 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6402 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6403 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6404 if test $ac_cv_header_stdc = yes; then
6406 cat >>confdefs.h <<\_ACEOF
6407 #define STDC_HEADERS 1
6412 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6422 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6423 inttypes.h stdint.h unistd.h
6425 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6426 echo "$as_me:$LINENO: checking for $ac_header" >&5
6427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6429 echo $ECHO_N "(cached) $ECHO_C" >&6
6431 cat >conftest.$ac_ext <<_ACEOF
6434 cat confdefs.h >>conftest.$ac_ext
6435 cat >>conftest.$ac_ext <<_ACEOF
6436 /* end confdefs.h. */
6437 $ac_includes_default
6439 #include <$ac_header>
6441 rm -f conftest.$ac_objext
6442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6443 (eval $ac_compile) 2>conftest.er1
6445 grep -v '^ *+' conftest.er1 >conftest.err
6447 cat conftest.err >&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); } &&
6450 { ac_try='test -z "$ac_c_werror_flag"
6451 || test ! -s conftest.err'
6452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); }; } &&
6457 { ac_try='test -s conftest.$ac_objext'
6458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); }; }; then
6463 eval "$as_ac_Header=yes"
6465 echo "$as_me: failed program was:" >&5
6466 sed 's/^/| /' conftest.$ac_ext >&5
6468 eval "$as_ac_Header=no"
6470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6473 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6474 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6475 cat >>confdefs.h <<_ACEOF
6476 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6485 for ac_header in dlfcn.h
6487 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6488 echo "$as_me:$LINENO: checking for $ac_header" >&5
6489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6491 echo $ECHO_N "(cached) $ECHO_C" >&6
6493 cat >conftest.$ac_ext <<_ACEOF
6496 cat confdefs.h >>conftest.$ac_ext
6497 cat >>conftest.$ac_ext <<_ACEOF
6498 /* end confdefs.h. */
6499 $ac_includes_default
6501 #include <$ac_header>
6503 rm -f conftest.$ac_objext
6504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6505 (eval $ac_compile) 2>conftest.er1
6507 grep -v '^ *+' conftest.er1 >conftest.err
6509 cat conftest.err >&5
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); } &&
6512 { ac_try='test -z "$ac_c_werror_flag"
6513 || test ! -s conftest.err'
6514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); }; } &&
6519 { ac_try='test -s conftest.$ac_objext'
6520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); }; }; then
6525 eval "$as_ac_Header=yes"
6527 echo "$as_me: failed program was:" >&5
6528 sed 's/^/| /' conftest.$ac_ext >&5
6530 eval "$as_ac_Header=no"
6532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6536 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6537 cat >>confdefs.h <<_ACEOF
6538 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6547 # This can be used to rebuild libtool when needed
6548 LIBTOOL_DEPS="$ltmain"
6550 # Always use our own libtool.
6551 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6577 test -z "$LN_S" && LN_S="ln -s"
6592 if test -n "${ZSH_VERSION+set}" ; then
6593 setopt NO_GLOB_SUBST
6596 echo "$as_me:$LINENO: checking for objdir" >&5
6597 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6598 if test "${lt_cv_objdir+set}" = set; then
6599 echo $ECHO_N "(cached) $ECHO_C" >&6
6601 rm -f .libs 2>/dev/null
6602 mkdir .libs 2>/dev/null
6603 if test -d .libs; then
6606 # MS-DOS does not allow filenames that begin with a dot.
6609 rmdir .libs 2>/dev/null
6611 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6612 echo "${ECHO_T}$lt_cv_objdir" >&6
6613 objdir=$lt_cv_objdir
6619 cat >>confdefs.h <<_ACEOF
6620 #define LT_OBJDIR "$lt_cv_objdir/"
6641 # AIX sometimes has problems with the GCC collect2 program. For some
6642 # reason, if we set the COLLECT_NAMES environment variable, the problems
6643 # vanish in a puff of smoke.
6644 if test "X${COLLECT_NAMES+set}" != Xset; then
6646 export COLLECT_NAMES
6651 # Sed substitution that helps us do robust quoting. It backslashifies
6652 # metacharacters that are still active within double-quoted strings.
6653 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6655 # Same as above, but do not quote variable references.
6656 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6658 # Sed substitution to delay expansion of an escaped shell variable in a
6659 # double_quote_subst'ed string.
6660 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6662 # Sed substitution to delay expansion of an escaped single quote.
6663 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6665 # Sed substitution to avoid accidental globbing in evaled expressions
6666 no_glob_subst='s/\*/\\\*/g'
6670 can_build_shared=yes
6672 # All known linkers require a `.a' archive for static linking (except MSVC,
6673 # which needs '.lib').
6676 with_gnu_ld="$lt_cv_prog_gnu_ld"
6679 old_CFLAGS="$CFLAGS"
6681 # Set sane defaults for various variables
6682 test -z "$CC" && CC=cc
6683 test -z "$LTCC" && LTCC=$CC
6684 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6685 test -z "$LD" && LD=ld
6686 test -z "$ac_objext" && ac_objext=o
6688 for cc_temp in $compiler""; do
6690 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6691 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6696 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6699 # Only perform the check for file, if the check method requires it
6700 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6701 case $deplibs_check_method in
6703 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6704 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6705 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6706 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6707 echo $ECHO_N "(cached) $ECHO_C" >&6
6711 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6714 lt_save_MAGIC_CMD="$MAGIC_CMD"
6715 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6716 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6717 for ac_dir in $ac_dummy; do
6719 test -z "$ac_dir" && ac_dir=.
6720 if test -f $ac_dir/${ac_tool_prefix}file; then
6721 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6722 if test -n "$file_magic_test_file"; then
6723 case $deplibs_check_method in
6725 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6726 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6727 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6728 $EGREP "$file_magic_regex" > /dev/null; then
6733 *** Warning: the command libtool uses to detect shared libraries,
6734 *** $file_magic_cmd, produces output that libtool cannot recognize.
6735 *** The result is that libtool may fail to recognize shared libraries
6736 *** as such. This will affect the creation of libtool libraries that
6737 *** depend on shared libraries, but programs linked with such libtool
6738 *** libraries will work regardless of this problem. Nevertheless, you
6739 *** may want to report the problem to your system manager and/or to
6740 *** bug-libtool@gnu.org
6750 MAGIC_CMD="$lt_save_MAGIC_CMD"
6755 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6756 if test -n "$MAGIC_CMD"; then
6757 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6758 echo "${ECHO_T}$MAGIC_CMD" >&6
6760 echo "$as_me:$LINENO: result: no" >&5
6761 echo "${ECHO_T}no" >&6
6768 if test -z "$lt_cv_path_MAGIC_CMD"; then
6769 if test -n "$ac_tool_prefix"; then
6770 echo "$as_me:$LINENO: checking for file" >&5
6771 echo $ECHO_N "checking for file... $ECHO_C" >&6
6772 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6773 echo $ECHO_N "(cached) $ECHO_C" >&6
6777 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6780 lt_save_MAGIC_CMD="$MAGIC_CMD"
6781 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6782 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6783 for ac_dir in $ac_dummy; do
6785 test -z "$ac_dir" && ac_dir=.
6786 if test -f $ac_dir/file; then
6787 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6788 if test -n "$file_magic_test_file"; then
6789 case $deplibs_check_method in
6791 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6792 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6793 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6794 $EGREP "$file_magic_regex" > /dev/null; then
6799 *** Warning: the command libtool uses to detect shared libraries,
6800 *** $file_magic_cmd, produces output that libtool cannot recognize.
6801 *** The result is that libtool may fail to recognize shared libraries
6802 *** as such. This will affect the creation of libtool libraries that
6803 *** depend on shared libraries, but programs linked with such libtool
6804 *** libraries will work regardless of this problem. Nevertheless, you
6805 *** may want to report the problem to your system manager and/or to
6806 *** bug-libtool@gnu.org
6816 MAGIC_CMD="$lt_save_MAGIC_CMD"
6821 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6822 if test -n "$MAGIC_CMD"; then
6823 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6824 echo "${ECHO_T}$MAGIC_CMD" >&6
6826 echo "$as_me:$LINENO: result: no" >&5
6827 echo "${ECHO_T}no" >&6
6840 # Use C for the default configuration in the libtool script
6844 ac_cpp='$CPP $CPPFLAGS'
6845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6850 # Source file extension for C test sources.
6853 # Object file extension for compiled C test sources.
6857 # Code to be used in simple compile tests
6858 lt_simple_compile_test_code="int some_variable = 0;"
6860 # Code to be used in simple link tests
6861 lt_simple_link_test_code='int main(){return(0);}'
6869 # If no C compiler was specified, use CC.
6872 # If no C compiler flags were specified, use CFLAGS.
6873 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6875 # Allow CC to be a program name with arguments.
6878 # Save the default compiler, since it gets overwritten when the other
6879 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6880 compiler_DEFAULT=$CC
6882 # save warnings/boilerplate of simple test code
6883 ac_outfile=conftest.$ac_objext
6884 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6885 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6886 _lt_compiler_boilerplate=`cat conftest.err`
6889 ac_outfile=conftest.$ac_objext
6890 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6891 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6892 _lt_linker_boilerplate=`cat conftest.err`
6897 ## There is no encapsulation within the following macros, do not change
6898 ## the running order or otherwise move them around unless you know exactly
6899 ## what you are doing...
6900 if test -n "$compiler"; then
6902 lt_prog_compiler_no_builtin_flag=
6904 if test "$GCC" = yes; then
6905 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6907 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6908 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6909 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6910 echo $ECHO_N "(cached) $ECHO_C" >&6
6912 lt_cv_prog_compiler_rtti_exceptions=no
6913 ac_outfile=conftest.$ac_objext
6914 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6915 lt_compiler_flag="-fno-rtti -fno-exceptions"
6916 # Insert the option either (1) after the last *FLAGS variable, or
6917 # (2) before a word containing "conftest.", or (3) at the end.
6918 # Note that $ac_compile itself does not contain backslashes and begins
6919 # with a dollar sign (not a hyphen), so the echo should work correctly.
6920 # The option is referenced via a variable to avoid confusing sed.
6921 lt_compile=`echo "$ac_compile" | $SED \
6922 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6923 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6924 -e 's:$: $lt_compiler_flag:'`
6925 (eval echo "\"\$as_me:6925: $lt_compile\"" >&5)
6926 (eval "$lt_compile" 2>conftest.err)
6928 cat conftest.err >&5
6929 echo "$as_me:6929: \$? = $ac_status" >&5
6930 if (exit $ac_status) && test -s "$ac_outfile"; then
6931 # The compiler can only warn and ignore the option if not recognized
6932 # So say no if there are warnings other than the usual output.
6933 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6934 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6935 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6936 lt_cv_prog_compiler_rtti_exceptions=yes
6942 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6943 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6945 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6946 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6958 lt_prog_compiler_wl=
6959 lt_prog_compiler_pic=
6960 lt_prog_compiler_static=
6962 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6963 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6965 if test "$GCC" = yes; then
6966 lt_prog_compiler_wl='-Wl,'
6967 lt_prog_compiler_static='-static'
6971 # All AIX code is PIC.
6972 if test "$host_cpu" = ia64; then
6973 # AIX 5 now supports IA64 processor
6974 lt_prog_compiler_static='-Bstatic'
6979 if test "$host_cpu" = m68k; then
6980 # FIXME: we need at least 68020 code to build shared libraries, but
6981 # adding the `-m68020' flag to GCC prevents building anything better,
6983 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6987 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6988 # PIC is the default for these OSes.
6991 mingw* | cygwin* | pw32* | os2*)
6992 # This hack is so that the source file can tell whether it is being
6993 # built for inclusion in a dll (and should export symbols for example).
6994 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6995 # (--disable-auto-import) libraries
6996 lt_prog_compiler_pic='-DDLL_EXPORT'
6999 darwin* | rhapsody*)
7000 # PIC is the default on this platform
7001 # Common symbols not allowed in MH_DYLIB files
7002 lt_prog_compiler_pic='-fno-common'
7006 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7013 lt_prog_compiler_pic='-fPIC'
7019 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7020 # Instead, we relocate shared libraries at runtime.
7024 # Just because we use GCC doesn't mean we suddenly get shared libraries
7025 # on systems that don't support them.
7026 lt_prog_compiler_can_build_shared=no
7031 # QNX uses GNU C++, but need to define -shared option too, otherwise
7033 lt_prog_compiler_pic='-fPIC -shared'
7037 if test -d /usr/nec; then
7038 lt_prog_compiler_pic=-Kconform_pic
7043 lt_prog_compiler_pic='-fPIC'
7047 # PORTME Check for flag to pass linker flags through the system compiler.
7050 lt_prog_compiler_wl='-Wl,'
7051 if test "$host_cpu" = ia64; then
7052 # AIX 5 now supports IA64 processor
7053 lt_prog_compiler_static='-Bstatic'
7055 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7059 # PIC is the default on this platform
7060 # Common symbols not allowed in MH_DYLIB files
7061 case $cc_basename in
7063 lt_prog_compiler_pic='-qnocommon'
7064 lt_prog_compiler_wl='-Wl,'
7069 mingw* | cygwin* | pw32* | os2*)
7070 # This hack is so that the source file can tell whether it is being
7071 # built for inclusion in a dll (and should export symbols for example).
7072 lt_prog_compiler_pic='-DDLL_EXPORT'
7075 hpux9* | hpux10* | hpux11*)
7076 lt_prog_compiler_wl='-Wl,'
7077 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7084 lt_prog_compiler_pic='+Z'
7087 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7088 lt_prog_compiler_static='${wl}-a ${wl}archive'
7091 irix5* | irix6* | nonstopux*)
7092 lt_prog_compiler_wl='-Wl,'
7093 # PIC (with -KPIC) is the default.
7094 lt_prog_compiler_static='-non_shared'
7097 linux* | k*bsd*-gnu)
7098 case $cc_basename in
7100 lt_prog_compiler_wl='-Wl,'
7101 lt_prog_compiler_pic='-KPIC'
7102 lt_prog_compiler_static='-static'
7104 pgcc* | pgf77* | pgf90* | pgf95*)
7105 # Portland Group compilers (*not* the Pentium gcc compiler,
7106 # which looks to be a dead project)
7107 lt_prog_compiler_wl='-Wl,'
7108 lt_prog_compiler_pic='-fpic'
7109 lt_prog_compiler_static='-Bstatic'
7112 lt_prog_compiler_wl='-Wl,'
7113 # All Alpha code is PIC.
7114 lt_prog_compiler_static='-non_shared'
7117 case `$CC -V 2>&1 | sed 5q` in
7120 lt_prog_compiler_pic='-KPIC'
7121 lt_prog_compiler_static='-Bstatic'
7122 lt_prog_compiler_wl='-Wl,'
7125 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7126 lt_prog_compiler_pic='-KPIC'
7127 lt_prog_compiler_static='-Bstatic'
7128 lt_prog_compiler_wl=''
7136 lt_prog_compiler_pic='-KPIC'
7137 lt_prog_compiler_static='-Bstatic'
7141 # QNX uses GNU C++, but need to define -shared option too, otherwise
7143 lt_prog_compiler_pic='-fPIC -shared'
7146 osf3* | osf4* | osf5*)
7147 lt_prog_compiler_wl='-Wl,'
7148 # All OSF/1 code is PIC.
7149 lt_prog_compiler_static='-non_shared'
7153 lt_prog_compiler_static='-non_shared'
7157 lt_prog_compiler_pic='-KPIC'
7158 lt_prog_compiler_static='-Bstatic'
7159 case $cc_basename in
7161 lt_prog_compiler_wl='-Qoption ld ';;
7163 lt_prog_compiler_wl='-Wl,';;
7168 lt_prog_compiler_wl='-Qoption ld '
7169 lt_prog_compiler_pic='-PIC'
7170 lt_prog_compiler_static='-Bstatic'
7173 sysv4 | sysv4.2uw2* | sysv4.3*)
7174 lt_prog_compiler_wl='-Wl,'
7175 lt_prog_compiler_pic='-KPIC'
7176 lt_prog_compiler_static='-Bstatic'
7180 if test -d /usr/nec ;then
7181 lt_prog_compiler_pic='-Kconform_pic'
7182 lt_prog_compiler_static='-Bstatic'
7186 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7187 lt_prog_compiler_wl='-Wl,'
7188 lt_prog_compiler_pic='-KPIC'
7189 lt_prog_compiler_static='-Bstatic'
7193 lt_prog_compiler_wl='-Wl,'
7194 lt_prog_compiler_can_build_shared=no
7198 lt_prog_compiler_pic='-pic'
7199 lt_prog_compiler_static='-Bstatic'
7203 lt_prog_compiler_can_build_shared=no
7209 # For platforms which do not support PIC, -DPIC is meaningless:
7211 lt_prog_compiler_pic=
7214 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7217 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7218 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7226 # Check to make sure the PIC flag actually works.
7228 if test -n "$lt_prog_compiler_pic"; then
7229 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7230 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7231 if test "${lt_prog_compiler_pic_works+set}" = set; then
7232 echo $ECHO_N "(cached) $ECHO_C" >&6
7234 lt_prog_compiler_pic_works=no
7235 ac_outfile=conftest.$ac_objext
7236 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7237 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7238 # Insert the option either (1) after the last *FLAGS variable, or
7239 # (2) before a word containing "conftest.", or (3) at the end.
7240 # Note that $ac_compile itself does not contain backslashes and begins
7241 # with a dollar sign (not a hyphen), so the echo should work correctly.
7242 # The option is referenced via a variable to avoid confusing sed.
7243 lt_compile=`echo "$ac_compile" | $SED \
7244 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7245 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7246 -e 's:$: $lt_compiler_flag:'`
7247 (eval echo "\"\$as_me:7247: $lt_compile\"" >&5)
7248 (eval "$lt_compile" 2>conftest.err)
7250 cat conftest.err >&5
7251 echo "$as_me:7251: \$? = $ac_status" >&5
7252 if (exit $ac_status) && test -s "$ac_outfile"; then
7253 # The compiler can only warn and ignore the option if not recognized
7254 # So say no if there are warnings other than the usual output.
7255 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7256 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7257 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7258 lt_prog_compiler_pic_works=yes
7264 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7265 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7267 if test x"$lt_prog_compiler_pic_works" = xyes; then
7268 case $lt_prog_compiler_pic in
7270 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7273 lt_prog_compiler_pic=
7274 lt_prog_compiler_can_build_shared=no
7285 # Check to make sure the static flag actually works.
7287 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7288 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7289 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7290 if test "${lt_prog_compiler_static_works+set}" = set; then
7291 echo $ECHO_N "(cached) $ECHO_C" >&6
7293 lt_prog_compiler_static_works=no
7294 save_LDFLAGS="$LDFLAGS"
7295 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7296 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7297 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7298 # The linker can only warn and ignore the option if not recognized
7299 # So say no if there are warnings
7300 if test -s conftest.err; then
7301 # Append any errors to the config.log.
7302 cat conftest.err 1>&5
7303 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7304 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7305 if diff conftest.exp conftest.er2 >/dev/null; then
7306 lt_prog_compiler_static_works=yes
7309 lt_prog_compiler_static_works=yes
7313 LDFLAGS="$save_LDFLAGS"
7316 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7317 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7319 if test x"$lt_prog_compiler_static_works" = xyes; then
7322 lt_prog_compiler_static=
7331 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7332 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7333 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7334 echo $ECHO_N "(cached) $ECHO_C" >&6
7336 lt_cv_prog_compiler_c_o=no
7337 $RM -r conftest 2>/dev/null
7341 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7343 lt_compiler_flag="-o out/conftest2.$ac_objext"
7344 # Insert the option either (1) after the last *FLAGS variable, or
7345 # (2) before a word containing "conftest.", or (3) at the end.
7346 # Note that $ac_compile itself does not contain backslashes and begins
7347 # with a dollar sign (not a hyphen), so the echo should work correctly.
7348 lt_compile=`echo "$ac_compile" | $SED \
7349 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7350 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7351 -e 's:$: $lt_compiler_flag:'`
7352 (eval echo "\"\$as_me:7352: $lt_compile\"" >&5)
7353 (eval "$lt_compile" 2>out/conftest.err)
7355 cat out/conftest.err >&5
7356 echo "$as_me:7356: \$? = $ac_status" >&5
7357 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7359 # The compiler can only warn and ignore the option if not recognized
7360 # So say no if there are warnings
7361 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7362 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7363 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7364 lt_cv_prog_compiler_c_o=yes
7369 # SGI C++ compiler will create directory out/ii_files/ for
7370 # template instantiation
7371 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7372 $RM out/* && rmdir out
7378 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7379 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7386 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7387 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7388 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
7391 lt_cv_prog_compiler_c_o=no
7392 $RM -r conftest 2>/dev/null
7396 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7398 lt_compiler_flag="-o out/conftest2.$ac_objext"
7399 # Insert the option either (1) after the last *FLAGS variable, or
7400 # (2) before a word containing "conftest.", or (3) at the end.
7401 # Note that $ac_compile itself does not contain backslashes and begins
7402 # with a dollar sign (not a hyphen), so the echo should work correctly.
7403 lt_compile=`echo "$ac_compile" | $SED \
7404 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7405 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7406 -e 's:$: $lt_compiler_flag:'`
7407 (eval echo "\"\$as_me:7407: $lt_compile\"" >&5)
7408 (eval "$lt_compile" 2>out/conftest.err)
7410 cat out/conftest.err >&5
7411 echo "$as_me:7411: \$? = $ac_status" >&5
7412 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7414 # The compiler can only warn and ignore the option if not recognized
7415 # So say no if there are warnings
7416 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7417 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7418 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7419 lt_cv_prog_compiler_c_o=yes
7424 # SGI C++ compiler will create directory out/ii_files/ for
7425 # template instantiation
7426 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7427 $RM out/* && rmdir out
7433 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7434 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7439 hard_links="nottested"
7440 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7441 # do not overwrite the value of need_locks provided by the user
7442 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7443 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7446 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7448 ln conftest.a conftest.b 2>&5 || hard_links=no
7449 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7450 echo "$as_me:$LINENO: result: $hard_links" >&5
7451 echo "${ECHO_T}$hard_links" >&6
7452 if test "$hard_links" = no; then
7453 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7454 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7466 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7467 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7470 allow_undefined_flag=
7471 always_export_symbols=no
7473 archive_expsym_cmds=
7474 compiler_needs_object=no
7475 enable_shared_with_static_runtimes=no
7476 export_dynamic_flag_spec=
7477 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7478 hardcode_automatic=no
7480 hardcode_direct_absolute=no
7481 hardcode_libdir_flag_spec=
7482 hardcode_libdir_flag_spec_ld=
7483 hardcode_libdir_separator=
7485 hardcode_shlibpath_var=unsupported
7487 link_all_deplibs=unknown
7490 old_archive_from_new_cmds=
7491 old_archive_from_expsyms_cmds=
7492 thread_safe_flag_spec=
7493 whole_archive_flag_spec=
7494 # include_expsyms should be a list of space-separated symbols to be *always*
7495 # included in the symbol list
7497 # exclude_expsyms can be an extended regexp of symbols to exclude
7498 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7499 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7500 # as well as any symbol that contains `d'.
7501 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7502 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7503 # platforms (ab)use it in PIC code, but their linkers get confused if
7504 # the symbol is explicitly referenced. Since portable code cannot
7505 # rely on this symbol name, it's probably fine to never include it in
7506 # preloaded symbol tables.
7507 extract_expsyms_cmds=
7510 cygwin* | mingw* | pw32*)
7511 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7512 # When not using gcc, we currently assume that we are using
7513 # Microsoft Visual C++.
7514 if test "$GCC" != yes; then
7519 # we just hope/assume this is gcc and not c89 (= MSVC++)
7528 if test "$with_gnu_ld" = yes; then
7529 # If archive_cmds runs LD, not CC, wlarc should be empty
7532 # Set some defaults for GNU ld with shared library support. These
7533 # are reset later if shared libraries are not supported. Putting them
7534 # here allows them to be overridden if necessary.
7535 runpath_var=LD_RUN_PATH
7536 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7537 export_dynamic_flag_spec='${wl}--export-dynamic'
7538 # ancient GNU ld didn't support --whole-archive et. al.
7539 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7540 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7542 whole_archive_flag_spec=
7544 supports_anon_versioning=no
7545 case `$LD -v 2>&1` in
7546 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7547 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7548 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7549 *\ 2.11.*) ;; # other 2.11 versions
7550 *) supports_anon_versioning=yes ;;
7553 # See if GNU ld supports shared libraries.
7556 # On AIX/PPC, the GNU linker is very broken
7557 if test "$host_cpu" != ia64; then
7561 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7562 *** to be unable to reliably create shared libraries on AIX.
7563 *** Therefore, libtool is disabling shared libraries support. If you
7564 *** really care for shared libraries, you may want to modify your PATH
7565 *** so that a non-GNU linker is found, and then restart.
7572 if test "$host_cpu" = m68k; then
7573 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)'
7574 hardcode_libdir_flag_spec='-L$libdir'
7575 hardcode_minus_L=yes
7578 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7579 # that the semantics of dynamic libraries on AmigaOS, at least up
7580 # to version 4, is to share data among multiple programs linked
7581 # with the same dynamic library. Since this doesn't match the
7582 # behavior of shared libraries on other platforms, we can't use
7588 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7589 allow_undefined_flag=unsupported
7590 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7591 # support --undefined. This deserves some investigation. FIXME
7592 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7598 cygwin* | mingw* | pw32*)
7599 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7600 # as there is no search path for DLLs.
7601 hardcode_libdir_flag_spec='-L$libdir'
7602 allow_undefined_flag=unsupported
7603 always_export_symbols=no
7604 enable_shared_with_static_runtimes=yes
7605 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7607 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7608 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7609 # If the export-symbols file already is a .def file (1st line
7610 # is EXPORTS), use it as is; otherwise, prepend...
7611 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7612 cp $export_symbols $output_objdir/$soname.def;
7614 echo EXPORTS > $output_objdir/$soname.def;
7615 cat $export_symbols >> $output_objdir/$soname.def;
7617 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7625 hardcode_shlibpath_var=no
7626 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7627 export_dynamic_flag_spec='${wl}-E'
7628 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7629 # Instead, shared libraries are loaded at an image base (0x10000000 by
7630 # default) and relocated if they conflict, which is a slow very memory
7631 # consuming and fragmenting process. To avoid this, we pick a random,
7632 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7633 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7634 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7635 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7638 gnu* | linux* | tpf* | k*bsd*-gnu)
7640 if test "$host_os" = linux-dietlibc; then
7641 case $cc_basename in
7642 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7645 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7646 && test "$tmp_diet" = no
7649 case $cc_basename,$host_cpu in
7650 pgcc*) # Portland Group C compiler
7651 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7652 tmp_addflag=' $pic_flag'
7654 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7655 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7656 tmp_addflag=' $pic_flag -Mnomain' ;;
7657 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7658 tmp_addflag=' -i_dynamic' ;;
7659 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7660 tmp_addflag=' -i_dynamic -nofor_main' ;;
7661 ifc* | ifort*) # Intel Fortran compiler
7662 tmp_addflag=' -nofor_main' ;;
7664 case `$CC -V 2>&1 | sed 5q` in
7665 *Sun\ C*) # Sun C 5.9
7666 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7667 compiler_needs_object=yes
7668 tmp_sharedflag='-G' ;;
7669 *Sun\ F*) # Sun Fortran 8.3
7670 tmp_sharedflag='-G' ;;
7672 tmp_sharedflag='-shared' ;;
7674 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7676 if test "x$supports_anon_versioning" = xyes; then
7677 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7678 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7679 echo "local: *; };" >> $output_objdir/$libname.ver~
7680 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7688 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7689 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7692 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7693 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7698 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7702 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7703 *** create shared libraries on Solaris systems. Therefore, libtool
7704 *** is disabling shared libraries support. We urge you to upgrade GNU
7705 *** binutils to release 2.9.1 or newer. Another option is to modify
7706 *** your PATH or compiler configuration so that the native linker is
7707 *** used, and then restart.
7710 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7711 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7712 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7718 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7719 case `$LD -v 2>&1` in
7720 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7724 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7725 *** reliably create shared libraries on SCO systems. Therefore, libtool
7726 *** is disabling shared libraries support. We urge you to upgrade GNU
7727 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7728 *** your PATH or compiler configuration so that the native linker is
7729 *** used, and then restart.
7734 # For security reasons, it is highly recommended that you always
7735 # use absolute paths for naming shared libraries, and exclude the
7736 # DT_RUNPATH tag from executables and libraries. But doing so
7737 # requires that you compile everything twice, which is a pain.
7738 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7739 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7740 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7741 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7750 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7753 hardcode_shlibpath_var=no
7757 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7758 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7759 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7766 if test "$ld_shlibs" = no; then
7768 hardcode_libdir_flag_spec=
7769 export_dynamic_flag_spec=
7770 whole_archive_flag_spec=
7773 # PORTME fill in a description of your system's linker (not GNU ld)
7776 allow_undefined_flag=unsupported
7777 always_export_symbols=yes
7778 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'
7779 # Note: this linker hardcodes the directories in LIBPATH if there
7780 # are no directories specified by -L.
7781 hardcode_minus_L=yes
7782 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7783 # Neither direct hardcoding nor static linking is supported with a
7785 hardcode_direct=unsupported
7790 if test "$host_cpu" = ia64; then
7791 # On IA64, the linker does run time linking by default, so we don't
7792 # have to do anything special.
7793 aix_use_runtimelinking=no
7794 exp_sym_flag='-Bexport'
7797 # If we're using GNU nm, then we don't want the "-C" option.
7798 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7799 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7800 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7802 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7804 aix_use_runtimelinking=no
7806 # Test if we are trying to use run time linking or normal
7807 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7808 # need to do runtime linking.
7809 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7810 for ld_flag in $LDFLAGS; do
7811 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7812 aix_use_runtimelinking=yes
7819 exp_sym_flag='-bexport'
7820 no_entry_flag='-bnoentry'
7823 # When large executables or shared objects are built, AIX ld can
7824 # have problems creating the table of contents. If linking a library
7825 # or program results in "error TOC overflow" add -mminimal-toc to
7826 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7827 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7831 hardcode_direct_absolute=yes
7832 hardcode_libdir_separator=':'
7833 link_all_deplibs=yes
7834 file_list_spec='${wl}-f,'
7836 if test "$GCC" = yes; then
7837 case $host_os in aix4.[012]|aix4.[012].*)
7838 # We only want to do this on AIX 4.2 and lower, the check
7839 # below for broken collect2 doesn't work under 4.3+
7840 collect2name=`${CC} -print-prog-name=collect2`
7841 if test -f "$collect2name" &&
7842 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7844 # We have reworked collect2
7847 # We have old collect2
7848 hardcode_direct=unsupported
7849 # It fails to find uninstalled libraries when the uninstalled
7850 # path is not listed in the libpath. Setting hardcode_minus_L
7851 # to unsupported forces relinking
7852 hardcode_minus_L=yes
7853 hardcode_libdir_flag_spec='-L$libdir'
7854 hardcode_libdir_separator=
7858 shared_flag='-shared'
7859 if test "$aix_use_runtimelinking" = yes; then
7860 shared_flag="$shared_flag "'${wl}-G'
7864 if test "$host_cpu" = ia64; then
7865 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7866 # chokes on -Wl,-G. The following line is correct:
7869 if test "$aix_use_runtimelinking" = yes; then
7870 shared_flag='${wl}-G'
7872 shared_flag='${wl}-bM:SRE'
7877 # It seems that -bexpall does not export symbols beginning with
7878 # underscore (_), so it is better to generate a list of symbols to export.
7879 always_export_symbols=yes
7880 if test "$aix_use_runtimelinking" = yes; then
7881 # Warning - without using the other runtime loading flags (-brtl),
7882 # -berok will link without error, but may produce a broken library.
7883 allow_undefined_flag='-berok'
7884 # Determine the default libpath from the value encoded in an
7886 cat >conftest.$ac_ext <<_ACEOF
7889 cat confdefs.h >>conftest.$ac_ext
7890 cat >>conftest.$ac_ext <<_ACEOF
7891 /* end confdefs.h. */
7901 rm -f conftest.$ac_objext conftest$ac_exeext
7902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7903 (eval $ac_link) 2>conftest.er1
7905 grep -v '^ *+' conftest.er1 >conftest.err
7907 cat conftest.err >&5
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); } &&
7910 { ac_try='test -z "$ac_c_werror_flag"
7911 || test ! -s conftest.err'
7912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); }; } &&
7917 { ac_try='test -s conftest$ac_exeext'
7918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); }; }; then
7924 lt_aix_libpath_sed='
7925 /Import File Strings/,/^$/ {
7931 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7932 # Check for a 64-bit object if we didn't find anything.
7933 if test -z "$aix_libpath"; then
7934 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7937 echo "$as_me: failed program was:" >&5
7938 sed 's/^/| /' conftest.$ac_ext >&5
7941 rm -f conftest.err conftest.$ac_objext \
7942 conftest$ac_exeext conftest.$ac_ext
7943 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7945 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7946 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7948 if test "$host_cpu" = ia64; then
7949 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7950 allow_undefined_flag="-z nodefs"
7951 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7953 # Determine the default libpath from the value encoded in an
7955 cat >conftest.$ac_ext <<_ACEOF
7958 cat confdefs.h >>conftest.$ac_ext
7959 cat >>conftest.$ac_ext <<_ACEOF
7960 /* end confdefs.h. */
7970 rm -f conftest.$ac_objext conftest$ac_exeext
7971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7972 (eval $ac_link) 2>conftest.er1
7974 grep -v '^ *+' conftest.er1 >conftest.err
7976 cat conftest.err >&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); } &&
7979 { ac_try='test -z "$ac_c_werror_flag"
7980 || test ! -s conftest.err'
7981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); }; } &&
7986 { ac_try='test -s conftest$ac_exeext'
7987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); }; }; then
7993 lt_aix_libpath_sed='
7994 /Import File Strings/,/^$/ {
8000 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8001 # Check for a 64-bit object if we didn't find anything.
8002 if test -z "$aix_libpath"; then
8003 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8006 echo "$as_me: failed program was:" >&5
8007 sed 's/^/| /' conftest.$ac_ext >&5
8010 rm -f conftest.err conftest.$ac_objext \
8011 conftest$ac_exeext conftest.$ac_ext
8012 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8014 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8015 # Warning - without using the other run time loading flags,
8016 # -berok will link without error, but may produce a broken library.
8017 no_undefined_flag=' ${wl}-bernotok'
8018 allow_undefined_flag=' ${wl}-berok'
8019 # Exported symbols can be pulled into shared objects from archives
8020 whole_archive_flag_spec='$convenience'
8021 archive_cmds_need_lc=yes
8022 # This is similar to how AIX traditionally builds its shared libraries.
8023 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8029 if test "$host_cpu" = m68k; then
8030 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)'
8031 hardcode_libdir_flag_spec='-L$libdir'
8032 hardcode_minus_L=yes
8034 # see comment about different semantics on the GNU ld section
8039 export_dynamic_flag_spec=-rdynamic
8042 cygwin* | mingw* | pw32*)
8043 # When not using gcc, we currently assume that we are using
8044 # Microsoft Visual C++.
8045 # hardcode_libdir_flag_spec is actually meaningless, as there is
8046 # no search path for DLLs.
8047 hardcode_libdir_flag_spec=' '
8048 allow_undefined_flag=unsupported
8049 # Tell ltmain to make .lib files, not .a files.
8051 # Tell ltmain to make .dll files, not .so files.
8053 # FIXME: Setting linknames here is a bad hack.
8054 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8055 # The linker will automatically build a .lib file if we build a DLL.
8056 old_archive_from_new_cmds='true'
8057 # FIXME: Should let the user specify the lib program.
8058 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8059 fix_srcfile_path='`cygpath -w "$srcfile"`'
8060 enable_shared_with_static_runtimes=yes
8063 darwin* | rhapsody*)
8065 rhapsody* | darwin1.[012])
8066 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8069 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8071 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8074 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8079 archive_cmds_need_lc=no
8081 hardcode_automatic=yes
8082 hardcode_shlibpath_var=unsupported
8083 whole_archive_flag_spec=''
8084 link_all_deplibs=yes
8085 if test "$GCC" = yes ; then
8086 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8087 echo $ECHO_N "(cached) $ECHO_C" >&6
8089 lt_cv_apple_cc_single_mod=no
8090 if test -z "${LT_MULTI_MODULE}"; then
8091 # By default we will add the -single_module flag. You can override
8092 # by either setting the environment variable LT_MULTI_MODULE
8093 # non-empty at configure time, or by adding -multi-module to the
8095 echo "int foo(void){return 1;}" > conftest.c
8096 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8097 -dynamiclib ${wl}-single_module conftest.c
8098 if test -f libconftest.dylib; then
8099 lt_cv_apple_cc_single_mod=yes
8100 rm libconftest.dylib
8106 output_verbose_link_cmd=echo
8107 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8108 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8109 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8111 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8112 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8114 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8115 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8117 case $cc_basename in
8119 output_verbose_link_cmd=echo
8120 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8121 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8122 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8123 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8124 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8134 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8135 hardcode_libdir_flag_spec='-L$libdir'
8136 hardcode_shlibpath_var=no
8143 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8144 # support. Future versions do this automatically, but an explicit c++rt0.o
8145 # does not break anything, and helps significantly (at the cost of a little
8148 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8149 hardcode_libdir_flag_spec='-R$libdir'
8151 hardcode_shlibpath_var=no
8154 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8156 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8158 hardcode_minus_L=yes
8159 hardcode_shlibpath_var=no
8162 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8163 freebsd* | dragonfly*)
8164 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8165 hardcode_libdir_flag_spec='-R$libdir'
8167 hardcode_shlibpath_var=no
8171 if test "$GCC" = yes; then
8172 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8174 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'
8176 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8177 hardcode_libdir_separator=:
8180 # hardcode_minus_L: Not really in the search PATH,
8181 # but as the default location of the library.
8182 hardcode_minus_L=yes
8183 export_dynamic_flag_spec='${wl}-E'
8187 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8188 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8190 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8192 if test "$with_gnu_ld" = no; then
8193 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8194 hardcode_libdir_flag_spec_ld='+b $libdir'
8195 hardcode_libdir_separator=:
8197 hardcode_direct_absolute=yes
8198 export_dynamic_flag_spec='${wl}-E'
8199 # hardcode_minus_L: Not really in the search PATH,
8200 # but as the default location of the library.
8201 hardcode_minus_L=yes
8206 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8209 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8212 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8215 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8221 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8224 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8227 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8231 if test "$with_gnu_ld" = no; then
8232 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8233 hardcode_libdir_separator=:
8238 hardcode_shlibpath_var=no
8242 hardcode_direct_absolute=yes
8243 export_dynamic_flag_spec='${wl}-E'
8245 # hardcode_minus_L: Not really in the search PATH,
8246 # but as the default location of the library.
8247 hardcode_minus_L=yes
8253 irix5* | irix6* | nonstopux*)
8254 if test "$GCC" = yes; then
8255 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8256 # Try to use the -exported_symbol ld option, if it does not
8257 # work, assume that -exports_file does not work either and
8258 # implicitly export all symbols.
8259 save_LDFLAGS="$LDFLAGS"
8260 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8261 cat >conftest.$ac_ext <<_ACEOF
8264 rm -f conftest.$ac_objext conftest$ac_exeext
8265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8266 (eval $ac_link) 2>conftest.er1
8268 grep -v '^ *+' conftest.er1 >conftest.err
8270 cat conftest.err >&5
8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); } &&
8273 { ac_try='test -z "$ac_c_werror_flag"
8274 || test ! -s conftest.err'
8275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); }; } &&
8280 { ac_try='test -s conftest$ac_exeext'
8281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); }; }; then
8286 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8289 echo "$as_me: failed program was:" >&5
8290 sed 's/^/| /' conftest.$ac_ext >&5
8293 rm -f conftest.err conftest.$ac_objext \
8294 conftest$ac_exeext conftest.$ac_ext
8295 LDFLAGS="$save_LDFLAGS"
8297 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8298 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8300 archive_cmds_need_lc='no'
8301 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8302 hardcode_libdir_separator=:
8304 link_all_deplibs=yes
8308 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8309 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8311 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8313 hardcode_libdir_flag_spec='-R$libdir'
8315 hardcode_shlibpath_var=no
8319 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8321 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8322 hardcode_libdir_separator=:
8323 hardcode_shlibpath_var=no
8331 hardcode_shlibpath_var=no
8332 hardcode_direct_absolute=yes
8333 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8334 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8335 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8336 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8337 export_dynamic_flag_spec='${wl}-E'
8340 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8341 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8342 hardcode_libdir_flag_spec='-R$libdir'
8345 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8346 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8353 hardcode_libdir_flag_spec='-L$libdir'
8354 hardcode_minus_L=yes
8355 allow_undefined_flag=unsupported
8356 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'
8357 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8361 if test "$GCC" = yes; then
8362 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8363 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8365 allow_undefined_flag=' -expect_unresolved \*'
8366 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8368 archive_cmds_need_lc='no'
8369 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8370 hardcode_libdir_separator=:
8373 osf4* | osf5*) # as osf3* with the addition of -msym flag
8374 if test "$GCC" = yes; then
8375 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8376 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8377 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8379 allow_undefined_flag=' -expect_unresolved \*'
8380 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8381 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8382 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8384 # Both c and cxx compiler support -rpath directly
8385 hardcode_libdir_flag_spec='-rpath $libdir'
8387 archive_cmds_need_lc='no'
8388 hardcode_libdir_separator=:
8392 no_undefined_flag=' -z defs'
8393 if test "$GCC" = yes; then
8395 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8396 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8397 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8399 case `$CC -V 2>&1` in
8402 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8403 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8404 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8408 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8409 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8410 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8414 hardcode_libdir_flag_spec='-R$libdir'
8415 hardcode_shlibpath_var=no
8417 solaris2.[0-5] | solaris2.[0-5].*) ;;
8419 # The compiler driver will combine and reorder linker options,
8420 # but understands `-z linker_flag'. GCC discards it without `$wl',
8421 # but is careful enough not to reorder.
8422 # Supported since Solaris 2.6 (maybe 2.5.1?)
8423 if test "$GCC" = yes; then
8424 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8426 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8430 link_all_deplibs=yes
8434 if test "x$host_vendor" = xsequent; then
8435 # Use $CC to link under sequent, because it throws in some extra .o
8436 # files that make .init and .fini sections work.
8437 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8439 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8441 hardcode_libdir_flag_spec='-L$libdir'
8443 hardcode_minus_L=yes
8444 hardcode_shlibpath_var=no
8448 case $host_vendor in
8450 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8451 hardcode_direct=yes # is this really true???
8454 ## LD is ld it makes a PLAMLIB
8455 ## CC just makes a GrossModule.
8456 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8457 reload_cmds='$CC -r -o $output$reload_objs'
8461 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8462 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8465 runpath_var='LD_RUN_PATH'
8466 hardcode_shlibpath_var=no
8470 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8471 hardcode_shlibpath_var=no
8472 export_dynamic_flag_spec='-Bexport'
8476 if test -d /usr/nec; then
8477 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8478 hardcode_shlibpath_var=no
8479 runpath_var=LD_RUN_PATH
8480 hardcode_runpath_var=yes
8485 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8486 no_undefined_flag='${wl}-z,text'
8487 archive_cmds_need_lc=no
8488 hardcode_shlibpath_var=no
8489 runpath_var='LD_RUN_PATH'
8491 if test "$GCC" = yes; then
8492 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8493 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8495 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8496 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8500 sysv5* | sco3.2v5* | sco5v6*)
8501 # Note: We can NOT use -z defs as we might desire, because we do not
8502 # link with -lc, and that would cause any symbols used from libc to
8503 # always be unresolved, which means just about no library would
8504 # ever link correctly. If we're not using GNU ld we use -z text
8505 # though, which does catch some bad symbols but isn't as heavy-handed
8507 no_undefined_flag='${wl}-z,text'
8508 allow_undefined_flag='${wl}-z,nodefs'
8509 archive_cmds_need_lc=no
8510 hardcode_shlibpath_var=no
8511 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8512 hardcode_libdir_separator=':'
8513 link_all_deplibs=yes
8514 export_dynamic_flag_spec='${wl}-Bexport'
8515 runpath_var='LD_RUN_PATH'
8517 if test "$GCC" = yes; then
8518 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8519 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8521 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8522 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8527 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8528 hardcode_libdir_flag_spec='-L$libdir'
8529 hardcode_shlibpath_var=no
8537 if test x$host_vendor = xsni; then
8539 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8540 export_dynamic_flag_spec='${wl}-Blargedynsym'
8546 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8547 echo "${ECHO_T}$ld_shlibs" >&6
8548 test "$ld_shlibs" = no && can_build_shared=no
8550 with_gnu_ld=$with_gnu_ld
8567 # Do we need to explicitly link libc?
8569 case "x$archive_cmds_need_lc" in
8571 # Assume -lc should be added
8572 archive_cmds_need_lc=yes
8574 if test "$enable_shared" = yes && test "$GCC" = yes; then
8575 case $archive_cmds in
8577 # FIXME: we may have to deal with multi-command sequences.
8580 # Test whether the compiler implicitly links with -lc since on some
8581 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8582 # to ld, don't add -lc before -lgcc.
8583 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8584 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8586 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8589 (eval $ac_compile) 2>&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); } 2>conftest.err; then
8595 libobjs=conftest.$ac_objext
8597 wl=$lt_prog_compiler_wl
8598 pic_flag=$lt_prog_compiler_pic
8604 lt_save_allow_undefined_flag=$allow_undefined_flag
8605 allow_undefined_flag=
8606 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8607 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); }
8612 archive_cmds_need_lc=no
8614 archive_cmds_need_lc=yes
8616 allow_undefined_flag=$lt_save_allow_undefined_flag
8618 cat conftest.err 1>&5
8621 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8622 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8785 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8786 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8788 if test "$withGCC" = yes; then
8790 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8791 *) lt_awk_arg="/^libraries:/" ;;
8793 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8794 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8795 # if the path contains ";" then we assume it to be the separator
8796 # otherwise default to the standard path separator (i.e. ":") - it is
8797 # assumed that no part of a normal pathname contains ";" but that should
8798 # okay in the real world where ";" in dirpaths is itself problematic.
8799 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8801 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8803 # Ok, now we have the path, separated by spaces, we can step through it
8804 # and add multilib dir if necessary.
8805 lt_tmp_lt_search_path_spec=
8806 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8807 for lt_sys_path in $lt_search_path_spec; do
8808 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8809 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8811 test -d "$lt_sys_path" && \
8812 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8815 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8816 BEGIN {RS=" "; FS="/|\n";} {
8819 for (lt_i = NF; lt_i > 0; lt_i--) {
8820 if ($lt_i != "" && $lt_i != ".") {
8821 if ($lt_i == "..") {
8824 if (lt_count == 0) {
8825 lt_foo="/" $lt_i lt_foo;
8832 if (lt_foo != "") { lt_freq[lt_foo]++; }
8833 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8835 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8837 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8840 libname_spec='lib$name'
8848 shlibpath_overrides_runpath=unknown
8850 dynamic_linker="$host_os ld.so"
8851 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8852 need_lib_prefix=unknown
8853 hardcode_into_libs=no
8855 # when you set need_version to no, make sure it does not cause -set_version
8856 # flags to be left without arguments
8857 need_version=unknown
8862 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8863 shlibpath_var=LIBPATH
8865 # AIX 3 has no versioning support, so we append a major version to the name.
8866 soname_spec='${libname}${release}${shared_ext}$major'
8873 hardcode_into_libs=yes
8874 if test "$host_cpu" = ia64; then
8875 # AIX 5 supports IA64
8876 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8877 shlibpath_var=LD_LIBRARY_PATH
8879 # With GCC up to 2.95.x, collect2 would create an import file
8880 # for dependence libraries. The import file would start with
8881 # the line `#! .'. This would cause the generated library to
8882 # depend on `.', always an invalid library. This was fixed in
8883 # development snapshots of GCC prior to 3.0.
8885 aix4 | aix4.[01] | aix4.[01].*)
8886 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8888 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8895 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8896 # soname into executable. Probably we can add versioning support to
8897 # collect2, so additional links can be useful in future.
8898 if test "$aix_use_runtimelinking" = yes; then
8899 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8900 # instead of lib<name>.a to let people know that these are not
8901 # typical AIX shared libraries.
8902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8904 # We preserve .a as extension for shared libraries through AIX4.2
8905 # and later when we are not doing run time linking.
8906 library_names_spec='${libname}${release}.a $libname.a'
8907 soname_spec='${libname}${release}${shared_ext}$major'
8909 shlibpath_var=LIBPATH
8914 if test "$host_cpu" = m68k; then
8915 library_names_spec='$libname.ixlibrary $libname.a'
8916 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8917 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'
8924 library_names_spec='${libname}${shared_ext}'
8925 dynamic_linker="$host_os ld.so"
8926 shlibpath_var=LIBRARY_PATH
8932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8933 soname_spec='${libname}${release}${shared_ext}$major'
8934 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8935 shlibpath_var=LD_LIBRARY_PATH
8936 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8937 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8938 # the default ld.so.conf also contains /usr/contrib/lib and
8939 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8940 # libtool to hard-code these into programs
8943 cygwin* | mingw* | pw32*)
8944 version_type=windows
8949 case $withGCC,$host_os in
8950 yes,cygwin* | yes,mingw* | yes,pw32*)
8951 library_names_spec='$libname.dll.a'
8952 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8953 postinstall_cmds='base_file=`basename \${file}`~
8954 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8955 dldir=$destdir/`dirname \$dlpath`~
8956 test -d \$dldir || mkdir -p \$dldir~
8957 $install_prog $dir/$dlname \$dldir/$dlname~
8958 chmod a+x \$dldir/$dlname~
8959 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8960 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8962 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8963 dlpath=$dir/\$dldll~
8965 shlibpath_overrides_runpath=yes
8969 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8970 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8971 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8974 # MinGW DLLs use traditional 'lib' prefix
8975 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8976 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8977 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8978 # It is most probably a Windows format PATH printed by
8979 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8980 # path with ; separators, and with drive letters. We can handle the
8981 # drive letters (cygwin fileutils understands them), so leave them,
8982 # especially as we might pass files found there to a mingw objdump,
8983 # which wouldn't understand a cygwinified path. Ahh.
8984 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8986 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8990 # pw32 DLLs use 'pw' prefix rather than 'lib'
8991 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8997 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9000 dynamic_linker='Win32 ld.exe'
9001 # FIXME: first we should search . and the directory the executable is in
9005 darwin* | rhapsody*)
9006 dynamic_linker="$host_os dyld"
9010 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9011 soname_spec='${libname}${release}${major}$shared_ext'
9012 shlibpath_overrides_runpath=yes
9013 shlibpath_var=DYLD_LIBRARY_PATH
9014 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9016 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9017 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9025 soname_spec='${libname}${release}${shared_ext}$major'
9026 shlibpath_var=LD_LIBRARY_PATH
9033 freebsd* | dragonfly*)
9034 # DragonFly does not have aout. When/if they implement a new
9035 # versioning mechanism, adjust this.
9036 if test -x /usr/bin/objformat; then
9037 objformat=`/usr/bin/objformat`
9040 freebsd[123]*) objformat=aout ;;
9044 version_type=freebsd-$objformat
9045 case $version_type in
9047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9052 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9056 shlibpath_var=LD_LIBRARY_PATH
9059 shlibpath_overrides_runpath=yes
9061 freebsd3.[01]* | freebsdelf3.[01]*)
9062 shlibpath_overrides_runpath=yes
9063 hardcode_into_libs=yes
9065 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9066 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9067 shlibpath_overrides_runpath=no
9068 hardcode_into_libs=yes
9070 *) # from 4.6 on, and DragonFly
9071 shlibpath_overrides_runpath=yes
9072 hardcode_into_libs=yes
9081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9082 soname_spec='${libname}${release}${shared_ext}$major'
9083 shlibpath_var=LD_LIBRARY_PATH
9084 hardcode_into_libs=yes
9087 hpux9* | hpux10* | hpux11*)
9088 # Give a soname corresponding to the major version so that dld.sl refuses to
9089 # link against other versions.
9096 hardcode_into_libs=yes
9097 dynamic_linker="$host_os dld.so"
9098 shlibpath_var=LD_LIBRARY_PATH
9099 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9101 soname_spec='${libname}${release}${shared_ext}$major'
9102 if test "X$HPUX_IA64_MODE" = X32; then
9103 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9105 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9107 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9111 hardcode_into_libs=yes
9112 dynamic_linker="$host_os dld.sl"
9113 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9114 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9116 soname_spec='${libname}${release}${shared_ext}$major'
9117 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9118 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9122 dynamic_linker="$host_os dld.sl"
9123 shlibpath_var=SHLIB_PATH
9124 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9126 soname_spec='${libname}${release}${shared_ext}$major'
9129 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9130 postinstall_cmds='chmod 555 $lib'
9137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9138 soname_spec='${libname}${release}${shared_ext}$major'
9139 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9140 shlibpath_var=LD_LIBRARY_PATH
9141 shlibpath_overrides_runpath=no
9142 hardcode_into_libs=yes
9145 irix5* | irix6* | nonstopux*)
9147 nonstopux*) version_type=nonstopux ;;
9149 if test "$lt_cv_prog_gnu_ld" = yes; then
9157 soname_spec='${libname}${release}${shared_ext}$major'
9158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9160 irix5* | nonstopux*)
9164 case $LD in # libtool.m4 will add one of these switches to LD
9165 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9166 libsuff= shlibsuff= libmagic=32-bit;;
9167 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9168 libsuff=32 shlibsuff=N32 libmagic=N32;;
9169 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9170 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9171 *) libsuff= shlibsuff= libmagic=never-match;;
9175 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9176 shlibpath_overrides_runpath=no
9177 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9178 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9179 hardcode_into_libs=yes
9182 # No shared lib support for Linux oldld, aout, or coff.
9183 linux*oldld* | linux*aout* | linux*coff*)
9187 # This must be Linux ELF.
9188 linux* | k*bsd*-gnu)
9192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9193 soname_spec='${libname}${release}${shared_ext}$major'
9194 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9195 shlibpath_var=LD_LIBRARY_PATH
9196 shlibpath_overrides_runpath=no
9197 # Some binutils ld are patched to set DT_RUNPATH
9198 save_LDFLAGS=$LDFLAGS
9200 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9201 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9202 cat >conftest.$ac_ext <<_ACEOF
9205 cat confdefs.h >>conftest.$ac_ext
9206 cat >>conftest.$ac_ext <<_ACEOF
9207 /* end confdefs.h. */
9217 rm -f conftest.$ac_objext conftest$ac_exeext
9218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9219 (eval $ac_link) 2>conftest.er1
9221 grep -v '^ *+' conftest.er1 >conftest.err
9223 cat conftest.err >&5
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); } &&
9226 { ac_try='test -z "$ac_c_werror_flag"
9227 || test ! -s conftest.err'
9228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); }; } &&
9233 { ac_try='test -s conftest$ac_exeext'
9234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); }; }; then
9239 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9240 shlibpath_overrides_runpath=yes
9244 echo "$as_me: failed program was:" >&5
9245 sed 's/^/| /' conftest.$ac_ext >&5
9248 rm -f conftest.err conftest.$ac_objext \
9249 conftest$ac_exeext conftest.$ac_ext
9250 LDFLAGS=$save_LDFLAGS
9253 # This implies no fast_install, which is unacceptable.
9254 # Some rework will be needed to allow for fast_install
9255 # before this can be enabled.
9256 hardcode_into_libs=yes
9258 # Append ld.so.conf contents to the search path
9259 if test -f /etc/ld.so.conf; then
9260 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9261 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9264 # We used to test for /lib/ld.so.1 and disable shared libraries on
9265 # powerpc, because MkLinux only supported shared libraries with the
9266 # GNU dynamic linker. Since this was broken with cross compilers,
9267 # most powerpc-linux boxes support dynamic linking these days and
9268 # people can always --disable-shared, the test was removed, and we
9269 # assume the GNU/Linux dynamic linker is in use.
9270 dynamic_linker='GNU/Linux ld.so'
9277 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9279 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9280 dynamic_linker='NetBSD (a.out) ld.so'
9282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9283 soname_spec='${libname}${release}${shared_ext}$major'
9284 dynamic_linker='NetBSD ld.elf_so'
9286 shlibpath_var=LD_LIBRARY_PATH
9287 shlibpath_overrides_runpath=yes
9288 hardcode_into_libs=yes
9293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9294 shlibpath_var=LD_LIBRARY_PATH
9295 shlibpath_overrides_runpath=yes
9302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9303 soname_spec='${libname}${release}${shared_ext}$major'
9304 shlibpath_var=LD_LIBRARY_PATH
9305 shlibpath_overrides_runpath=no
9306 hardcode_into_libs=yes
9307 dynamic_linker='ldqnx.so'
9312 sys_lib_dlsearch_path_spec="/usr/lib"
9314 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9316 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9317 *) need_version=no ;;
9319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9320 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9321 shlibpath_var=LD_LIBRARY_PATH
9322 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9324 openbsd2.[89] | openbsd2.[89].*)
9325 shlibpath_overrides_runpath=no
9328 shlibpath_overrides_runpath=yes
9332 shlibpath_overrides_runpath=yes
9337 libname_spec='$name'
9340 library_names_spec='$libname${shared_ext} $libname.a'
9341 dynamic_linker='OS/2 ld.exe'
9342 shlibpath_var=LIBPATH
9345 osf3* | osf4* | osf5*)
9349 soname_spec='${libname}${release}${shared_ext}$major'
9350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9351 shlibpath_var=LD_LIBRARY_PATH
9352 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9353 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9365 soname_spec='${libname}${release}${shared_ext}$major'
9366 shlibpath_var=LD_LIBRARY_PATH
9367 shlibpath_overrides_runpath=yes
9368 hardcode_into_libs=yes
9369 # ldd complains unless libraries are executable
9370 postinstall_cmds='chmod +x $lib'
9375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9376 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9377 shlibpath_var=LD_LIBRARY_PATH
9378 shlibpath_overrides_runpath=yes
9379 if test "$with_gnu_ld" = yes; then
9387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9388 soname_spec='${libname}${release}${shared_ext}$major'
9389 shlibpath_var=LD_LIBRARY_PATH
9390 case $host_vendor in
9392 shlibpath_overrides_runpath=no
9394 runpath_var=LD_RUN_PATH
9402 shlibpath_overrides_runpath=no
9403 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9409 if test -d /usr/nec ;then
9411 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9412 soname_spec='$libname${shared_ext}.$major'
9413 shlibpath_var=LD_LIBRARY_PATH
9417 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9418 version_type=freebsd-elf
9421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9422 soname_spec='${libname}${release}${shared_ext}$major'
9423 shlibpath_var=LD_LIBRARY_PATH
9424 shlibpath_overrides_runpath=yes
9425 hardcode_into_libs=yes
9426 if test "$with_gnu_ld" = yes; then
9427 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9429 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9432 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9436 sys_lib_dlsearch_path_spec='/usr/lib'
9440 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9444 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9445 shlibpath_var=LD_LIBRARY_PATH
9446 shlibpath_overrides_runpath=no
9447 hardcode_into_libs=yes
9452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9453 soname_spec='${libname}${release}${shared_ext}$major'
9454 shlibpath_var=LD_LIBRARY_PATH
9461 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9462 echo "${ECHO_T}$dynamic_linker" >&6
9463 test "$dynamic_linker" = no && can_build_shared=no
9465 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9466 if test "$GCC" = yes; then
9467 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9556 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9557 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9559 if test -n "$hardcode_libdir_flag_spec" ||
9560 test -n "$runpath_var" ||
9561 test "X$hardcode_automatic" = "Xyes" ; then
9563 # We can hardcode non-existent directories.
9564 if test "$hardcode_direct" != no &&
9565 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9566 # have to relink, otherwise we might link with an installed library
9567 # when we should be linking with a yet-to-be-installed one
9568 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9569 test "$hardcode_minus_L" != no; then
9570 # Linking always hardcodes the temporary library directory.
9571 hardcode_action=relink
9573 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9574 hardcode_action=immediate
9577 # We cannot hardcode anything, or else we can only hardcode existing
9579 hardcode_action=unsupported
9581 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9582 echo "${ECHO_T}$hardcode_action" >&6
9584 if test "$hardcode_action" = relink ||
9585 test "$inherit_rpath" = yes; then
9586 # Fast installation is not supported
9587 enable_fast_install=no
9588 elif test "$shlibpath_overrides_runpath" = yes ||
9589 test "$enable_shared" = no; then
9590 # Fast installation is not necessary
9591 enable_fast_install=needless
9599 if test "x$enable_dlopen" != xyes; then
9600 enable_dlopen=unknown
9601 enable_dlopen_self=unknown
9602 enable_dlopen_self_static=unknown
9609 lt_cv_dlopen="load_add_on"
9611 lt_cv_dlopen_self=yes
9615 lt_cv_dlopen="LoadLibrary"
9620 lt_cv_dlopen="dlopen"
9625 # if libdl is installed we need to link against it
9626 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9627 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9628 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9629 echo $ECHO_N "(cached) $ECHO_C" >&6
9631 ac_check_lib_save_LIBS=$LIBS
9633 cat >conftest.$ac_ext <<_ACEOF
9636 cat confdefs.h >>conftest.$ac_ext
9637 cat >>conftest.$ac_ext <<_ACEOF
9638 /* end confdefs.h. */
9640 /* Override any gcc2 internal prototype to avoid an error. */
9644 /* We use char because int might match the return type of a gcc2
9645 builtin and then its argument prototype would still apply. */
9655 rm -f conftest.$ac_objext conftest$ac_exeext
9656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9657 (eval $ac_link) 2>conftest.er1
9659 grep -v '^ *+' conftest.er1 >conftest.err
9661 cat conftest.err >&5
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); } &&
9664 { ac_try='test -z "$ac_c_werror_flag"
9665 || test ! -s conftest.err'
9666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); }; } &&
9671 { ac_try='test -s conftest$ac_exeext'
9672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); }; }; then
9677 ac_cv_lib_dl_dlopen=yes
9679 echo "$as_me: failed program was:" >&5
9680 sed 's/^/| /' conftest.$ac_ext >&5
9682 ac_cv_lib_dl_dlopen=no
9684 rm -f conftest.err conftest.$ac_objext \
9685 conftest$ac_exeext conftest.$ac_ext
9686 LIBS=$ac_check_lib_save_LIBS
9688 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9689 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9690 if test $ac_cv_lib_dl_dlopen = yes; then
9691 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9696 lt_cv_dlopen_self=yes
9703 echo "$as_me:$LINENO: checking for shl_load" >&5
9704 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9705 if test "${ac_cv_func_shl_load+set}" = set; then
9706 echo $ECHO_N "(cached) $ECHO_C" >&6
9708 cat >conftest.$ac_ext <<_ACEOF
9711 cat confdefs.h >>conftest.$ac_ext
9712 cat >>conftest.$ac_ext <<_ACEOF
9713 /* end confdefs.h. */
9714 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9716 #define shl_load innocuous_shl_load
9718 /* System header to define __stub macros and hopefully few prototypes,
9719 which can conflict with char shl_load (); below.
9720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9721 <limits.h> exists even on freestanding compilers. */
9724 # include <limits.h>
9726 # include <assert.h>
9731 /* Override any gcc2 internal prototype to avoid an error. */
9736 /* We use char because int might match the return type of a gcc2
9737 builtin and then its argument prototype would still apply. */
9739 /* The GNU C library defines this for functions which it implements
9740 to always fail with ENOSYS. Some functions are actually named
9741 something starting with __ and the normal name is an alias. */
9742 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9745 char (*f) () = shl_load;
9754 return f != shl_load;
9759 rm -f conftest.$ac_objext conftest$ac_exeext
9760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9761 (eval $ac_link) 2>conftest.er1
9763 grep -v '^ *+' conftest.er1 >conftest.err
9765 cat conftest.err >&5
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); } &&
9768 { ac_try='test -z "$ac_c_werror_flag"
9769 || test ! -s conftest.err'
9770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); }; } &&
9775 { ac_try='test -s conftest$ac_exeext'
9776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); }; }; then
9781 ac_cv_func_shl_load=yes
9783 echo "$as_me: failed program was:" >&5
9784 sed 's/^/| /' conftest.$ac_ext >&5
9786 ac_cv_func_shl_load=no
9788 rm -f conftest.err conftest.$ac_objext \
9789 conftest$ac_exeext conftest.$ac_ext
9791 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9792 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9793 if test $ac_cv_func_shl_load = yes; then
9794 lt_cv_dlopen="shl_load"
9796 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9797 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9798 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9799 echo $ECHO_N "(cached) $ECHO_C" >&6
9801 ac_check_lib_save_LIBS=$LIBS
9803 cat >conftest.$ac_ext <<_ACEOF
9806 cat confdefs.h >>conftest.$ac_ext
9807 cat >>conftest.$ac_ext <<_ACEOF
9808 /* end confdefs.h. */
9810 /* Override any gcc2 internal prototype to avoid an error. */
9814 /* We use char because int might match the return type of a gcc2
9815 builtin and then its argument prototype would still apply. */
9825 rm -f conftest.$ac_objext conftest$ac_exeext
9826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9827 (eval $ac_link) 2>conftest.er1
9829 grep -v '^ *+' conftest.er1 >conftest.err
9831 cat conftest.err >&5
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); } &&
9834 { ac_try='test -z "$ac_c_werror_flag"
9835 || test ! -s conftest.err'
9836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); }; } &&
9841 { ac_try='test -s conftest$ac_exeext'
9842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); }; }; then
9847 ac_cv_lib_dld_shl_load=yes
9849 echo "$as_me: failed program was:" >&5
9850 sed 's/^/| /' conftest.$ac_ext >&5
9852 ac_cv_lib_dld_shl_load=no
9854 rm -f conftest.err conftest.$ac_objext \
9855 conftest$ac_exeext conftest.$ac_ext
9856 LIBS=$ac_check_lib_save_LIBS
9858 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9859 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9860 if test $ac_cv_lib_dld_shl_load = yes; then
9861 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9863 echo "$as_me:$LINENO: checking for dlopen" >&5
9864 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9865 if test "${ac_cv_func_dlopen+set}" = set; then
9866 echo $ECHO_N "(cached) $ECHO_C" >&6
9868 cat >conftest.$ac_ext <<_ACEOF
9871 cat confdefs.h >>conftest.$ac_ext
9872 cat >>conftest.$ac_ext <<_ACEOF
9873 /* end confdefs.h. */
9874 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9876 #define dlopen innocuous_dlopen
9878 /* System header to define __stub macros and hopefully few prototypes,
9879 which can conflict with char dlopen (); below.
9880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9881 <limits.h> exists even on freestanding compilers. */
9884 # include <limits.h>
9886 # include <assert.h>
9891 /* Override any gcc2 internal prototype to avoid an error. */
9896 /* We use char because int might match the return type of a gcc2
9897 builtin and then its argument prototype would still apply. */
9899 /* The GNU C library defines this for functions which it implements
9900 to always fail with ENOSYS. Some functions are actually named
9901 something starting with __ and the normal name is an alias. */
9902 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9905 char (*f) () = dlopen;
9919 rm -f conftest.$ac_objext conftest$ac_exeext
9920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9921 (eval $ac_link) 2>conftest.er1
9923 grep -v '^ *+' conftest.er1 >conftest.err
9925 cat conftest.err >&5
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); } &&
9928 { ac_try='test -z "$ac_c_werror_flag"
9929 || test ! -s conftest.err'
9930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); }; } &&
9935 { ac_try='test -s conftest$ac_exeext'
9936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); }; }; then
9941 ac_cv_func_dlopen=yes
9943 echo "$as_me: failed program was:" >&5
9944 sed 's/^/| /' conftest.$ac_ext >&5
9946 ac_cv_func_dlopen=no
9948 rm -f conftest.err conftest.$ac_objext \
9949 conftest$ac_exeext conftest.$ac_ext
9951 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9952 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9953 if test $ac_cv_func_dlopen = yes; then
9954 lt_cv_dlopen="dlopen"
9956 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9957 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9958 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9959 echo $ECHO_N "(cached) $ECHO_C" >&6
9961 ac_check_lib_save_LIBS=$LIBS
9963 cat >conftest.$ac_ext <<_ACEOF
9966 cat confdefs.h >>conftest.$ac_ext
9967 cat >>conftest.$ac_ext <<_ACEOF
9968 /* end confdefs.h. */
9970 /* Override any gcc2 internal prototype to avoid an error. */
9974 /* We use char because int might match the return type of a gcc2
9975 builtin and then its argument prototype would still apply. */
9985 rm -f conftest.$ac_objext conftest$ac_exeext
9986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9987 (eval $ac_link) 2>conftest.er1
9989 grep -v '^ *+' conftest.er1 >conftest.err
9991 cat conftest.err >&5
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); } &&
9994 { ac_try='test -z "$ac_c_werror_flag"
9995 || test ! -s conftest.err'
9996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); }; } &&
10001 { ac_try='test -s conftest$ac_exeext'
10002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10003 (eval $ac_try) 2>&5
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); }; }; then
10007 ac_cv_lib_dl_dlopen=yes
10009 echo "$as_me: failed program was:" >&5
10010 sed 's/^/| /' conftest.$ac_ext >&5
10012 ac_cv_lib_dl_dlopen=no
10014 rm -f conftest.err conftest.$ac_objext \
10015 conftest$ac_exeext conftest.$ac_ext
10016 LIBS=$ac_check_lib_save_LIBS
10018 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10019 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10020 if test $ac_cv_lib_dl_dlopen = yes; then
10021 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10023 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10024 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10025 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10026 echo $ECHO_N "(cached) $ECHO_C" >&6
10028 ac_check_lib_save_LIBS=$LIBS
10029 LIBS="-lsvld $LIBS"
10030 cat >conftest.$ac_ext <<_ACEOF
10033 cat confdefs.h >>conftest.$ac_ext
10034 cat >>conftest.$ac_ext <<_ACEOF
10035 /* end confdefs.h. */
10037 /* Override any gcc2 internal prototype to avoid an error. */
10041 /* We use char because int might match the return type of a gcc2
10042 builtin and then its argument prototype would still apply. */
10052 rm -f conftest.$ac_objext conftest$ac_exeext
10053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10054 (eval $ac_link) 2>conftest.er1
10056 grep -v '^ *+' conftest.er1 >conftest.err
10058 cat conftest.err >&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); } &&
10061 { ac_try='test -z "$ac_c_werror_flag"
10062 || test ! -s conftest.err'
10063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10064 (eval $ac_try) 2>&5
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); }; } &&
10068 { ac_try='test -s conftest$ac_exeext'
10069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10070 (eval $ac_try) 2>&5
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); }; }; then
10074 ac_cv_lib_svld_dlopen=yes
10076 echo "$as_me: failed program was:" >&5
10077 sed 's/^/| /' conftest.$ac_ext >&5
10079 ac_cv_lib_svld_dlopen=no
10081 rm -f conftest.err conftest.$ac_objext \
10082 conftest$ac_exeext conftest.$ac_ext
10083 LIBS=$ac_check_lib_save_LIBS
10085 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10086 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10087 if test $ac_cv_lib_svld_dlopen = yes; then
10088 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10090 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10091 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10092 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10093 echo $ECHO_N "(cached) $ECHO_C" >&6
10095 ac_check_lib_save_LIBS=$LIBS
10097 cat >conftest.$ac_ext <<_ACEOF
10100 cat confdefs.h >>conftest.$ac_ext
10101 cat >>conftest.$ac_ext <<_ACEOF
10102 /* end confdefs.h. */
10104 /* Override any gcc2 internal prototype to avoid an error. */
10108 /* We use char because int might match the return type of a gcc2
10109 builtin and then its argument prototype would still apply. */
10119 rm -f conftest.$ac_objext conftest$ac_exeext
10120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10121 (eval $ac_link) 2>conftest.er1
10123 grep -v '^ *+' conftest.er1 >conftest.err
10125 cat conftest.err >&5
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); } &&
10128 { ac_try='test -z "$ac_c_werror_flag"
10129 || test ! -s conftest.err'
10130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10131 (eval $ac_try) 2>&5
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); }; } &&
10135 { ac_try='test -s conftest$ac_exeext'
10136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10137 (eval $ac_try) 2>&5
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); }; }; then
10141 ac_cv_lib_dld_dld_link=yes
10143 echo "$as_me: failed program was:" >&5
10144 sed 's/^/| /' conftest.$ac_ext >&5
10146 ac_cv_lib_dld_dld_link=no
10148 rm -f conftest.err conftest.$ac_objext \
10149 conftest$ac_exeext conftest.$ac_ext
10150 LIBS=$ac_check_lib_save_LIBS
10152 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10153 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10154 if test $ac_cv_lib_dld_dld_link = yes; then
10155 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10176 if test "x$lt_cv_dlopen" != xno; then
10182 case $lt_cv_dlopen in
10184 save_CPPFLAGS="$CPPFLAGS"
10185 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10187 save_LDFLAGS="$LDFLAGS"
10188 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10191 LIBS="$lt_cv_dlopen_libs $LIBS"
10193 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10194 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10195 if test "${lt_cv_dlopen_self+set}" = set; then
10196 echo $ECHO_N "(cached) $ECHO_C" >&6
10198 if test "$cross_compiling" = yes; then :
10199 lt_cv_dlopen_self=cross
10201 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10202 lt_status=$lt_dlunknown
10203 cat > conftest.$ac_ext <<_LT_EOF
10204 #line 10204 "configure"
10205 #include "confdefs.h"
10214 # define LT_DLGLOBAL RTLD_GLOBAL
10217 # define LT_DLGLOBAL DL_GLOBAL
10219 # define LT_DLGLOBAL 0
10223 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10224 find out it does not work in some platform. */
10225 #ifndef LT_DLLAZY_OR_NOW
10227 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10230 # define LT_DLLAZY_OR_NOW DL_LAZY
10233 # define LT_DLLAZY_OR_NOW RTLD_NOW
10236 # define LT_DLLAZY_OR_NOW DL_NOW
10238 # define LT_DLLAZY_OR_NOW 0
10246 extern "C" void exit (int);
10249 void fnord() { int i=42;}
10252 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10253 int status = $lt_dlunknown;
10257 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10258 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10259 /* dlclose (self); */
10267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10268 (eval $ac_link) 2>&5
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10272 (./conftest; exit; ) >&5 2>/dev/null
10274 case x$lt_status in
10275 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10276 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10277 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10280 # compilation failed
10281 lt_cv_dlopen_self=no
10288 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10289 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10291 if test "x$lt_cv_dlopen_self" = xyes; then
10292 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10293 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10294 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10295 if test "${lt_cv_dlopen_self_static+set}" = set; then
10296 echo $ECHO_N "(cached) $ECHO_C" >&6
10298 if test "$cross_compiling" = yes; then :
10299 lt_cv_dlopen_self_static=cross
10301 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10302 lt_status=$lt_dlunknown
10303 cat > conftest.$ac_ext <<_LT_EOF
10304 #line 10304 "configure"
10305 #include "confdefs.h"
10314 # define LT_DLGLOBAL RTLD_GLOBAL
10317 # define LT_DLGLOBAL DL_GLOBAL
10319 # define LT_DLGLOBAL 0
10323 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10324 find out it does not work in some platform. */
10325 #ifndef LT_DLLAZY_OR_NOW
10327 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10330 # define LT_DLLAZY_OR_NOW DL_LAZY
10333 # define LT_DLLAZY_OR_NOW RTLD_NOW
10336 # define LT_DLLAZY_OR_NOW DL_NOW
10338 # define LT_DLLAZY_OR_NOW 0
10346 extern "C" void exit (int);
10349 void fnord() { int i=42;}
10352 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10353 int status = $lt_dlunknown;
10357 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10358 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10359 /* dlclose (self); */
10367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10368 (eval $ac_link) 2>&5
10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10372 (./conftest; exit; ) >&5 2>/dev/null
10374 case x$lt_status in
10375 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10376 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10377 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10380 # compilation failed
10381 lt_cv_dlopen_self_static=no
10388 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10389 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10392 CPPFLAGS="$save_CPPFLAGS"
10393 LDFLAGS="$save_LDFLAGS"
10398 case $lt_cv_dlopen_self in
10399 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10400 *) enable_dlopen_self=unknown ;;
10403 case $lt_cv_dlopen_self_static in
10404 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10405 *) enable_dlopen_self_static=unknown ;;
10427 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10428 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10429 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10430 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10431 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10432 echo "$as_me:$LINENO: result: yes" >&5
10433 echo "${ECHO_T}yes" >&6
10435 # FIXME - insert some real tests, host_os isn't really good enough
10438 if test -n "$STRIP" ; then
10439 striplib="$STRIP -x"
10440 old_striplib="$STRIP -S"
10441 echo "$as_me:$LINENO: result: yes" >&5
10442 echo "${ECHO_T}yes" >&6
10444 echo "$as_me:$LINENO: result: no" >&5
10445 echo "${ECHO_T}no" >&6
10449 echo "$as_me:$LINENO: result: no" >&5
10450 echo "${ECHO_T}no" >&6
10466 # Report which library types will actually be built
10467 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10468 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10469 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10470 echo "${ECHO_T}$can_build_shared" >&6
10472 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10473 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10474 test "$can_build_shared" = "no" && enable_shared=no
10476 # On AIX, shared libraries and static libraries use the same namespace, and
10477 # are all built from PIC.
10480 test "$enable_shared" = yes && enable_static=no
10481 if test -n "$RANLIB"; then
10482 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10483 postinstall_cmds='$RANLIB $lib'
10488 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10489 test "$enable_shared" = yes && enable_static=no
10493 echo "$as_me:$LINENO: result: $enable_shared" >&5
10494 echo "${ECHO_T}$enable_shared" >&6
10496 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10497 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10498 # Make sure either enable_shared or enable_static is yes.
10499 test "$enable_shared" = yes || enable_static=yes
10500 echo "$as_me:$LINENO: result: $enable_static" >&5
10501 echo "${ECHO_T}$enable_static" >&6
10508 ac_cpp='$CPP $CPPFLAGS'
10509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10527 ac_config_commands="$ac_config_commands libtool"
10532 # Only expand once:
10536 ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi"
10537 # If we haven't got the data from the intl directory,
10538 # assume NLS is disabled.
10547 if test -f ../intl/config.intl; then
10548 . ../intl/config.intl
10550 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10551 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10552 if test x"$USE_NLS" != xyes; then
10553 echo "$as_me:$LINENO: result: no" >&5
10554 echo "${ECHO_T}no" >&6
10556 echo "$as_me:$LINENO: result: yes" >&5
10557 echo "${ECHO_T}yes" >&6
10559 cat >>confdefs.h <<\_ACEOF
10560 #define ENABLE_NLS 1
10564 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10565 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10566 # Look for .po and .gmo files in the source directory.
10569 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10570 # If there aren't any .gmo files the shell will give us the
10571 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10573 case "$cat" in *\**)
10576 # The quadruple backslash is collapsed to a double backslash
10577 # by the backticks, then collapsed again by the double quotes,
10578 # leaving us with one backslash in the sed expression (right
10579 # before the dot that mustn't act as a wildcard).
10580 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10581 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10582 # The user is allowed to set LINGUAS to a list of languages to
10583 # install catalogs for. If it's empty that means "all of them."
10584 if test "x$LINGUAS" = x; then
10585 CATALOGS="$CATALOGS $cat"
10586 XLINGUAS="$XLINGUAS $lang"
10588 case "$LINGUAS" in *$lang*)
10589 CATALOGS="$CATALOGS $cat"
10590 XLINGUAS="$XLINGUAS $lang"
10595 LINGUAS="$XLINGUAS"
10596 echo "$as_me:$LINENO: result: $LINGUAS" >&5
10597 echo "${ECHO_T}$LINGUAS" >&6
10611 if test -n "$ac_aux_dir"; then
10612 case "$ac_aux_dir" in
10613 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10614 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10617 if test -z "$MKINSTALLDIRS"; then
10618 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10623 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10624 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10625 # Check whether --enable-nls or --disable-nls was given.
10626 if test "${enable_nls+set}" = set; then
10627 enableval="$enable_nls"
10632 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10633 echo "${ECHO_T}$USE_NLS" >&6
10640 # Prepare PATH_SEPARATOR.
10641 # The user is always right.
10642 if test "${PATH_SEPARATOR+set}" != set; then
10643 echo "#! /bin/sh" >conf$$.sh
10644 echo "exit 0" >>conf$$.sh
10646 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10654 # Find out how to test for executable files. Don't use a zero-byte file,
10655 # as systems may use methods other than mode bits to determine executability.
10656 cat >conf$$.file <<_ASEOF
10660 chmod +x conf$$.file
10661 if test -x conf$$.file >/dev/null 2>&1; then
10662 ac_executable_p="test -x"
10664 ac_executable_p="test -f"
10668 # Extract the first word of "msgfmt", so it can be a program name with args.
10669 set dummy msgfmt; ac_word=$2
10670 echo "$as_me:$LINENO: checking for $ac_word" >&5
10671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10672 if test "${ac_cv_path_MSGFMT+set}" = set; then
10673 echo $ECHO_N "(cached) $ECHO_C" >&6
10677 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10680 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10681 for ac_dir in $PATH; do
10683 test -z "$ac_dir" && ac_dir=.
10684 for ac_exec_ext in '' $ac_executable_extensions; do
10685 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10686 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10687 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10688 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10695 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10699 MSGFMT="$ac_cv_path_MSGFMT"
10700 if test "$MSGFMT" != ":"; then
10701 echo "$as_me:$LINENO: result: $MSGFMT" >&5
10702 echo "${ECHO_T}$MSGFMT" >&6
10704 echo "$as_me:$LINENO: result: no" >&5
10705 echo "${ECHO_T}no" >&6
10708 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10709 set dummy gmsgfmt; ac_word=$2
10710 echo "$as_me:$LINENO: checking for $ac_word" >&5
10711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10712 if test "${ac_cv_path_GMSGFMT+set}" = set; then
10713 echo $ECHO_N "(cached) $ECHO_C" >&6
10717 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10721 for as_dir in $PATH
10724 test -z "$as_dir" && as_dir=.
10725 for ac_exec_ext in '' $ac_executable_extensions; do
10726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10727 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10734 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10738 GMSGFMT=$ac_cv_path_GMSGFMT
10740 if test -n "$GMSGFMT"; then
10741 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10742 echo "${ECHO_T}$GMSGFMT" >&6
10744 echo "$as_me:$LINENO: result: no" >&5
10745 echo "${ECHO_T}no" >&6
10750 # Prepare PATH_SEPARATOR.
10751 # The user is always right.
10752 if test "${PATH_SEPARATOR+set}" != set; then
10753 echo "#! /bin/sh" >conf$$.sh
10754 echo "exit 0" >>conf$$.sh
10756 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10764 # Find out how to test for executable files. Don't use a zero-byte file,
10765 # as systems may use methods other than mode bits to determine executability.
10766 cat >conf$$.file <<_ASEOF
10770 chmod +x conf$$.file
10771 if test -x conf$$.file >/dev/null 2>&1; then
10772 ac_executable_p="test -x"
10774 ac_executable_p="test -f"
10778 # Extract the first word of "xgettext", so it can be a program name with args.
10779 set dummy xgettext; ac_word=$2
10780 echo "$as_me:$LINENO: checking for $ac_word" >&5
10781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10782 if test "${ac_cv_path_XGETTEXT+set}" = set; then
10783 echo $ECHO_N "(cached) $ECHO_C" >&6
10785 case "$XGETTEXT" in
10787 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10790 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10791 for ac_dir in $PATH; do
10793 test -z "$ac_dir" && ac_dir=.
10794 for ac_exec_ext in '' $ac_executable_extensions; do
10795 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10796 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10797 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10798 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10805 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10809 XGETTEXT="$ac_cv_path_XGETTEXT"
10810 if test "$XGETTEXT" != ":"; then
10811 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10812 echo "${ECHO_T}$XGETTEXT" >&6
10814 echo "$as_me:$LINENO: result: no" >&5
10815 echo "${ECHO_T}no" >&6
10821 # Prepare PATH_SEPARATOR.
10822 # The user is always right.
10823 if test "${PATH_SEPARATOR+set}" != set; then
10824 echo "#! /bin/sh" >conf$$.sh
10825 echo "exit 0" >>conf$$.sh
10827 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10835 # Find out how to test for executable files. Don't use a zero-byte file,
10836 # as systems may use methods other than mode bits to determine executability.
10837 cat >conf$$.file <<_ASEOF
10841 chmod +x conf$$.file
10842 if test -x conf$$.file >/dev/null 2>&1; then
10843 ac_executable_p="test -x"
10845 ac_executable_p="test -f"
10849 # Extract the first word of "msgmerge", so it can be a program name with args.
10850 set dummy msgmerge; ac_word=$2
10851 echo "$as_me:$LINENO: checking for $ac_word" >&5
10852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10853 if test "${ac_cv_path_MSGMERGE+set}" = set; then
10854 echo $ECHO_N "(cached) $ECHO_C" >&6
10856 case "$MSGMERGE" in
10858 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
10861 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10862 for ac_dir in $PATH; do
10864 test -z "$ac_dir" && ac_dir=.
10865 for ac_exec_ext in '' $ac_executable_extensions; do
10866 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10867 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
10868 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
10875 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
10879 MSGMERGE="$ac_cv_path_MSGMERGE"
10880 if test "$MSGMERGE" != ":"; then
10881 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
10882 echo "${ECHO_T}$MSGMERGE" >&6
10884 echo "$as_me:$LINENO: result: no" >&5
10885 echo "${ECHO_T}no" >&6
10889 if test "$GMSGFMT" != ":"; then
10890 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
10891 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10894 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
10895 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
10896 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
10901 if test "$XGETTEXT" != ":"; then
10902 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10903 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10906 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
10907 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
10913 ac_config_commands="$ac_config_commands default-1"
10919 for ac_prog in 'bison -y' byacc
10921 # Extract the first word of "$ac_prog", so it can be a program name with args.
10922 set dummy $ac_prog; ac_word=$2
10923 echo "$as_me:$LINENO: checking for $ac_word" >&5
10924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10925 if test "${ac_cv_prog_YACC+set}" = set; then
10926 echo $ECHO_N "(cached) $ECHO_C" >&6
10928 if test -n "$YACC"; then
10929 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10932 for as_dir in $PATH
10935 test -z "$as_dir" && as_dir=.
10936 for ac_exec_ext in '' $ac_executable_extensions; do
10937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10938 ac_cv_prog_YACC="$ac_prog"
10939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10947 YACC=$ac_cv_prog_YACC
10948 if test -n "$YACC"; then
10949 echo "$as_me:$LINENO: result: $YACC" >&5
10950 echo "${ECHO_T}$YACC" >&6
10952 echo "$as_me:$LINENO: result: no" >&5
10953 echo "${ECHO_T}no" >&6
10956 test -n "$YACC" && break
10958 test -n "$YACC" || YACC="yacc"
10960 for ac_prog in flex lex
10962 # Extract the first word of "$ac_prog", so it can be a program name with args.
10963 set dummy $ac_prog; ac_word=$2
10964 echo "$as_me:$LINENO: checking for $ac_word" >&5
10965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10966 if test "${ac_cv_prog_LEX+set}" = set; then
10967 echo $ECHO_N "(cached) $ECHO_C" >&6
10969 if test -n "$LEX"; then
10970 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10973 for as_dir in $PATH
10976 test -z "$as_dir" && as_dir=.
10977 for ac_exec_ext in '' $ac_executable_extensions; do
10978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10979 ac_cv_prog_LEX="$ac_prog"
10980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10988 LEX=$ac_cv_prog_LEX
10989 if test -n "$LEX"; then
10990 echo "$as_me:$LINENO: result: $LEX" >&5
10991 echo "${ECHO_T}$LEX" >&6
10993 echo "$as_me:$LINENO: result: no" >&5
10994 echo "${ECHO_T}no" >&6
10997 test -n "$LEX" && break
10999 test -n "$LEX" || LEX=":"
11001 if test -z "$LEXLIB"
11003 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11004 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11005 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
11006 echo $ECHO_N "(cached) $ECHO_C" >&6
11008 ac_check_lib_save_LIBS=$LIBS
11010 cat >conftest.$ac_ext <<_ACEOF
11013 cat confdefs.h >>conftest.$ac_ext
11014 cat >>conftest.$ac_ext <<_ACEOF
11015 /* end confdefs.h. */
11017 /* Override any gcc2 internal prototype to avoid an error. */
11021 /* We use char because int might match the return type of a gcc2
11022 builtin and then its argument prototype would still apply. */
11032 rm -f conftest.$ac_objext conftest$ac_exeext
11033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11034 (eval $ac_link) 2>conftest.er1
11036 grep -v '^ *+' conftest.er1 >conftest.err
11038 cat conftest.err >&5
11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040 (exit $ac_status); } &&
11041 { ac_try='test -z "$ac_c_werror_flag"
11042 || test ! -s conftest.err'
11043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11044 (eval $ac_try) 2>&5
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); }; } &&
11048 { ac_try='test -s conftest$ac_exeext'
11049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11050 (eval $ac_try) 2>&5
11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); }; }; then
11054 ac_cv_lib_fl_yywrap=yes
11056 echo "$as_me: failed program was:" >&5
11057 sed 's/^/| /' conftest.$ac_ext >&5
11059 ac_cv_lib_fl_yywrap=no
11061 rm -f conftest.err conftest.$ac_objext \
11062 conftest$ac_exeext conftest.$ac_ext
11063 LIBS=$ac_check_lib_save_LIBS
11065 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11066 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11067 if test $ac_cv_lib_fl_yywrap = yes; then
11070 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11071 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11072 if test "${ac_cv_lib_l_yywrap+set}" = set; then
11073 echo $ECHO_N "(cached) $ECHO_C" >&6
11075 ac_check_lib_save_LIBS=$LIBS
11077 cat >conftest.$ac_ext <<_ACEOF
11080 cat confdefs.h >>conftest.$ac_ext
11081 cat >>conftest.$ac_ext <<_ACEOF
11082 /* end confdefs.h. */
11084 /* Override any gcc2 internal prototype to avoid an error. */
11088 /* We use char because int might match the return type of a gcc2
11089 builtin and then its argument prototype would still apply. */
11099 rm -f conftest.$ac_objext conftest$ac_exeext
11100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11101 (eval $ac_link) 2>conftest.er1
11103 grep -v '^ *+' conftest.er1 >conftest.err
11105 cat conftest.err >&5
11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107 (exit $ac_status); } &&
11108 { ac_try='test -z "$ac_c_werror_flag"
11109 || test ! -s conftest.err'
11110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11111 (eval $ac_try) 2>&5
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); }; } &&
11115 { ac_try='test -s conftest$ac_exeext'
11116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11117 (eval $ac_try) 2>&5
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); }; }; then
11121 ac_cv_lib_l_yywrap=yes
11123 echo "$as_me: failed program was:" >&5
11124 sed 's/^/| /' conftest.$ac_ext >&5
11126 ac_cv_lib_l_yywrap=no
11128 rm -f conftest.err conftest.$ac_objext \
11129 conftest$ac_exeext conftest.$ac_ext
11130 LIBS=$ac_check_lib_save_LIBS
11132 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11133 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11134 if test $ac_cv_lib_l_yywrap = yes; then
11142 if test "x$LEX" != "x:"; then
11143 echo "$as_me:$LINENO: checking lex output file root" >&5
11144 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11145 if test "${ac_cv_prog_lex_root+set}" = set; then
11146 echo $ECHO_N "(cached) $ECHO_C" >&6
11148 # The minimal lex program is just a single line: %%. But some broken lexes
11149 # (Solaris, I think it was) want two %% lines, so accommodate them.
11150 cat >conftest.l <<_ACEOF
11154 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11155 (eval $LEX conftest.l) 2>&5
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); }
11159 if test -f lex.yy.c; then
11160 ac_cv_prog_lex_root=lex.yy
11161 elif test -f lexyy.c; then
11162 ac_cv_prog_lex_root=lexyy
11164 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11165 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11166 { (exit 1); exit 1; }; }
11169 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11170 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11172 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
11174 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11175 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11176 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11177 echo $ECHO_N "(cached) $ECHO_C" >&6
11179 # POSIX says lex can declare yytext either as a pointer or an array; the
11180 # default is implementation-dependent. Figure out which it is, since
11181 # not all implementations provide the %pointer and %array declarations.
11182 ac_cv_prog_lex_yytext_pointer=no
11183 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11185 LIBS="$LIBS $LEXLIB"
11186 cat >conftest.$ac_ext <<_ACEOF
11187 `cat $LEX_OUTPUT_ROOT.c`
11189 rm -f conftest.$ac_objext conftest$ac_exeext
11190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11191 (eval $ac_link) 2>conftest.er1
11193 grep -v '^ *+' conftest.er1 >conftest.err
11195 cat conftest.err >&5
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); } &&
11198 { ac_try='test -z "$ac_c_werror_flag"
11199 || test ! -s conftest.err'
11200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11201 (eval $ac_try) 2>&5
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); }; } &&
11205 { ac_try='test -s conftest$ac_exeext'
11206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11207 (eval $ac_try) 2>&5
11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); }; }; then
11211 ac_cv_prog_lex_yytext_pointer=yes
11213 echo "$as_me: failed program was:" >&5
11214 sed 's/^/| /' conftest.$ac_ext >&5
11217 rm -f conftest.err conftest.$ac_objext \
11218 conftest$ac_exeext conftest.$ac_ext
11220 rm -f "${LEX_OUTPUT_ROOT}.c"
11223 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
11224 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
11225 if test $ac_cv_prog_lex_yytext_pointer = yes; then
11227 cat >>confdefs.h <<\_ACEOF
11228 #define YYTEXT_POINTER 1
11234 if test "$LEX" = :; then
11235 LEX=${am_missing_run}flex
11238 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11239 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11240 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11241 if test "${enable_maintainer_mode+set}" = set; then
11242 enableval="$enable_maintainer_mode"
11243 USE_MAINTAINER_MODE=$enableval
11245 USE_MAINTAINER_MODE=no
11247 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11248 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
11251 if test $USE_MAINTAINER_MODE = yes; then
11252 MAINTAINER_MODE_TRUE=
11253 MAINTAINER_MODE_FALSE='#'
11255 MAINTAINER_MODE_TRUE='#'
11256 MAINTAINER_MODE_FALSE=
11259 MAINT=$MAINTAINER_MODE_TRUE
11265 GENINSRC_NEVER_TRUE=
11266 GENINSRC_NEVER_FALSE='#'
11268 GENINSRC_NEVER_TRUE='#'
11269 GENINSRC_NEVER_FALSE=
11273 . ${srcdir}/configure.host
11287 for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h sys/param.h
11289 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11291 echo "$as_me:$LINENO: checking for $ac_header" >&5
11292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11294 echo $ECHO_N "(cached) $ECHO_C" >&6
11296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11297 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11299 # Is the header compilable?
11300 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11301 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11302 cat >conftest.$ac_ext <<_ACEOF
11305 cat confdefs.h >>conftest.$ac_ext
11306 cat >>conftest.$ac_ext <<_ACEOF
11307 /* end confdefs.h. */
11308 $ac_includes_default
11309 #include <$ac_header>
11311 rm -f conftest.$ac_objext
11312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11313 (eval $ac_compile) 2>conftest.er1
11315 grep -v '^ *+' conftest.er1 >conftest.err
11317 cat conftest.err >&5
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); } &&
11320 { ac_try='test -z "$ac_c_werror_flag"
11321 || test ! -s conftest.err'
11322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11323 (eval $ac_try) 2>&5
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); }; } &&
11327 { ac_try='test -s conftest.$ac_objext'
11328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11329 (eval $ac_try) 2>&5
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); }; }; then
11333 ac_header_compiler=yes
11335 echo "$as_me: failed program was:" >&5
11336 sed 's/^/| /' conftest.$ac_ext >&5
11338 ac_header_compiler=no
11340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11341 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11342 echo "${ECHO_T}$ac_header_compiler" >&6
11344 # Is the header present?
11345 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11346 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11347 cat >conftest.$ac_ext <<_ACEOF
11350 cat confdefs.h >>conftest.$ac_ext
11351 cat >>conftest.$ac_ext <<_ACEOF
11352 /* end confdefs.h. */
11353 #include <$ac_header>
11355 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11356 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11358 grep -v '^ *+' conftest.er1 >conftest.err
11360 cat conftest.err >&5
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); } >/dev/null; then
11363 if test -s conftest.err; then
11364 ac_cpp_err=$ac_c_preproc_warn_flag
11365 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11372 if test -z "$ac_cpp_err"; then
11373 ac_header_preproc=yes
11375 echo "$as_me: failed program was:" >&5
11376 sed 's/^/| /' conftest.$ac_ext >&5
11378 ac_header_preproc=no
11380 rm -f conftest.err conftest.$ac_ext
11381 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11382 echo "${ECHO_T}$ac_header_preproc" >&6
11384 # So? What about this header?
11385 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11387 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11388 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11390 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11391 ac_header_preproc=yes
11394 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11395 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11396 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11397 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11398 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11399 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11400 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11401 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11403 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11404 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11405 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11408 ## ------------------------------------------ ##
11409 ## Report this to the AC_PACKAGE_NAME lists. ##
11410 ## ------------------------------------------ ##
11413 sed "s/^/$as_me: WARNING: /" >&2
11416 echo "$as_me:$LINENO: checking for $ac_header" >&5
11417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11419 echo $ECHO_N "(cached) $ECHO_C" >&6
11421 eval "$as_ac_Header=\$ac_header_preproc"
11423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11427 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11428 cat >>confdefs.h <<_ACEOF
11429 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11441 for ac_func in glob mkstemp realpath sbrk waitpid
11443 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11444 echo "$as_me:$LINENO: checking for $ac_func" >&5
11445 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11446 if eval "test \"\${$as_ac_var+set}\" = set"; then
11447 echo $ECHO_N "(cached) $ECHO_C" >&6
11449 cat >conftest.$ac_ext <<_ACEOF
11452 cat confdefs.h >>conftest.$ac_ext
11453 cat >>conftest.$ac_ext <<_ACEOF
11454 /* end confdefs.h. */
11455 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11457 #define $ac_func innocuous_$ac_func
11459 /* System header to define __stub macros and hopefully few prototypes,
11460 which can conflict with char $ac_func (); below.
11461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11462 <limits.h> exists even on freestanding compilers. */
11465 # include <limits.h>
11467 # include <assert.h>
11472 /* Override any gcc2 internal prototype to avoid an error. */
11477 /* We use char because int might match the return type of a gcc2
11478 builtin and then its argument prototype would still apply. */
11480 /* The GNU C library defines this for functions which it implements
11481 to always fail with ENOSYS. Some functions are actually named
11482 something starting with __ and the normal name is an alias. */
11483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11486 char (*f) () = $ac_func;
11495 return f != $ac_func;
11500 rm -f conftest.$ac_objext conftest$ac_exeext
11501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11502 (eval $ac_link) 2>conftest.er1
11504 grep -v '^ *+' conftest.er1 >conftest.err
11506 cat conftest.err >&5
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); } &&
11509 { ac_try='test -z "$ac_c_werror_flag"
11510 || test ! -s conftest.err'
11511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11512 (eval $ac_try) 2>&5
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); }; } &&
11516 { ac_try='test -s conftest$ac_exeext'
11517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11518 (eval $ac_try) 2>&5
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); }; }; then
11522 eval "$as_ac_var=yes"
11524 echo "$as_me: failed program was:" >&5
11525 sed 's/^/| /' conftest.$ac_ext >&5
11527 eval "$as_ac_var=no"
11529 rm -f conftest.err conftest.$ac_objext \
11530 conftest$ac_exeext conftest.$ac_ext
11532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11533 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11534 if test `eval echo '${'$as_ac_var'}'` = yes; then
11535 cat >>confdefs.h <<_ACEOF
11536 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11547 ac_header_dirent=no
11548 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11549 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11550 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11551 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11553 echo $ECHO_N "(cached) $ECHO_C" >&6
11555 cat >conftest.$ac_ext <<_ACEOF
11558 cat confdefs.h >>conftest.$ac_ext
11559 cat >>conftest.$ac_ext <<_ACEOF
11560 /* end confdefs.h. */
11561 #include <sys/types.h>
11573 rm -f conftest.$ac_objext
11574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11575 (eval $ac_compile) 2>conftest.er1
11577 grep -v '^ *+' conftest.er1 >conftest.err
11579 cat conftest.err >&5
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); } &&
11582 { ac_try='test -z "$ac_c_werror_flag"
11583 || test ! -s conftest.err'
11584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11585 (eval $ac_try) 2>&5
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); }; } &&
11589 { ac_try='test -s conftest.$ac_objext'
11590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11591 (eval $ac_try) 2>&5
11593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); }; }; then
11595 eval "$as_ac_Header=yes"
11597 echo "$as_me: failed program was:" >&5
11598 sed 's/^/| /' conftest.$ac_ext >&5
11600 eval "$as_ac_Header=no"
11602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11605 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11606 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11607 cat >>confdefs.h <<_ACEOF
11608 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11611 ac_header_dirent=$ac_hdr; break
11615 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11616 if test $ac_header_dirent = dirent.h; then
11617 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11618 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11619 if test "${ac_cv_search_opendir+set}" = set; then
11620 echo $ECHO_N "(cached) $ECHO_C" >&6
11622 ac_func_search_save_LIBS=$LIBS
11623 ac_cv_search_opendir=no
11624 cat >conftest.$ac_ext <<_ACEOF
11627 cat confdefs.h >>conftest.$ac_ext
11628 cat >>conftest.$ac_ext <<_ACEOF
11629 /* end confdefs.h. */
11631 /* Override any gcc2 internal prototype to avoid an error. */
11635 /* We use char because int might match the return type of a gcc2
11636 builtin and then its argument prototype would still apply. */
11646 rm -f conftest.$ac_objext conftest$ac_exeext
11647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11648 (eval $ac_link) 2>conftest.er1
11650 grep -v '^ *+' conftest.er1 >conftest.err
11652 cat conftest.err >&5
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); } &&
11655 { ac_try='test -z "$ac_c_werror_flag"
11656 || test ! -s conftest.err'
11657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11658 (eval $ac_try) 2>&5
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); }; } &&
11662 { ac_try='test -s conftest$ac_exeext'
11663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11664 (eval $ac_try) 2>&5
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); }; }; then
11668 ac_cv_search_opendir="none required"
11670 echo "$as_me: failed program was:" >&5
11671 sed 's/^/| /' conftest.$ac_ext >&5
11674 rm -f conftest.err conftest.$ac_objext \
11675 conftest$ac_exeext conftest.$ac_ext
11676 if test "$ac_cv_search_opendir" = no; then
11677 for ac_lib in dir; do
11678 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11679 cat >conftest.$ac_ext <<_ACEOF
11682 cat confdefs.h >>conftest.$ac_ext
11683 cat >>conftest.$ac_ext <<_ACEOF
11684 /* end confdefs.h. */
11686 /* Override any gcc2 internal prototype to avoid an error. */
11690 /* We use char because int might match the return type of a gcc2
11691 builtin and then its argument prototype would still apply. */
11701 rm -f conftest.$ac_objext conftest$ac_exeext
11702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11703 (eval $ac_link) 2>conftest.er1
11705 grep -v '^ *+' conftest.er1 >conftest.err
11707 cat conftest.err >&5
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); } &&
11710 { ac_try='test -z "$ac_c_werror_flag"
11711 || test ! -s conftest.err'
11712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11713 (eval $ac_try) 2>&5
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); }; } &&
11717 { ac_try='test -s conftest$ac_exeext'
11718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11719 (eval $ac_try) 2>&5
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); }; }; then
11723 ac_cv_search_opendir="-l$ac_lib"
11726 echo "$as_me: failed program was:" >&5
11727 sed 's/^/| /' conftest.$ac_ext >&5
11730 rm -f conftest.err conftest.$ac_objext \
11731 conftest$ac_exeext conftest.$ac_ext
11734 LIBS=$ac_func_search_save_LIBS
11736 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11737 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11738 if test "$ac_cv_search_opendir" != no; then
11739 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11744 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11745 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11746 if test "${ac_cv_search_opendir+set}" = set; then
11747 echo $ECHO_N "(cached) $ECHO_C" >&6
11749 ac_func_search_save_LIBS=$LIBS
11750 ac_cv_search_opendir=no
11751 cat >conftest.$ac_ext <<_ACEOF
11754 cat confdefs.h >>conftest.$ac_ext
11755 cat >>conftest.$ac_ext <<_ACEOF
11756 /* end confdefs.h. */
11758 /* Override any gcc2 internal prototype to avoid an error. */
11762 /* We use char because int might match the return type of a gcc2
11763 builtin and then its argument prototype would still apply. */
11773 rm -f conftest.$ac_objext conftest$ac_exeext
11774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11775 (eval $ac_link) 2>conftest.er1
11777 grep -v '^ *+' conftest.er1 >conftest.err
11779 cat conftest.err >&5
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); } &&
11782 { ac_try='test -z "$ac_c_werror_flag"
11783 || test ! -s conftest.err'
11784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11785 (eval $ac_try) 2>&5
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); }; } &&
11789 { ac_try='test -s conftest$ac_exeext'
11790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11791 (eval $ac_try) 2>&5
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); }; }; then
11795 ac_cv_search_opendir="none required"
11797 echo "$as_me: failed program was:" >&5
11798 sed 's/^/| /' conftest.$ac_ext >&5
11801 rm -f conftest.err conftest.$ac_objext \
11802 conftest$ac_exeext conftest.$ac_ext
11803 if test "$ac_cv_search_opendir" = no; then
11804 for ac_lib in x; do
11805 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11806 cat >conftest.$ac_ext <<_ACEOF
11809 cat confdefs.h >>conftest.$ac_ext
11810 cat >>conftest.$ac_ext <<_ACEOF
11811 /* end confdefs.h. */
11813 /* Override any gcc2 internal prototype to avoid an error. */
11817 /* We use char because int might match the return type of a gcc2
11818 builtin and then its argument prototype would still apply. */
11828 rm -f conftest.$ac_objext conftest$ac_exeext
11829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11830 (eval $ac_link) 2>conftest.er1
11832 grep -v '^ *+' conftest.er1 >conftest.err
11834 cat conftest.err >&5
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); } &&
11837 { ac_try='test -z "$ac_c_werror_flag"
11838 || test ! -s conftest.err'
11839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11840 (eval $ac_try) 2>&5
11842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843 (exit $ac_status); }; } &&
11844 { ac_try='test -s conftest$ac_exeext'
11845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11846 (eval $ac_try) 2>&5
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); }; }; then
11850 ac_cv_search_opendir="-l$ac_lib"
11853 echo "$as_me: failed program was:" >&5
11854 sed 's/^/| /' conftest.$ac_ext >&5
11857 rm -f conftest.err conftest.$ac_objext \
11858 conftest$ac_exeext conftest.$ac_ext
11861 LIBS=$ac_func_search_save_LIBS
11863 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11864 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11865 if test "$ac_cv_search_opendir" != no; then
11866 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11873 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
11874 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
11875 if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then
11876 echo $ECHO_N "(cached) $ECHO_C" >&6
11878 cat >conftest.$ac_ext <<_ACEOF
11881 cat confdefs.h >>conftest.$ac_ext
11882 cat >>conftest.$ac_ext <<_ACEOF
11883 /* end confdefs.h. */
11884 #include <unistd.h>
11888 extern int getopt (int, char *const*, const char *);
11893 rm -f conftest.$ac_objext
11894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11895 (eval $ac_compile) 2>conftest.er1
11897 grep -v '^ *+' conftest.er1 >conftest.err
11899 cat conftest.err >&5
11900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901 (exit $ac_status); } &&
11902 { ac_try='test -z "$ac_c_werror_flag"
11903 || test ! -s conftest.err'
11904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11905 (eval $ac_try) 2>&5
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); }; } &&
11909 { ac_try='test -s conftest.$ac_objext'
11910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11911 (eval $ac_try) 2>&5
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); }; }; then
11915 ld_cv_decl_getopt_unistd_h=yes
11917 echo "$as_me: failed program was:" >&5
11918 sed 's/^/| /' conftest.$ac_ext >&5
11920 ld_cv_decl_getopt_unistd_h=no
11922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11925 echo "$as_me:$LINENO: result: $ld_cv_decl_getopt_unistd_h" >&5
11926 echo "${ECHO_T}$ld_cv_decl_getopt_unistd_h" >&6
11927 if test $ld_cv_decl_getopt_unistd_h = yes; then
11929 cat >>confdefs.h <<\_ACEOF
11930 #define HAVE_DECL_GETOPT 1
11937 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
11939 cat >>confdefs.h <<\_ACEOF
11940 #define USE_BINARY_FOPEN 1
11945 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
11946 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
11947 if test "${ac_cv_have_decl_strstr+set}" = set; then
11948 echo $ECHO_N "(cached) $ECHO_C" >&6
11950 cat >conftest.$ac_ext <<_ACEOF
11953 cat confdefs.h >>conftest.$ac_ext
11954 cat >>conftest.$ac_ext <<_ACEOF
11955 /* end confdefs.h. */
11956 $ac_includes_default
11961 char *p = (char *) strstr;
11968 rm -f conftest.$ac_objext
11969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11970 (eval $ac_compile) 2>conftest.er1
11972 grep -v '^ *+' conftest.er1 >conftest.err
11974 cat conftest.err >&5
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); } &&
11977 { ac_try='test -z "$ac_c_werror_flag"
11978 || test ! -s conftest.err'
11979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11980 (eval $ac_try) 2>&5
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); }; } &&
11984 { ac_try='test -s conftest.$ac_objext'
11985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11986 (eval $ac_try) 2>&5
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); }; }; then
11990 ac_cv_have_decl_strstr=yes
11992 echo "$as_me: failed program was:" >&5
11993 sed 's/^/| /' conftest.$ac_ext >&5
11995 ac_cv_have_decl_strstr=no
11997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11999 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
12000 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
12001 if test $ac_cv_have_decl_strstr = yes; then
12003 cat >>confdefs.h <<_ACEOF
12004 #define HAVE_DECL_STRSTR 1
12009 cat >>confdefs.h <<_ACEOF
12010 #define HAVE_DECL_STRSTR 0
12015 echo "$as_me:$LINENO: checking whether free is declared" >&5
12016 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
12017 if test "${ac_cv_have_decl_free+set}" = set; then
12018 echo $ECHO_N "(cached) $ECHO_C" >&6
12020 cat >conftest.$ac_ext <<_ACEOF
12023 cat confdefs.h >>conftest.$ac_ext
12024 cat >>conftest.$ac_ext <<_ACEOF
12025 /* end confdefs.h. */
12026 $ac_includes_default
12031 char *p = (char *) free;
12038 rm -f conftest.$ac_objext
12039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12040 (eval $ac_compile) 2>conftest.er1
12042 grep -v '^ *+' conftest.er1 >conftest.err
12044 cat conftest.err >&5
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); } &&
12047 { ac_try='test -z "$ac_c_werror_flag"
12048 || test ! -s conftest.err'
12049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12050 (eval $ac_try) 2>&5
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); }; } &&
12054 { ac_try='test -s conftest.$ac_objext'
12055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12056 (eval $ac_try) 2>&5
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); }; }; then
12060 ac_cv_have_decl_free=yes
12062 echo "$as_me: failed program was:" >&5
12063 sed 's/^/| /' conftest.$ac_ext >&5
12065 ac_cv_have_decl_free=no
12067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12069 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
12070 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
12071 if test $ac_cv_have_decl_free = yes; then
12073 cat >>confdefs.h <<_ACEOF
12074 #define HAVE_DECL_FREE 1
12079 cat >>confdefs.h <<_ACEOF
12080 #define HAVE_DECL_FREE 0
12085 echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
12086 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
12087 if test "${ac_cv_have_decl_sbrk+set}" = set; then
12088 echo $ECHO_N "(cached) $ECHO_C" >&6
12090 cat >conftest.$ac_ext <<_ACEOF
12093 cat confdefs.h >>conftest.$ac_ext
12094 cat >>conftest.$ac_ext <<_ACEOF
12095 /* end confdefs.h. */
12096 $ac_includes_default
12101 char *p = (char *) sbrk;
12108 rm -f conftest.$ac_objext
12109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12110 (eval $ac_compile) 2>conftest.er1
12112 grep -v '^ *+' conftest.er1 >conftest.err
12114 cat conftest.err >&5
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); } &&
12117 { ac_try='test -z "$ac_c_werror_flag"
12118 || test ! -s conftest.err'
12119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120 (eval $ac_try) 2>&5
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }; } &&
12124 { ac_try='test -s conftest.$ac_objext'
12125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12126 (eval $ac_try) 2>&5
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); }; }; then
12130 ac_cv_have_decl_sbrk=yes
12132 echo "$as_me: failed program was:" >&5
12133 sed 's/^/| /' conftest.$ac_ext >&5
12135 ac_cv_have_decl_sbrk=no
12137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12139 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
12140 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
12141 if test $ac_cv_have_decl_sbrk = yes; then
12143 cat >>confdefs.h <<_ACEOF
12144 #define HAVE_DECL_SBRK 1
12149 cat >>confdefs.h <<_ACEOF
12150 #define HAVE_DECL_SBRK 0
12155 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
12156 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
12157 if test "${ac_cv_have_decl_getenv+set}" = set; then
12158 echo $ECHO_N "(cached) $ECHO_C" >&6
12160 cat >conftest.$ac_ext <<_ACEOF
12163 cat confdefs.h >>conftest.$ac_ext
12164 cat >>conftest.$ac_ext <<_ACEOF
12165 /* end confdefs.h. */
12166 $ac_includes_default
12171 char *p = (char *) getenv;
12178 rm -f conftest.$ac_objext
12179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12180 (eval $ac_compile) 2>conftest.er1
12182 grep -v '^ *+' conftest.er1 >conftest.err
12184 cat conftest.err >&5
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); } &&
12187 { ac_try='test -z "$ac_c_werror_flag"
12188 || test ! -s conftest.err'
12189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12190 (eval $ac_try) 2>&5
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); }; } &&
12194 { ac_try='test -s conftest.$ac_objext'
12195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12196 (eval $ac_try) 2>&5
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); }; }; then
12200 ac_cv_have_decl_getenv=yes
12202 echo "$as_me: failed program was:" >&5
12203 sed 's/^/| /' conftest.$ac_ext >&5
12205 ac_cv_have_decl_getenv=no
12207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12209 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
12210 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
12211 if test $ac_cv_have_decl_getenv = yes; then
12213 cat >>confdefs.h <<_ACEOF
12214 #define HAVE_DECL_GETENV 1
12219 cat >>confdefs.h <<_ACEOF
12220 #define HAVE_DECL_GETENV 0
12225 echo "$as_me:$LINENO: checking whether environ is declared" >&5
12226 echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
12227 if test "${ac_cv_have_decl_environ+set}" = set; then
12228 echo $ECHO_N "(cached) $ECHO_C" >&6
12230 cat >conftest.$ac_ext <<_ACEOF
12233 cat confdefs.h >>conftest.$ac_ext
12234 cat >>conftest.$ac_ext <<_ACEOF
12235 /* end confdefs.h. */
12236 $ac_includes_default
12241 char *p = (char *) environ;
12248 rm -f conftest.$ac_objext
12249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12250 (eval $ac_compile) 2>conftest.er1
12252 grep -v '^ *+' conftest.er1 >conftest.err
12254 cat conftest.err >&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); } &&
12257 { ac_try='test -z "$ac_c_werror_flag"
12258 || test ! -s conftest.err'
12259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12260 (eval $ac_try) 2>&5
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); }; } &&
12264 { ac_try='test -s conftest.$ac_objext'
12265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12266 (eval $ac_try) 2>&5
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); }; }; then
12270 ac_cv_have_decl_environ=yes
12272 echo "$as_me: failed program was:" >&5
12273 sed 's/^/| /' conftest.$ac_ext >&5
12275 ac_cv_have_decl_environ=no
12277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12279 echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
12280 echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
12281 if test $ac_cv_have_decl_environ = yes; then
12283 cat >>confdefs.h <<_ACEOF
12284 #define HAVE_DECL_ENVIRON 1
12289 cat >>confdefs.h <<_ACEOF
12290 #define HAVE_DECL_ENVIRON 0
12298 # When converting linker scripts into strings for use in emulation
12299 # files, use astring.sed if the compiler supports ANSI string
12300 # concatenation, or ostring.sed otherwise. This is to support the
12301 # broken Microsoft MSVC compiler, which limits the length of string
12302 # constants, while still supporting pre-ANSI compilers which do not
12303 # support string concatenation.
12304 echo "$as_me:$LINENO: checking whether ANSI C string concatenation works" >&5
12305 echo $ECHO_N "checking whether ANSI C string concatenation works... $ECHO_C" >&6
12306 if test "${ld_cv_string_concatenation+set}" = set; then
12307 echo $ECHO_N "(cached) $ECHO_C" >&6
12309 cat >conftest.$ac_ext <<_ACEOF
12312 cat confdefs.h >>conftest.$ac_ext
12313 cat >>conftest.$ac_ext <<_ACEOF
12314 /* end confdefs.h. */
12324 rm -f conftest.$ac_objext
12325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12326 (eval $ac_compile) 2>conftest.er1
12328 grep -v '^ *+' conftest.er1 >conftest.err
12330 cat conftest.err >&5
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); } &&
12333 { ac_try='test -z "$ac_c_werror_flag"
12334 || test ! -s conftest.err'
12335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12336 (eval $ac_try) 2>&5
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); }; } &&
12340 { ac_try='test -s conftest.$ac_objext'
12341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12342 (eval $ac_try) 2>&5
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); }; }; then
12346 ld_cv_string_concatenation=yes
12348 echo "$as_me: failed program was:" >&5
12349 sed 's/^/| /' conftest.$ac_ext >&5
12351 ld_cv_string_concatenation=no
12353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12356 echo "$as_me:$LINENO: result: $ld_cv_string_concatenation" >&5
12357 echo "${ECHO_T}$ld_cv_string_concatenation" >&6
12358 if test "$ld_cv_string_concatenation" = "yes"; then
12359 STRINGIFY=astring.sed
12361 STRINGIFY=ostring.sed
12365 # target-specific stuff:
12375 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
12377 if test "$targ_alias" = "all"; then
12380 # Canonicalize the secondary target names.
12381 result=`$ac_config_sub $targ_alias 2>/dev/null`
12382 if test -n "$result"; then
12388 . ${srcdir}/configure.tgt
12390 if test "$targ" = "$target"; then
12394 if test x${want64} = xfalse; then
12395 . ${srcdir}/../bfd/config.bfd
12398 if test x${want64} = xtrue; then
12399 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
12400 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
12403 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
12404 case " $all_emuls " in
12407 all_emuls="$all_emuls e${i}.o"
12408 eval result=\$tdir_$i
12409 test -z "$result" && result=$targ_alias
12410 echo tdir_$i=$result >> tdirs
12415 for i in $targ_emul $targ_extra_libpath; do
12416 case " $all_libpath " in
12419 if test -z "$all_libpath"; then
12422 all_libpath="$all_libpath ${i}"
12428 for i in $targ_extra_ofiles; do
12429 case " $all_emul_extras " in
12432 all_emul_extras="$all_emul_extras ${i}"
12444 if test x${all_targets} = xtrue; then
12445 if test x${want64} = xfalse; then
12446 echo "$as_me:$LINENO: checking for long" >&5
12447 echo $ECHO_N "checking for long... $ECHO_C" >&6
12448 if test "${ac_cv_type_long+set}" = set; then
12449 echo $ECHO_N "(cached) $ECHO_C" >&6
12451 cat >conftest.$ac_ext <<_ACEOF
12454 cat confdefs.h >>conftest.$ac_ext
12455 cat >>conftest.$ac_ext <<_ACEOF
12456 /* end confdefs.h. */
12457 $ac_includes_default
12469 rm -f conftest.$ac_objext
12470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12471 (eval $ac_compile) 2>conftest.er1
12473 grep -v '^ *+' conftest.er1 >conftest.err
12475 cat conftest.err >&5
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); } &&
12478 { ac_try='test -z "$ac_c_werror_flag"
12479 || test ! -s conftest.err'
12480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12481 (eval $ac_try) 2>&5
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); }; } &&
12485 { ac_try='test -s conftest.$ac_objext'
12486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12487 (eval $ac_try) 2>&5
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); }; }; then
12491 ac_cv_type_long=yes
12493 echo "$as_me: failed program was:" >&5
12494 sed 's/^/| /' conftest.$ac_ext >&5
12498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12500 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12501 echo "${ECHO_T}$ac_cv_type_long" >&6
12503 echo "$as_me:$LINENO: checking size of long" >&5
12504 echo $ECHO_N "checking size of long... $ECHO_C" >&6
12505 if test "${ac_cv_sizeof_long+set}" = set; then
12506 echo $ECHO_N "(cached) $ECHO_C" >&6
12508 if test "$ac_cv_type_long" = yes; then
12509 # The cast to unsigned long works around a bug in the HP C Compiler
12510 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12511 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12512 # This bug is HP SR number 8606223364.
12513 if test "$cross_compiling" = yes; then
12514 # Depending upon the size, compute the lo and hi bounds.
12515 cat >conftest.$ac_ext <<_ACEOF
12518 cat confdefs.h >>conftest.$ac_ext
12519 cat >>conftest.$ac_ext <<_ACEOF
12520 /* end confdefs.h. */
12521 $ac_includes_default
12525 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12532 rm -f conftest.$ac_objext
12533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12534 (eval $ac_compile) 2>conftest.er1
12536 grep -v '^ *+' conftest.er1 >conftest.err
12538 cat conftest.err >&5
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); } &&
12541 { ac_try='test -z "$ac_c_werror_flag"
12542 || test ! -s conftest.err'
12543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12544 (eval $ac_try) 2>&5
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); }; } &&
12548 { ac_try='test -s conftest.$ac_objext'
12549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12550 (eval $ac_try) 2>&5
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); }; }; then
12556 cat >conftest.$ac_ext <<_ACEOF
12559 cat confdefs.h >>conftest.$ac_ext
12560 cat >>conftest.$ac_ext <<_ACEOF
12561 /* end confdefs.h. */
12562 $ac_includes_default
12566 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12573 rm -f conftest.$ac_objext
12574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12575 (eval $ac_compile) 2>conftest.er1
12577 grep -v '^ *+' conftest.er1 >conftest.err
12579 cat conftest.err >&5
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); } &&
12582 { ac_try='test -z "$ac_c_werror_flag"
12583 || test ! -s conftest.err'
12584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12585 (eval $ac_try) 2>&5
12587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588 (exit $ac_status); }; } &&
12589 { ac_try='test -s conftest.$ac_objext'
12590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12591 (eval $ac_try) 2>&5
12593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594 (exit $ac_status); }; }; then
12595 ac_hi=$ac_mid; break
12597 echo "$as_me: failed program was:" >&5
12598 sed 's/^/| /' conftest.$ac_ext >&5
12600 ac_lo=`expr $ac_mid + 1`
12601 if test $ac_lo -le $ac_mid; then
12605 ac_mid=`expr 2 '*' $ac_mid + 1`
12607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12610 echo "$as_me: failed program was:" >&5
12611 sed 's/^/| /' conftest.$ac_ext >&5
12613 cat >conftest.$ac_ext <<_ACEOF
12616 cat confdefs.h >>conftest.$ac_ext
12617 cat >>conftest.$ac_ext <<_ACEOF
12618 /* end confdefs.h. */
12619 $ac_includes_default
12623 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12630 rm -f conftest.$ac_objext
12631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12632 (eval $ac_compile) 2>conftest.er1
12634 grep -v '^ *+' conftest.er1 >conftest.err
12636 cat conftest.err >&5
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); } &&
12639 { ac_try='test -z "$ac_c_werror_flag"
12640 || test ! -s conftest.err'
12641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12642 (eval $ac_try) 2>&5
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); }; } &&
12646 { ac_try='test -s conftest.$ac_objext'
12647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12648 (eval $ac_try) 2>&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); }; }; then
12654 cat >conftest.$ac_ext <<_ACEOF
12657 cat confdefs.h >>conftest.$ac_ext
12658 cat >>conftest.$ac_ext <<_ACEOF
12659 /* end confdefs.h. */
12660 $ac_includes_default
12664 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12671 rm -f conftest.$ac_objext
12672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12673 (eval $ac_compile) 2>conftest.er1
12675 grep -v '^ *+' conftest.er1 >conftest.err
12677 cat conftest.err >&5
12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); } &&
12680 { ac_try='test -z "$ac_c_werror_flag"
12681 || test ! -s conftest.err'
12682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12683 (eval $ac_try) 2>&5
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); }; } &&
12687 { ac_try='test -s conftest.$ac_objext'
12688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12689 (eval $ac_try) 2>&5
12691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692 (exit $ac_status); }; }; then
12693 ac_lo=$ac_mid; break
12695 echo "$as_me: failed program was:" >&5
12696 sed 's/^/| /' conftest.$ac_ext >&5
12698 ac_hi=`expr '(' $ac_mid ')' - 1`
12699 if test $ac_mid -le $ac_hi; then
12703 ac_mid=`expr 2 '*' $ac_mid`
12705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12708 echo "$as_me: failed program was:" >&5
12709 sed 's/^/| /' conftest.$ac_ext >&5
12713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12716 # Binary search between lo and hi bounds.
12717 while test "x$ac_lo" != "x$ac_hi"; do
12718 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12719 cat >conftest.$ac_ext <<_ACEOF
12722 cat confdefs.h >>conftest.$ac_ext
12723 cat >>conftest.$ac_ext <<_ACEOF
12724 /* end confdefs.h. */
12725 $ac_includes_default
12729 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12736 rm -f conftest.$ac_objext
12737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12738 (eval $ac_compile) 2>conftest.er1
12740 grep -v '^ *+' conftest.er1 >conftest.err
12742 cat conftest.err >&5
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); } &&
12745 { ac_try='test -z "$ac_c_werror_flag"
12746 || test ! -s conftest.err'
12747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12748 (eval $ac_try) 2>&5
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); }; } &&
12752 { ac_try='test -s conftest.$ac_objext'
12753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12754 (eval $ac_try) 2>&5
12756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757 (exit $ac_status); }; }; then
12760 echo "$as_me: failed program was:" >&5
12761 sed 's/^/| /' conftest.$ac_ext >&5
12763 ac_lo=`expr '(' $ac_mid ')' + 1`
12765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12768 ?*) ac_cv_sizeof_long=$ac_lo;;
12769 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12770 See \`config.log' for more details." >&5
12771 echo "$as_me: error: cannot compute sizeof (long), 77
12772 See \`config.log' for more details." >&2;}
12773 { (exit 1); exit 1; }; } ;;
12776 if test "$cross_compiling" = yes; then
12777 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12778 See \`config.log' for more details." >&5
12779 echo "$as_me: error: cannot run test program while cross compiling
12780 See \`config.log' for more details." >&2;}
12781 { (exit 1); exit 1; }; }
12783 cat >conftest.$ac_ext <<_ACEOF
12786 cat confdefs.h >>conftest.$ac_ext
12787 cat >>conftest.$ac_ext <<_ACEOF
12788 /* end confdefs.h. */
12789 $ac_includes_default
12790 long longval () { return (long) (sizeof (long)); }
12791 unsigned long ulongval () { return (long) (sizeof (long)); }
12793 #include <stdlib.h>
12798 FILE *f = fopen ("conftest.val", "w");
12801 if (((long) (sizeof (long))) < 0)
12803 long i = longval ();
12804 if (i != ((long) (sizeof (long))))
12806 fprintf (f, "%ld\n", i);
12810 unsigned long i = ulongval ();
12811 if (i != ((long) (sizeof (long))))
12813 fprintf (f, "%lu\n", i);
12815 exit (ferror (f) || fclose (f) != 0);
12821 rm -f conftest$ac_exeext
12822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12823 (eval $ac_link) 2>&5
12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12828 (eval $ac_try) 2>&5
12830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831 (exit $ac_status); }; }; then
12832 ac_cv_sizeof_long=`cat conftest.val`
12834 echo "$as_me: program exited with status $ac_status" >&5
12835 echo "$as_me: failed program was:" >&5
12836 sed 's/^/| /' conftest.$ac_ext >&5
12838 ( exit $ac_status )
12839 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12840 See \`config.log' for more details." >&5
12841 echo "$as_me: error: cannot compute sizeof (long), 77
12842 See \`config.log' for more details." >&2;}
12843 { (exit 1); exit 1; }; }
12845 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12850 ac_cv_sizeof_long=0
12853 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12854 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12855 cat >>confdefs.h <<_ACEOF
12856 #define SIZEOF_LONG $ac_cv_sizeof_long
12860 if test "x${ac_cv_sizeof_long}" = "x8"; then
12864 if test x${want64} = xtrue; then
12865 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
12867 EMULATION_OFILES='$(ALL_EMULATIONS)'
12869 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
12871 EMULATION_OFILES=$all_emuls
12872 EMUL_EXTRA_OFILES=$all_emul_extras
12878 EMULATION_LIBPATH=$all_libpath
12881 if test x${enable_static} = xno; then
12882 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
12884 TESTBFDLIB="../bfd/.libs/libbfd.a"
12888 target_vendor=${target_vendor=$host_vendor}
12889 case "$target_vendor" in
12890 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
12891 *) EXTRA_SHLIB_EXTENSION= ;;
12894 case "$target_os" in
12895 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
12898 if test x${EXTRA_SHLIB_EXTENSION} != x ; then
12900 cat >>confdefs.h <<_ACEOF
12901 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
12910 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
12911 cat >confcache <<\_ACEOF
12912 # This file is a shell script that caches the results of configure
12913 # tests run on this system so they can be shared between configure
12914 # scripts and configure runs, see configure's option --config-cache.
12915 # It is not useful on other systems. If it contains results you don't
12916 # want to keep, you may remove or edit it.
12918 # config.status only pays attention to the cache file if you give it
12919 # the --recheck option to rerun configure.
12921 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12922 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12923 # following values.
12927 # The following way of writing the cache mishandles newlines in values,
12928 # but we know of no workaround that is simple, portable, and efficient.
12929 # So, don't put newlines in cache variables' values.
12930 # Ultrix sh set writes to stderr and can't be redirected directly,
12931 # and sets the high bit in the cache file unless we assign to the vars.
12934 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12936 # `set' does not quote correctly, so add quotes (double-quote
12937 # substitution turns \\\\ into \\, and sed turns \\ into \).
12940 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12943 # `set' quotes correctly as required by POSIX, so do not add quotes.
12945 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12952 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12954 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12956 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12957 if test -w $cache_file; then
12958 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12959 cat confcache >$cache_file
12961 echo "not updating unwritable cache $cache_file"
12966 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12967 # Let make expand exec_prefix.
12968 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12970 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12971 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12972 # trailing colons and then remove the whole line if VPATH becomes empty
12973 # (actually we leave an empty line to preserve line numbers).
12974 if test "x$srcdir" = x.; then
12975 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12976 s/:*\$(srcdir):*/:/;
12977 s/:*\${srcdir}:*/:/;
12979 s/^\([^=]*=[ ]*\):*/\1/;
12985 DEFS=-DHAVE_CONFIG_H
12989 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12990 # 1. Remove the extension, and $U if already installed.
12991 ac_i=`echo "$ac_i" |
12992 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12994 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12995 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12997 LIBOBJS=$ac_libobjs
12999 LTLIBOBJS=$ac_ltlibobjs
13002 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13003 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13004 Usually this means the macro was only invoked conditionally." >&5
13005 echo "$as_me: error: conditional \"AMDEP\" was never defined.
13006 Usually this means the macro was only invoked conditionally." >&2;}
13007 { (exit 1); exit 1; }; }
13009 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13010 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13011 Usually this means the macro was only invoked conditionally." >&5
13012 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13013 Usually this means the macro was only invoked conditionally." >&2;}
13014 { (exit 1); exit 1; }; }
13016 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13017 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13018 Usually this means the macro was only invoked conditionally." >&5
13019 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13020 Usually this means the macro was only invoked conditionally." >&2;}
13021 { (exit 1); exit 1; }; }
13023 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
13024 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
13025 Usually this means the macro was only invoked conditionally." >&5
13026 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
13027 Usually this means the macro was only invoked conditionally." >&2;}
13028 { (exit 1); exit 1; }; }
13031 : ${CONFIG_STATUS=./config.status}
13032 ac_clean_files_save=$ac_clean_files
13033 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13034 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13035 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13036 cat >$CONFIG_STATUS <<_ACEOF
13038 # Generated by $as_me.
13039 # Run this file to recreate the current configuration.
13040 # Compiler output produced by configure, useful for debugging
13041 # configure, is in config.log if it exists.
13044 ac_cs_recheck=false
13046 SHELL=\${CONFIG_SHELL-$SHELL}
13049 cat >>$CONFIG_STATUS <<\_ACEOF
13050 ## --------------------- ##
13051 ## M4sh Initialization. ##
13052 ## --------------------- ##
13054 # Be Bourne compatible
13055 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13058 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13059 # is contrary to our usage. Disable this feature.
13060 alias -g '${1+"$@"}'='"$@"'
13061 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13064 DUALCASE=1; export DUALCASE # for MKS sh
13066 # Support unset when possible.
13067 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13074 # Work around bugs in pre-3.0 UWIN ksh.
13075 $as_unset ENV MAIL MAILPATH
13082 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13083 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13084 LC_TELEPHONE LC_TIME
13086 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13087 eval $as_var=C; export $as_var
13093 # Required to use basename.
13094 if expr a : '\(a\)' >/dev/null 2>&1; then
13100 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13101 as_basename=basename
13107 # Name of the executable.
13108 as_me=`$as_basename "$0" ||
13109 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13110 X"$0" : 'X\(//\)$' \| \
13111 X"$0" : 'X\(/\)$' \| \
13112 . : '\(.\)' 2>/dev/null ||
13114 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13115 /^X\/\(\/\/\)$/{ s//\1/; q; }
13116 /^X\/\(\/\).*/{ s//\1/; q; }
13120 # PATH needs CR, and LINENO needs CR and PATH.
13121 # Avoid depending upon Character Ranges.
13122 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13123 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13124 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13125 as_cr_digits='0123456789'
13126 as_cr_alnum=$as_cr_Letters$as_cr_digits
13128 # The user is always right.
13129 if test "${PATH_SEPARATOR+set}" != set; then
13130 echo "#! /bin/sh" >conf$$.sh
13131 echo "exit 0" >>conf$$.sh
13133 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13142 as_lineno_1=$LINENO
13143 as_lineno_2=$LINENO
13144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13145 test "x$as_lineno_1" != "x$as_lineno_2" &&
13146 test "x$as_lineno_3" = "x$as_lineno_2" || {
13147 # Find who we are. Look in the path if we contain no path at all
13150 *[\\/]* ) as_myself=$0 ;;
13151 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13152 for as_dir in $PATH
13155 test -z "$as_dir" && as_dir=.
13156 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13161 # We did not find ourselves, most probably we were run as `sh COMMAND'
13162 # in which case we are not to be found in the path.
13163 if test "x$as_myself" = x; then
13166 if test ! -f "$as_myself"; then
13167 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13168 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13169 { (exit 1); exit 1; }; }
13171 case $CONFIG_SHELL in
13173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13174 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13177 test -z "$as_dir" && as_dir=.
13178 for as_base in sh bash ksh sh5; do
13181 if ("$as_dir/$as_base" -c '
13182 as_lineno_1=$LINENO
13183 as_lineno_2=$LINENO
13184 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13185 test "x$as_lineno_1" != "x$as_lineno_2" &&
13186 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13187 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13188 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13189 CONFIG_SHELL=$as_dir/$as_base
13190 export CONFIG_SHELL
13191 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13199 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13200 # uniformly replaced by the line number. The first 'sed' inserts a
13201 # line-number line before each line; the second 'sed' does the real
13202 # work. The second script uses 'N' to pair each line-number line
13203 # with the numbered line, and appends trailing '-' during
13204 # substitution so that $LINENO is not a special case at line end.
13205 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13206 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13207 sed '=' <$as_myself |
13212 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13215 s,^['$as_cr_digits']*\n,,
13216 ' >$as_me.lineno &&
13217 chmod +x $as_me.lineno ||
13218 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13219 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13220 { (exit 1); exit 1; }; }
13222 # Don't try to exec as it changes $[0], causing all sort of problems
13223 # (the dirname of $[0] is not the place where we might find the
13224 # original and so on. Autoconf is especially sensible to this).
13226 # Exit status is that of the last command.
13231 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13232 *c*,-n*) ECHO_N= ECHO_C='
13234 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13235 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13238 if expr a : '\(a\)' >/dev/null 2>&1; then
13244 rm -f conf$$ conf$$.exe conf$$.file
13246 if ln -s conf$$.file conf$$ 2>/dev/null; then
13247 # We could just check for DJGPP; but this test a) works b) is more generic
13248 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13249 if test -f conf$$.exe; then
13250 # Don't use ln at all; we don't have any links
13255 elif ln conf$$.file conf$$ 2>/dev/null; then
13260 rm -f conf$$ conf$$.exe conf$$.file
13262 if mkdir -p . 2>/dev/null; then
13265 test -d ./-p && rmdir ./-p
13269 as_executable_p="test -f"
13271 # Sed expression to map a string onto a valid CPP name.
13272 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13274 # Sed expression to map a string onto a valid variable name.
13275 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13279 # We need space, tab and new line, in precisely that order.
13289 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13290 # report actual input values of CONFIG_FILES etc. instead of their
13291 # values after options handling. Logging --version etc. is OK.
13295 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13296 ## Running $as_me. ##
13301 This file was extended by $as_me, which was
13302 generated by GNU Autoconf 2.59. Invocation command line was
13304 CONFIG_FILES = $CONFIG_FILES
13305 CONFIG_HEADERS = $CONFIG_HEADERS
13306 CONFIG_LINKS = $CONFIG_LINKS
13307 CONFIG_COMMANDS = $CONFIG_COMMANDS
13311 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13315 # Files that config.status was made for.
13316 if test -n "$ac_config_files"; then
13317 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13320 if test -n "$ac_config_headers"; then
13321 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13324 if test -n "$ac_config_links"; then
13325 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13328 if test -n "$ac_config_commands"; then
13329 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13332 cat >>$CONFIG_STATUS <<\_ACEOF
13335 \`$as_me' instantiates files from templates according to the
13336 current configuration.
13338 Usage: $0 [OPTIONS] [FILE]...
13340 -h, --help print this help, then exit
13341 -V, --version print version number, then exit
13342 -q, --quiet do not print progress messages
13343 -d, --debug don't remove temporary files
13344 --recheck update $as_me by reconfiguring in the same conditions
13345 --file=FILE[:TEMPLATE]
13346 instantiate the configuration file FILE
13347 --header=FILE[:TEMPLATE]
13348 instantiate the configuration header FILE
13350 Configuration files:
13353 Configuration headers:
13356 Configuration commands:
13359 Report bugs to <bug-autoconf@gnu.org>."
13362 cat >>$CONFIG_STATUS <<_ACEOF
13365 configured by $0, generated by GNU Autoconf 2.59,
13366 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13368 Copyright (C) 2003 Free Software Foundation, Inc.
13369 This config.status script is free software; the Free Software Foundation
13370 gives unlimited permission to copy, distribute and modify it."
13375 cat >>$CONFIG_STATUS <<\_ACEOF
13376 # If no file are specified by the user, then we need to provide default
13377 # value. By we need to know if files were specified by the user.
13383 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13384 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13392 *) # This is not an option, so the user has probably given explicit
13395 ac_need_defaults=false;;
13399 # Handling of the options.
13401 cat >>$CONFIG_STATUS <<\_ACEOF
13402 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13404 --version | --vers* | -V )
13405 echo "$ac_cs_version"; exit 0 ;;
13407 # Conflict between --help and --header
13408 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13409 Try \`$0 --help' for more information." >&5
13410 echo "$as_me: error: ambiguous option: $1
13411 Try \`$0 --help' for more information." >&2;}
13412 { (exit 1); exit 1; }; };;
13413 --help | --hel | -h )
13414 echo "$ac_cs_usage"; exit 0 ;;
13415 --debug | --d* | -d )
13417 --file | --fil | --fi | --f )
13419 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13420 ac_need_defaults=false;;
13421 --header | --heade | --head | --hea )
13423 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13424 ac_need_defaults=false;;
13425 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13426 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13429 # This is an error.
13430 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13431 Try \`$0 --help' for more information." >&5
13432 echo "$as_me: error: unrecognized option: $1
13433 Try \`$0 --help' for more information." >&2;}
13434 { (exit 1); exit 1; }; } ;;
13436 *) ac_config_targets="$ac_config_targets $1" ;;
13442 ac_configure_extra_args=
13444 if $ac_cs_silent; then
13446 ac_configure_extra_args="$ac_configure_extra_args --silent"
13450 cat >>$CONFIG_STATUS <<_ACEOF
13451 if \$ac_cs_recheck; then
13452 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13453 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13458 cat >>$CONFIG_STATUS <<_ACEOF
13460 # INIT-COMMANDS section.
13463 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13466 # The HP-UX ksh and POSIX shell print the target directory to stdout
13467 # if CDPATH is set.
13468 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13470 sed_quote_subst='$sed_quote_subst'
13471 double_quote_subst='$double_quote_subst'
13472 delay_variable_subst='$delay_variable_subst'
13473 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13474 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13475 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13476 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13477 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13478 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13479 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13480 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13481 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13482 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13483 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13484 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13485 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13486 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13487 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13488 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13489 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13490 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13491 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13492 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13493 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13494 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13495 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13496 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13497 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13498 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13499 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13500 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13501 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13502 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13503 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13504 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13505 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13506 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13507 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13508 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13509 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13510 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13511 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13512 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13513 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13514 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13515 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13516 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
13517 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13518 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13519 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13520 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13521 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13522 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13523 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13524 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13525 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13526 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13527 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13528 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13529 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13530 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13531 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13532 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13533 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13534 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13535 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13536 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13537 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13538 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13539 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13540 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13541 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13542 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13543 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13544 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13545 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13546 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13547 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13548 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13549 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13550 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13551 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13552 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13553 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13554 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13555 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13556 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13557 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13558 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13559 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13560 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13561 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13562 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13563 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13564 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13565 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13566 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13567 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13568 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13569 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13570 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13571 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13572 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13573 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13574 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13575 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13576 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13577 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13578 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13579 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13580 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13581 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13582 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13583 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13586 LTCFLAGS='$LTCFLAGS'
13587 compiler='$compiler_DEFAULT'
13589 # Quote evaled strings.
13600 deplibs_check_method \
13609 lt_cv_sys_global_symbol_pipe \
13610 lt_cv_sys_global_symbol_to_cdecl \
13611 lt_cv_sys_global_symbol_to_c_name_address \
13614 lt_prog_compiler_no_builtin_flag \
13615 lt_prog_compiler_wl \
13616 lt_prog_compiler_pic \
13617 lt_prog_compiler_static \
13618 lt_cv_prog_compiler_c_o \
13621 export_dynamic_flag_spec \
13622 whole_archive_flag_spec \
13623 compiler_needs_object \
13625 allow_undefined_flag \
13626 no_undefined_flag \
13627 hardcode_libdir_flag_spec \
13628 hardcode_libdir_flag_spec_ld \
13629 hardcode_libdir_separator \
13634 variables_saved_for_relink \
13636 library_names_spec \
13641 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13642 *[\\\\\\\`\\"\\\$]*)
13643 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13646 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13651 # Double-quote double-evaled strings.
13652 for var in reload_cmds \
13653 old_postinstall_cmds \
13654 old_postuninstall_cmds \
13656 extract_expsyms_cmds \
13657 old_archive_from_new_cmds \
13658 old_archive_from_expsyms_cmds \
13660 archive_expsym_cmds \
13662 module_expsym_cmds \
13663 export_symbols_cmds \
13666 postuninstall_cmds \
13668 sys_lib_search_path_spec \
13669 sys_lib_dlsearch_path_spec; do
13670 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13671 *[\\\\\\\`\\"\\\$]*)
13672 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13675 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13680 # Fix-up fallback echo if it was mangled by the above quoting rules.
13682 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13686 ac_aux_dir='$ac_aux_dir'
13687 xsi_shell='$xsi_shell'
13688 lt_shell_append='$lt_shell_append'
13690 # See if we are running on zsh, and set the options which allow our
13691 # commands through without removal of \ escapes INIT.
13692 if test -n "\${ZSH_VERSION+set}" ; then
13693 setopt NO_GLOB_SUBST
13699 TIMESTAMP='$TIMESTAMP'
13705 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
13706 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
13708 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13709 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13710 LINGUAS="${LINGUAS-%UNSET%}"
13717 cat >>$CONFIG_STATUS <<\_ACEOF
13718 for ac_config_target in $ac_config_targets
13720 case "$ac_config_target" in
13721 # Handling of arguments.
13722 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13723 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
13724 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13725 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13726 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13727 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
13728 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13729 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13730 { (exit 1); exit 1; }; };;
13734 # If the user did not use the arguments to specify the items to instantiate,
13735 # then the envvar interface is used. Set only those that are not.
13736 # We use the long form for the default assignment because of an extremely
13737 # bizarre bug on SunOS 4.1.3.
13738 if $ac_need_defaults; then
13739 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13740 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13741 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13744 # Have a temporary directory for convenience. Make it in the build tree
13745 # simply because there is no reason to put it here, and in addition,
13746 # creating and moving files from /tmp can sometimes cause problems.
13747 # Create a temporary directory, and hook for its removal unless debugging.
13750 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13751 trap '{ (exit 1); exit 1; }' 1 2 13 15
13754 # Create a (secure) tmp directory for tmp files.
13757 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13758 test -n "$tmp" && test -d "$tmp"
13761 tmp=./confstat$$-$RANDOM
13762 (umask 077 && mkdir $tmp)
13765 echo "$me: cannot create a temporary directory in ." >&2
13766 { (exit 1); exit 1; }
13771 cat >>$CONFIG_STATUS <<_ACEOF
13774 # CONFIG_FILES section.
13777 # No need to generate the scripts if there are no CONFIG_FILES.
13778 # This happens for instance when ./config.status config.h
13779 if test -n "\$CONFIG_FILES"; then
13780 # Protect against being on the right side of a sed subst in config.status.
13781 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13782 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13783 s,@SHELL@,$SHELL,;t t
13784 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13785 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13786 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13787 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13788 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13789 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13790 s,@exec_prefix@,$exec_prefix,;t t
13791 s,@prefix@,$prefix,;t t
13792 s,@program_transform_name@,$program_transform_name,;t t
13793 s,@bindir@,$bindir,;t t
13794 s,@sbindir@,$sbindir,;t t
13795 s,@libexecdir@,$libexecdir,;t t
13796 s,@datadir@,$datadir,;t t
13797 s,@sysconfdir@,$sysconfdir,;t t
13798 s,@sharedstatedir@,$sharedstatedir,;t t
13799 s,@localstatedir@,$localstatedir,;t t
13800 s,@libdir@,$libdir,;t t
13801 s,@includedir@,$includedir,;t t
13802 s,@oldincludedir@,$oldincludedir,;t t
13803 s,@infodir@,$infodir,;t t
13804 s,@mandir@,$mandir,;t t
13805 s,@build_alias@,$build_alias,;t t
13806 s,@host_alias@,$host_alias,;t t
13807 s,@target_alias@,$target_alias,;t t
13808 s,@DEFS@,$DEFS,;t t
13809 s,@ECHO_C@,$ECHO_C,;t t
13810 s,@ECHO_N@,$ECHO_N,;t t
13811 s,@ECHO_T@,$ECHO_T,;t t
13812 s,@LIBS@,$LIBS,;t t
13813 s,@build@,$build,;t t
13814 s,@build_cpu@,$build_cpu,;t t
13815 s,@build_vendor@,$build_vendor,;t t
13816 s,@build_os@,$build_os,;t t
13817 s,@host@,$host,;t t
13818 s,@host_cpu@,$host_cpu,;t t
13819 s,@host_vendor@,$host_vendor,;t t
13820 s,@host_os@,$host_os,;t t
13821 s,@target@,$target,;t t
13822 s,@target_cpu@,$target_cpu,;t t
13823 s,@target_vendor@,$target_vendor,;t t
13824 s,@target_os@,$target_os,;t t
13826 s,@CFLAGS@,$CFLAGS,;t t
13827 s,@LDFLAGS@,$LDFLAGS,;t t
13828 s,@CPPFLAGS@,$CPPFLAGS,;t t
13829 s,@ac_ct_CC@,$ac_ct_CC,;t t
13830 s,@EXEEXT@,$EXEEXT,;t t
13831 s,@OBJEXT@,$OBJEXT,;t t
13832 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13833 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13834 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13835 s,@CYGPATH_W@,$CYGPATH_W,;t t
13836 s,@PACKAGE@,$PACKAGE,;t t
13837 s,@VERSION@,$VERSION,;t t
13838 s,@ACLOCAL@,$ACLOCAL,;t t
13839 s,@AUTOCONF@,$AUTOCONF,;t t
13840 s,@AUTOMAKE@,$AUTOMAKE,;t t
13841 s,@AUTOHEADER@,$AUTOHEADER,;t t
13842 s,@MAKEINFO@,$MAKEINFO,;t t
13843 s,@install_sh@,$install_sh,;t t
13844 s,@STRIP@,$STRIP,;t t
13845 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13846 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13847 s,@mkdir_p@,$mkdir_p,;t t
13849 s,@SET_MAKE@,$SET_MAKE,;t t
13850 s,@am__leading_dot@,$am__leading_dot,;t t
13851 s,@AMTAR@,$AMTAR,;t t
13852 s,@am__tar@,$am__tar,;t t
13853 s,@am__untar@,$am__untar,;t t
13854 s,@DEPDIR@,$DEPDIR,;t t
13855 s,@am__include@,$am__include,;t t
13856 s,@am__quote@,$am__quote,;t t
13857 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13858 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13859 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13860 s,@CCDEPMODE@,$CCDEPMODE,;t t
13861 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13862 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
13863 s,@use_sysroot@,$use_sysroot,;t t
13864 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
13865 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
13866 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
13867 s,@NO_WERROR@,$NO_WERROR,;t t
13868 s,@LIBTOOL@,$LIBTOOL,;t t
13870 s,@EGREP@,$EGREP,;t t
13871 s,@FGREP@,$FGREP,;t t
13872 s,@GREP@,$GREP,;t t
13874 s,@DUMPBIN@,$DUMPBIN,;t t
13875 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
13877 s,@LN_S@,$LN_S,;t t
13879 s,@ac_ct_AR@,$ac_ct_AR,;t t
13880 s,@RANLIB@,$RANLIB,;t t
13881 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13882 s,@lt_ECHO@,$lt_ECHO,;t t
13884 s,@USE_NLS@,$USE_NLS,;t t
13885 s,@LIBINTL@,$LIBINTL,;t t
13886 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
13887 s,@INCINTL@,$INCINTL,;t t
13888 s,@XGETTEXT@,$XGETTEXT,;t t
13889 s,@GMSGFMT@,$GMSGFMT,;t t
13890 s,@POSUB@,$POSUB,;t t
13891 s,@CATALOGS@,$CATALOGS,;t t
13892 s,@DATADIRNAME@,$DATADIRNAME,;t t
13893 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
13894 s,@GENCAT@,$GENCAT,;t t
13895 s,@CATOBJEXT@,$CATOBJEXT,;t t
13896 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
13897 s,@MSGFMT@,$MSGFMT,;t t
13898 s,@MSGMERGE@,$MSGMERGE,;t t
13899 s,@YACC@,$YACC,;t t
13901 s,@LEXLIB@,$LEXLIB,;t t
13902 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
13903 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13904 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13905 s,@MAINT@,$MAINT,;t t
13906 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
13907 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
13908 s,@HDEFINES@,$HDEFINES,;t t
13909 s,@HOSTING_CRT0@,$HOSTING_CRT0,;t t
13910 s,@HOSTING_LIBS@,$HOSTING_LIBS,;t t
13911 s,@NATIVE_LIB_DIRS@,$NATIVE_LIB_DIRS,;t t
13912 s,@STRINGIFY@,$STRINGIFY,;t t
13913 s,@EMUL@,$EMUL,;t t
13914 s,@EMULATION_OFILES@,$EMULATION_OFILES,;t t
13915 s,@EMUL_EXTRA_OFILES@,$EMUL_EXTRA_OFILES,;t t
13916 s,@LIB_PATH@,$LIB_PATH,;t t
13917 s,@EMULATION_LIBPATH@,$EMULATION_LIBPATH,;t t
13918 s,@TESTBFDLIB@,$TESTBFDLIB,;t t
13919 s,@datarootdir@,$datarootdir,;t t
13920 s,@docdir@,$docdir,;t t
13921 s,@htmldir@,$htmldir,;t t
13922 s,@LIBOBJS@,$LIBOBJS,;t t
13923 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13930 cat >>$CONFIG_STATUS <<\_ACEOF
13931 # Split the substitutions into bite-sized pieces for seds with
13932 # small command number limits, like on Digital OSF/1 and HP-UX.
13933 ac_max_sed_lines=48
13934 ac_sed_frag=1 # Number of current file.
13935 ac_beg=1 # First line for current file.
13936 ac_end=$ac_max_sed_lines # Line after last line for current file.
13939 while $ac_more_lines; do
13940 if test $ac_beg -gt 1; then
13941 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13943 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13945 if test ! -s $tmp/subs.frag; then
13946 ac_more_lines=false
13948 # The purpose of the label and of the branching condition is to
13949 # speed up the sed processing (if there are no `@' at all, there
13950 # is no need to browse any of the substitutions).
13951 # These are the two extra sed commands mentioned above.
13953 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13954 if test -z "$ac_sed_cmds"; then
13955 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13957 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13959 ac_sed_frag=`expr $ac_sed_frag + 1`
13961 ac_end=`expr $ac_end + $ac_max_sed_lines`
13964 if test -z "$ac_sed_cmds"; then
13967 fi # test -n "$CONFIG_FILES"
13970 cat >>$CONFIG_STATUS <<\_ACEOF
13971 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13972 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13974 - | *:- | *:-:* ) # input from stdin
13976 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13977 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13978 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13979 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13980 * ) ac_file_in=$ac_file.in ;;
13983 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13984 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13985 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13986 X"$ac_file" : 'X\(//\)[^/]' \| \
13987 X"$ac_file" : 'X\(//\)$' \| \
13988 X"$ac_file" : 'X\(/\)' \| \
13989 . : '\(.\)' 2>/dev/null ||
13991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13992 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13993 /^X\(\/\/\)$/{ s//\1/; q; }
13994 /^X\(\/\).*/{ s//\1/; q; }
13996 { if $as_mkdir_p; then
14001 while test ! -d "$as_dir"; do
14002 as_dirs="$as_dir $as_dirs"
14003 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14004 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14005 X"$as_dir" : 'X\(//\)[^/]' \| \
14006 X"$as_dir" : 'X\(//\)$' \| \
14007 X"$as_dir" : 'X\(/\)' \| \
14008 . : '\(.\)' 2>/dev/null ||
14010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14011 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14012 /^X\(\/\/\)$/{ s//\1/; q; }
14013 /^X\(\/\).*/{ s//\1/; q; }
14016 test ! -n "$as_dirs" || mkdir $as_dirs
14017 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14018 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14019 { (exit 1); exit 1; }; }; }
14023 if test "$ac_dir" != .; then
14024 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14025 # A "../" for each directory in $ac_dir_suffix.
14026 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14028 ac_dir_suffix= ac_top_builddir=
14032 .) # No --srcdir option. We are building in place.
14034 if test -z "$ac_top_builddir"; then
14037 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14039 [\\/]* | ?:[\\/]* ) # Absolute path.
14040 ac_srcdir=$srcdir$ac_dir_suffix;
14041 ac_top_srcdir=$srcdir ;;
14042 *) # Relative path.
14043 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14044 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14047 # Do not use `cd foo && pwd` to compute absolute paths, because
14048 # the directories may not exist.
14050 .) ac_abs_builddir="$ac_dir";;
14053 .) ac_abs_builddir=`pwd`;;
14054 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14055 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14058 case $ac_abs_builddir in
14059 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14061 case ${ac_top_builddir}. in
14062 .) ac_abs_top_builddir=$ac_abs_builddir;;
14063 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14064 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14067 case $ac_abs_builddir in
14068 .) ac_abs_srcdir=$ac_srcdir;;
14071 .) ac_abs_srcdir=$ac_abs_builddir;;
14072 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14073 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14076 case $ac_abs_builddir in
14077 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14079 case $ac_top_srcdir in
14080 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14081 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14082 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14088 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14089 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14092 if test x"$ac_file" != x-; then
14093 { echo "$as_me:$LINENO: creating $ac_file" >&5
14094 echo "$as_me: creating $ac_file" >&6;}
14097 # Let's still pretend it is `configure' which instantiates (i.e., don't
14098 # use $as_me), people would be surprised to read:
14099 # /* config.h. Generated by config.status. */
14100 if test x"$ac_file" = x-; then
14103 configure_input="$ac_file. "
14105 configure_input=$configure_input"Generated from `echo $ac_file_in |
14106 sed 's,.*/,,'` by configure."
14108 # First look for the input files in the build tree, otherwise in the
14110 ac_file_inputs=`IFS=:
14111 for f in $ac_file_in; do
14113 -) echo $tmp/stdin ;;
14115 # Absolute (can't be DOS-style, as IFS=:)
14116 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14117 echo "$as_me: error: cannot find input file: $f" >&2;}
14118 { (exit 1); exit 1; }; }
14121 if test -f "$f"; then
14124 elif test -f "$srcdir/$f"; then
14129 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14130 echo "$as_me: error: cannot find input file: $f" >&2;}
14131 { (exit 1); exit 1; }; }
14134 done` || { (exit 1); exit 1; }
14136 cat >>$CONFIG_STATUS <<_ACEOF
14140 cat >>$CONFIG_STATUS <<\_ACEOF
14142 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14143 s,@configure_input@,$configure_input,;t t
14144 s,@srcdir@,$ac_srcdir,;t t
14145 s,@abs_srcdir@,$ac_abs_srcdir,;t t
14146 s,@top_srcdir@,$ac_top_srcdir,;t t
14147 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14148 s,@builddir@,$ac_builddir,;t t
14149 s,@abs_builddir@,$ac_abs_builddir,;t t
14150 s,@top_builddir@,$ac_top_builddir,;t t
14151 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14152 s,@INSTALL@,$ac_INSTALL,;t t
14153 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14155 if test x"$ac_file" != x-; then
14156 mv $tmp/out $ac_file
14164 cat >>$CONFIG_STATUS <<\_ACEOF
14167 # CONFIG_HEADER section.
14170 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14171 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14173 # ac_d sets the value in "#define NAME VALUE" lines.
14174 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14175 ac_dB='[ ].*$,\1#\2'
14178 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14179 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14180 ac_uB='$,\1#\2define\3'
14184 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14185 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14187 - | *:- | *:-:* ) # input from stdin
14189 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14190 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14191 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14192 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14193 * ) ac_file_in=$ac_file.in ;;
14196 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14197 echo "$as_me: creating $ac_file" >&6;}
14199 # First look for the input files in the build tree, otherwise in the
14201 ac_file_inputs=`IFS=:
14202 for f in $ac_file_in; do
14204 -) echo $tmp/stdin ;;
14206 # Absolute (can't be DOS-style, as IFS=:)
14207 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14208 echo "$as_me: error: cannot find input file: $f" >&2;}
14209 { (exit 1); exit 1; }; }
14210 # Do quote $f, to prevent DOS paths from being IFS'd.
14213 if test -f "$f"; then
14216 elif test -f "$srcdir/$f"; then
14221 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14222 echo "$as_me: error: cannot find input file: $f" >&2;}
14223 { (exit 1); exit 1; }; }
14226 done` || { (exit 1); exit 1; }
14227 # Remove the trailing spaces.
14228 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14232 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14233 # `conftest.undefs', that substitutes the proper values into
14234 # config.h.in to produce config.h. The first handles `#define'
14235 # templates, and the second `#undef' templates.
14236 # And first: Protect against being on the right side of a sed subst in
14237 # config.status. Protect against being in an unquoted here document
14238 # in config.status.
14239 rm -f conftest.defines conftest.undefs
14240 # Using a here document instead of a string reduces the quoting nightmare.
14241 # Putting comments in sed scripts is not portable.
14243 # `end' is used to avoid that the second main sed command (meant for
14244 # 0-ary CPP macros) applies to n-ary macro definitions.
14245 # See the Autoconf documentation for `clear'.
14246 cat >confdef2sed.sed <<\_ACEOF
14251 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14253 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14256 # If some macros were called several times there might be several times
14257 # the same #defines, which is useless. Nevertheless, we may not want to
14258 # sort them, since we want the *last* AC-DEFINE to be honored.
14259 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14260 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14261 rm -f confdef2sed.sed
14263 # This sed command replaces #undef with comments. This is necessary, for
14264 # example, in the case of _POSIX_SOURCE, which is predefined and required
14265 # on some systems where configure will not decide to define it.
14266 cat >>conftest.undefs <<\_ACEOF
14267 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14270 # Break up conftest.defines because some shells have a limit on the size
14271 # of here documents, and old seds have small limits too (100 cmds).
14272 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14273 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14274 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14275 echo ' :' >>$CONFIG_STATUS
14276 rm -f conftest.tail
14277 while grep . conftest.defines >/dev/null
14279 # Write a limited-size here document to $tmp/defines.sed.
14280 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14281 # Speed up: don't consider the non `#define' lines.
14282 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14283 # Work around the forget-to-reset-the-flag bug.
14284 echo 't clr' >>$CONFIG_STATUS
14285 echo ': clr' >>$CONFIG_STATUS
14286 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14288 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14290 mv $tmp/out $tmp/in
14292 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14293 rm -f conftest.defines
14294 mv conftest.tail conftest.defines
14296 rm -f conftest.defines
14297 echo ' fi # grep' >>$CONFIG_STATUS
14298 echo >>$CONFIG_STATUS
14300 # Break up conftest.undefs because some shells have a limit on the size
14301 # of here documents, and old seds have small limits too (100 cmds).
14302 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14303 rm -f conftest.tail
14304 while grep . conftest.undefs >/dev/null
14306 # Write a limited-size here document to $tmp/undefs.sed.
14307 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14308 # Speed up: don't consider the non `#undef'
14309 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14310 # Work around the forget-to-reset-the-flag bug.
14311 echo 't clr' >>$CONFIG_STATUS
14312 echo ': clr' >>$CONFIG_STATUS
14313 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14315 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14317 mv $tmp/out $tmp/in
14319 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14320 rm -f conftest.undefs
14321 mv conftest.tail conftest.undefs
14323 rm -f conftest.undefs
14325 cat >>$CONFIG_STATUS <<\_ACEOF
14326 # Let's still pretend it is `configure' which instantiates (i.e., don't
14327 # use $as_me), people would be surprised to read:
14328 # /* config.h. Generated by config.status. */
14329 if test x"$ac_file" = x-; then
14330 echo "/* Generated by configure. */" >$tmp/config.h
14332 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14334 cat $tmp/in >>$tmp/config.h
14336 if test x"$ac_file" != x-; then
14337 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14338 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14339 echo "$as_me: $ac_file is unchanged" >&6;}
14341 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14342 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14343 X"$ac_file" : 'X\(//\)[^/]' \| \
14344 X"$ac_file" : 'X\(//\)$' \| \
14345 X"$ac_file" : 'X\(/\)' \| \
14346 . : '\(.\)' 2>/dev/null ||
14348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14349 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14350 /^X\(\/\/\)$/{ s//\1/; q; }
14351 /^X\(\/\).*/{ s//\1/; q; }
14353 { if $as_mkdir_p; then
14358 while test ! -d "$as_dir"; do
14359 as_dirs="$as_dir $as_dirs"
14360 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14361 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14362 X"$as_dir" : 'X\(//\)[^/]' \| \
14363 X"$as_dir" : 'X\(//\)$' \| \
14364 X"$as_dir" : 'X\(/\)' \| \
14365 . : '\(.\)' 2>/dev/null ||
14367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14368 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14369 /^X\(\/\/\)$/{ s//\1/; q; }
14370 /^X\(\/\).*/{ s//\1/; q; }
14373 test ! -n "$as_dirs" || mkdir $as_dirs
14374 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14375 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14376 { (exit 1); exit 1; }; }; }
14379 mv $tmp/config.h $ac_file
14383 rm -f $tmp/config.h
14385 # Compute $ac_file's index in $config_headers.
14387 for _am_header in $config_headers :; do
14388 case $_am_header in
14389 $ac_file | $ac_file:* )
14392 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14395 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
14396 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14397 X$ac_file : 'X\(//\)[^/]' \| \
14398 X$ac_file : 'X\(//\)$' \| \
14399 X$ac_file : 'X\(/\)' \| \
14400 . : '\(.\)' 2>/dev/null ||
14402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14403 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14404 /^X\(\/\/\)$/{ s//\1/; q; }
14405 /^X\(\/\).*/{ s//\1/; q; }
14406 s/.*/./; q'`/stamp-h$_am_stamp_count
14409 cat >>$CONFIG_STATUS <<\_ACEOF
14412 # CONFIG_COMMANDS section.
14414 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14415 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14416 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14417 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14418 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14419 X"$ac_dest" : 'X\(//\)[^/]' \| \
14420 X"$ac_dest" : 'X\(//\)$' \| \
14421 X"$ac_dest" : 'X\(/\)' \| \
14422 . : '\(.\)' 2>/dev/null ||
14424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14425 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14426 /^X\(\/\/\)$/{ s//\1/; q; }
14427 /^X\(\/\).*/{ s//\1/; q; }
14429 { if $as_mkdir_p; then
14434 while test ! -d "$as_dir"; do
14435 as_dirs="$as_dir $as_dirs"
14436 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14437 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14438 X"$as_dir" : 'X\(//\)[^/]' \| \
14439 X"$as_dir" : 'X\(//\)$' \| \
14440 X"$as_dir" : 'X\(/\)' \| \
14441 . : '\(.\)' 2>/dev/null ||
14443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14444 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14445 /^X\(\/\/\)$/{ s//\1/; q; }
14446 /^X\(\/\).*/{ s//\1/; q; }
14449 test ! -n "$as_dirs" || mkdir $as_dirs
14450 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14451 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14452 { (exit 1); exit 1; }; }; }
14456 if test "$ac_dir" != .; then
14457 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14458 # A "../" for each directory in $ac_dir_suffix.
14459 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14461 ac_dir_suffix= ac_top_builddir=
14465 .) # No --srcdir option. We are building in place.
14467 if test -z "$ac_top_builddir"; then
14470 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14472 [\\/]* | ?:[\\/]* ) # Absolute path.
14473 ac_srcdir=$srcdir$ac_dir_suffix;
14474 ac_top_srcdir=$srcdir ;;
14475 *) # Relative path.
14476 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14477 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14480 # Do not use `cd foo && pwd` to compute absolute paths, because
14481 # the directories may not exist.
14483 .) ac_abs_builddir="$ac_dir";;
14486 .) ac_abs_builddir=`pwd`;;
14487 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14488 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14491 case $ac_abs_builddir in
14492 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14494 case ${ac_top_builddir}. in
14495 .) ac_abs_top_builddir=$ac_abs_builddir;;
14496 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14497 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14500 case $ac_abs_builddir in
14501 .) ac_abs_srcdir=$ac_srcdir;;
14504 .) ac_abs_srcdir=$ac_abs_builddir;;
14505 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14506 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14509 case $ac_abs_builddir in
14510 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14512 case $ac_top_srcdir in
14513 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14514 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14515 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14520 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14521 echo "$as_me: executing $ac_dest commands" >&6;}
14523 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14524 # Strip MF so we end up with the name of the file.
14525 mf=`echo "$mf" | sed -e 's/:.*$//'`
14526 # Check whether this is an Automake generated Makefile or not.
14527 # We used to match only the files named `Makefile.in', but
14528 # some people rename them; so instead we look at the file content.
14529 # Grep'ing the first line is not enough: some people post-process
14530 # each Makefile.in and add a new line on top of each file to say so.
14531 # So let's grep whole file.
14532 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14533 dirpart=`(dirname "$mf") 2>/dev/null ||
14534 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14535 X"$mf" : 'X\(//\)[^/]' \| \
14536 X"$mf" : 'X\(//\)$' \| \
14537 X"$mf" : 'X\(/\)' \| \
14538 . : '\(.\)' 2>/dev/null ||
14540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14541 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14542 /^X\(\/\/\)$/{ s//\1/; q; }
14543 /^X\(\/\).*/{ s//\1/; q; }
14548 # Extract the definition of DEPDIR, am__include, and am__quote
14549 # from the Makefile without running `make'.
14550 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14551 test -z "$DEPDIR" && continue
14552 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14553 test -z "am__include" && continue
14554 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14555 # When using ansi2knr, U may be empty or an underscore; expand it
14556 U=`sed -n 's/^U = //p' < "$mf"`
14557 # Find all dependency output files, they are included files with
14558 # $(DEPDIR) in their names. We invoke sed twice because it is the
14559 # simplest approach to changing $(DEPDIR) to its actual value in the
14561 for file in `sed -n "
14562 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14563 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14564 # Make sure the directory exists.
14565 test -f "$dirpart/$file" && continue
14566 fdir=`(dirname "$file") 2>/dev/null ||
14567 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14568 X"$file" : 'X\(//\)[^/]' \| \
14569 X"$file" : 'X\(//\)$' \| \
14570 X"$file" : 'X\(/\)' \| \
14571 . : '\(.\)' 2>/dev/null ||
14573 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14574 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14575 /^X\(\/\/\)$/{ s//\1/; q; }
14576 /^X\(\/\).*/{ s//\1/; q; }
14578 { if $as_mkdir_p; then
14579 mkdir -p $dirpart/$fdir
14581 as_dir=$dirpart/$fdir
14583 while test ! -d "$as_dir"; do
14584 as_dirs="$as_dir $as_dirs"
14585 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14586 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14587 X"$as_dir" : 'X\(//\)[^/]' \| \
14588 X"$as_dir" : 'X\(//\)$' \| \
14589 X"$as_dir" : 'X\(/\)' \| \
14590 . : '\(.\)' 2>/dev/null ||
14592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14593 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14594 /^X\(\/\/\)$/{ s//\1/; q; }
14595 /^X\(\/\).*/{ s//\1/; q; }
14598 test ! -n "$as_dirs" || mkdir $as_dirs
14599 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
14600 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
14601 { (exit 1); exit 1; }; }; }
14603 # echo "creating $dirpart/$file"
14604 echo '# dummy' > "$dirpart/$file"
14610 # See if we are running on zsh, and set the options which allow our
14611 # commands through without removal of \ escapes.
14612 if test -n "${ZSH_VERSION+set}" ; then
14613 setopt NO_GLOB_SUBST
14616 cfgfile="${ofile}T"
14617 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14620 cat <<_LT_EOF >> "$cfgfile"
14623 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14624 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
14625 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14626 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14628 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14629 # 2006, 2007 Free Software Foundation, Inc.
14631 # This file is part of GNU Libtool:
14632 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14634 # This program is free software; you can redistribute it and/or modify
14635 # it under the terms of the GNU General Public License as published by
14636 # the Free Software Foundation; either version 2 of the License, or
14637 # (at your option) any later version.
14639 # This program is distributed in the hope that it will be useful, but
14640 # WITHOUT ANY WARRANTY; without even the implied warranty of
14641 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14642 # General Public License for more details.
14644 # You should have received a copy of the GNU General Public License
14645 # along with this program; if not, a copy can be downloaded from
14646 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
14647 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
14648 # MA 02110-1301, USA.
14650 # As a special exception to the GNU General Public License, if you
14651 # distribute this file as part of a program that contains a
14652 # configuration script generated by Autoconf, you may include it under
14653 # the same distribution terms that you use for the rest of that program.
14656 # The names of the tagged configurations supported by this script.
14659 # ### BEGIN LIBTOOL CONFIG
14661 # Which release of libtool.m4 was used?
14662 macro_version=$macro_version
14663 macro_revision=$macro_revision
14665 # Whether or not to build shared libraries.
14666 build_libtool_libs=$enable_shared
14668 # Whether or not to build static libraries.
14669 build_old_libs=$enable_static
14671 # What type of objects to build.
14674 # Whether or not to optimize for fast installation.
14675 fast_install=$enable_fast_install
14678 host_alias=$host_alias
14682 # The build system.
14683 build_alias=$build_alias
14687 # A sed program that does not truncate output.
14690 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14691 Xsed="\$SED -e 1s/^X//"
14693 # A grep program that handles long lines.
14699 # A literal string matcher.
14702 # A BSD- or MS-compatible name lister.
14705 # Whether we need soft or hard links.
14708 # What is the maximum length of a command?
14709 max_cmd_len=$max_cmd_len
14711 # Object file suffix (normally "o").
14714 # Executable file suffix (normally "").
14717 # whether the shell understands "unset".
14720 # turn spaces into newlines.
14723 # turn newlines into spaces.
14726 # How to create reloadable object files.
14727 reload_flag=$lt_reload_flag
14728 reload_cmds=$lt_reload_cmds
14730 # Method to check whether dependent libraries are shared objects.
14731 deplibs_check_method=$lt_deplibs_check_method
14733 # Command to use when deplibs_check_method == "file_magic".
14734 file_magic_cmd=$lt_file_magic_cmd
14738 AR_FLAGS=$lt_AR_FLAGS
14740 # A symbol stripping program.
14743 # Commands used to install an old-style archive.
14745 old_postinstall_cmds=$lt_old_postinstall_cmds
14746 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14751 # LTCC compiler flags.
14752 LTCFLAGS=$lt_CFLAGS
14754 # Take the output of nm and produce a listing of raw symbols and C names.
14755 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14757 # Transform the output of nm in a proper C declaration.
14758 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14760 # Transform the output of nm in a C name address pair.
14761 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14763 # The name of the directory that contains temporary libtool files.
14766 # Shell to use when invoking shell scripts.
14769 # An echo program that does not interpret backslashes.
14772 # Used to examine libraries when file_magic_cmd begins with "file".
14773 MAGIC_CMD=$MAGIC_CMD
14775 # Must we lock files when doing compilation?
14776 need_locks=$lt_need_locks
14778 # Old archive suffix (normally "a").
14781 # Shared library suffix (normally ".so").
14782 shrext_cmds=$lt_shrext_cmds
14784 # The commands to extract the exported symbol list from a shared archive.
14785 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14787 # Variables whose values should be saved in libtool wrapper scripts and
14788 # restored at link time.
14789 variables_saved_for_relink=$lt_variables_saved_for_relink
14791 # Do we need the "lib" prefix for modules?
14792 need_lib_prefix=$need_lib_prefix
14794 # Do we need a version for libraries?
14795 need_version=$need_version
14797 # Library versioning type.
14798 version_type=$version_type
14800 # Shared library runtime path variable.
14801 runpath_var=$runpath_var
14803 # Shared library path variable.
14804 shlibpath_var=$shlibpath_var
14806 # Is shlibpath searched before the hard-coded library search path?
14807 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14809 # Format of library name prefix.
14810 libname_spec=$lt_libname_spec
14812 # List of archive names. First name is the real one, the rest are links.
14813 # The last name is the one that the linker finds with -lNAME
14814 library_names_spec=$lt_library_names_spec
14816 # The coded name of the library, if different from the real name.
14817 soname_spec=$lt_soname_spec
14819 # Command to use after installation of a shared archive.
14820 postinstall_cmds=$lt_postinstall_cmds
14822 # Command to use after uninstallation of a shared archive.
14823 postuninstall_cmds=$lt_postuninstall_cmds
14825 # Commands used to finish a libtool library installation in a directory.
14826 finish_cmds=$lt_finish_cmds
14828 # As "finish_cmds", except a single script fragment to be evaled but
14830 finish_eval=$lt_finish_eval
14832 # Whether we should hardcode library paths into libraries.
14833 hardcode_into_libs=$hardcode_into_libs
14835 # Compile-time system search path for libraries.
14836 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14838 # Run-time system search path for libraries.
14839 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14841 # Whether dlopen is supported.
14842 dlopen_support=$enable_dlopen
14844 # Whether dlopen of programs is supported.
14845 dlopen_self=$enable_dlopen_self
14847 # Whether dlopen of statically linked programs is supported.
14848 dlopen_self_static=$enable_dlopen_self_static
14850 # Commands to strip libraries.
14851 old_striplib=$lt_old_striplib
14852 striplib=$lt_striplib
14855 # The linker used to build libraries.
14858 # Commands used to build an old-style archive.
14859 old_archive_cmds=$lt_old_archive_cmds
14861 # A language specific compiler.
14864 # Is the compiler the GNU compiler?
14867 # Compiler flag to turn off builtin functions.
14868 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14870 # How to pass a linker flag through the compiler.
14871 wl=$lt_lt_prog_compiler_wl
14873 # Additional compiler flags for building library objects.
14874 pic_flag=$lt_lt_prog_compiler_pic
14876 # Compiler flag to prevent dynamic linking.
14877 link_static_flag=$lt_lt_prog_compiler_static
14879 # Does compiler simultaneously support -c and -o options?
14880 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14882 # Whether or not to add -lc for building shared libraries.
14883 build_libtool_need_lc=$archive_cmds_need_lc
14885 # Whether or not to disallow shared libs when runtime libs are static.
14886 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14888 # Compiler flag to allow reflexive dlopens.
14889 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14891 # Compiler flag to generate shared objects directly from archives.
14892 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14894 # Whether the compiler copes with passing no objects directly.
14895 compiler_needs_object=$lt_compiler_needs_object
14897 # Create an old-style archive from a shared archive.
14898 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14900 # Create a temporary old-style archive to link instead of a shared archive.
14901 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14903 # Commands used to build a shared archive.
14904 archive_cmds=$lt_archive_cmds
14905 archive_expsym_cmds=$lt_archive_expsym_cmds
14907 # Commands used to build a loadable module if different from building
14908 # a shared archive.
14909 module_cmds=$lt_module_cmds
14910 module_expsym_cmds=$lt_module_expsym_cmds
14912 # Whether we are building with GNU ld or not.
14913 with_gnu_ld=$lt_with_gnu_ld
14915 # Flag that allows shared libraries with undefined symbols to be built.
14916 allow_undefined_flag=$lt_allow_undefined_flag
14918 # Flag that enforces no undefined symbols.
14919 no_undefined_flag=$lt_no_undefined_flag
14921 # Flag to hardcode \$libdir into a binary during linking.
14922 # This must work even if \$libdir does not exist
14923 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14925 # If ld is used when linking, flag to hardcode \$libdir into a binary
14926 # during linking. This must work even if \$libdir does not exist.
14927 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14929 # Whether we need a single "-rpath" flag with a separated argument.
14930 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14932 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14933 # DIR into the resulting binary.
14934 hardcode_direct=$hardcode_direct
14936 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14937 # DIR into the resulting binary and the resulting library dependency is
14938 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14939 # library is relocated.
14940 hardcode_direct_absolute=$hardcode_direct_absolute
14942 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14943 # into the resulting binary.
14944 hardcode_minus_L=$hardcode_minus_L
14946 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14947 # into the resulting binary.
14948 hardcode_shlibpath_var=$hardcode_shlibpath_var
14950 # Set to "yes" if building a shared library automatically hardcodes DIR
14951 # into the library and all subsequent libraries and executables linked
14953 hardcode_automatic=$hardcode_automatic
14955 # Set to yes if linker adds runtime paths of dependent libraries
14956 # to runtime path list.
14957 inherit_rpath=$inherit_rpath
14959 # Whether libtool must link a program against all its dependency libraries.
14960 link_all_deplibs=$link_all_deplibs
14962 # Fix the shell variable \$srcfile for the compiler.
14963 fix_srcfile_path=$lt_fix_srcfile_path
14965 # Set to "yes" if exported symbols are required.
14966 always_export_symbols=$always_export_symbols
14968 # The commands to list exported symbols.
14969 export_symbols_cmds=$lt_export_symbols_cmds
14971 # Symbols that should not be listed in the preloaded symbols.
14972 exclude_expsyms=$lt_exclude_expsyms
14974 # Symbols that must always be exported.
14975 include_expsyms=$lt_include_expsyms
14977 # Commands necessary for linking programs (against libraries) with templates.
14978 prelink_cmds=$lt_prelink_cmds
14980 # Specify filename containing input files.
14981 file_list_spec=$lt_file_list_spec
14983 # How to hardcode a shared library path into an executable.
14984 hardcode_action=$hardcode_action
14986 # ### END LIBTOOL CONFIG
14992 cat <<\_LT_EOF >> "$cfgfile"
14993 # AIX sometimes has problems with the GCC collect2 program. For some
14994 # reason, if we set the COLLECT_NAMES environment variable, the problems
14995 # vanish in a puff of smoke.
14996 if test "X${COLLECT_NAMES+set}" != Xset; then
14998 export COLLECT_NAMES
15005 ltmain="$ac_aux_dir/ltmain.sh"
15008 # We use sed instead of cat because bash on DJGPP gets confused if
15009 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15010 # text mode, it properly converts lines to CR/LF. This bash problem
15011 # is reportedly fixed, but why not run on old versions too?
15012 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15013 || (rm -f "$cfgfile"; exit 1)
15017 cat << \_LT_EOF >> "$cfgfile"
15018 # func_dirname file append nondir_replacement
15019 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15020 # otherwise set result to NONDIR_REPLACEMENT.
15024 */*) func_dirname_result="${1%/*}${2}" ;;
15025 * ) func_dirname_result="${3}" ;;
15029 # func_basename file
15032 func_basename_result="${1##*/}"
15035 # func_stripname prefix suffix name
15036 # strip PREFIX and SUFFIX off of NAME.
15037 # PREFIX and SUFFIX must not contain globbing or regex special
15038 # characters, hashes, percent signs, but SUFFIX may contain a leading
15039 # dot (in which case that matches only a dot).
15042 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15043 # positional parameters, so assign one to ordinary parameter first.
15044 func_stripname_result=${3}
15045 func_stripname_result=${func_stripname_result#"${1}"}
15046 func_stripname_result=${func_stripname_result%"${2}"}
15052 func_opt_split_opt=${1%%=*}
15053 func_opt_split_arg=${1#*=}
15060 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15061 *) func_lo2o_result=${1} ;;
15066 *) # Bourne compatible functions.
15067 cat << \_LT_EOF >> "$cfgfile"
15068 # func_dirname file append nondir_replacement
15069 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15070 # otherwise set result to NONDIR_REPLACEMENT.
15073 # Extract subdirectory from the argument.
15074 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15075 if test "X$func_dirname_result" = "X${1}"; then
15076 func_dirname_result="${3}"
15078 func_dirname_result="$func_dirname_result${2}"
15082 # func_basename file
15085 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15088 # func_stripname prefix suffix name
15089 # strip PREFIX and SUFFIX off of NAME.
15090 # PREFIX and SUFFIX must not contain globbing or regex special
15091 # characters, hashes, percent signs, but SUFFIX may contain a leading
15092 # dot (in which case that matches only a dot).
15093 # func_strip_suffix prefix name
15097 .*) func_stripname_result=`$ECHO "X${3}" \
15098 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15099 *) func_stripname_result=`$ECHO "X${3}" \
15100 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15105 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15106 my_sed_long_arg='1s/^-[^=]*=//'
15111 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15112 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15118 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15123 case $lt_shell_append in
15125 cat << \_LT_EOF >> "$cfgfile"
15127 # func_append var value
15128 # Append VALUE to the end of shell variable VAR.
15136 cat << \_LT_EOF >> "$cfgfile"
15138 # func_append var value
15139 # Append VALUE to the end of shell variable VAR.
15149 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15150 || (rm -f "$cfgfile"; exit 1)
15152 mv -f "$cfgfile" "$ofile" ||
15153 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15158 for ac_file in $CONFIG_FILES; do
15159 # Support "outfile[:infile[:infile...]]"
15161 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15163 # PO directories have a Makefile.in generated from Makefile.in.in.
15164 case "$ac_file" in */Makefile.in)
15165 # Adjust a relative srcdir.
15166 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15167 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15168 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15169 # In autoconf-2.13 it is called $ac_given_srcdir.
15170 # In autoconf-2.50 it is called $srcdir.
15171 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15172 case "$ac_given_srcdir" in
15173 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15174 /*) top_srcdir="$ac_given_srcdir" ;;
15175 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15177 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15178 rm -f "$ac_dir/POTFILES"
15179 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15180 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15181 POMAKEFILEDEPS="POTFILES.in"
15182 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
15183 # on $ac_dir but don't depend on user-specified configuration
15185 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15186 # The LINGUAS file contains the set of available languages.
15187 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15188 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15190 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15191 # Hide the ALL_LINGUAS assigment from automake.
15192 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15193 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15195 # The set of available languages was given in configure.in.
15196 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15198 case "$ac_given_srcdir" in
15200 *) srcdirpre='$(srcdir)/' ;;
15206 for lang in $ALL_LINGUAS; do
15207 POFILES="$POFILES $srcdirpre$lang.po"
15208 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15209 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15210 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15212 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15213 # environment variable.
15215 if test -n "$ALL_LINGUAS"; then
15216 for presentlang in $ALL_LINGUAS; do
15218 if test "%UNSET%" != "$LINGUAS"; then
15219 desiredlanguages="$LINGUAS"
15221 desiredlanguages="$ALL_LINGUAS"
15223 for desiredlang in $desiredlanguages; do
15224 # Use the presentlang catalog if desiredlang is
15225 # a. equal to presentlang, or
15226 # b. a variant of presentlang (because in this case,
15227 # presentlang can be used as a fallback for messages
15228 # which are not translated in the desiredlang catalog).
15229 case "$desiredlang" in
15230 "$presentlang"*) useit=yes;;
15233 if test $useit = yes; then
15234 INST_LINGUAS="$INST_LINGUAS $presentlang"
15239 if test -n "$INST_LINGUAS"; then
15240 for lang in $INST_LINGUAS; do
15241 CATALOGS="$CATALOGS $lang.gmo"
15244 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15245 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
15246 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15247 if test -f "$f"; then
15249 *.orig | *.bak | *~) ;;
15250 *) cat "$f" >> "$ac_dir/Makefile" ;;
15262 cat >>$CONFIG_STATUS <<\_ACEOF
15264 { (exit 0); exit 0; }
15266 chmod +x $CONFIG_STATUS
15267 ac_clean_files=$ac_clean_files_save
15270 # configure is writing to config.log, and then calls config.status.
15271 # config.status does its own redirection, appending to config.log.
15272 # Unfortunately, on DOS this fails, as config.log is still kept open
15273 # by configure, so config.status won't be able to write to it; its
15274 # output is simply discarded. So we exec the FD to /dev/null,
15275 # effectively closing config.log, so it can be properly (re)opened and
15276 # appended to by config.status. When coming back to configure, we
15277 # need to make the FD available again.
15278 if test "$no_create" != yes; then
15280 ac_config_status_args=
15281 test "$silent" = yes &&
15282 ac_config_status_args="$ac_config_status_args --quiet"
15284 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15286 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15287 # would make configure fail if this is the last instruction.
15288 $ac_cs_success || { (exit 1); exit 1; }