2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # Check that we are running under the correct shell.
245 SHELL=${CONFIG_SHELL-/bin/sh}
249 # Remove one level of quotation (which was required for Make).
250 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
255 if test "X$1" = X--no-reexec; then
256 # Discard the --no-reexec flag, and continue.
258 elif test "X$1" = X--fallback-echo; then
259 # Avoid inline document here, it may be left over
261 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
262 # Yippee, $echo works!
265 # Restart under the correct shell.
266 exec $SHELL "$0" --no-reexec ${1+"$@"}
269 if test "X$1" = X--fallback-echo; then
270 # used as fallback echo
278 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
282 if test -z "$ECHO"; then
283 if test "X${echo_test_string+set}" != Xset; then
284 # find a string as large as possible, as long as the shell can cope with it
285 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
286 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
287 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
288 echo_test_string="`eval $cmd`" &&
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$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
395 tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
398 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
399 # so uname gets run too.
400 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
407 ac_default_prefix=/usr/local
408 ac_config_libobj_dir=.
413 SHELL=${CONFIG_SHELL-/bin/sh}
415 # Maximum number of lines to put in a shell here document.
416 # This variable seems obsolete. It should probably be removed, and
417 # only ac_max_sed_lines should be used.
418 : ${ac_max_here_lines=38}
420 # Identity of this package.
427 ac_unique_file="src/prelink.c"
428 # Factoring default headers for most tests.
429 ac_includes_default="\
432 # include <sys/types.h>
435 # include <sys/stat.h>
446 # if !STDC_HEADERS && HAVE_MEMORY_H
452 # include <strings.h>
455 # include <inttypes.h>
465 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE CPP EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL GELFINCLUDE LIBGELF LIBOBJS LTLIBOBJS'
468 # Initialize some variables set by options.
470 ac_init_version=false
471 # The variables have the same names as the options, with
472 # dashes changed to underlines.
480 program_transform_name=s,x,x,
488 # Installation directory options.
489 # These are left unexpanded so users can "make install exec_prefix=/foo"
490 # and all the variables that are supposed to be based on exec_prefix
491 # by default will actually change.
492 # Use braces instead of parens because sh, perl, etc. also accept them.
493 bindir='${exec_prefix}/bin'
494 sbindir='${exec_prefix}/sbin'
495 libexecdir='${exec_prefix}/libexec'
496 datadir='${prefix}/share'
497 sysconfdir='${prefix}/etc'
498 sharedstatedir='${prefix}/com'
499 localstatedir='${prefix}/var'
500 libdir='${exec_prefix}/lib'
501 includedir='${prefix}/include'
502 oldincludedir='/usr/include'
503 infodir='${prefix}/info'
504 mandir='${prefix}/man'
509 # If the previous option needs an argument, assign it.
510 if test -n "$ac_prev"; then
511 eval "$ac_prev=\$ac_option"
516 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518 # Accept the important Cygnus configure options, so we can diagnose typos.
522 -bindir | --bindir | --bindi | --bind | --bin | --bi)
524 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527 -build | --build | --buil | --bui | --bu)
528 ac_prev=build_alias ;;
529 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
530 build_alias=$ac_optarg ;;
532 -cache-file | --cache-file | --cache-fil | --cache-fi \
533 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
534 ac_prev=cache_file ;;
535 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
536 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
537 cache_file=$ac_optarg ;;
540 cache_file=config.cache ;;
542 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546 datadir=$ac_optarg ;;
548 -disable-* | --disable-*)
549 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
550 # Reject names that are not valid shell variable names.
551 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
552 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
553 { (exit 1); exit 1; }; }
554 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
555 eval "enable_$ac_feature=no" ;;
557 -enable-* | --enable-*)
558 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
559 # Reject names that are not valid shell variable names.
560 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
561 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
562 { (exit 1); exit 1; }; }
563 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568 eval "enable_$ac_feature='$ac_optarg'" ;;
570 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
571 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
572 | --exec | --exe | --ex)
573 ac_prev=exec_prefix ;;
574 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
575 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
576 | --exec=* | --exe=* | --ex=*)
577 exec_prefix=$ac_optarg ;;
579 -gas | --gas | --ga | --g)
580 # Obsolete; use --with-gas.
583 -help | --help | --hel | --he | -h)
585 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
586 ac_init_help=recursive ;;
587 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
588 ac_init_help=short ;;
590 -host | --host | --hos | --ho)
591 ac_prev=host_alias ;;
592 -host=* | --host=* | --hos=* | --ho=*)
593 host_alias=$ac_optarg ;;
595 -includedir | --includedir | --includedi | --included | --include \
596 | --includ | --inclu | --incl | --inc)
597 ac_prev=includedir ;;
598 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
599 | --includ=* | --inclu=* | --incl=* | --inc=*)
600 includedir=$ac_optarg ;;
602 -infodir | --infodir | --infodi | --infod | --info | --inf)
604 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
605 infodir=$ac_optarg ;;
607 -libdir | --libdir | --libdi | --libd)
609 -libdir=* | --libdir=* | --libdi=* | --libd=*)
612 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
613 | --libexe | --libex | --libe)
614 ac_prev=libexecdir ;;
615 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
616 | --libexe=* | --libex=* | --libe=*)
617 libexecdir=$ac_optarg ;;
619 -localstatedir | --localstatedir | --localstatedi | --localstated \
620 | --localstate | --localstat | --localsta | --localst \
621 | --locals | --local | --loca | --loc | --lo)
622 ac_prev=localstatedir ;;
623 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
624 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
625 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
626 localstatedir=$ac_optarg ;;
628 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634 # Obsolete; use --without-fp.
637 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
638 | --no-cr | --no-c | -n)
641 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
642 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
646 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
647 | --oldin | --oldi | --old | --ol | --o)
648 ac_prev=oldincludedir ;;
649 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
650 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
651 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
652 oldincludedir=$ac_optarg ;;
654 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659 -program-prefix | --program-prefix | --program-prefi | --program-pref \
660 | --program-pre | --program-pr | --program-p)
661 ac_prev=program_prefix ;;
662 -program-prefix=* | --program-prefix=* | --program-prefi=* \
663 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
664 program_prefix=$ac_optarg ;;
666 -program-suffix | --program-suffix | --program-suffi | --program-suff \
667 | --program-suf | --program-su | --program-s)
668 ac_prev=program_suffix ;;
669 -program-suffix=* | --program-suffix=* | --program-suffi=* \
670 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
671 program_suffix=$ac_optarg ;;
673 -program-transform-name | --program-transform-name \
674 | --program-transform-nam | --program-transform-na \
675 | --program-transform-n | --program-transform- \
676 | --program-transform | --program-transfor \
677 | --program-transfo | --program-transf \
678 | --program-trans | --program-tran \
679 | --progr-tra | --program-tr | --program-t)
680 ac_prev=program_transform_name ;;
681 -program-transform-name=* | --program-transform-name=* \
682 | --program-transform-nam=* | --program-transform-na=* \
683 | --program-transform-n=* | --program-transform-=* \
684 | --program-transform=* | --program-transfor=* \
685 | --program-transfo=* | --program-transf=* \
686 | --program-trans=* | --program-tran=* \
687 | --progr-tra=* | --program-tr=* | --program-t=*)
688 program_transform_name=$ac_optarg ;;
690 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
691 | -silent | --silent | --silen | --sile | --sil)
694 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698 sbindir=$ac_optarg ;;
700 -sharedstatedir | --sharedstatedir | --sharedstatedi \
701 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
702 | --sharedst | --shareds | --shared | --share | --shar \
704 ac_prev=sharedstatedir ;;
705 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
706 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
707 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709 sharedstatedir=$ac_optarg ;;
711 -site | --site | --sit)
713 -site=* | --site=* | --sit=*)
716 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
722 | --syscon | --sysco | --sysc | --sys | --sy)
723 ac_prev=sysconfdir ;;
724 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
725 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
726 sysconfdir=$ac_optarg ;;
728 -target | --target | --targe | --targ | --tar | --ta | --t)
729 ac_prev=target_alias ;;
730 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
731 target_alias=$ac_optarg ;;
733 -v | -verbose | --verbose | --verbos | --verbo | --verb)
736 -version | --version | --versio | --versi | --vers | -V)
740 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
741 # Reject names that are not valid shell variable names.
742 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
743 { echo "$as_me: error: invalid package name: $ac_package" >&2
744 { (exit 1); exit 1; }; }
745 ac_package=`echo $ac_package| sed 's/-/_/g'`
747 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750 eval "with_$ac_package='$ac_optarg'" ;;
752 -without-* | --without-*)
753 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
754 # Reject names that are not valid shell variable names.
755 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
756 { echo "$as_me: error: invalid package name: $ac_package" >&2
757 { (exit 1); exit 1; }; }
758 ac_package=`echo $ac_package | sed 's/-/_/g'`
759 eval "with_$ac_package=no" ;;
762 # Obsolete; use --with-x.
765 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
766 | --x-incl | --x-inc | --x-in | --x-i)
767 ac_prev=x_includes ;;
768 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
769 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
770 x_includes=$ac_optarg ;;
772 -x-libraries | --x-libraries | --x-librarie | --x-librari \
773 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
774 ac_prev=x_libraries ;;
775 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
776 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
777 x_libraries=$ac_optarg ;;
779 -*) { echo "$as_me: error: unrecognized option: $ac_option
780 Try \`$0 --help' for more information." >&2
781 { (exit 1); exit 1; }; }
785 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
786 # Reject names that are not valid shell variable names.
787 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
788 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
789 { (exit 1); exit 1; }; }
790 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
791 eval "$ac_envvar='$ac_optarg'"
795 # FIXME: should be removed in autoconf 3.0.
796 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
797 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
798 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
799 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
805 if test -n "$ac_prev"; then
806 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
807 { echo "$as_me: error: missing argument to $ac_option" >&2
808 { (exit 1); exit 1; }; }
811 # Be sure to have absolute paths.
812 for ac_var in exec_prefix prefix
814 eval ac_val=$`echo $ac_var`
816 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
817 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
818 { (exit 1); exit 1; }; };;
822 # Be sure to have absolute paths.
823 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
824 localstatedir libdir includedir oldincludedir infodir mandir
826 eval ac_val=$`echo $ac_var`
828 [\\/$]* | ?:[\\/]* ) ;;
829 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
830 { (exit 1); exit 1; }; };;
834 # There might be people who depend on the old broken behavior: `$host'
835 # used to hold the argument of --host etc.
836 # FIXME: To remove some day.
841 # FIXME: To remove some day.
842 if test "x$host_alias" != x; then
843 if test "x$build_alias" = x; then
844 cross_compiling=maybe
845 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
846 If a cross compiler is detected then cross compile mode will be used." >&2
847 elif test "x$build_alias" != "x$host_alias"; then
853 test -n "$host_alias" && ac_tool_prefix=$host_alias-
855 test "$silent" = yes && exec 6>/dev/null
858 # Find the source files, if location was not specified.
859 if test -z "$srcdir"; then
860 ac_srcdir_defaulted=yes
861 # Try the directory containing this script, then its parent.
862 ac_confdir=`(dirname "$0") 2>/dev/null ||
863 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
864 X"$0" : 'X\(//\)[^/]' \| \
865 X"$0" : 'X\(//\)$' \| \
866 X"$0" : 'X\(/\)' \| \
867 . : '\(.\)' 2>/dev/null ||
869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
870 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
871 /^X\(\/\/\)$/{ s//\1/; q; }
872 /^X\(\/\).*/{ s//\1/; q; }
875 if test ! -r $srcdir/$ac_unique_file; then
879 ac_srcdir_defaulted=no
881 if test ! -r $srcdir/$ac_unique_file; then
882 if test "$ac_srcdir_defaulted" = yes; then
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
884 { (exit 1); exit 1; }; }
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
887 { (exit 1); exit 1; }; }
890 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
891 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
892 { (exit 1); exit 1; }; }
893 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
894 ac_env_build_alias_set=${build_alias+set}
895 ac_env_build_alias_value=$build_alias
896 ac_cv_env_build_alias_set=${build_alias+set}
897 ac_cv_env_build_alias_value=$build_alias
898 ac_env_host_alias_set=${host_alias+set}
899 ac_env_host_alias_value=$host_alias
900 ac_cv_env_host_alias_set=${host_alias+set}
901 ac_cv_env_host_alias_value=$host_alias
902 ac_env_target_alias_set=${target_alias+set}
903 ac_env_target_alias_value=$target_alias
904 ac_cv_env_target_alias_set=${target_alias+set}
905 ac_cv_env_target_alias_value=$target_alias
906 ac_env_CC_set=${CC+set}
908 ac_cv_env_CC_set=${CC+set}
909 ac_cv_env_CC_value=$CC
910 ac_env_CFLAGS_set=${CFLAGS+set}
911 ac_env_CFLAGS_value=$CFLAGS
912 ac_cv_env_CFLAGS_set=${CFLAGS+set}
913 ac_cv_env_CFLAGS_value=$CFLAGS
914 ac_env_LDFLAGS_set=${LDFLAGS+set}
915 ac_env_LDFLAGS_value=$LDFLAGS
916 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_cv_env_LDFLAGS_value=$LDFLAGS
918 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
919 ac_env_CPPFLAGS_value=$CPPFLAGS
920 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
922 ac_env_CXX_set=${CXX+set}
923 ac_env_CXX_value=$CXX
924 ac_cv_env_CXX_set=${CXX+set}
925 ac_cv_env_CXX_value=$CXX
926 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
927 ac_env_CXXFLAGS_value=$CXXFLAGS
928 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
929 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
930 ac_env_CPP_set=${CPP+set}
931 ac_env_CPP_value=$CPP
932 ac_cv_env_CPP_set=${CPP+set}
933 ac_cv_env_CPP_value=$CPP
934 ac_env_CXXCPP_set=${CXXCPP+set}
935 ac_env_CXXCPP_value=$CXXCPP
936 ac_cv_env_CXXCPP_set=${CXXCPP+set}
937 ac_cv_env_CXXCPP_value=$CXXCPP
938 ac_env_F77_set=${F77+set}
939 ac_env_F77_value=$F77
940 ac_cv_env_F77_set=${F77+set}
941 ac_cv_env_F77_value=$F77
942 ac_env_FFLAGS_set=${FFLAGS+set}
943 ac_env_FFLAGS_value=$FFLAGS
944 ac_cv_env_FFLAGS_set=${FFLAGS+set}
945 ac_cv_env_FFLAGS_value=$FFLAGS
948 # Report the --help message.
950 if test "$ac_init_help" = "long"; then
951 # Omit some internal or obsolete options to make the list less imposing.
952 # This message is too long to be a string in the A/UX 3.1 sh.
954 \`configure' configures this package to adapt to many kinds of systems.
956 Usage: $0 [OPTION]... [VAR=VALUE]...
958 To assign environment variables (e.g., CC, CFLAGS...), specify them as
959 VAR=VALUE. See below for descriptions of some of the useful variables.
961 Defaults for the options are specified in brackets.
964 -h, --help display this help and exit
965 --help=short display options specific to this package
966 --help=recursive display the short help of all the included packages
967 -V, --version display version information and exit
968 -q, --quiet, --silent do not print \`checking...' messages
969 --cache-file=FILE cache test results in FILE [disabled]
970 -C, --config-cache alias for \`--cache-file=config.cache'
971 -n, --no-create do not create output files
972 --srcdir=DIR find the sources in DIR [configure dir or \`..']
977 Installation directories:
978 --prefix=PREFIX install architecture-independent files in PREFIX
980 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
983 By default, \`make install' will install all the files in
984 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
985 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
986 for instance \`--prefix=\$HOME'.
988 For better control, use the options below.
990 Fine tuning of the installation directories:
991 --bindir=DIR user executables [EPREFIX/bin]
992 --sbindir=DIR system admin executables [EPREFIX/sbin]
993 --libexecdir=DIR program executables [EPREFIX/libexec]
994 --datadir=DIR read-only architecture-independent data [PREFIX/share]
995 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
996 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
997 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
998 --libdir=DIR object code libraries [EPREFIX/lib]
999 --includedir=DIR C header files [PREFIX/include]
1000 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1001 --infodir=DIR info documentation [PREFIX/info]
1002 --mandir=DIR man documentation [PREFIX/man]
1008 --program-prefix=PREFIX prepend PREFIX to installed program names
1009 --program-suffix=SUFFIX append SUFFIX to installed program names
1010 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1013 --build=BUILD configure for building on BUILD [guessed]
1014 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1018 if test -n "$ac_init_help"; then
1023 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1024 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1025 --disable-dependency-tracking Speeds up one-time builds
1026 --enable-dependency-tracking Do not reject slow dependency extractors
1027 --enable-shared[=PKGS]
1028 build shared libraries [default=yes]
1029 --enable-static[=PKGS]
1030 build static libraries [default=yes]
1031 --enable-fast-install[=PKGS]
1032 optimize for fast installation [default=yes]
1033 --disable-libtool-lock avoid locking (might break parallel builds)
1034 --disable-64-bit only support 32-bit ELF
1035 --disable-largefile omit support for large files
1038 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1039 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1040 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1041 --with-pic try to use only PIC/non-PIC objects [default=use
1044 include additional configurations [automatic]
1046 Some influential environment variables:
1047 CC C compiler command
1048 CFLAGS C compiler flags
1049 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1050 nonstandard directory <lib dir>
1051 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1052 headers in a nonstandard directory <include dir>
1053 CXX C++ compiler command
1054 CXXFLAGS C++ compiler flags
1056 CXXCPP C++ preprocessor
1057 F77 Fortran 77 compiler command
1058 FFLAGS Fortran 77 compiler flags
1060 Use these variables to override the choices made by `configure' or to help
1061 it to find libraries and programs with nonstandard names/locations.
1066 if test "$ac_init_help" = "recursive"; then
1067 # If there are subdirs, report their specific --help.
1069 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1070 test -d $ac_dir || continue
1073 if test "$ac_dir" != .; then
1074 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1075 # A "../" for each directory in $ac_dir_suffix.
1076 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1078 ac_dir_suffix= ac_top_builddir=
1082 .) # No --srcdir option. We are building in place.
1084 if test -z "$ac_top_builddir"; then
1087 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1089 [\\/]* | ?:[\\/]* ) # Absolute path.
1090 ac_srcdir=$srcdir$ac_dir_suffix;
1091 ac_top_srcdir=$srcdir ;;
1093 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1094 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1096 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1098 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1099 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1100 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1101 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1104 # Check for guested configure; otherwise get Cygnus style configure.
1105 if test -f $ac_srcdir/configure.gnu; then
1107 $SHELL $ac_srcdir/configure.gnu --help=recursive
1108 elif test -f $ac_srcdir/configure; then
1110 $SHELL $ac_srcdir/configure --help=recursive
1111 elif test -f $ac_srcdir/configure.ac ||
1112 test -f $ac_srcdir/configure.in; then
1114 $ac_configure --help
1116 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1122 test -n "$ac_init_help" && exit 0
1123 if $ac_init_version; then
1126 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1127 Free Software Foundation, Inc.
1128 This configure script is free software; the Free Software Foundation
1129 gives unlimited permission to copy, distribute and modify it.
1135 This file contains any messages produced by compilers while
1136 running configure, to aid debugging if configure makes a mistake.
1138 It was created by $as_me, which was
1139 generated by GNU Autoconf 2.57. Invocation command line was
1150 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1151 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1152 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1153 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1154 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1156 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1157 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1159 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1160 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1161 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1162 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1163 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1164 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1165 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1173 test -z "$as_dir" && as_dir=.
1174 echo "PATH: $as_dir"
1189 # Keep a trace of the command line.
1190 # Strip out --no-create and --no-recursion so they do not pile up.
1191 # Strip out --silent because we don't want to record it for future runs.
1192 # Also quote any args containing shell meta-characters.
1193 # Make two passes to allow for proper duplicate-argument suppression.
1198 ac_must_keep_next=false
1204 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1205 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1206 | -silent | --silent | --silen | --sile | --sil)
1208 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1209 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1212 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1214 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1215 if test $ac_must_keep_next = true; then
1216 ac_must_keep_next=false # Got value, back to normal.
1219 *=* | --config-cache | -C | -disable-* | --disable-* \
1220 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1221 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1222 | -with-* | --with-* | -without-* | --without-* | --x)
1223 case "$ac_configure_args0 " in
1224 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1227 -* ) ac_must_keep_next=true ;;
1230 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1231 # Get rid of the leading space.
1237 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1238 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1240 # When interrupted or exit'd, cleanup temporary files, and complete
1241 # config.log. We remove comments because anyway the quotes in there
1242 # would cause problems or look ugly.
1243 # WARNING: Be sure not to use single quotes in there, as some shells,
1244 # such as our DU 5.0 friend, will then `close' the trap.
1245 trap 'exit_status=$?
1246 # Save into config.log some information that might help in debugging.
1251 ## ---------------- ##
1252 ## Cache variables. ##
1253 ## ---------------- ##
1256 # The following way of writing the cache mishandles newlines in values,
1259 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1262 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1263 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1267 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1274 ## ----------------- ##
1275 ## Output variables. ##
1276 ## ----------------- ##
1279 for ac_var in $ac_subst_vars
1281 eval ac_val=$`echo $ac_var`
1282 echo "$ac_var='"'"'$ac_val'"'"'"
1286 if test -n "$ac_subst_files"; then
1293 for ac_var in $ac_subst_files
1295 eval ac_val=$`echo $ac_var`
1296 echo "$ac_var='"'"'$ac_val'"'"'"
1301 if test -s confdefs.h; then
1308 sed "/^$/d" confdefs.h | sort
1311 test "$ac_signal" != 0 &&
1312 echo "$as_me: caught signal $ac_signal"
1313 echo "$as_me: exit $exit_status"
1315 rm -f core core.* *.core &&
1316 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1319 for ac_signal in 1 2 13 15; do
1320 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1324 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1325 rm -rf conftest* confdefs.h
1326 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1329 # Predefined preprocessor variables.
1331 cat >>confdefs.h <<_ACEOF
1332 #define PACKAGE_NAME "$PACKAGE_NAME"
1336 cat >>confdefs.h <<_ACEOF
1337 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1341 cat >>confdefs.h <<_ACEOF
1342 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1346 cat >>confdefs.h <<_ACEOF
1347 #define PACKAGE_STRING "$PACKAGE_STRING"
1351 cat >>confdefs.h <<_ACEOF
1352 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1356 # Let the site file select an alternate cache file if it wants to.
1357 # Prefer explicitly selected file to automatically selected ones.
1358 if test -z "$CONFIG_SITE"; then
1359 if test "x$prefix" != xNONE; then
1360 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1362 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1365 for ac_site_file in $CONFIG_SITE; do
1366 if test -r "$ac_site_file"; then
1367 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1368 echo "$as_me: loading site script $ac_site_file" >&6;}
1369 sed 's/^/| /' "$ac_site_file" >&5
1374 if test -r "$cache_file"; then
1375 # Some versions of bash will fail to source /dev/null (special
1376 # files actually), so we avoid doing that.
1377 if test -f "$cache_file"; then
1378 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1379 echo "$as_me: loading cache $cache_file" >&6;}
1381 [\\/]* | ?:[\\/]* ) . $cache_file;;
1382 *) . ./$cache_file;;
1386 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1387 echo "$as_me: creating cache $cache_file" >&6;}
1391 # Check that the precious variables saved in the cache have kept the same
1393 ac_cache_corrupted=false
1394 for ac_var in `(set) 2>&1 |
1395 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1396 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1397 eval ac_new_set=\$ac_env_${ac_var}_set
1398 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1399 eval ac_new_val="\$ac_env_${ac_var}_value"
1400 case $ac_old_set,$ac_new_set in
1402 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1403 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1404 ac_cache_corrupted=: ;;
1406 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1407 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1408 ac_cache_corrupted=: ;;
1411 if test "x$ac_old_val" != "x$ac_new_val"; then
1412 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1413 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1414 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1415 echo "$as_me: former value: $ac_old_val" >&2;}
1416 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1417 echo "$as_me: current value: $ac_new_val" >&2;}
1418 ac_cache_corrupted=:
1421 # Pass precious variables to config.status.
1422 if test "$ac_new_set" = set; then
1424 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1425 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1426 *) ac_arg=$ac_var=$ac_new_val ;;
1428 case " $ac_configure_args " in
1429 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1430 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1434 if $ac_cache_corrupted; then
1435 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1436 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1437 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1438 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1439 { (exit 1); exit 1; }; }
1443 ac_cpp='$CPP $CPPFLAGS'
1444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1466 # Add the stamp file to the list of files AC keeps track of,
1467 # along with our hook.
1468 ac_config_headers="$ac_config_headers config.h"
1473 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1474 if test -f $ac_dir/install-sh; then
1476 ac_install_sh="$ac_aux_dir/install-sh -c"
1478 elif test -f $ac_dir/install.sh; then
1480 ac_install_sh="$ac_aux_dir/install.sh -c"
1482 elif test -f $ac_dir/shtool; then
1484 ac_install_sh="$ac_aux_dir/shtool install -c"
1488 if test -z "$ac_aux_dir"; then
1489 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1490 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1491 { (exit 1); exit 1; }; }
1493 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1494 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1495 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1497 # Make sure we can run config.sub.
1498 $ac_config_sub sun4 >/dev/null 2>&1 ||
1499 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1500 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1501 { (exit 1); exit 1; }; }
1503 echo "$as_me:$LINENO: checking build system type" >&5
1504 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1505 if test "${ac_cv_build+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1508 ac_cv_build_alias=$build_alias
1509 test -z "$ac_cv_build_alias" &&
1510 ac_cv_build_alias=`$ac_config_guess`
1511 test -z "$ac_cv_build_alias" &&
1512 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1513 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1514 { (exit 1); exit 1; }; }
1515 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1516 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1517 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1518 { (exit 1); exit 1; }; }
1521 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1522 echo "${ECHO_T}$ac_cv_build" >&6
1524 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1525 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1526 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1529 echo "$as_me:$LINENO: checking host system type" >&5
1530 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1531 if test "${ac_cv_host+set}" = set; then
1532 echo $ECHO_N "(cached) $ECHO_C" >&6
1534 ac_cv_host_alias=$host_alias
1535 test -z "$ac_cv_host_alias" &&
1536 ac_cv_host_alias=$ac_cv_build_alias
1537 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1538 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1539 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1540 { (exit 1); exit 1; }; }
1543 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1544 echo "${ECHO_T}$ac_cv_host" >&6
1546 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1547 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1548 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1552 am__api_version="1.6"
1553 # Find a good install program. We prefer a C program (faster),
1554 # so one script is as good as another. But avoid the broken or
1555 # incompatible versions:
1556 # SysV /etc/install, /usr/sbin/install
1557 # SunOS /usr/etc/install
1558 # IRIX /sbin/install
1560 # AmigaOS /C/install, which installs bootblocks on floppy discs
1561 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1562 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1563 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1564 # ./install, which can be erroneously created by make from ./install.sh.
1565 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1566 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1567 if test -z "$INSTALL"; then
1568 if test "${ac_cv_path_install+set}" = set; then
1569 echo $ECHO_N "(cached) $ECHO_C" >&6
1571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1575 test -z "$as_dir" && as_dir=.
1576 # Account for people who put trailing slashes in PATH elements.
1578 ./ | .// | /cC/* | \
1579 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1582 # OSF1 and SCO ODT 3.0 have their own names for install.
1583 # Don't use installbsd from OSF since it installs stuff as root
1585 for ac_prog in ginstall scoinst install; do
1586 for ac_exec_ext in '' $ac_executable_extensions; do
1587 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1588 if test $ac_prog = install &&
1589 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1590 # AIX install. It has an incompatible calling convention.
1592 elif test $ac_prog = install &&
1593 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1594 # program-specific install script used by HP pwplus--don't use.
1597 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1609 if test "${ac_cv_path_install+set}" = set; then
1610 INSTALL=$ac_cv_path_install
1612 # As a last resort, use the slow shell script. We don't cache a
1613 # path for INSTALL within a source directory, because that will
1614 # break other packages using the cache if that directory is
1615 # removed, or if the path is relative.
1616 INSTALL=$ac_install_sh
1619 echo "$as_me:$LINENO: result: $INSTALL" >&5
1620 echo "${ECHO_T}$INSTALL" >&6
1622 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1623 # It thinks the first close brace ends the variable substitution.
1624 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1626 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1628 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1630 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1631 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1634 echo timestamp > conftest.file
1635 # Do `set' in a subshell so we don't clobber the current shell's
1636 # arguments. Must try -L first in case configure is actually a
1637 # symlink; some systems play weird games with the mod time of symlinks
1638 # (eg FreeBSD returns the mod time of the symlink's containing
1641 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1642 if test "$*" = "X"; then
1644 set X `ls -t $srcdir/configure conftest.file`
1647 if test "$*" != "X $srcdir/configure conftest.file" \
1648 && test "$*" != "X conftest.file $srcdir/configure"; then
1650 # If neither matched, then we have a broken ls. This can happen
1651 # if, for instance, CONFIG_SHELL is bash and it inherits a
1652 # broken ls alias from the environment. This has actually
1653 # happened. Such a system could not be considered "sane".
1654 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1655 alias in your environment" >&5
1656 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1657 alias in your environment" >&2;}
1658 { (exit 1); exit 1; }; }
1661 test "$2" = conftest.file
1667 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1668 Check your system clock" >&5
1669 echo "$as_me: error: newly created file is older than distributed files!
1670 Check your system clock" >&2;}
1671 { (exit 1); exit 1; }; }
1673 echo "$as_me:$LINENO: result: yes" >&5
1674 echo "${ECHO_T}yes" >&6
1675 test "$program_prefix" != NONE &&
1676 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1677 # Use a double $ so make ignores it.
1678 test "$program_suffix" != NONE &&
1679 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1680 # Double any \ or $. echo might interpret backslashes.
1681 # By default was `s,x,x', remove it if useless.
1682 cat <<\_ACEOF >conftest.sed
1683 s/[\\$]/&&/g;s/;s,x,x,$//
1685 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1689 # expand $ac_aux_dir to an absolute path
1690 am_aux_dir=`cd $ac_aux_dir && pwd`
1692 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1693 # Use eval to expand $SHELL
1694 if eval "$MISSING --run true"; then
1695 am_missing_run="$MISSING --run "
1698 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1699 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1702 for ac_prog in gawk mawk nawk awk
1704 # Extract the first word of "$ac_prog", so it can be a program name with args.
1705 set dummy $ac_prog; ac_word=$2
1706 echo "$as_me:$LINENO: checking for $ac_word" >&5
1707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1708 if test "${ac_cv_prog_AWK+set}" = set; then
1709 echo $ECHO_N "(cached) $ECHO_C" >&6
1711 if test -n "$AWK"; then
1712 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1718 test -z "$as_dir" && as_dir=.
1719 for ac_exec_ext in '' $ac_executable_extensions; do
1720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1721 ac_cv_prog_AWK="$ac_prog"
1722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1731 if test -n "$AWK"; then
1732 echo "$as_me:$LINENO: result: $AWK" >&5
1733 echo "${ECHO_T}$AWK" >&6
1735 echo "$as_me:$LINENO: result: no" >&5
1736 echo "${ECHO_T}no" >&6
1739 test -n "$AWK" && break
1742 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1743 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1744 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1745 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1746 echo $ECHO_N "(cached) $ECHO_C" >&6
1748 cat >conftest.make <<\_ACEOF
1750 @echo 'ac_maketemp="$(MAKE)"'
1752 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1753 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1754 if test -n "$ac_maketemp"; then
1755 eval ac_cv_prog_make_${ac_make}_set=yes
1757 eval ac_cv_prog_make_${ac_make}_set=no
1761 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1762 echo "$as_me:$LINENO: result: yes" >&5
1763 echo "${ECHO_T}yes" >&6
1766 echo "$as_me:$LINENO: result: no" >&5
1767 echo "${ECHO_T}no" >&6
1768 SET_MAKE="MAKE=${MAKE-make}"
1771 # test to see if srcdir already configured
1772 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1773 test -f $srcdir/config.status; then
1774 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1775 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1776 { (exit 1); exit 1; }; }
1779 # Define the identity of the package.
1784 cat >>confdefs.h <<_ACEOF
1785 #define PACKAGE "$PACKAGE"
1789 cat >>confdefs.h <<_ACEOF
1790 #define VERSION "$VERSION"
1793 # Some tools Automake needs.
1795 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1798 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1801 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1804 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1807 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1810 AMTAR=${AMTAR-"${am_missing_run}tar"}
1812 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1814 # Installed binaries are usually stripped using `strip' when the user
1815 # run `make install-strip'. However `strip' might not be the right
1816 # tool to use in cross-compilation environments, therefore Automake
1817 # will honor the `STRIP' environment variable to overrule this program.
1818 if test "$cross_compiling" != no; then
1819 if test -n "$ac_tool_prefix"; then
1820 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1821 set dummy ${ac_tool_prefix}strip; ac_word=$2
1822 echo "$as_me:$LINENO: checking for $ac_word" >&5
1823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1824 if test "${ac_cv_prog_STRIP+set}" = set; then
1825 echo $ECHO_N "(cached) $ECHO_C" >&6
1827 if test -n "$STRIP"; then
1828 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1834 test -z "$as_dir" && as_dir=.
1835 for ac_exec_ext in '' $ac_executable_extensions; do
1836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1837 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1846 STRIP=$ac_cv_prog_STRIP
1847 if test -n "$STRIP"; then
1848 echo "$as_me:$LINENO: result: $STRIP" >&5
1849 echo "${ECHO_T}$STRIP" >&6
1851 echo "$as_me:$LINENO: result: no" >&5
1852 echo "${ECHO_T}no" >&6
1856 if test -z "$ac_cv_prog_STRIP"; then
1858 # Extract the first word of "strip", so it can be a program name with args.
1859 set dummy strip; ac_word=$2
1860 echo "$as_me:$LINENO: checking for $ac_word" >&5
1861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1862 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1863 echo $ECHO_N "(cached) $ECHO_C" >&6
1865 if test -n "$ac_ct_STRIP"; then
1866 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1872 test -z "$as_dir" && as_dir=.
1873 for ac_exec_ext in '' $ac_executable_extensions; do
1874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1875 ac_cv_prog_ac_ct_STRIP="strip"
1876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1882 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1885 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1886 if test -n "$ac_ct_STRIP"; then
1887 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1888 echo "${ECHO_T}$ac_ct_STRIP" >&6
1890 echo "$as_me:$LINENO: result: no" >&5
1891 echo "${ECHO_T}no" >&6
1896 STRIP="$ac_cv_prog_STRIP"
1900 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1902 # We need awk for the "check" target. The system "awk" is bad on
1911 ac_cpp='$CPP $CPPFLAGS'
1912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1915 if test -n "$ac_tool_prefix"; then
1916 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1917 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1918 echo "$as_me:$LINENO: checking for $ac_word" >&5
1919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1920 if test "${ac_cv_prog_CC+set}" = set; then
1921 echo $ECHO_N "(cached) $ECHO_C" >&6
1923 if test -n "$CC"; then
1924 ac_cv_prog_CC="$CC" # Let the user override the test.
1926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1930 test -z "$as_dir" && as_dir=.
1931 for ac_exec_ext in '' $ac_executable_extensions; do
1932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1933 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1943 if test -n "$CC"; then
1944 echo "$as_me:$LINENO: result: $CC" >&5
1945 echo "${ECHO_T}$CC" >&6
1947 echo "$as_me:$LINENO: result: no" >&5
1948 echo "${ECHO_T}no" >&6
1952 if test -z "$ac_cv_prog_CC"; then
1954 # Extract the first word of "gcc", so it can be a program name with args.
1955 set dummy gcc; ac_word=$2
1956 echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1958 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1961 if test -n "$ac_ct_CC"; then
1962 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968 test -z "$as_dir" && as_dir=.
1969 for ac_exec_ext in '' $ac_executable_extensions; do
1970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971 ac_cv_prog_ac_ct_CC="gcc"
1972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1980 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1981 if test -n "$ac_ct_CC"; then
1982 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1983 echo "${ECHO_T}$ac_ct_CC" >&6
1985 echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6
1994 if test -z "$CC"; then
1995 if test -n "$ac_tool_prefix"; then
1996 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1997 set dummy ${ac_tool_prefix}cc; ac_word=$2
1998 echo "$as_me:$LINENO: checking for $ac_word" >&5
1999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2000 if test "${ac_cv_prog_CC+set}" = set; then
2001 echo $ECHO_N "(cached) $ECHO_C" >&6
2003 if test -n "$CC"; then
2004 ac_cv_prog_CC="$CC" # Let the user override the test.
2006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2010 test -z "$as_dir" && as_dir=.
2011 for ac_exec_ext in '' $ac_executable_extensions; do
2012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2013 ac_cv_prog_CC="${ac_tool_prefix}cc"
2014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2023 if test -n "$CC"; then
2024 echo "$as_me:$LINENO: result: $CC" >&5
2025 echo "${ECHO_T}$CC" >&6
2027 echo "$as_me:$LINENO: result: no" >&5
2028 echo "${ECHO_T}no" >&6
2032 if test -z "$ac_cv_prog_CC"; then
2034 # Extract the first word of "cc", so it can be a program name with args.
2035 set dummy cc; ac_word=$2
2036 echo "$as_me:$LINENO: checking for $ac_word" >&5
2037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2038 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
2041 if test -n "$ac_ct_CC"; then
2042 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048 test -z "$as_dir" && as_dir=.
2049 for ac_exec_ext in '' $ac_executable_extensions; do
2050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2051 ac_cv_prog_ac_ct_CC="cc"
2052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2060 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2061 if test -n "$ac_ct_CC"; then
2062 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2063 echo "${ECHO_T}$ac_ct_CC" >&6
2065 echo "$as_me:$LINENO: result: no" >&5
2066 echo "${ECHO_T}no" >&6
2075 if test -z "$CC"; then
2076 # Extract the first word of "cc", so it can be a program name with args.
2077 set dummy cc; ac_word=$2
2078 echo "$as_me:$LINENO: checking for $ac_word" >&5
2079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2080 if test "${ac_cv_prog_CC+set}" = set; then
2081 echo $ECHO_N "(cached) $ECHO_C" >&6
2083 if test -n "$CC"; then
2084 ac_cv_prog_CC="$CC" # Let the user override the test.
2087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2091 test -z "$as_dir" && as_dir=.
2092 for ac_exec_ext in '' $ac_executable_extensions; do
2093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2094 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2095 ac_prog_rejected=yes
2099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2105 if test $ac_prog_rejected = yes; then
2106 # We found a bogon in the path, so make sure we never use it.
2107 set dummy $ac_cv_prog_CC
2109 if test $# != 0; then
2110 # We chose a different compiler from the bogus one.
2111 # However, it has the same basename, so the bogon will be chosen
2112 # first if we set CC to just the basename; use the full file name.
2114 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2120 if test -n "$CC"; then
2121 echo "$as_me:$LINENO: result: $CC" >&5
2122 echo "${ECHO_T}$CC" >&6
2124 echo "$as_me:$LINENO: result: no" >&5
2125 echo "${ECHO_T}no" >&6
2129 if test -z "$CC"; then
2130 if test -n "$ac_tool_prefix"; then
2133 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2134 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2135 echo "$as_me:$LINENO: checking for $ac_word" >&5
2136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2137 if test "${ac_cv_prog_CC+set}" = set; then
2138 echo $ECHO_N "(cached) $ECHO_C" >&6
2140 if test -n "$CC"; then
2141 ac_cv_prog_CC="$CC" # Let the user override the test.
2143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2147 test -z "$as_dir" && as_dir=.
2148 for ac_exec_ext in '' $ac_executable_extensions; do
2149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2150 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2160 if test -n "$CC"; then
2161 echo "$as_me:$LINENO: result: $CC" >&5
2162 echo "${ECHO_T}$CC" >&6
2164 echo "$as_me:$LINENO: result: no" >&5
2165 echo "${ECHO_T}no" >&6
2168 test -n "$CC" && break
2171 if test -z "$CC"; then
2175 # Extract the first word of "$ac_prog", so it can be a program name with args.
2176 set dummy $ac_prog; ac_word=$2
2177 echo "$as_me:$LINENO: checking for $ac_word" >&5
2178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2179 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2180 echo $ECHO_N "(cached) $ECHO_C" >&6
2182 if test -n "$ac_ct_CC"; then
2183 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2189 test -z "$as_dir" && as_dir=.
2190 for ac_exec_ext in '' $ac_executable_extensions; do
2191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2192 ac_cv_prog_ac_ct_CC="$ac_prog"
2193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2201 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2202 if test -n "$ac_ct_CC"; then
2203 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2204 echo "${ECHO_T}$ac_ct_CC" >&6
2206 echo "$as_me:$LINENO: result: no" >&5
2207 echo "${ECHO_T}no" >&6
2210 test -n "$ac_ct_CC" && break
2219 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2220 See \`config.log' for more details." >&5
2221 echo "$as_me: error: no acceptable C compiler found in \$PATH
2222 See \`config.log' for more details." >&2;}
2223 { (exit 1); exit 1; }; }
2225 # Provide some information about the compiler.
2226 echo "$as_me:$LINENO:" \
2227 "checking for C compiler version" >&5
2228 ac_compiler=`set X $ac_compile; echo $2`
2229 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2230 (eval $ac_compiler --version </dev/null >&5) 2>&5
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }
2234 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2235 (eval $ac_compiler -v </dev/null >&5) 2>&5
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }
2239 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2240 (eval $ac_compiler -V </dev/null >&5) 2>&5
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); }
2245 cat >conftest.$ac_ext <<_ACEOF
2246 #line $LINENO "configure"
2249 cat confdefs.h >>conftest.$ac_ext
2250 cat >>conftest.$ac_ext <<_ACEOF
2251 /* end confdefs.h. */
2261 ac_clean_files_save=$ac_clean_files
2262 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2263 # Try to create an executable without -o first, disregard a.out.
2264 # It will help us diagnose broken compilers, and finding out an intuition
2266 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2267 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2268 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2269 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2270 (eval $ac_link_default) 2>&5
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }; then
2274 # Find the output, starting from the most likely. This scheme is
2275 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2278 # Be careful to initialize this variable, since it used to be cached.
2279 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2281 # b.out is created by i960 compilers.
2282 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2284 test -f "$ac_file" || continue
2286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2289 # This is the source file.
2292 # We found the default executable, but exeext='' is most
2296 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2297 # FIXME: I believe we export ac_cv_exeext for Libtool,
2298 # but it would be cool to find out if it's true. Does anybody
2299 # maintain Libtool? --akim.
2307 echo "$as_me: failed program was:" >&5
2308 sed 's/^/| /' conftest.$ac_ext >&5
2310 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2311 See \`config.log' for more details." >&5
2312 echo "$as_me: error: C compiler cannot create executables
2313 See \`config.log' for more details." >&2;}
2314 { (exit 77); exit 77; }; }
2317 ac_exeext=$ac_cv_exeext
2318 echo "$as_me:$LINENO: result: $ac_file" >&5
2319 echo "${ECHO_T}$ac_file" >&6
2321 # Check the compiler produces executables we can run. If not, either
2322 # the compiler is broken, or we cross compile.
2323 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2324 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2325 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2326 # If not cross compiling, check that we can run a simple program.
2327 if test "$cross_compiling" != yes; then
2328 if { ac_try='./$ac_file'
2329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }; }; then
2336 if test "$cross_compiling" = maybe; then
2339 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2340 If you meant to cross compile, use \`--host'.
2341 See \`config.log' for more details." >&5
2342 echo "$as_me: error: cannot run C compiled programs.
2343 If you meant to cross compile, use \`--host'.
2344 See \`config.log' for more details." >&2;}
2345 { (exit 1); exit 1; }; }
2349 echo "$as_me:$LINENO: result: yes" >&5
2350 echo "${ECHO_T}yes" >&6
2352 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2353 ac_clean_files=$ac_clean_files_save
2354 # Check the compiler produces executables we can run. If not, either
2355 # the compiler is broken, or we cross compile.
2356 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2357 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2358 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2359 echo "${ECHO_T}$cross_compiling" >&6
2361 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2362 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2364 (eval $ac_link) 2>&5
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); }; then
2368 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2369 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2370 # work properly (i.e., refer to `conftest.exe'), while it won't with
2372 for ac_file in conftest.exe conftest conftest.*; do
2373 test -f "$ac_file" || continue
2375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2376 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2383 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2384 See \`config.log' for more details." >&5
2385 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2386 See \`config.log' for more details." >&2;}
2387 { (exit 1); exit 1; }; }
2390 rm -f conftest$ac_cv_exeext
2391 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2392 echo "${ECHO_T}$ac_cv_exeext" >&6
2394 rm -f conftest.$ac_ext
2395 EXEEXT=$ac_cv_exeext
2397 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2398 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2399 if test "${ac_cv_objext+set}" = set; then
2400 echo $ECHO_N "(cached) $ECHO_C" >&6
2402 cat >conftest.$ac_ext <<_ACEOF
2403 #line $LINENO "configure"
2406 cat confdefs.h >>conftest.$ac_ext
2407 cat >>conftest.$ac_ext <<_ACEOF
2408 /* end confdefs.h. */
2418 rm -f conftest.o conftest.obj
2419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2420 (eval $ac_compile) 2>&5
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); }; then
2424 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2426 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2427 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2432 echo "$as_me: failed program was:" >&5
2433 sed 's/^/| /' conftest.$ac_ext >&5
2435 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2436 See \`config.log' for more details." >&5
2437 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2438 See \`config.log' for more details." >&2;}
2439 { (exit 1); exit 1; }; }
2442 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2444 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2445 echo "${ECHO_T}$ac_cv_objext" >&6
2446 OBJEXT=$ac_cv_objext
2448 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2449 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2450 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2451 echo $ECHO_N "(cached) $ECHO_C" >&6
2453 cat >conftest.$ac_ext <<_ACEOF
2454 #line $LINENO "configure"
2457 cat confdefs.h >>conftest.$ac_ext
2458 cat >>conftest.$ac_ext <<_ACEOF
2459 /* end confdefs.h. */
2472 rm -f conftest.$ac_objext
2473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2474 (eval $ac_compile) 2>&5
2476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477 (exit $ac_status); } &&
2478 { ac_try='test -s conftest.$ac_objext'
2479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); }; }; then
2486 echo "$as_me: failed program was:" >&5
2487 sed 's/^/| /' conftest.$ac_ext >&5
2491 rm -f conftest.$ac_objext conftest.$ac_ext
2492 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2495 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2496 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2497 GCC=`test $ac_compiler_gnu = yes && echo yes`
2498 ac_test_CFLAGS=${CFLAGS+set}
2499 ac_save_CFLAGS=$CFLAGS
2501 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2502 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2503 if test "${ac_cv_prog_cc_g+set}" = set; then
2504 echo $ECHO_N "(cached) $ECHO_C" >&6
2506 cat >conftest.$ac_ext <<_ACEOF
2507 #line $LINENO "configure"
2510 cat confdefs.h >>conftest.$ac_ext
2511 cat >>conftest.$ac_ext <<_ACEOF
2512 /* end confdefs.h. */
2522 rm -f conftest.$ac_objext
2523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2524 (eval $ac_compile) 2>&5
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); } &&
2528 { ac_try='test -s conftest.$ac_objext'
2529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }; }; then
2536 echo "$as_me: failed program was:" >&5
2537 sed 's/^/| /' conftest.$ac_ext >&5
2541 rm -f conftest.$ac_objext conftest.$ac_ext
2543 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2544 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2545 if test "$ac_test_CFLAGS" = set; then
2546 CFLAGS=$ac_save_CFLAGS
2547 elif test $ac_cv_prog_cc_g = yes; then
2548 if test "$GCC" = yes; then
2554 if test "$GCC" = yes; then
2560 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2561 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2562 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2563 echo $ECHO_N "(cached) $ECHO_C" >&6
2565 ac_cv_prog_cc_stdc=no
2567 cat >conftest.$ac_ext <<_ACEOF
2568 #line $LINENO "configure"
2571 cat confdefs.h >>conftest.$ac_ext
2572 cat >>conftest.$ac_ext <<_ACEOF
2573 /* end confdefs.h. */
2576 #include <sys/types.h>
2577 #include <sys/stat.h>
2578 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2579 struct buf { int x; };
2580 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2581 static char *e (p, i)
2587 static char *f (char * (*g) (char **, int), char **p, ...)
2592 s = g (p, va_arg (v,int));
2596 int test (int i, double x);
2597 struct s1 {int (*f) (int a);};
2598 struct s2 {int (*f) (double a);};
2599 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2605 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2610 # Don't try gcc -ansi; that turns off useful extensions and
2611 # breaks some systems' header files.
2612 # AIX -qlanglvl=ansi
2613 # Ultrix and OSF/1 -std1
2614 # HP-UX 10.20 and later -Ae
2615 # HP-UX older versions -Aa -D_HPUX_SOURCE
2616 # SVR4 -Xc -D__EXTENSIONS__
2617 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2619 CC="$ac_save_CC $ac_arg"
2620 rm -f conftest.$ac_objext
2621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2622 (eval $ac_compile) 2>&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); } &&
2626 { ac_try='test -s conftest.$ac_objext'
2627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; }; then
2632 ac_cv_prog_cc_stdc=$ac_arg
2635 echo "$as_me: failed program was:" >&5
2636 sed 's/^/| /' conftest.$ac_ext >&5
2639 rm -f conftest.$ac_objext
2641 rm -f conftest.$ac_ext conftest.$ac_objext
2646 case "x$ac_cv_prog_cc_stdc" in
2648 echo "$as_me:$LINENO: result: none needed" >&5
2649 echo "${ECHO_T}none needed" >&6 ;;
2651 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2652 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2653 CC="$CC $ac_cv_prog_cc_stdc" ;;
2656 # Some people use a C++ compiler to compile C. Since we use `exit',
2657 # in C++ we need to declare it. In case someone uses the same compiler
2658 # for both compiling C and C++ we need to have the C++ compiler decide
2659 # the declaration of exit, since it's the most demanding environment.
2660 cat >conftest.$ac_ext <<_ACEOF
2665 rm -f conftest.$ac_objext
2666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2667 (eval $ac_compile) 2>&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); } &&
2671 { ac_try='test -s conftest.$ac_objext'
2672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; }; then
2677 for ac_declaration in \
2679 '#include <stdlib.h>' \
2680 'extern "C" void std::exit (int) throw (); using std::exit;' \
2681 'extern "C" void std::exit (int); using std::exit;' \
2682 'extern "C" void exit (int) throw ();' \
2683 'extern "C" void exit (int);' \
2686 cat >conftest.$ac_ext <<_ACEOF
2687 #line $LINENO "configure"
2690 cat confdefs.h >>conftest.$ac_ext
2691 cat >>conftest.$ac_ext <<_ACEOF
2692 /* end confdefs.h. */
2703 rm -f conftest.$ac_objext
2704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2705 (eval $ac_compile) 2>&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); } &&
2709 { ac_try='test -s conftest.$ac_objext'
2710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); }; }; then
2717 echo "$as_me: failed program was:" >&5
2718 sed 's/^/| /' conftest.$ac_ext >&5
2722 rm -f conftest.$ac_objext conftest.$ac_ext
2723 cat >conftest.$ac_ext <<_ACEOF
2724 #line $LINENO "configure"
2727 cat confdefs.h >>conftest.$ac_ext
2728 cat >>conftest.$ac_ext <<_ACEOF
2729 /* end confdefs.h. */
2739 rm -f conftest.$ac_objext
2740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2741 (eval $ac_compile) 2>&5
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); } &&
2745 { ac_try='test -s conftest.$ac_objext'
2746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }; }; then
2753 echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2757 rm -f conftest.$ac_objext conftest.$ac_ext
2760 if test -n "$ac_declaration"; then
2761 echo '#ifdef __cplusplus' >>confdefs.h
2762 echo $ac_declaration >>confdefs.h
2763 echo '#endif' >>confdefs.h
2767 echo "$as_me: failed program was:" >&5
2768 sed 's/^/| /' conftest.$ac_ext >&5
2771 rm -f conftest.$ac_objext conftest.$ac_ext
2773 ac_cpp='$CPP $CPPFLAGS'
2774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2777 rm -f .deps 2>/dev/null
2778 mkdir .deps 2>/dev/null
2779 if test -d .deps; then
2782 # MS-DOS does not allow filenames that begin with a dot.
2785 rmdir .deps 2>/dev/null
2788 ac_config_commands="$ac_config_commands depfiles"
2791 am_make=${MAKE-make}
2792 cat > confinc << 'END'
2796 # If we don't find an include directive, just comment out the code.
2797 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2798 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2802 # First try GNU make style include.
2803 echo "include confinc" > confmf
2804 # We grep out `Entering directory' and `Leaving directory'
2805 # messages which can occur if `w' ends up in MAKEFLAGS.
2806 # In particular we don't look at `^make:' because GNU make might
2807 # be invoked under some other name (usually "gmake"), in which
2808 # case it prints its new name instead of `make'.
2809 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2814 # Now try BSD make style include.
2815 if test "$am__include" = "#"; then
2816 echo '.include "confinc"' > confmf
2817 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2818 am__include=.include
2825 echo "$as_me:$LINENO: result: $_am_result" >&5
2826 echo "${ECHO_T}$_am_result" >&6
2827 rm -f confinc confmf
2829 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2830 if test "${enable_dependency_tracking+set}" = set; then
2831 enableval="$enable_dependency_tracking"
2834 if test "x$enable_dependency_tracking" != xno; then
2835 am_depcomp="$ac_aux_dir/depcomp"
2840 if test "x$enable_dependency_tracking" != xno; then
2851 depcc="$CC" am_compiler_list=
2853 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2854 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2855 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2858 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2859 # We make a subdir and do the tests there. Otherwise we can end up
2860 # making bogus files that we don't know about and never remove. For
2861 # instance it was reported that on HP-UX the gcc test will end up
2862 # making a dummy file named `D' -- because `-MD' means `put the output
2865 # Copy depcomp to subdir because otherwise we won't find it if we're
2866 # using a relative directory.
2867 cp "$am_depcomp" conftest.dir
2870 am_cv_CC_dependencies_compiler_type=none
2871 if test "$am_compiler_list" = ""; then
2872 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2874 for depmode in $am_compiler_list; do
2875 # We need to recreate these files for each test, as the compiler may
2876 # overwrite some of them when testing with obscure command lines.
2877 # This happens at least with the AIX C compiler.
2878 echo '#include "conftest.h"' > conftest.c
2879 echo 'int i;' > conftest.h
2880 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2884 # after this tag, mechanisms are not by side-effect, so they'll
2885 # only be used when explicitly requested
2886 if test "x$enable_dependency_tracking" = xyes; then
2894 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2895 # mode. It turns out that the SunPro C++ compiler does not properly
2896 # handle `-M -o', and we need to detect this.
2897 if depmode=$depmode \
2898 source=conftest.c object=conftest.o \
2899 depfile=conftest.Po tmpdepfile=conftest.TPo \
2900 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2901 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2902 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2903 am_cv_CC_dependencies_compiler_type=$depmode
2911 am_cv_CC_dependencies_compiler_type=none
2915 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2916 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2917 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2921 ac_cpp='$CXXCPP $CPPFLAGS'
2922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2925 if test -n "$ac_tool_prefix"; then
2926 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2928 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2929 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2930 echo "$as_me:$LINENO: checking for $ac_word" >&5
2931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2932 if test "${ac_cv_prog_CXX+set}" = set; then
2933 echo $ECHO_N "(cached) $ECHO_C" >&6
2935 if test -n "$CXX"; then
2936 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942 test -z "$as_dir" && as_dir=.
2943 for ac_exec_ext in '' $ac_executable_extensions; do
2944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2945 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2955 if test -n "$CXX"; then
2956 echo "$as_me:$LINENO: result: $CXX" >&5
2957 echo "${ECHO_T}$CXX" >&6
2959 echo "$as_me:$LINENO: result: no" >&5
2960 echo "${ECHO_T}no" >&6
2963 test -n "$CXX" && break
2966 if test -z "$CXX"; then
2968 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2970 # Extract the first word of "$ac_prog", so it can be a program name with args.
2971 set dummy $ac_prog; ac_word=$2
2972 echo "$as_me:$LINENO: checking for $ac_word" >&5
2973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2974 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2975 echo $ECHO_N "(cached) $ECHO_C" >&6
2977 if test -n "$ac_ct_CXX"; then
2978 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 test -z "$as_dir" && as_dir=.
2985 for ac_exec_ext in '' $ac_executable_extensions; do
2986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2987 ac_cv_prog_ac_ct_CXX="$ac_prog"
2988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2996 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2997 if test -n "$ac_ct_CXX"; then
2998 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2999 echo "${ECHO_T}$ac_ct_CXX" >&6
3001 echo "$as_me:$LINENO: result: no" >&5
3002 echo "${ECHO_T}no" >&6
3005 test -n "$ac_ct_CXX" && break
3007 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3013 # Provide some information about the compiler.
3014 echo "$as_me:$LINENO:" \
3015 "checking for C++ compiler version" >&5
3016 ac_compiler=`set X $ac_compile; echo $2`
3017 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3018 (eval $ac_compiler --version </dev/null >&5) 2>&5
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); }
3022 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3023 (eval $ac_compiler -v </dev/null >&5) 2>&5
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); }
3027 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3028 (eval $ac_compiler -V </dev/null >&5) 2>&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); }
3033 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3034 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3035 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3036 echo $ECHO_N "(cached) $ECHO_C" >&6
3038 cat >conftest.$ac_ext <<_ACEOF
3039 #line $LINENO "configure"
3042 cat confdefs.h >>conftest.$ac_ext
3043 cat >>conftest.$ac_ext <<_ACEOF
3044 /* end confdefs.h. */
3057 rm -f conftest.$ac_objext
3058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3059 (eval $ac_compile) 2>&5
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); } &&
3063 { ac_try='test -s conftest.$ac_objext'
3064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); }; }; then
3071 echo "$as_me: failed program was:" >&5
3072 sed 's/^/| /' conftest.$ac_ext >&5
3076 rm -f conftest.$ac_objext conftest.$ac_ext
3077 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3080 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3081 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3082 GXX=`test $ac_compiler_gnu = yes && echo yes`
3083 ac_test_CXXFLAGS=${CXXFLAGS+set}
3084 ac_save_CXXFLAGS=$CXXFLAGS
3086 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3087 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3088 if test "${ac_cv_prog_cxx_g+set}" = set; then
3089 echo $ECHO_N "(cached) $ECHO_C" >&6
3091 cat >conftest.$ac_ext <<_ACEOF
3092 #line $LINENO "configure"
3095 cat confdefs.h >>conftest.$ac_ext
3096 cat >>conftest.$ac_ext <<_ACEOF
3097 /* end confdefs.h. */
3107 rm -f conftest.$ac_objext
3108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3109 (eval $ac_compile) 2>&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); } &&
3113 { ac_try='test -s conftest.$ac_objext'
3114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); }; }; then
3119 ac_cv_prog_cxx_g=yes
3121 echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.$ac_ext >&5
3126 rm -f conftest.$ac_objext conftest.$ac_ext
3128 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3129 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3130 if test "$ac_test_CXXFLAGS" = set; then
3131 CXXFLAGS=$ac_save_CXXFLAGS
3132 elif test $ac_cv_prog_cxx_g = yes; then
3133 if test "$GXX" = yes; then
3139 if test "$GXX" = yes; then
3145 for ac_declaration in \
3147 '#include <stdlib.h>' \
3148 'extern "C" void std::exit (int) throw (); using std::exit;' \
3149 'extern "C" void std::exit (int); using std::exit;' \
3150 'extern "C" void exit (int) throw ();' \
3151 'extern "C" void exit (int);' \
3154 cat >conftest.$ac_ext <<_ACEOF
3155 #line $LINENO "configure"
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h. */
3171 rm -f conftest.$ac_objext
3172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3173 (eval $ac_compile) 2>&5
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); } &&
3177 { ac_try='test -s conftest.$ac_objext'
3178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }; }; then
3185 echo "$as_me: failed program was:" >&5
3186 sed 's/^/| /' conftest.$ac_ext >&5
3190 rm -f conftest.$ac_objext conftest.$ac_ext
3191 cat >conftest.$ac_ext <<_ACEOF
3192 #line $LINENO "configure"
3195 cat confdefs.h >>conftest.$ac_ext
3196 cat >>conftest.$ac_ext <<_ACEOF
3197 /* end confdefs.h. */
3207 rm -f conftest.$ac_objext
3208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3209 (eval $ac_compile) 2>&5
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); } &&
3213 { ac_try='test -s conftest.$ac_objext'
3214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); }; }; then
3221 echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3225 rm -f conftest.$ac_objext conftest.$ac_ext
3228 if test -n "$ac_declaration"; then
3229 echo '#ifdef __cplusplus' >>confdefs.h
3230 echo $ac_declaration >>confdefs.h
3231 echo '#endif' >>confdefs.h
3235 ac_cpp='$CPP $CPPFLAGS'
3236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3240 depcc="$CXX" am_compiler_list=
3242 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3243 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3244 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3247 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3248 # We make a subdir and do the tests there. Otherwise we can end up
3249 # making bogus files that we don't know about and never remove. For
3250 # instance it was reported that on HP-UX the gcc test will end up
3251 # making a dummy file named `D' -- because `-MD' means `put the output
3254 # Copy depcomp to subdir because otherwise we won't find it if we're
3255 # using a relative directory.
3256 cp "$am_depcomp" conftest.dir
3259 am_cv_CXX_dependencies_compiler_type=none
3260 if test "$am_compiler_list" = ""; then
3261 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3263 for depmode in $am_compiler_list; do
3264 # We need to recreate these files for each test, as the compiler may
3265 # overwrite some of them when testing with obscure command lines.
3266 # This happens at least with the AIX C compiler.
3267 echo '#include "conftest.h"' > conftest.c
3268 echo 'int i;' > conftest.h
3269 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3273 # after this tag, mechanisms are not by side-effect, so they'll
3274 # only be used when explicitly requested
3275 if test "x$enable_dependency_tracking" = xyes; then
3283 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3284 # mode. It turns out that the SunPro C++ compiler does not properly
3285 # handle `-M -o', and we need to detect this.
3286 if depmode=$depmode \
3287 source=conftest.c object=conftest.o \
3288 depfile=conftest.Po tmpdepfile=conftest.TPo \
3289 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3290 grep conftest.h conftest.Po > /dev/null 2>&1 &&
3291 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3292 am_cv_CXX_dependencies_compiler_type=$depmode
3300 am_cv_CXX_dependencies_compiler_type=none
3304 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3305 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3306 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3310 ac_cpp='$CPP $CPPFLAGS'
3311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3314 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3315 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3316 # On Suns, sometimes $CPP names a directory.
3317 if test -n "$CPP" && test -d "$CPP"; then
3320 if test -z "$CPP"; then
3321 if test "${ac_cv_prog_CPP+set}" = set; then
3322 echo $ECHO_N "(cached) $ECHO_C" >&6
3324 # Double quotes because CPP needs to be expanded
3325 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3328 for ac_c_preproc_warn_flag in '' yes
3330 # Use a header file that comes with gcc, so configuring glibc
3331 # with a fresh cross-compiler works.
3332 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3333 # <limits.h> exists even on freestanding compilers.
3334 # On the NeXT, cc -E runs the code through the compiler's parser,
3335 # not just through cpp. "Syntax error" is here to catch this case.
3336 cat >conftest.$ac_ext <<_ACEOF
3337 #line $LINENO "configure"
3340 cat confdefs.h >>conftest.$ac_ext
3341 cat >>conftest.$ac_ext <<_ACEOF
3342 /* end confdefs.h. */
3344 # include <limits.h>
3346 # include <assert.h>
3350 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3351 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3353 grep -v '^ *+' conftest.er1 >conftest.err
3355 cat conftest.err >&5
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); } >/dev/null; then
3358 if test -s conftest.err; then
3359 ac_cpp_err=$ac_c_preproc_warn_flag
3366 if test -z "$ac_cpp_err"; then
3369 echo "$as_me: failed program was:" >&5
3370 sed 's/^/| /' conftest.$ac_ext >&5
3372 # Broken: fails on valid input.
3375 rm -f conftest.err conftest.$ac_ext
3377 # OK, works on sane cases. Now check whether non-existent headers
3378 # can be detected and how.
3379 cat >conftest.$ac_ext <<_ACEOF
3380 #line $LINENO "configure"
3383 cat confdefs.h >>conftest.$ac_ext
3384 cat >>conftest.$ac_ext <<_ACEOF
3385 /* end confdefs.h. */
3386 #include <ac_nonexistent.h>
3388 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3389 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3391 grep -v '^ *+' conftest.er1 >conftest.err
3393 cat conftest.err >&5
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); } >/dev/null; then
3396 if test -s conftest.err; then
3397 ac_cpp_err=$ac_c_preproc_warn_flag
3404 if test -z "$ac_cpp_err"; then
3405 # Broken: success on invalid input.
3408 echo "$as_me: failed program was:" >&5
3409 sed 's/^/| /' conftest.$ac_ext >&5
3411 # Passes both tests.
3415 rm -f conftest.err conftest.$ac_ext
3418 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3419 rm -f conftest.err conftest.$ac_ext
3420 if $ac_preproc_ok; then
3432 echo "$as_me:$LINENO: result: $CPP" >&5
3433 echo "${ECHO_T}$CPP" >&6
3435 for ac_c_preproc_warn_flag in '' yes
3437 # Use a header file that comes with gcc, so configuring glibc
3438 # with a fresh cross-compiler works.
3439 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3440 # <limits.h> exists even on freestanding compilers.
3441 # On the NeXT, cc -E runs the code through the compiler's parser,
3442 # not just through cpp. "Syntax error" is here to catch this case.
3443 cat >conftest.$ac_ext <<_ACEOF
3444 #line $LINENO "configure"
3447 cat confdefs.h >>conftest.$ac_ext
3448 cat >>conftest.$ac_ext <<_ACEOF
3449 /* end confdefs.h. */
3451 # include <limits.h>
3453 # include <assert.h>
3457 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3458 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3460 grep -v '^ *+' conftest.er1 >conftest.err
3462 cat conftest.err >&5
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); } >/dev/null; then
3465 if test -s conftest.err; then
3466 ac_cpp_err=$ac_c_preproc_warn_flag
3473 if test -z "$ac_cpp_err"; then
3476 echo "$as_me: failed program was:" >&5
3477 sed 's/^/| /' conftest.$ac_ext >&5
3479 # Broken: fails on valid input.
3482 rm -f conftest.err conftest.$ac_ext
3484 # OK, works on sane cases. Now check whether non-existent headers
3485 # can be detected and how.
3486 cat >conftest.$ac_ext <<_ACEOF
3487 #line $LINENO "configure"
3490 cat confdefs.h >>conftest.$ac_ext
3491 cat >>conftest.$ac_ext <<_ACEOF
3492 /* end confdefs.h. */
3493 #include <ac_nonexistent.h>
3495 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3496 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3498 grep -v '^ *+' conftest.er1 >conftest.err
3500 cat conftest.err >&5
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); } >/dev/null; then
3503 if test -s conftest.err; then
3504 ac_cpp_err=$ac_c_preproc_warn_flag
3511 if test -z "$ac_cpp_err"; then
3512 # Broken: success on invalid input.
3515 echo "$as_me: failed program was:" >&5
3516 sed 's/^/| /' conftest.$ac_ext >&5
3518 # Passes both tests.
3522 rm -f conftest.err conftest.$ac_ext
3525 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3526 rm -f conftest.err conftest.$ac_ext
3527 if $ac_preproc_ok; then
3530 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3531 See \`config.log' for more details." >&5
3532 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3533 See \`config.log' for more details." >&2;}
3534 { (exit 1); exit 1; }; }
3538 ac_cpp='$CPP $CPPFLAGS'
3539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3545 echo "$as_me:$LINENO: checking for egrep" >&5
3546 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3547 if test "${ac_cv_prog_egrep+set}" = set; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3550 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3551 then ac_cv_prog_egrep='grep -E'
3552 else ac_cv_prog_egrep='egrep'
3555 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3556 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3557 EGREP=$ac_cv_prog_egrep
3560 if test $ac_cv_c_compiler_gnu = yes; then
3561 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3562 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3563 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3564 echo $ECHO_N "(cached) $ECHO_C" >&6
3566 ac_pattern="Autoconf.*'x'"
3567 cat >conftest.$ac_ext <<_ACEOF
3568 #line $LINENO "configure"
3571 cat confdefs.h >>conftest.$ac_ext
3572 cat >>conftest.$ac_ext <<_ACEOF
3573 /* end confdefs.h. */
3577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3578 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3579 ac_cv_prog_gcc_traditional=yes
3581 ac_cv_prog_gcc_traditional=no
3586 if test $ac_cv_prog_gcc_traditional = no; then
3587 cat >conftest.$ac_ext <<_ACEOF
3588 #line $LINENO "configure"
3591 cat confdefs.h >>conftest.$ac_ext
3592 cat >>conftest.$ac_ext <<_ACEOF
3593 /* end confdefs.h. */
3597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3598 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3599 ac_cv_prog_gcc_traditional=yes
3605 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3606 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3607 if test $ac_cv_prog_gcc_traditional = yes; then
3608 CC="$CC -traditional"
3612 # Check whether --enable-shared or --disable-shared was given.
3613 if test "${enable_shared+set}" = set; then
3614 enableval="$enable_shared"
3615 p=${PACKAGE-default}
3617 yes) enable_shared=yes ;;
3618 no) enable_shared=no ;;
3621 # Look at the argument we got. We use all the common list separators.
3622 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3623 for pkg in $enableval; do
3625 if test "X$pkg" = "X$p"; then
3636 # Check whether --enable-static or --disable-static was given.
3637 if test "${enable_static+set}" = set; then
3638 enableval="$enable_static"
3639 p=${PACKAGE-default}
3641 yes) enable_static=yes ;;
3642 no) enable_static=no ;;
3645 # Look at the argument we got. We use all the common list separators.
3646 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3647 for pkg in $enableval; do
3649 if test "X$pkg" = "X$p"; then
3660 # Check whether --enable-fast-install or --disable-fast-install was given.
3661 if test "${enable_fast_install+set}" = set; then
3662 enableval="$enable_fast_install"
3663 p=${PACKAGE-default}
3665 yes) enable_fast_install=yes ;;
3666 no) enable_fast_install=no ;;
3668 enable_fast_install=no
3669 # Look at the argument we got. We use all the common list separators.
3670 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3671 for pkg in $enableval; do
3673 if test "X$pkg" = "X$p"; then
3674 enable_fast_install=yes
3681 enable_fast_install=yes
3684 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3685 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3686 if test "${lt_cv_path_SED+set}" = set; then
3687 echo $ECHO_N "(cached) $ECHO_C" >&6
3689 # Loop through the user's path and test for sed and gsed.
3690 # Then use that list of sed's as ones to test for truncation.
3691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695 test -z "$as_dir" && as_dir=.
3696 for lt_ac_prog in sed gsed; do
3697 for ac_exec_ext in '' $ac_executable_extensions; do
3698 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3699 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3706 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3707 # along with /bin/sed that truncates output.
3708 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3709 test ! -f $lt_ac_sed && break
3710 cat /dev/null > conftest.in
3712 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3713 # Check for GNU sed and select it if it is found.
3714 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3715 lt_cv_path_SED=$lt_ac_sed
3719 cat conftest.in conftest.in >conftest.tmp
3720 mv conftest.tmp conftest.in
3721 cp conftest.in conftest.nl
3723 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3724 cmp -s conftest.out conftest.nl || break
3725 # 10000 chars as input seems more than enough
3726 test $lt_ac_count -gt 10 && break
3727 lt_ac_count=`expr $lt_ac_count + 1`
3728 if test $lt_ac_count -gt $lt_ac_max; then
3729 lt_ac_max=$lt_ac_count
3730 lt_cv_path_SED=$lt_ac_sed
3738 echo "$as_me:$LINENO: result: $SED" >&5
3739 echo "${ECHO_T}$SED" >&6
3742 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3743 if test "${with_gnu_ld+set}" = set; then
3744 withval="$with_gnu_ld"
3745 test "$withval" = no || with_gnu_ld=yes
3750 if test "$GCC" = yes; then
3751 # Check if gcc -print-prog-name=ld gives a path.
3752 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3753 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3756 # gcc leaves a trailing carriage return which upsets mingw
3757 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3759 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3762 # Accept absolute paths.
3764 re_direlt='/[^/][^/]*/\.\./'
3765 # Canonicalize the path of ld
3766 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3767 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3768 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3770 test -z "$LD" && LD="$ac_prog"
3773 # If it fails, then pretend we aren't using GCC.
3777 # If it is relative, then search for the first ld in PATH.
3781 elif test "$with_gnu_ld" = yes; then
3782 echo "$as_me:$LINENO: checking for GNU ld" >&5
3783 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3785 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3786 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3788 if test "${lt_cv_path_LD+set}" = set; then
3789 echo $ECHO_N "(cached) $ECHO_C" >&6
3791 if test -z "$LD"; then
3792 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3793 for ac_dir in $PATH; do
3795 test -z "$ac_dir" && ac_dir=.
3796 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3797 lt_cv_path_LD="$ac_dir/$ac_prog"
3798 # Check to see if the program is GNU ld. I'd rather use --version,
3799 # but apparently some GNU ld's only accept -v.
3800 # Break only if it was the GNU/non-GNU ld that we prefer.
3801 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3802 *GNU* | *'with BFD'*)
3803 test "$with_gnu_ld" != no && break
3806 test "$with_gnu_ld" != yes && break
3813 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3818 if test -n "$LD"; then
3819 echo "$as_me:$LINENO: result: $LD" >&5
3820 echo "${ECHO_T}$LD" >&6
3822 echo "$as_me:$LINENO: result: no" >&5
3823 echo "${ECHO_T}no" >&6
3825 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3826 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3827 { (exit 1); exit 1; }; }
3828 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3829 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3830 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3831 echo $ECHO_N "(cached) $ECHO_C" >&6
3833 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3834 case `$LD -v 2>&1 </dev/null` in
3835 *GNU* | *'with BFD'*)
3836 lt_cv_prog_gnu_ld=yes
3839 lt_cv_prog_gnu_ld=no
3843 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3844 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3845 with_gnu_ld=$lt_cv_prog_gnu_ld
3848 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3849 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3850 if test "${lt_cv_ld_reload_flag+set}" = set; then
3851 echo $ECHO_N "(cached) $ECHO_C" >&6
3853 lt_cv_ld_reload_flag='-r'
3855 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3856 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3857 reload_flag=$lt_cv_ld_reload_flag
3858 case $reload_flag in
3860 *) reload_flag=" $reload_flag" ;;
3862 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3864 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3865 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3866 if test "${lt_cv_path_NM+set}" = set; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3869 if test -n "$NM"; then
3870 # Let the user override the test.
3873 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3874 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3876 test -z "$ac_dir" && ac_dir=.
3877 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3878 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3879 # Check to see if the nm accepts a BSD-compat flag.
3880 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3881 # nm: unknown option "B" ignored
3882 # Tru64's nm complains that /dev/null is an invalid object file
3883 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3884 */dev/null* | *'Invalid file or object type'*)
3885 lt_cv_path_NM="$tmp_nm -B"
3889 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3891 lt_cv_path_NM="$tmp_nm -p"
3895 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3896 continue # so that we can try to find one that supports BSD flags
3903 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3906 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3907 echo "${ECHO_T}$lt_cv_path_NM" >&6
3910 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3911 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3913 if test "$LN_S" = "ln -s"; then
3914 echo "$as_me:$LINENO: result: yes" >&5
3915 echo "${ECHO_T}yes" >&6
3917 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3918 echo "${ECHO_T}no, using $LN_S" >&6
3921 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3922 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3923 if test "${lt_cv_deplibs_check_method+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 lt_cv_file_magic_cmd='$MAGIC_CMD'
3927 lt_cv_file_magic_test_file=
3928 lt_cv_deplibs_check_method='unknown'
3929 # Need to set the preceding variable on all platforms that support
3930 # interlibrary dependencies.
3931 # 'none' -- dependencies not supported.
3932 # `unknown' -- same as none, but documents that we really don't know.
3933 # 'pass_all' -- all dependencies passed with no checks.
3934 # 'test_compile' -- check by making test program.
3935 # 'file_magic [[regex]]' -- check by looking for files in library path
3936 # which responds to the $file_magic_cmd with a given extended regex.
3937 # If you have `file' or equivalent on your system and you're not sure
3938 # whether `pass_all' will *always* work, you probably want this one.
3942 lt_cv_deplibs_check_method=pass_all
3946 lt_cv_deplibs_check_method=pass_all
3950 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3951 lt_cv_file_magic_cmd='/usr/bin/file -L'
3952 lt_cv_file_magic_test_file=/shlib/libc.so
3955 cygwin* | mingw* | pw32*)
3956 # win32_libid is a shell function defined in ltmain.sh
3957 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3958 lt_cv_file_magic_cmd='win32_libid'
3961 darwin* | rhapsody*)
3962 # this will be overwritten by pass_all, but leave it in just in case
3963 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3964 lt_cv_file_magic_cmd='/usr/bin/file -L'
3966 rhapsody* | darwin1.[012])
3967 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3970 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3973 lt_cv_deplibs_check_method=pass_all
3977 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3980 # Not sure whether the presence of OpenBSD here was a mistake.
3981 # Let's accept both of them until this is cleared up.
3982 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3983 lt_cv_file_magic_cmd=/usr/bin/file
3984 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3988 lt_cv_deplibs_check_method=pass_all
3993 lt_cv_deplibs_check_method=pass_all
3996 hpux10.20* | hpux11*)
3997 lt_cv_file_magic_cmd=/usr/bin/file
4000 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4001 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4004 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]'
4005 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4008 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4009 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4014 irix5* | irix6* | nonstopux*)
4016 irix5* | nonstopux*)
4017 # this will be overridden with pass_all, but let us keep it just in case
4018 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4022 *-32|*"-32 ") libmagic=32-bit;;
4023 *-n32|*"-n32 ") libmagic=N32;;
4024 *-64|*"-64 ") libmagic=64-bit;;
4025 *) libmagic=never-match;;
4027 # this will be overridden with pass_all, but let us keep it just in case
4028 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4031 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4032 lt_cv_deplibs_check_method=pass_all
4035 # This must be Linux ELF.
4038 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh* | x86_64*)
4039 lt_cv_deplibs_check_method=pass_all ;;
4041 # glibc up to 2.1.1 does not perform some relocations on ARM
4042 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4044 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4048 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4049 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4051 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4056 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4057 lt_cv_file_magic_cmd=/usr/bin/file
4058 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4062 lt_cv_deplibs_check_method=unknown
4066 lt_cv_file_magic_cmd=/usr/bin/file
4067 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4068 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4069 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4071 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4075 osf3* | osf4* | osf5*)
4076 # this will be overridden with pass_all, but let us keep it just in case
4077 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4078 lt_cv_file_magic_test_file=/shlib/libc.so
4079 lt_cv_deplibs_check_method=pass_all
4083 lt_cv_deplibs_check_method=pass_all
4087 lt_cv_deplibs_check_method=pass_all
4088 lt_cv_file_magic_test_file=/lib/libc.so
4091 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4092 case $host_vendor in
4094 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]'
4095 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4098 lt_cv_deplibs_check_method=pass_all
4101 lt_cv_file_magic_cmd='/bin/file'
4102 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4105 lt_cv_file_magic_cmd='/bin/file'
4106 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4107 lt_cv_file_magic_test_file=/lib/libc.so
4110 lt_cv_deplibs_check_method=pass_all
4115 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4116 lt_cv_deplibs_check_method=pass_all
4121 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4122 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4123 file_magic_cmd=$lt_cv_file_magic_cmd
4124 deplibs_check_method=$lt_cv_deplibs_check_method
4125 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4130 # If no C compiler was specified, use CC.
4133 # Allow CC to be a program name with arguments.
4136 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4137 if test "${enable_libtool_lock+set}" = set; then
4138 enableval="$enable_libtool_lock"
4141 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4143 # Some flags need to be propagated to the compiler or linker for good
4147 # Find out which ABI we are using.
4148 echo 'int i;' > conftest.$ac_ext
4149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4150 (eval $ac_compile) 2>&5
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); }; then
4154 case `/usr/bin/file conftest.$ac_objext` in
4166 # Find out which ABI we are using.
4167 echo '#line 4167 "configure"' > conftest.$ac_ext
4168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4169 (eval $ac_compile) 2>&5
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); }; then
4173 if test "$lt_cv_prog_gnu_ld" = yes; then
4174 case `/usr/bin/file conftest.$ac_objext` in
4176 LD="${LD-ld} -melf32bsmip"
4179 LD="${LD-ld} -melf32bmipn32"
4182 LD="${LD-ld} -melf64bmip"
4186 case `/usr/bin/file conftest.$ac_objext` in
4202 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4203 # Find out which ABI we are using.
4204 echo 'int i;' > conftest.$ac_ext
4205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4206 (eval $ac_compile) 2>&5
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); }; then
4210 case "`/usr/bin/file conftest.o`" in
4214 LD="${LD-ld} -m elf_i386"
4217 LD="${LD-ld} -m elf32ppclinux"
4220 LD="${LD-ld} -m elf_s390"
4223 LD="${LD-ld} -m elf32_sparc"
4230 LD="${LD-ld} -m elf_x86_64"
4232 ppc*-*linux*|powerpc*-*linux*)
4233 LD="${LD-ld} -m elf64ppc"
4236 LD="${LD-ld} -m elf64_s390"
4239 LD="${LD-ld} -m elf64_sparc"
4249 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4250 SAVE_CFLAGS="$CFLAGS"
4251 CFLAGS="$CFLAGS -belf"
4252 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4253 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4254 if test "${lt_cv_cc_needs_belf+set}" = set; then
4255 echo $ECHO_N "(cached) $ECHO_C" >&6
4258 ac_cpp='$CPP $CPPFLAGS'
4259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4263 cat >conftest.$ac_ext <<_ACEOF
4264 #line $LINENO "configure"
4267 cat confdefs.h >>conftest.$ac_ext
4268 cat >>conftest.$ac_ext <<_ACEOF
4269 /* end confdefs.h. */
4279 rm -f conftest.$ac_objext conftest$ac_exeext
4280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4281 (eval $ac_link) 2>&5
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); } &&
4285 { ac_try='test -s conftest$ac_exeext'
4286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); }; }; then
4291 lt_cv_cc_needs_belf=yes
4293 echo "$as_me: failed program was:" >&5
4294 sed 's/^/| /' conftest.$ac_ext >&5
4296 lt_cv_cc_needs_belf=no
4298 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4300 ac_cpp='$CPP $CPPFLAGS'
4301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4306 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4307 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4308 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4309 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4310 CFLAGS="$SAVE_CFLAGS"
4316 need_locks="$enable_libtool_lock"
4319 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4320 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4321 if test "${ac_cv_header_stdc+set}" = set; then
4322 echo $ECHO_N "(cached) $ECHO_C" >&6
4324 cat >conftest.$ac_ext <<_ACEOF
4325 #line $LINENO "configure"
4328 cat confdefs.h >>conftest.$ac_ext
4329 cat >>conftest.$ac_ext <<_ACEOF
4330 /* end confdefs.h. */
4344 rm -f conftest.$ac_objext
4345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4346 (eval $ac_compile) 2>&5
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); } &&
4350 { ac_try='test -s conftest.$ac_objext'
4351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); }; }; then
4356 ac_cv_header_stdc=yes
4358 echo "$as_me: failed program was:" >&5
4359 sed 's/^/| /' conftest.$ac_ext >&5
4361 ac_cv_header_stdc=no
4363 rm -f conftest.$ac_objext conftest.$ac_ext
4365 if test $ac_cv_header_stdc = yes; then
4366 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4367 cat >conftest.$ac_ext <<_ACEOF
4368 #line $LINENO "configure"
4371 cat confdefs.h >>conftest.$ac_ext
4372 cat >>conftest.$ac_ext <<_ACEOF
4373 /* end confdefs.h. */
4377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4378 $EGREP "memchr" >/dev/null 2>&1; then
4381 ac_cv_header_stdc=no
4387 if test $ac_cv_header_stdc = yes; then
4388 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4389 cat >conftest.$ac_ext <<_ACEOF
4390 #line $LINENO "configure"
4393 cat confdefs.h >>conftest.$ac_ext
4394 cat >>conftest.$ac_ext <<_ACEOF
4395 /* end confdefs.h. */
4399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4400 $EGREP "free" >/dev/null 2>&1; then
4403 ac_cv_header_stdc=no
4409 if test $ac_cv_header_stdc = yes; then
4410 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4411 if test "$cross_compiling" = yes; then
4414 cat >conftest.$ac_ext <<_ACEOF
4415 #line $LINENO "configure"
4418 cat confdefs.h >>conftest.$ac_ext
4419 cat >>conftest.$ac_ext <<_ACEOF
4420 /* end confdefs.h. */
4422 #if ((' ' & 0x0FF) == 0x020)
4423 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4424 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4426 # define ISLOWER(c) \
4427 (('a' <= (c) && (c) <= 'i') \
4428 || ('j' <= (c) && (c) <= 'r') \
4429 || ('s' <= (c) && (c) <= 'z'))
4430 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4433 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4438 for (i = 0; i < 256; i++)
4439 if (XOR (islower (i), ISLOWER (i))
4440 || toupper (i) != TOUPPER (i))
4445 rm -f conftest$ac_exeext
4446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4447 (eval $ac_link) 2>&5
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); }; }; then
4458 echo "$as_me: program exited with status $ac_status" >&5
4459 echo "$as_me: failed program was:" >&5
4460 sed 's/^/| /' conftest.$ac_ext >&5
4463 ac_cv_header_stdc=no
4465 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4469 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4470 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4471 if test $ac_cv_header_stdc = yes; then
4473 cat >>confdefs.h <<\_ACEOF
4474 #define STDC_HEADERS 1
4479 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4489 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4490 inttypes.h stdint.h unistd.h
4492 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4493 echo "$as_me:$LINENO: checking for $ac_header" >&5
4494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4498 cat >conftest.$ac_ext <<_ACEOF
4499 #line $LINENO "configure"
4502 cat confdefs.h >>conftest.$ac_ext
4503 cat >>conftest.$ac_ext <<_ACEOF
4504 /* end confdefs.h. */
4505 $ac_includes_default
4507 #include <$ac_header>
4509 rm -f conftest.$ac_objext
4510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4511 (eval $ac_compile) 2>&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); } &&
4515 { ac_try='test -s conftest.$ac_objext'
4516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); }; }; then
4521 eval "$as_ac_Header=yes"
4523 echo "$as_me: failed program was:" >&5
4524 sed 's/^/| /' conftest.$ac_ext >&5
4526 eval "$as_ac_Header=no"
4528 rm -f conftest.$ac_objext conftest.$ac_ext
4530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4531 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4533 cat >>confdefs.h <<_ACEOF
4534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4543 for ac_header in dlfcn.h
4545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4547 echo "$as_me:$LINENO: checking for $ac_header" >&5
4548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4550 echo $ECHO_N "(cached) $ECHO_C" >&6
4552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4555 # Is the header compilable?
4556 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4557 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4558 cat >conftest.$ac_ext <<_ACEOF
4559 #line $LINENO "configure"
4562 cat confdefs.h >>conftest.$ac_ext
4563 cat >>conftest.$ac_ext <<_ACEOF
4564 /* end confdefs.h. */
4565 $ac_includes_default
4566 #include <$ac_header>
4568 rm -f conftest.$ac_objext
4569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4570 (eval $ac_compile) 2>&5
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); } &&
4574 { ac_try='test -s conftest.$ac_objext'
4575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); }; }; then
4580 ac_header_compiler=yes
4582 echo "$as_me: failed program was:" >&5
4583 sed 's/^/| /' conftest.$ac_ext >&5
4585 ac_header_compiler=no
4587 rm -f conftest.$ac_objext conftest.$ac_ext
4588 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4589 echo "${ECHO_T}$ac_header_compiler" >&6
4591 # Is the header present?
4592 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4594 cat >conftest.$ac_ext <<_ACEOF
4595 #line $LINENO "configure"
4598 cat confdefs.h >>conftest.$ac_ext
4599 cat >>conftest.$ac_ext <<_ACEOF
4600 /* end confdefs.h. */
4601 #include <$ac_header>
4603 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4604 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4606 grep -v '^ *+' conftest.er1 >conftest.err
4608 cat conftest.err >&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); } >/dev/null; then
4611 if test -s conftest.err; then
4612 ac_cpp_err=$ac_c_preproc_warn_flag
4619 if test -z "$ac_cpp_err"; then
4620 ac_header_preproc=yes
4622 echo "$as_me: failed program was:" >&5
4623 sed 's/^/| /' conftest.$ac_ext >&5
4625 ac_header_preproc=no
4627 rm -f conftest.err conftest.$ac_ext
4628 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4629 echo "${ECHO_T}$ac_header_preproc" >&6
4631 # So? What about this header?
4632 case $ac_header_compiler:$ac_header_preproc in
4634 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4635 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4637 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4640 ## ------------------------------------ ##
4641 ## Report this to bug-autoconf@gnu.org. ##
4642 ## ------------------------------------ ##
4645 sed "s/^/$as_me: WARNING: /" >&2
4648 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4649 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4650 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4651 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4653 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4656 ## ------------------------------------ ##
4657 ## Report this to bug-autoconf@gnu.org. ##
4658 ## ------------------------------------ ##
4661 sed "s/^/$as_me: WARNING: /" >&2
4664 echo "$as_me:$LINENO: checking for $ac_header" >&5
4665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4666 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4667 echo $ECHO_N "(cached) $ECHO_C" >&6
4669 eval "$as_ac_Header=$ac_header_preproc"
4671 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4672 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4675 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4676 cat >>confdefs.h <<_ACEOF
4677 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4685 ac_cpp='$CXXCPP $CPPFLAGS'
4686 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4687 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4688 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4689 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4690 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4691 if test -z "$CXXCPP"; then
4692 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4695 # Double quotes because CXXCPP needs to be expanded
4696 for CXXCPP in "$CXX -E" "/lib/cpp"
4699 for ac_cxx_preproc_warn_flag in '' yes
4701 # Use a header file that comes with gcc, so configuring glibc
4702 # with a fresh cross-compiler works.
4703 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4704 # <limits.h> exists even on freestanding compilers.
4705 # On the NeXT, cc -E runs the code through the compiler's parser,
4706 # not just through cpp. "Syntax error" is here to catch this case.
4707 cat >conftest.$ac_ext <<_ACEOF
4708 #line $LINENO "configure"
4711 cat confdefs.h >>conftest.$ac_ext
4712 cat >>conftest.$ac_ext <<_ACEOF
4713 /* end confdefs.h. */
4715 # include <limits.h>
4717 # include <assert.h>
4721 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4722 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4724 grep -v '^ *+' conftest.er1 >conftest.err
4726 cat conftest.err >&5
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); } >/dev/null; then
4729 if test -s conftest.err; then
4730 ac_cpp_err=$ac_cxx_preproc_warn_flag
4737 if test -z "$ac_cpp_err"; then
4740 echo "$as_me: failed program was:" >&5
4741 sed 's/^/| /' conftest.$ac_ext >&5
4743 # Broken: fails on valid input.
4746 rm -f conftest.err conftest.$ac_ext
4748 # OK, works on sane cases. Now check whether non-existent headers
4749 # can be detected and how.
4750 cat >conftest.$ac_ext <<_ACEOF
4751 #line $LINENO "configure"
4754 cat confdefs.h >>conftest.$ac_ext
4755 cat >>conftest.$ac_ext <<_ACEOF
4756 /* end confdefs.h. */
4757 #include <ac_nonexistent.h>
4759 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4760 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4762 grep -v '^ *+' conftest.er1 >conftest.err
4764 cat conftest.err >&5
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); } >/dev/null; then
4767 if test -s conftest.err; then
4768 ac_cpp_err=$ac_cxx_preproc_warn_flag
4775 if test -z "$ac_cpp_err"; then
4776 # Broken: success on invalid input.
4779 echo "$as_me: failed program was:" >&5
4780 sed 's/^/| /' conftest.$ac_ext >&5
4782 # Passes both tests.
4786 rm -f conftest.err conftest.$ac_ext
4789 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4790 rm -f conftest.err conftest.$ac_ext
4791 if $ac_preproc_ok; then
4796 ac_cv_prog_CXXCPP=$CXXCPP
4799 CXXCPP=$ac_cv_prog_CXXCPP
4801 ac_cv_prog_CXXCPP=$CXXCPP
4803 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4804 echo "${ECHO_T}$CXXCPP" >&6
4806 for ac_cxx_preproc_warn_flag in '' yes
4808 # Use a header file that comes with gcc, so configuring glibc
4809 # with a fresh cross-compiler works.
4810 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4811 # <limits.h> exists even on freestanding compilers.
4812 # On the NeXT, cc -E runs the code through the compiler's parser,
4813 # not just through cpp. "Syntax error" is here to catch this case.
4814 cat >conftest.$ac_ext <<_ACEOF
4815 #line $LINENO "configure"
4818 cat confdefs.h >>conftest.$ac_ext
4819 cat >>conftest.$ac_ext <<_ACEOF
4820 /* end confdefs.h. */
4822 # include <limits.h>
4824 # include <assert.h>
4828 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4829 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4831 grep -v '^ *+' conftest.er1 >conftest.err
4833 cat conftest.err >&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); } >/dev/null; then
4836 if test -s conftest.err; then
4837 ac_cpp_err=$ac_cxx_preproc_warn_flag
4844 if test -z "$ac_cpp_err"; then
4847 echo "$as_me: failed program was:" >&5
4848 sed 's/^/| /' conftest.$ac_ext >&5
4850 # Broken: fails on valid input.
4853 rm -f conftest.err conftest.$ac_ext
4855 # OK, works on sane cases. Now check whether non-existent headers
4856 # can be detected and how.
4857 cat >conftest.$ac_ext <<_ACEOF
4858 #line $LINENO "configure"
4861 cat confdefs.h >>conftest.$ac_ext
4862 cat >>conftest.$ac_ext <<_ACEOF
4863 /* end confdefs.h. */
4864 #include <ac_nonexistent.h>
4866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4867 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4869 grep -v '^ *+' conftest.er1 >conftest.err
4871 cat conftest.err >&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } >/dev/null; then
4874 if test -s conftest.err; then
4875 ac_cpp_err=$ac_cxx_preproc_warn_flag
4882 if test -z "$ac_cpp_err"; then
4883 # Broken: success on invalid input.
4886 echo "$as_me: failed program was:" >&5
4887 sed 's/^/| /' conftest.$ac_ext >&5
4889 # Passes both tests.
4893 rm -f conftest.err conftest.$ac_ext
4896 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4897 rm -f conftest.err conftest.$ac_ext
4898 if $ac_preproc_ok; then
4901 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4902 See \`config.log' for more details." >&5
4903 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4904 See \`config.log' for more details." >&2;}
4905 { (exit 1); exit 1; }; }
4909 ac_cpp='$CXXCPP $CPPFLAGS'
4910 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4911 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4912 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4916 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4917 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4918 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4919 if test -n "$ac_tool_prefix"; then
4920 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4922 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4923 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4924 echo "$as_me:$LINENO: checking for $ac_word" >&5
4925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4926 if test "${ac_cv_prog_F77+set}" = set; then
4927 echo $ECHO_N "(cached) $ECHO_C" >&6
4929 if test -n "$F77"; then
4930 ac_cv_prog_F77="$F77" # Let the user override the test.
4932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936 test -z "$as_dir" && as_dir=.
4937 for ac_exec_ext in '' $ac_executable_extensions; do
4938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4939 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4949 if test -n "$F77"; then
4950 echo "$as_me:$LINENO: result: $F77" >&5
4951 echo "${ECHO_T}$F77" >&6
4953 echo "$as_me:$LINENO: result: no" >&5
4954 echo "${ECHO_T}no" >&6
4957 test -n "$F77" && break
4960 if test -z "$F77"; then
4962 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4964 # Extract the first word of "$ac_prog", so it can be a program name with args.
4965 set dummy $ac_prog; ac_word=$2
4966 echo "$as_me:$LINENO: checking for $ac_word" >&5
4967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4968 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4969 echo $ECHO_N "(cached) $ECHO_C" >&6
4971 if test -n "$ac_ct_F77"; then
4972 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978 test -z "$as_dir" && as_dir=.
4979 for ac_exec_ext in '' $ac_executable_extensions; do
4980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4981 ac_cv_prog_ac_ct_F77="$ac_prog"
4982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4990 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4991 if test -n "$ac_ct_F77"; then
4992 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4993 echo "${ECHO_T}$ac_ct_F77" >&6
4995 echo "$as_me:$LINENO: result: no" >&5
4996 echo "${ECHO_T}no" >&6
4999 test -n "$ac_ct_F77" && break
5006 # Provide some information about the compiler.
5007 echo "$as_me:5007:" \
5008 "checking for Fortran 77 compiler version" >&5
5009 ac_compiler=`set X $ac_compile; echo $2`
5010 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5011 (eval $ac_compiler --version </dev/null >&5) 2>&5
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); }
5015 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5016 (eval $ac_compiler -v </dev/null >&5) 2>&5
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }
5020 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5021 (eval $ac_compiler -V </dev/null >&5) 2>&5
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); }
5026 # If we don't use `.F' as extension, the preprocessor is not run on the
5030 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5031 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5032 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5033 echo $ECHO_N "(cached) $ECHO_C" >&6
5035 cat >conftest.$ac_ext <<_ACEOF
5043 rm -f conftest.$ac_objext
5044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5045 (eval $ac_compile) 2>&5
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); } &&
5049 { ac_try='test -s conftest.$ac_objext'
5050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); }; }; then
5057 echo "$as_me: failed program was:" >&5
5058 sed 's/^/| /' conftest.$ac_ext >&5
5062 rm -f conftest.$ac_objext conftest.$ac_ext
5063 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5066 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5067 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5069 G77=`test $ac_compiler_gnu = yes && echo yes`
5070 ac_test_FFLAGS=${FFLAGS+set}
5071 ac_save_FFLAGS=$FFLAGS
5073 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5074 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5075 if test "${ac_cv_prog_f77_g+set}" = set; then
5076 echo $ECHO_N "(cached) $ECHO_C" >&6
5079 cat >conftest.$ac_ext <<_ACEOF
5084 rm -f conftest.$ac_objext
5085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5086 (eval $ac_compile) 2>&5
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); } &&
5090 { ac_try='test -s conftest.$ac_objext'
5091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); }; }; then
5096 ac_cv_prog_f77_g=yes
5098 echo "$as_me: failed program was:" >&5
5099 sed 's/^/| /' conftest.$ac_ext >&5
5103 rm -f conftest.$ac_objext conftest.$ac_ext
5106 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5107 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5108 if test "$ac_test_FFLAGS" = set; then
5109 FFLAGS=$ac_save_FFLAGS
5110 elif test $ac_cv_prog_f77_g = yes; then
5111 if test "$G77" = yes; then
5117 if test "$G77" = yes; then
5124 ac_cpp='$CPP $CPPFLAGS'
5125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5131 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5133 # find the maximum length of command line arguments
5134 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5135 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5136 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5137 echo $ECHO_N "(cached) $ECHO_C" >&6
5144 # On DJGPP, this test can blow up pretty badly due to problems in libc
5145 # (any single argument exceeding 2000 bytes causes a buffer overrun
5146 # during glob expansion). Even if it were fixed, the result of this
5147 # check would be larger than it should be.
5148 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5152 # Under GNU Hurd, this test is not required because there is
5153 # no limit to the length of command line arguments.
5154 # Libtool will interpret -1 as no limit whatsoever
5155 lt_cv_sys_max_cmd_len=-1;
5159 # On Win9x/ME, this test blows up -- it succeeds, but takes
5160 # about 5 minutes as the teststring grows exponentially.
5161 # Worse, since 9x/ME are not pre-emptively multitasking,
5162 # you end up with a "frozen" computer, even though with patience
5163 # the test eventually succeeds (with a max line length of 256k).
5164 # Instead, let's just punt: use the minimum linelength reported by
5165 # all of the supported platforms: 8192 (on NT/2K/XP).
5166 lt_cv_sys_max_cmd_len=8192;
5170 # If test is not a shell built-in, we'll probably end up computing a
5171 # maximum length that is only half of the actual maximum length, but
5173 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5174 = "XX$testring") >/dev/null 2>&1 &&
5175 new_result=`expr "X$testring" : ".*" 2>&1` &&
5176 lt_cv_sys_max_cmd_len=$new_result &&
5177 test $i != 17 # 1/2 MB should be enough
5180 testring=$testring$testring
5183 # Add a significant safety factor because C++ compilers can tack on massive
5184 # amounts of additional arguments before passing them to the linker.
5185 # It appears as though 1/2 is a usable value.
5186 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5192 if test -n $lt_cv_sys_max_cmd_len ; then
5193 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5194 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5196 echo "$as_me:$LINENO: result: none" >&5
5197 echo "${ECHO_T}none" >&6
5203 # Check for command to grab the raw symbol name followed by C symbol from nm.
5204 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5205 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5206 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5207 echo $ECHO_N "(cached) $ECHO_C" >&6
5210 # These are sane defaults that work on at least a few old systems.
5211 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5213 # Character class describing NM global symbol codes.
5214 symcode='[BCDEGRST]'
5216 # Regexp to match symbols that can be accessed directly from C.
5217 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5219 # Transform the above into a raw symbol and a C symbol.
5220 symxfrm='\1 \2\3 \3'
5222 # Transform an extracted symbol line into a proper C declaration
5223 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5225 # Transform an extracted symbol line into symbol name and symbol address
5226 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5228 # Define system-specific variables.
5233 cygwin* | mingw* | pw32*)
5234 symcode='[ABCDGISTW]'
5236 hpux*) # Its linker distinguishes data from code symbols
5237 if test "$host_cpu" = ia64; then
5238 symcode='[ABCDEGRST]'
5240 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5241 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5244 symcode='[BCDEGRST]'
5247 symcode='[BCDEGQRST]'
5257 # Handle CRLF in mingw tool chain
5261 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5265 # If we're using GNU nm, then use its standard symbol codes.
5266 case `$NM -V 2>&1` in
5267 *GNU* | *'with BFD'*)
5268 symcode='[ABCDGIRSTW]' ;;
5271 # Try without a prefix undercore, then with it.
5272 for ac_symprfx in "" "_"; do
5274 # Write the raw and C identifiers.
5275 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5277 # Check to see that the pipe works correctly.
5281 cat > conftest.$ac_ext <<EOF
5286 void nm_test_func(){}
5290 int main(){nm_test_var='a';nm_test_func();return(0);}
5293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5294 (eval $ac_compile) 2>&5
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); }; then
5298 # Now try to grab the symbols.
5300 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5301 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); } && test -s "$nlist"; then
5305 # Try sorting and uniquifying the output.
5306 if sort "$nlist" | uniq > "$nlist"T; then
5307 mv -f "$nlist"T "$nlist"
5312 # Make sure that we snagged all the symbols we need.
5313 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5314 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5315 cat <<EOF > conftest.$ac_ext
5321 # Now generate the symbol file.
5322 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5324 cat <<EOF >> conftest.$ac_ext
5325 #if defined (__STDC__) && __STDC__
5326 # define lt_ptr_t void *
5328 # define lt_ptr_t char *
5332 /* The mapping between symbol names and symbols. */
5337 lt_preloaded_symbols[] =
5340 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5341 cat <<\EOF >> conftest.$ac_ext
5349 # Now try linking the two files.
5350 mv conftest.$ac_objext conftstm.$ac_objext
5351 lt_save_LIBS="$LIBS"
5352 lt_save_CFLAGS="$CFLAGS"
5353 LIBS="conftstm.$ac_objext"
5354 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5356 (eval $ac_link) 2>&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5362 LIBS="$lt_save_LIBS"
5363 CFLAGS="$lt_save_CFLAGS"
5365 echo "cannot find nm_test_func in $nlist" >&5
5368 echo "cannot find nm_test_var in $nlist" >&5
5371 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5374 echo "$progname: failed program was:" >&5
5375 cat conftest.$ac_ext >&5
5377 rm -f conftest* conftst*
5379 # Do not use the global_symbol_pipe unless it works.
5380 if test "$pipe_works" = yes; then
5383 lt_cv_sys_global_symbol_pipe=
5389 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5390 lt_cv_sys_global_symbol_to_cdecl=
5392 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5393 echo "$as_me:$LINENO: result: failed" >&5
5394 echo "${ECHO_T}failed" >&6
5396 echo "$as_me:$LINENO: result: ok" >&5
5397 echo "${ECHO_T}ok" >&6
5400 echo "$as_me:$LINENO: checking for objdir" >&5
5401 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5402 if test "${lt_cv_objdir+set}" = set; then
5403 echo $ECHO_N "(cached) $ECHO_C" >&6
5405 rm -f .libs 2>/dev/null
5406 mkdir .libs 2>/dev/null
5407 if test -d .libs; then
5410 # MS-DOS does not allow filenames that begin with a dot.
5413 rmdir .libs 2>/dev/null
5415 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5416 echo "${ECHO_T}$lt_cv_objdir" >&6
5417 objdir=$lt_cv_objdir
5425 # AIX sometimes has problems with the GCC collect2 program. For some
5426 # reason, if we set the COLLECT_NAMES environment variable, the problems
5427 # vanish in a puff of smoke.
5428 if test "X${COLLECT_NAMES+set}" != Xset; then
5430 export COLLECT_NAMES
5435 # Sed substitution that helps us do robust quoting. It backslashifies
5436 # metacharacters that are still active within double-quoted strings.
5437 Xsed='sed -e s/^X//'
5438 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5440 # Same as above, but do not quote variable references.
5441 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5443 # Sed substitution to delay expansion of an escaped shell variable in a
5444 # double_quote_subst'ed string.
5445 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5447 # Sed substitution to avoid accidental globbing in evaled expressions
5448 no_glob_subst='s/\*/\\\*/g'
5454 default_ofile=libtool
5455 can_build_shared=yes
5457 # All known linkers require a `.a' archive for static linking (except M$VC,
5458 # which needs '.lib').
5460 ltmain="$ac_aux_dir/ltmain.sh"
5461 ofile="$default_ofile"
5462 with_gnu_ld="$lt_cv_prog_gnu_ld"
5464 if test -n "$ac_tool_prefix"; then
5465 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5466 set dummy ${ac_tool_prefix}ar; ac_word=$2
5467 echo "$as_me:$LINENO: checking for $ac_word" >&5
5468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5469 if test "${ac_cv_prog_AR+set}" = set; then
5470 echo $ECHO_N "(cached) $ECHO_C" >&6
5472 if test -n "$AR"; then
5473 ac_cv_prog_AR="$AR" # Let the user override the test.
5475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5479 test -z "$as_dir" && as_dir=.
5480 for ac_exec_ext in '' $ac_executable_extensions; do
5481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5482 ac_cv_prog_AR="${ac_tool_prefix}ar"
5483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5492 if test -n "$AR"; then
5493 echo "$as_me:$LINENO: result: $AR" >&5
5494 echo "${ECHO_T}$AR" >&6
5496 echo "$as_me:$LINENO: result: no" >&5
5497 echo "${ECHO_T}no" >&6
5501 if test -z "$ac_cv_prog_AR"; then
5503 # Extract the first word of "ar", so it can be a program name with args.
5504 set dummy ar; ac_word=$2
5505 echo "$as_me:$LINENO: checking for $ac_word" >&5
5506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5507 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5508 echo $ECHO_N "(cached) $ECHO_C" >&6
5510 if test -n "$ac_ct_AR"; then
5511 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517 test -z "$as_dir" && as_dir=.
5518 for ac_exec_ext in '' $ac_executable_extensions; do
5519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5520 ac_cv_prog_ac_ct_AR="ar"
5521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5527 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5530 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5531 if test -n "$ac_ct_AR"; then
5532 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5533 echo "${ECHO_T}$ac_ct_AR" >&6
5535 echo "$as_me:$LINENO: result: no" >&5
5536 echo "${ECHO_T}no" >&6
5544 if test -n "$ac_tool_prefix"; then
5545 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5546 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5547 echo "$as_me:$LINENO: checking for $ac_word" >&5
5548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5549 if test "${ac_cv_prog_RANLIB+set}" = set; then
5550 echo $ECHO_N "(cached) $ECHO_C" >&6
5552 if test -n "$RANLIB"; then
5553 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559 test -z "$as_dir" && as_dir=.
5560 for ac_exec_ext in '' $ac_executable_extensions; do
5561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5562 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5571 RANLIB=$ac_cv_prog_RANLIB
5572 if test -n "$RANLIB"; then
5573 echo "$as_me:$LINENO: result: $RANLIB" >&5
5574 echo "${ECHO_T}$RANLIB" >&6
5576 echo "$as_me:$LINENO: result: no" >&5
5577 echo "${ECHO_T}no" >&6
5581 if test -z "$ac_cv_prog_RANLIB"; then
5582 ac_ct_RANLIB=$RANLIB
5583 # Extract the first word of "ranlib", so it can be a program name with args.
5584 set dummy ranlib; ac_word=$2
5585 echo "$as_me:$LINENO: checking for $ac_word" >&5
5586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5587 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5588 echo $ECHO_N "(cached) $ECHO_C" >&6
5590 if test -n "$ac_ct_RANLIB"; then
5591 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5597 test -z "$as_dir" && as_dir=.
5598 for ac_exec_ext in '' $ac_executable_extensions; do
5599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5600 ac_cv_prog_ac_ct_RANLIB="ranlib"
5601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5607 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5610 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5611 if test -n "$ac_ct_RANLIB"; then
5612 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5613 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5615 echo "$as_me:$LINENO: result: no" >&5
5616 echo "${ECHO_T}no" >&6
5619 RANLIB=$ac_ct_RANLIB
5621 RANLIB="$ac_cv_prog_RANLIB"
5624 if test -n "$ac_tool_prefix"; then
5625 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5626 set dummy ${ac_tool_prefix}strip; ac_word=$2
5627 echo "$as_me:$LINENO: checking for $ac_word" >&5
5628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5629 if test "${ac_cv_prog_STRIP+set}" = set; then
5630 echo $ECHO_N "(cached) $ECHO_C" >&6
5632 if test -n "$STRIP"; then
5633 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639 test -z "$as_dir" && as_dir=.
5640 for ac_exec_ext in '' $ac_executable_extensions; do
5641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5642 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5651 STRIP=$ac_cv_prog_STRIP
5652 if test -n "$STRIP"; then
5653 echo "$as_me:$LINENO: result: $STRIP" >&5
5654 echo "${ECHO_T}$STRIP" >&6
5656 echo "$as_me:$LINENO: result: no" >&5
5657 echo "${ECHO_T}no" >&6
5661 if test -z "$ac_cv_prog_STRIP"; then
5663 # Extract the first word of "strip", so it can be a program name with args.
5664 set dummy strip; ac_word=$2
5665 echo "$as_me:$LINENO: checking for $ac_word" >&5
5666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5667 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5668 echo $ECHO_N "(cached) $ECHO_C" >&6
5670 if test -n "$ac_ct_STRIP"; then
5671 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677 test -z "$as_dir" && as_dir=.
5678 for ac_exec_ext in '' $ac_executable_extensions; do
5679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5680 ac_cv_prog_ac_ct_STRIP="strip"
5681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5687 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5690 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5691 if test -n "$ac_ct_STRIP"; then
5692 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5693 echo "${ECHO_T}$ac_ct_STRIP" >&6
5695 echo "$as_me:$LINENO: result: no" >&5
5696 echo "${ECHO_T}no" >&6
5701 STRIP="$ac_cv_prog_STRIP"
5706 old_CFLAGS="$CFLAGS"
5708 # Set sane defaults for various variables
5709 test -z "$AR" && AR=ar
5710 test -z "$AR_FLAGS" && AR_FLAGS=cru
5711 test -z "$AS" && AS=as
5712 test -z "$CC" && CC=cc
5713 test -z "$LTCC" && LTCC=$CC
5714 test -z "$DLLTOOL" && DLLTOOL=dlltool
5715 test -z "$LD" && LD=ld
5716 test -z "$LN_S" && LN_S="ln -s"
5717 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5718 test -z "$NM" && NM=nm
5719 test -z "$SED" && SED=sed
5720 test -z "$OBJDUMP" && OBJDUMP=objdump
5721 test -z "$RANLIB" && RANLIB=:
5722 test -z "$STRIP" && STRIP=:
5723 test -z "$ac_objext" && ac_objext=o
5725 # Determine commands to create old-style static archives.
5726 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5727 old_postinstall_cmds='chmod 644 $oldlib'
5728 old_postuninstall_cmds=
5730 if test -n "$RANLIB"; then
5733 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5736 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5739 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5742 # Only perform the check for file, if the check method requires it
5743 case $deplibs_check_method in
5745 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5746 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5747 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5748 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5749 echo $ECHO_N "(cached) $ECHO_C" >&6
5753 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5756 lt_save_MAGIC_CMD="$MAGIC_CMD"
5757 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5758 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5759 for ac_dir in $ac_dummy; do
5761 test -z "$ac_dir" && ac_dir=.
5762 if test -f $ac_dir/${ac_tool_prefix}file; then
5763 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5764 if test -n "$file_magic_test_file"; then
5765 case $deplibs_check_method in
5767 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5768 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5769 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5770 $EGREP "$file_magic_regex" > /dev/null; then
5775 *** Warning: the command libtool uses to detect shared libraries,
5776 *** $file_magic_cmd, produces output that libtool cannot recognize.
5777 *** The result is that libtool may fail to recognize shared libraries
5778 *** as such. This will affect the creation of libtool libraries that
5779 *** depend on shared libraries, but programs linked with such libtool
5780 *** libraries will work regardless of this problem. Nevertheless, you
5781 *** may want to report the problem to your system manager and/or to
5782 *** bug-libtool@gnu.org
5792 MAGIC_CMD="$lt_save_MAGIC_CMD"
5797 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5798 if test -n "$MAGIC_CMD"; then
5799 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5800 echo "${ECHO_T}$MAGIC_CMD" >&6
5802 echo "$as_me:$LINENO: result: no" >&5
5803 echo "${ECHO_T}no" >&6
5806 if test -z "$lt_cv_path_MAGIC_CMD"; then
5807 if test -n "$ac_tool_prefix"; then
5808 echo "$as_me:$LINENO: checking for file" >&5
5809 echo $ECHO_N "checking for file... $ECHO_C" >&6
5810 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5811 echo $ECHO_N "(cached) $ECHO_C" >&6
5815 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5818 lt_save_MAGIC_CMD="$MAGIC_CMD"
5819 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5820 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5821 for ac_dir in $ac_dummy; do
5823 test -z "$ac_dir" && ac_dir=.
5824 if test -f $ac_dir/file; then
5825 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5826 if test -n "$file_magic_test_file"; then
5827 case $deplibs_check_method in
5829 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5830 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5831 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5832 $EGREP "$file_magic_regex" > /dev/null; then
5837 *** Warning: the command libtool uses to detect shared libraries,
5838 *** $file_magic_cmd, produces output that libtool cannot recognize.
5839 *** The result is that libtool may fail to recognize shared libraries
5840 *** as such. This will affect the creation of libtool libraries that
5841 *** depend on shared libraries, but programs linked with such libtool
5842 *** libraries will work regardless of this problem. Nevertheless, you
5843 *** may want to report the problem to your system manager and/or to
5844 *** bug-libtool@gnu.org
5854 MAGIC_CMD="$lt_save_MAGIC_CMD"
5859 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5860 if test -n "$MAGIC_CMD"; then
5861 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5862 echo "${ECHO_T}$MAGIC_CMD" >&6
5864 echo "$as_me:$LINENO: result: no" >&5
5865 echo "${ECHO_T}no" >&6
5880 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5881 if test "${enable_libtool_lock+set}" = set; then
5882 enableval="$enable_libtool_lock"
5885 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5888 # Check whether --with-pic or --without-pic was given.
5889 if test "${with_pic+set}" = set; then
5895 test -z "$pic_mode" && pic_mode=default
5897 # Use C for the default configuration in the libtool script
5901 ac_cpp='$CPP $CPPFLAGS'
5902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5907 # Source file extension for C test sources.
5910 # Object file extension for compiled C test sources.
5914 # Code to be used in simple compile tests
5915 lt_simple_compile_test_code="int some_variable = 0;\n"
5917 # Code to be used in simple link tests
5918 lt_simple_link_test_code='int main(){return(0);}\n'
5921 # If no C compiler was specified, use CC.
5924 # Allow CC to be a program name with arguments.
5929 # Check for any special shared library compilation flags.
5932 if test "$GCC" = no; then
5935 lt_prog_cc_shlib='-belf'
5939 if test -n "$lt_prog_cc_shlib"; then
5940 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5941 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5942 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5944 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5945 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5946 lt_cv_prog_cc_can_build_shared=no
5952 # Check to make sure the static flag actually works.
5954 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5955 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5956 if test "${lt_prog_compiler_static_works+set}" = set; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
5959 lt_prog_compiler_static_works=no
5960 save_LDFLAGS="$LDFLAGS"
5961 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5962 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5963 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5964 # The compiler can only warn and ignore the option if not recognized
5965 # So say no if there are warnings
5966 if test -s conftest.err; then
5967 # Append any errors to the config.log.
5968 cat conftest.err 1>&5
5970 lt_prog_compiler_static_works=yes
5974 LDFLAGS="$save_LDFLAGS"
5977 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5978 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5980 if test x"$lt_prog_compiler_static_works" = xyes; then
5983 lt_prog_compiler_static=
5989 lt_prog_compiler_no_builtin_flag=
5991 if test "$GCC" = yes; then
5992 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5994 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5995 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5996 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5997 echo $ECHO_N "(cached) $ECHO_C" >&6
5999 lt_cv_prog_compiler_rtti_exceptions=no
6000 ac_outfile=conftest.$ac_objext
6001 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6002 lt_compiler_flag="-fno-rtti -fno-exceptions"
6003 # Insert the option either (1) after the last *FLAGS variable, or
6004 # (2) before a word containing "conftest.", or (3) at the end.
6005 # Note that $ac_compile itself does not contain backslashes and begins
6006 # with a dollar sign (not a hyphen), so the echo should work correctly.
6007 # The option is referenced via a variable to avoid confusing sed.
6008 lt_compile=`echo "$ac_compile" | $SED \
6009 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6010 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6011 -e 's:$: $lt_compiler_flag:'`
6012 (eval echo "\"\$as_me:6012: $lt_compile\"" >&5)
6013 (eval "$lt_compile" 2>conftest.err)
6015 cat conftest.err >&5
6016 echo "$as_me:6016: \$? = $ac_status" >&5
6017 if (exit $ac_status) && test -s "$ac_outfile"; then
6018 # The compiler can only warn and ignore the option if not recognized
6019 # So say no if there are warnings
6020 if test ! -s conftest.err; then
6021 lt_cv_prog_compiler_rtti_exceptions=yes
6027 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6028 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6030 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6031 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6038 lt_prog_compiler_wl=
6039 lt_prog_compiler_pic=
6040 lt_prog_compiler_static=
6042 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6043 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6045 if test "$GCC" = yes; then
6046 lt_prog_compiler_wl='-Wl,'
6047 lt_prog_compiler_static='-static'
6051 # All AIX code is PIC.
6052 if test "$host_cpu" = ia64; then
6053 # AIX 5 now supports IA64 processor
6054 lt_prog_compiler_static='-Bstatic'
6059 # FIXME: we need at least 68020 code to build shared libraries, but
6060 # adding the `-m68020' flag to GCC prevents building anything better,
6062 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6065 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6066 # PIC is the default for these OSes.
6069 mingw* | pw32* | os2*)
6070 # This hack is so that the source file can tell whether it is being
6071 # built for inclusion in a dll (and should export symbols for example).
6072 lt_prog_compiler_pic='-DDLL_EXPORT'
6075 darwin* | rhapsody*)
6076 # PIC is the default on this platform
6077 # Common symbols not allowed in MH_DYLIB files
6078 lt_prog_compiler_pic='-fno-common'
6082 # Just because we use GCC doesn't mean we suddenly get shared libraries
6083 # on systems that don't support them.
6084 lt_prog_compiler_can_build_shared=no
6089 if test -d /usr/nec; then
6090 lt_prog_compiler_pic=-Kconform_pic
6095 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6102 lt_prog_compiler_pic='-fPIC'
6108 lt_prog_compiler_pic='-fPIC'
6112 # PORTME Check for flag to pass linker flags through the system compiler.
6115 lt_prog_compiler_wl='-Wl,'
6116 if test "$host_cpu" = ia64; then
6117 # AIX 5 now supports IA64 processor
6118 lt_prog_compiler_static='-Bstatic'
6120 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6124 mingw* | pw32* | os2*)
6125 # This hack is so that the source file can tell whether it is being
6126 # built for inclusion in a dll (and should export symbols for example).
6127 lt_prog_compiler_pic='-DDLL_EXPORT'
6130 hpux9* | hpux10* | hpux11*)
6131 lt_prog_compiler_wl='-Wl,'
6132 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6139 lt_prog_compiler_pic='+Z'
6142 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6143 lt_prog_compiler_static='${wl}-a ${wl}archive'
6146 irix5* | irix6* | nonstopux*)
6147 lt_prog_compiler_wl='-Wl,'
6148 # PIC (with -KPIC) is the default.
6149 lt_prog_compiler_static='-non_shared'
6153 lt_prog_compiler_pic='-KPIC'
6154 lt_prog_compiler_static='-Bstatic'
6160 lt_prog_compiler_wl='-Wl,'
6161 lt_prog_compiler_pic='-KPIC'
6162 lt_prog_compiler_static='-static'
6165 lt_prog_compiler_wl='-Wl,'
6166 # All Alpha code is PIC.
6167 lt_prog_compiler_static='-non_shared'
6172 osf3* | osf4* | osf5*)
6173 lt_prog_compiler_wl='-Wl,'
6174 # All OSF/1 code is PIC.
6175 lt_prog_compiler_static='-non_shared'
6179 lt_prog_compiler_pic='-Kpic'
6180 lt_prog_compiler_static='-dn'
6184 lt_prog_compiler_wl='-Wl,'
6185 lt_prog_compiler_pic='-KPIC'
6186 lt_prog_compiler_static='-Bstatic'
6190 lt_prog_compiler_wl='-Qoption ld '
6191 lt_prog_compiler_pic='-PIC'
6192 lt_prog_compiler_static='-Bstatic'
6195 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6196 lt_prog_compiler_wl='-Wl,'
6197 lt_prog_compiler_pic='-KPIC'
6198 lt_prog_compiler_static='-Bstatic'
6202 if test -d /usr/nec ;then
6203 lt_prog_compiler_pic='-Kconform_pic'
6204 lt_prog_compiler_static='-Bstatic'
6209 lt_prog_compiler_pic='-pic'
6210 lt_prog_compiler_static='-Bstatic'
6214 lt_prog_compiler_can_build_shared=no
6219 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6220 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6223 # Check to make sure the PIC flag actually works.
6225 if test -n "$lt_prog_compiler_pic"; then
6226 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6227 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6228 if test "${lt_prog_compiler_pic_works+set}" = set; then
6229 echo $ECHO_N "(cached) $ECHO_C" >&6
6231 lt_prog_compiler_pic_works=no
6232 ac_outfile=conftest.$ac_objext
6233 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6234 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6235 # Insert the option either (1) after the last *FLAGS variable, or
6236 # (2) before a word containing "conftest.", or (3) at the end.
6237 # Note that $ac_compile itself does not contain backslashes and begins
6238 # with a dollar sign (not a hyphen), so the echo should work correctly.
6239 # The option is referenced via a variable to avoid confusing sed.
6240 lt_compile=`echo "$ac_compile" | $SED \
6241 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6242 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6243 -e 's:$: $lt_compiler_flag:'`
6244 (eval echo "\"\$as_me:6244: $lt_compile\"" >&5)
6245 (eval "$lt_compile" 2>conftest.err)
6247 cat conftest.err >&5
6248 echo "$as_me:6248: \$? = $ac_status" >&5
6249 if (exit $ac_status) && test -s "$ac_outfile"; then
6250 # The compiler can only warn and ignore the option if not recognized
6251 # So say no if there are warnings
6252 if test ! -s conftest.err; then
6253 lt_prog_compiler_pic_works=yes
6259 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6260 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6262 if test x"$lt_prog_compiler_pic_works" = xyes; then
6263 case $lt_prog_compiler_pic in
6265 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6268 lt_prog_compiler_pic=
6269 lt_prog_compiler_can_build_shared=no
6274 # For platforms which do not support PIC, -DPIC is meaningless:
6276 lt_prog_compiler_pic=
6279 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6283 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6284 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6285 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6288 lt_cv_prog_compiler_c_o=no
6289 $rm -r conftest 2>/dev/null
6293 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6295 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6296 # that will create temporary files in the current directory regardless of
6297 # the output directory. Thus, making CWD read-only will cause this test
6298 # to fail, enabling locking or at least warning the user not to do parallel
6302 lt_compiler_flag="-o out/conftest2.$ac_objext"
6303 # Insert the option either (1) after the last *FLAGS variable, or
6304 # (2) before a word containing "conftest.", or (3) at the end.
6305 # Note that $ac_compile itself does not contain backslashes and begins
6306 # with a dollar sign (not a hyphen), so the echo should work correctly.
6307 lt_compile=`echo "$ac_compile" | $SED \
6308 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6309 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6310 -e 's:$: $lt_compiler_flag:'`
6311 (eval echo "\"\$as_me:6311: $lt_compile\"" >&5)
6312 (eval "$lt_compile" 2>out/conftest.err)
6314 cat out/conftest.err >&5
6315 echo "$as_me:6315: \$? = $ac_status" >&5
6316 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6318 # The compiler can only warn and ignore the option if not recognized
6319 # So say no if there are warnings
6320 if test ! -s out/conftest.err; then
6321 lt_cv_prog_compiler_c_o=yes
6332 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6333 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6336 hard_links="nottested"
6337 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6338 # do not overwrite the value of need_locks provided by the user
6339 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6340 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6343 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6345 ln conftest.a conftest.b 2>&5 || hard_links=no
6346 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6347 echo "$as_me:$LINENO: result: $hard_links" >&5
6348 echo "${ECHO_T}$hard_links" >&6
6349 if test "$hard_links" = no; then
6350 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6351 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6358 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6359 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6362 allow_undefined_flag=
6363 enable_shared_with_static_runtimes=no
6365 archive_expsym_cmds=
6366 old_archive_From_new_cmds=
6367 old_archive_from_expsyms_cmds=
6368 export_dynamic_flag_spec=
6369 whole_archive_flag_spec=
6370 thread_safe_flag_spec=
6371 hardcode_libdir_flag_spec=
6372 hardcode_libdir_flag_spec_ld=
6373 hardcode_libdir_separator=
6376 hardcode_shlibpath_var=unsupported
6377 link_all_deplibs=unknown
6378 hardcode_automatic=no
6381 always_export_symbols=no
6382 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6383 # include_expsyms should be a list of space-separated symbols to be *always*
6384 # included in the symbol list
6386 # exclude_expsyms can be an extended regexp of symbols to exclude
6387 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6388 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6389 # as well as any symbol that contains `d'.
6390 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6391 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6392 # platforms (ab)use it in PIC code, but their linkers get confused if
6393 # the symbol is explicitly referenced. Since portable code cannot
6394 # rely on this symbol name, it's probably fine to never include it in
6395 # preloaded symbol tables.
6396 extract_expsyms_cmds=
6399 cygwin* | mingw* | pw32*)
6400 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6401 # When not using gcc, we currently assume that we are using
6402 # Microsoft Visual C++.
6403 if test "$GCC" != yes; then
6413 if test "$with_gnu_ld" = yes; then
6414 # If archive_cmds runs LD, not CC, wlarc should be empty
6417 # See if GNU ld supports shared libraries.
6419 aix3* | aix4* | aix5*)
6420 # On AIX/PPC, the GNU linker is very broken
6421 if test "$host_cpu" != ia64; then
6425 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6426 *** to be unable to reliably create shared libraries on AIX.
6427 *** Therefore, libtool is disabling shared libraries support. If you
6428 *** really care for shared libraries, you may want to modify your PATH
6429 *** so that a non-GNU linker is found, and then restart.
6436 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)'
6437 hardcode_libdir_flag_spec='-L$libdir'
6438 hardcode_minus_L=yes
6440 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6441 # that the semantics of dynamic libraries on AmigaOS, at least up
6442 # to version 4, is to share data among multiple programs linked
6443 # with the same dynamic library. Since this doesn't match the
6444 # behavior of shared libraries on other platforms, we can't use
6450 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6451 allow_undefined_flag=unsupported
6452 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6453 # support --undefined. This deserves some investigation. FIXME
6454 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6460 cygwin* | mingw* | pw32*)
6461 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6462 # as there is no search path for DLLs.
6463 hardcode_libdir_flag_spec='-L$libdir'
6464 allow_undefined_flag=unsupported
6465 always_export_symbols=no
6466 enable_shared_with_static_runtimes=yes
6467 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6469 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6470 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6471 # If the export-symbols file already is a .def file (1st line
6472 # is EXPORTS), use it as is; otherwise, prepend...
6473 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6474 cp $export_symbols $output_objdir/$soname.def;
6476 echo EXPORTS > $output_objdir/$soname.def;
6477 cat $export_symbols >> $output_objdir/$soname.def;
6479 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6486 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6487 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6490 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6491 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6496 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6500 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6501 *** create shared libraries on Solaris systems. Therefore, libtool
6502 *** is disabling shared libraries support. We urge you to upgrade GNU
6503 *** binutils to release 2.9.1 or newer. Another option is to modify
6504 *** your PATH or compiler configuration so that the native linker is
6505 *** used, and then restart.
6508 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6509 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6510 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6517 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6520 hardcode_shlibpath_var=no
6524 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6525 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6526 archive_cmds="$tmp_archive_cmds"
6527 supports_anon_versioning=no
6528 case `$LD -v 2>/dev/null` in
6529 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6530 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6531 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6532 *\ 2.11.*) ;; # other 2.11 versions
6533 *) supports_anon_versioning=yes ;;
6535 if test $supports_anon_versioning = yes; then
6536 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6537 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6538 $echo "local: *; };" >> $output_objdir/$libname.ver~
6539 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6541 archive_expsym_cmds="$tmp_archive_cmds"
6549 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6550 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6551 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6558 if test "$ld_shlibs" = yes; then
6559 runpath_var=LD_RUN_PATH
6560 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6561 export_dynamic_flag_spec='${wl}--export-dynamic'
6562 # ancient GNU ld didn't support --whole-archive et. al.
6563 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6564 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6566 whole_archive_flag_spec=
6570 # PORTME fill in a description of your system's linker (not GNU ld)
6573 allow_undefined_flag=unsupported
6574 always_export_symbols=yes
6575 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'
6576 # Note: this linker hardcodes the directories in LIBPATH if there
6577 # are no directories specified by -L.
6578 hardcode_minus_L=yes
6579 if test "$GCC" = yes && test -z "$link_static_flag"; then
6580 # Neither direct hardcoding nor static linking is supported with a
6582 hardcode_direct=unsupported
6587 if test "$host_cpu" = ia64; then
6588 # On IA64, the linker does run time linking by default, so we don't
6589 # have to do anything special.
6590 aix_use_runtimelinking=no
6591 exp_sym_flag='-Bexport'
6594 # If we're using GNU nm, then we don't want the "-C" option.
6595 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6596 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6597 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'
6599 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'
6601 aix_use_runtimelinking=no
6603 # Test if we are trying to use run time linking or normal
6604 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6605 # need to do runtime linking.
6606 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6607 for ld_flag in $LDFLAGS; do
6608 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6609 aix_use_runtimelinking=yes
6615 exp_sym_flag='-bexport'
6616 no_entry_flag='-bnoentry'
6619 # When large executables or shared objects are built, AIX ld can
6620 # have problems creating the table of contents. If linking a library
6621 # or program results in "error TOC overflow" add -mminimal-toc to
6622 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6623 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6627 hardcode_libdir_separator=':'
6628 link_all_deplibs=yes
6630 if test "$GCC" = yes; then
6631 case $host_os in aix4.012|aix4.012.*)
6632 # We only want to do this on AIX 4.2 and lower, the check
6633 # below for broken collect2 doesn't work under 4.3+
6634 collect2name=`${CC} -print-prog-name=collect2`
6635 if test -f "$collect2name" && \
6636 strings "$collect2name" | grep resolve_lib_name >/dev/null
6638 # We have reworked collect2
6641 # We have old collect2
6642 hardcode_direct=unsupported
6643 # It fails to find uninstalled libraries when the uninstalled
6644 # path is not listed in the libpath. Setting hardcode_minus_L
6645 # to unsupported forces relinking
6646 hardcode_minus_L=yes
6647 hardcode_libdir_flag_spec='-L$libdir'
6648 hardcode_libdir_separator=
6651 shared_flag='-shared'
6654 if test "$host_cpu" = ia64; then
6655 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6656 # chokes on -Wl,-G. The following line is correct:
6659 if test "$aix_use_runtimelinking" = yes; then
6660 shared_flag='${wl}-G'
6662 shared_flag='${wl}-bM:SRE'
6667 # It seems that -bexpall does not export symbols beginning with
6668 # underscore (_), so it is better to generate a list of symbols to export.
6669 always_export_symbols=yes
6670 if test "$aix_use_runtimelinking" = yes; then
6671 # Warning - without using the other runtime loading flags (-brtl),
6672 # -berok will link without error, but may produce a broken library.
6673 allow_undefined_flag='-berok'
6674 # Determine the default libpath from the value encoded in an empty executable.
6675 cat >conftest.$ac_ext <<_ACEOF
6676 #line $LINENO "configure"
6679 cat confdefs.h >>conftest.$ac_ext
6680 cat >>conftest.$ac_ext <<_ACEOF
6681 /* end confdefs.h. */
6691 rm -f conftest.$ac_objext conftest$ac_exeext
6692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6693 (eval $ac_link) 2>&5
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); } &&
6697 { ac_try='test -s conftest$ac_exeext'
6698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); }; }; then
6704 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6706 # Check for a 64-bit object if we didn't find anything.
6707 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6710 echo "$as_me: failed program was:" >&5
6711 sed 's/^/| /' conftest.$ac_ext >&5
6714 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6715 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6717 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6718 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6720 if test "$host_cpu" = ia64; then
6721 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6722 allow_undefined_flag="-z nodefs"
6723 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6725 # Determine the default libpath from the value encoded in an empty executable.
6726 cat >conftest.$ac_ext <<_ACEOF
6727 #line $LINENO "configure"
6730 cat confdefs.h >>conftest.$ac_ext
6731 cat >>conftest.$ac_ext <<_ACEOF
6732 /* end confdefs.h. */
6742 rm -f conftest.$ac_objext conftest$ac_exeext
6743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6744 (eval $ac_link) 2>&5
6746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747 (exit $ac_status); } &&
6748 { ac_try='test -s conftest$ac_exeext'
6749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 (exit $ac_status); }; }; then
6755 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6757 # Check for a 64-bit object if we didn't find anything.
6758 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6761 echo "$as_me: failed program was:" >&5
6762 sed 's/^/| /' conftest.$ac_ext >&5
6765 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6766 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6768 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6769 # Warning - without using the other run time loading flags,
6770 # -berok will link without error, but may produce a broken library.
6771 no_undefined_flag=' ${wl}-bernotok'
6772 allow_undefined_flag=' ${wl}-berok'
6773 # -bexpall does not export symbols beginning with underscore (_)
6774 always_export_symbols=yes
6775 # Exported symbols can be pulled into shared objects from archives
6776 whole_archive_flag_spec=' '
6777 archive_cmds_need_lc=yes
6778 # This is similar to how AIX traditionally builds it's shared libraries.
6779 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6785 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)'
6786 hardcode_libdir_flag_spec='-L$libdir'
6787 hardcode_minus_L=yes
6788 # see comment about different semantics on the GNU ld section
6793 export_dynamic_flag_spec=-rdynamic
6796 cygwin* | mingw* | pw32*)
6797 # When not using gcc, we currently assume that we are using
6798 # Microsoft Visual C++.
6799 # hardcode_libdir_flag_spec is actually meaningless, as there is
6800 # no search path for DLLs.
6801 hardcode_libdir_flag_spec=' '
6802 allow_undefined_flag=unsupported
6803 # Tell ltmain to make .lib files, not .a files.
6805 # Tell ltmain to make .dll files, not .so files.
6807 # FIXME: Setting linknames here is a bad hack.
6808 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6809 # The linker will automatically build a .lib file if we build a DLL.
6810 old_archive_From_new_cmds='true'
6811 # FIXME: Should let the user specify the lib program.
6812 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6813 fix_srcfile_path='`cygpath -w "$srcfile"`'
6814 enable_shared_with_static_runtimes=yes
6817 darwin* | rhapsody*)
6818 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6819 archive_cmds_need_lc=no
6821 rhapsody* | darwin1.[012])
6822 allow_undefined_flag='-undefined suppress'
6825 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6828 # FIXME: Relying on posixy $() will cause problems for
6829 # cross-compilation, but unfortunately the echo tests do not
6830 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6831 # `"' quotes if we put them in here... so don't!
6832 lt_int_apple_cc_single_mod=no
6833 output_verbose_link_cmd='echo'
6834 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6835 lt_int_apple_cc_single_mod=yes
6837 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6838 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6840 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6842 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6843 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6844 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6845 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6847 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6849 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6851 hardcode_automatic=yes
6852 hardcode_shlibpath_var=unsupported
6853 whole_archive_flag_spec='-all_load $convenience'
6854 link_all_deplibs=yes
6859 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6860 hardcode_libdir_flag_spec='-L$libdir'
6861 hardcode_shlibpath_var=no
6868 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6869 # support. Future versions do this automatically, but an explicit c++rt0.o
6870 # does not break anything, and helps significantly (at the cost of a little
6873 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6874 hardcode_libdir_flag_spec='-R$libdir'
6876 hardcode_shlibpath_var=no
6879 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6881 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6883 hardcode_minus_L=yes
6884 hardcode_shlibpath_var=no
6887 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6889 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6890 hardcode_libdir_flag_spec='-R$libdir'
6892 hardcode_shlibpath_var=no
6896 if test "$GCC" = yes; then
6897 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'
6899 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'
6901 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6902 hardcode_libdir_separator=:
6905 # hardcode_minus_L: Not really in the search PATH,
6906 # but as the default location of the library.
6907 hardcode_minus_L=yes
6908 export_dynamic_flag_spec='${wl}-E'
6912 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6915 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6918 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6924 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6927 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6931 if test "$with_gnu_ld" = no; then
6934 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6935 hardcode_libdir_flag_spec_ld='+b $libdir'
6936 hardcode_libdir_separator=:
6938 hardcode_shlibpath_var=no
6941 hardcode_libdir_flag_spec='-L$libdir'
6943 hardcode_shlibpath_var=no
6945 # hardcode_minus_L: Not really in the search PATH,
6946 # but as the default location of the library.
6947 hardcode_minus_L=yes
6950 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6951 hardcode_libdir_separator=:
6953 export_dynamic_flag_spec='${wl}-E'
6955 # hardcode_minus_L: Not really in the search PATH,
6956 # but as the default location of the library.
6957 hardcode_minus_L=yes
6963 irix5* | irix6* | nonstopux*)
6964 if test "$GCC" = yes; then
6965 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6967 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6968 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6970 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6971 hardcode_libdir_separator=:
6972 link_all_deplibs=yes
6976 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6977 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6979 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6981 hardcode_libdir_flag_spec='-R$libdir'
6983 hardcode_shlibpath_var=no
6987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6989 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6990 hardcode_libdir_separator=:
6991 hardcode_shlibpath_var=no
6996 hardcode_shlibpath_var=no
6997 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6998 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6999 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7000 export_dynamic_flag_spec='${wl}-E'
7003 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7004 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7005 hardcode_libdir_flag_spec='-R$libdir'
7008 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7009 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7016 hardcode_libdir_flag_spec='-L$libdir'
7017 hardcode_minus_L=yes
7018 allow_undefined_flag=unsupported
7019 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'
7020 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7024 if test "$GCC" = yes; then
7025 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7026 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7028 allow_undefined_flag=' -expect_unresolved \*'
7029 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7031 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7032 hardcode_libdir_separator=:
7035 osf4* | osf5*) # as osf3* with the addition of -msym flag
7036 if test "$GCC" = yes; then
7037 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7038 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7039 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7041 allow_undefined_flag=' -expect_unresolved \*'
7042 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7043 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7044 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7046 # Both c and cxx compiler support -rpath directly
7047 hardcode_libdir_flag_spec='-rpath $libdir'
7049 hardcode_libdir_separator=:
7053 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7054 hardcode_shlibpath_var=no
7055 export_dynamic_flag_spec='${wl}-Bexport'
7056 runpath_var=LD_RUN_PATH
7057 hardcode_runpath_var=yes
7061 no_undefined_flag=' -z text'
7062 if test "$GCC" = yes; then
7063 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7064 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7065 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7067 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7068 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7069 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7071 hardcode_libdir_flag_spec='-R$libdir'
7072 hardcode_shlibpath_var=no
7074 solaris2.[0-5] | solaris2.[0-5].*) ;;
7075 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7076 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7078 link_all_deplibs=yes
7082 if test "x$host_vendor" = xsequent; then
7083 # Use $CC to link under sequent, because it throws in some extra .o
7084 # files that make .init and .fini sections work.
7085 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7087 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7089 hardcode_libdir_flag_spec='-L$libdir'
7091 hardcode_minus_L=yes
7092 hardcode_shlibpath_var=no
7096 case $host_vendor in
7098 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7099 hardcode_direct=yes # is this really true???
7102 ## LD is ld it makes a PLAMLIB
7103 ## CC just makes a GrossModule.
7104 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7105 reload_cmds='$CC -r -o $output$reload_objs'
7109 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7110 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7113 runpath_var='LD_RUN_PATH'
7114 hardcode_shlibpath_var=no
7118 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7119 hardcode_shlibpath_var=no
7120 export_dynamic_flag_spec='-Bexport'
7124 if test -d /usr/nec; then
7125 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7126 hardcode_shlibpath_var=no
7127 runpath_var=LD_RUN_PATH
7128 hardcode_runpath_var=yes
7134 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7137 hardcode_shlibpath_var=no
7138 hardcode_runpath_var=yes
7139 runpath_var=LD_RUN_PATH
7142 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7143 no_undefined_flag='${wl}-z ${wl}text'
7144 if test "$GCC" = yes; then
7145 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7147 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7149 runpath_var='LD_RUN_PATH'
7150 hardcode_shlibpath_var=no
7154 no_undefined_flag=' -z text'
7155 # $CC -shared without GNU ld will not create a library from C++
7156 # object files and a static libstdc++, better avoid it by now
7157 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7158 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7159 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7160 hardcode_libdir_flag_spec=
7161 hardcode_shlibpath_var=no
7162 runpath_var='LD_RUN_PATH'
7166 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7167 hardcode_libdir_flag_spec='-L$libdir'
7168 hardcode_shlibpath_var=no
7177 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7178 echo "${ECHO_T}$ld_shlibs" >&6
7179 test "$ld_shlibs" = no && can_build_shared=no
7181 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7182 if test "$GCC" = yes; then
7183 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7187 # Do we need to explicitly link libc?
7189 case "x$archive_cmds_need_lc" in
7191 # Assume -lc should be added
7192 archive_cmds_need_lc=yes
7194 if test "$enable_shared" = yes && test "$GCC" = yes; then
7195 case $archive_cmds in
7197 # FIXME: we may have to deal with multi-command sequences.
7200 # Test whether the compiler implicitly links with -lc since on some
7201 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7202 # to ld, don't add -lc before -lgcc.
7203 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7204 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7206 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7209 (eval $ac_compile) 2>&5
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); } 2>conftest.err; then
7215 libobjs=conftest.$ac_objext
7217 wl=$lt_prog_compiler_wl
7223 lt_save_allow_undefined_flag=$allow_undefined_flag
7224 allow_undefined_flag=
7225 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7226 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229 (exit $ac_status); }
7231 archive_cmds_need_lc=no
7233 archive_cmds_need_lc=yes
7235 allow_undefined_flag=$lt_save_allow_undefined_flag
7237 cat conftest.err 1>&5
7240 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7241 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7248 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7249 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7251 if test -n "$hardcode_libdir_flag_spec" || \
7252 test -n "$runpath_var " || \
7253 test "X$hardcode_automatic"="Xyes" ; then
7255 # We can hardcode non-existant directories.
7256 if test "$hardcode_direct" != no &&
7257 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7258 # have to relink, otherwise we might link with an installed library
7259 # when we should be linking with a yet-to-be-installed one
7260 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7261 test "$hardcode_minus_L" != no; then
7262 # Linking always hardcodes the temporary library directory.
7263 hardcode_action=relink
7265 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7266 hardcode_action=immediate
7269 # We cannot hardcode anything, or else we can only hardcode existing
7271 hardcode_action=unsupported
7273 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7274 echo "${ECHO_T}$hardcode_action" >&6
7276 if test "$hardcode_action" = relink; then
7277 # Fast installation is not supported
7278 enable_fast_install=no
7279 elif test "$shlibpath_overrides_runpath" = yes ||
7280 test "$enable_shared" = no; then
7281 # Fast installation is not necessary
7282 enable_fast_install=needless
7287 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7288 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7289 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7290 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7291 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7292 echo "$as_me:$LINENO: result: yes" >&5
7293 echo "${ECHO_T}yes" >&6
7295 # FIXME - insert some real tests, host_os isn't really good enough
7298 if test -n "$STRIP" ; then
7299 striplib="$STRIP -x"
7300 echo "$as_me:$LINENO: result: yes" >&5
7301 echo "${ECHO_T}yes" >&6
7303 echo "$as_me:$LINENO: result: no" >&5
7304 echo "${ECHO_T}no" >&6
7308 echo "$as_me:$LINENO: result: no" >&5
7309 echo "${ECHO_T}no" >&6
7314 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7315 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7317 libname_spec='lib$name'
7325 shlibpath_overrides_runpath=unknown
7327 dynamic_linker="$host_os ld.so"
7328 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7329 if test "$GCC" = yes; then
7330 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7331 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7332 # if the path contains ";" then we assume it to be the separator
7333 # otherwise default to the standard path separator (i.e. ":") - it is
7334 # assumed that no part of a normal pathname contains ";" but that should
7335 # okay in the real world where ";" in dirpaths is itself problematic.
7336 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7338 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7341 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7343 need_lib_prefix=unknown
7344 hardcode_into_libs=no
7346 # when you set need_version to no, make sure it does not cause -set_version
7347 # flags to be left without arguments
7348 need_version=unknown
7353 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7354 shlibpath_var=LIBPATH
7356 # AIX 3 has no versioning support, so we append a major version to the name.
7357 soname_spec='${libname}${release}${shared_ext}$major'
7364 hardcode_into_libs=yes
7365 if test "$host_cpu" = ia64; then
7366 # AIX 5 supports IA64
7367 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7368 shlibpath_var=LD_LIBRARY_PATH
7370 # With GCC up to 2.95.x, collect2 would create an import file
7371 # for dependence libraries. The import file would start with
7372 # the line `#! .'. This would cause the generated library to
7373 # depend on `.', always an invalid library. This was fixed in
7374 # development snapshots of GCC prior to 3.0.
7376 aix4 | aix4.[01] | aix4.[01].*)
7377 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7379 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7386 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7387 # soname into executable. Probably we can add versioning support to
7388 # collect2, so additional links can be useful in future.
7389 if test "$aix_use_runtimelinking" = yes; then
7390 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7391 # instead of lib<name>.a to let people know that these are not
7392 # typical AIX shared libraries.
7393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7395 # We preserve .a as extension for shared libraries through AIX4.2
7396 # and later when we are not doing run time linking.
7397 library_names_spec='${libname}${release}.a $libname.a'
7398 soname_spec='${libname}${release}${shared_ext}$major'
7400 shlibpath_var=LIBPATH
7405 library_names_spec='$libname.ixlibrary $libname.a'
7406 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7407 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'
7411 library_names_spec='${libname}${shared_ext}'
7412 dynamic_linker="$host_os ld.so"
7413 shlibpath_var=LIBRARY_PATH
7419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7420 soname_spec='${libname}${release}${shared_ext}$major'
7421 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7422 shlibpath_var=LD_LIBRARY_PATH
7423 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7424 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7425 # the default ld.so.conf also contains /usr/contrib/lib and
7426 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7427 # libtool to hard-code these into programs
7430 cygwin* | mingw* | pw32*)
7431 version_type=windows
7436 case $GCC,$host_os in
7437 yes,cygwin* | yes,mingw* | yes,pw32*)
7438 library_names_spec='$libname.dll.a'
7439 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7440 postinstall_cmds='base_file=`basename \${file}`~
7441 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7442 dldir=$destdir/`dirname \$dlpath`~
7443 test -d \$dldir || mkdir -p \$dldir~
7444 $install_prog $dir/$dlname \$dldir/$dlname'
7445 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7446 dlpath=$dir/\$dldll~
7448 shlibpath_overrides_runpath=yes
7452 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7453 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7454 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7457 # MinGW DLLs use traditional 'lib' prefix
7458 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7459 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7460 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7461 # It is most probably a Windows format PATH printed by
7462 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7463 # path with ; separators, and with drive letters. We can handle the
7464 # drive letters (cygwin fileutils understands them), so leave them,
7465 # especially as we might pass files found there to a mingw objdump,
7466 # which wouldn't understand a cygwinified path. Ahh.
7467 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7469 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7473 # pw32 DLLs use 'pw' prefix rather than 'lib'
7474 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7480 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7483 dynamic_linker='Win32 ld.exe'
7484 # FIXME: first we should search . and the directory the executable is in
7488 darwin* | rhapsody*)
7489 dynamic_linker="$host_os dyld"
7493 # FIXME: Relying on posixy $() will cause problems for
7494 # cross-compilation, but unfortunately the echo tests do not
7495 # yet detect zsh echo's removal of \ escapes.
7496 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7497 soname_spec='${libname}${release}${major}$shared_ext'
7498 shlibpath_overrides_runpath=yes
7499 shlibpath_var=DYLD_LIBRARY_PATH
7500 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7501 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7502 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7503 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7505 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7513 soname_spec='${libname}${release}${shared_ext}$major'
7514 shlibpath_var=LD_LIBRARY_PATH
7522 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7523 version_type=freebsd-$objformat
7524 case $version_type in
7526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7531 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7535 shlibpath_var=LD_LIBRARY_PATH
7538 shlibpath_overrides_runpath=yes
7540 freebsd3.01* | freebsdelf3.01*)
7541 shlibpath_overrides_runpath=yes
7542 hardcode_into_libs=yes
7545 shlibpath_overrides_runpath=no
7546 hardcode_into_libs=yes
7555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7556 soname_spec='${libname}${release}${shared_ext}$major'
7557 shlibpath_var=LD_LIBRARY_PATH
7558 hardcode_into_libs=yes
7561 hpux9* | hpux10* | hpux11*)
7562 # Give a soname corresponding to the major version so that dld.sl refuses to
7563 # link against other versions.
7570 hardcode_into_libs=yes
7571 dynamic_linker="$host_os dld.so"
7572 shlibpath_var=LD_LIBRARY_PATH
7573 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7575 soname_spec='${libname}${release}${shared_ext}$major'
7576 if test "X$HPUX_IA64_MODE" = X32; then
7577 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7579 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7581 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7585 hardcode_into_libs=yes
7586 dynamic_linker="$host_os dld.sl"
7587 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7588 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7590 soname_spec='${libname}${release}${shared_ext}$major'
7591 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7592 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7596 dynamic_linker="$host_os dld.sl"
7597 shlibpath_var=SHLIB_PATH
7598 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7600 soname_spec='${libname}${release}${shared_ext}$major'
7603 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7604 postinstall_cmds='chmod 555 $lib'
7607 irix5* | irix6* | nonstopux*)
7609 nonstopux*) version_type=nonstopux ;;
7611 if test "$lt_cv_prog_gnu_ld" = yes; then
7619 soname_spec='${libname}${release}${shared_ext}$major'
7620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7622 irix5* | nonstopux*)
7626 case $LD in # libtool.m4 will add one of these switches to LD
7627 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7628 libsuff= shlibsuff= libmagic=32-bit;;
7629 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7630 libsuff=32 shlibsuff=N32 libmagic=N32;;
7631 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7632 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7633 *) libsuff= shlibsuff= libmagic=never-match;;
7637 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7638 shlibpath_overrides_runpath=no
7639 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7640 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7641 hardcode_into_libs=yes
7644 # No shared lib support for Linux oldld, aout, or coff.
7645 linux*oldld* | linux*aout* | linux*coff*)
7649 # This must be Linux ELF.
7654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7655 soname_spec='${libname}${release}${shared_ext}$major'
7656 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7657 shlibpath_var=LD_LIBRARY_PATH
7658 shlibpath_overrides_runpath=no
7659 # This implies no fast_install, which is unacceptable.
7660 # Some rework will be needed to allow for fast_install
7661 # before this can be enabled.
7662 hardcode_into_libs=yes
7664 # We used to test for /lib/ld.so.1 and disable shared libraries on
7665 # powerpc, because MkLinux only supported shared libraries with the
7666 # GNU dynamic linker. Since this was broken with cross compilers,
7667 # most powerpc-linux boxes support dynamic linking these days and
7668 # people can always --disable-shared, the test was removed, and we
7669 # assume the GNU/Linux dynamic linker is in use.
7670 dynamic_linker='GNU/Linux ld.so'
7672 # Find out which ABI we are using (multilib Linux x86_64 hack).
7676 echo '#line 7676 "configure"' > conftest.$ac_ext
7677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7678 (eval $ac_compile) 2>&5
7680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681 (exit $ac_status); }; then
7682 case `/usr/bin/file conftest.$ac_objext` in
7693 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
7694 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
7701 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7703 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7704 dynamic_linker='NetBSD (a.out) ld.so'
7706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7707 soname_spec='${libname}${release}${shared_ext}$major'
7708 dynamic_linker='NetBSD ld.elf_so'
7710 shlibpath_var=LD_LIBRARY_PATH
7711 shlibpath_overrides_runpath=yes
7712 hardcode_into_libs=yes
7717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7718 shlibpath_var=LD_LIBRARY_PATH
7719 shlibpath_overrides_runpath=yes
7726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7727 soname_spec='${libname}${release}${shared_ext}$major'
7728 shlibpath_var=LD_LIBRARY_PATH
7729 shlibpath_overrides_runpath=yes
7736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7737 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7738 shlibpath_var=LD_LIBRARY_PATH
7739 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7741 openbsd2.[89] | openbsd2.[89].*)
7742 shlibpath_overrides_runpath=no
7745 shlibpath_overrides_runpath=yes
7749 shlibpath_overrides_runpath=yes
7754 libname_spec='$name'
7757 library_names_spec='$libname${shared_ext} $libname.a'
7758 dynamic_linker='OS/2 ld.exe'
7759 shlibpath_var=LIBPATH
7762 osf3* | osf4* | osf5*)
7766 soname_spec='${libname}${release}${shared_ext}$major'
7767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7768 shlibpath_var=LD_LIBRARY_PATH
7769 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7770 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7775 soname_spec='${libname}${release}${shared_ext}$major'
7776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7777 shlibpath_var=LD_LIBRARY_PATH
7784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7785 soname_spec='${libname}${release}${shared_ext}$major'
7786 shlibpath_var=LD_LIBRARY_PATH
7787 shlibpath_overrides_runpath=yes
7788 hardcode_into_libs=yes
7789 # ldd complains unless libraries are executable
7790 postinstall_cmds='chmod +x $lib'
7795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7796 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7797 shlibpath_var=LD_LIBRARY_PATH
7798 shlibpath_overrides_runpath=yes
7799 if test "$with_gnu_ld" = yes; then
7805 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7808 soname_spec='${libname}${release}${shared_ext}$major'
7809 shlibpath_var=LD_LIBRARY_PATH
7810 case $host_vendor in
7812 shlibpath_overrides_runpath=no
7814 export_dynamic_flag_spec='${wl}-Blargedynsym'
7815 runpath_var=LD_RUN_PATH
7823 shlibpath_overrides_runpath=no
7824 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7830 if test -d /usr/nec ;then
7832 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7833 soname_spec='$libname${shared_ext}.$major'
7834 shlibpath_var=LD_LIBRARY_PATH
7840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7841 soname_spec='${libname}${release}${shared_ext}$major'
7842 shlibpath_var=LD_LIBRARY_PATH
7849 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7850 echo "${ECHO_T}$dynamic_linker" >&6
7851 test "$dynamic_linker" = no && can_build_shared=no
7853 if test "x$enable_dlopen" != xyes; then
7854 enable_dlopen=unknown
7855 enable_dlopen_self=unknown
7856 enable_dlopen_self_static=unknown
7863 lt_cv_dlopen="load_add_on"
7865 lt_cv_dlopen_self=yes
7869 lt_cv_dlopen="LoadLibrary"
7874 lt_cv_dlopen="dlopen"
7879 # if libdl is installed we need to link against it
7880 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7881 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7882 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7883 echo $ECHO_N "(cached) $ECHO_C" >&6
7885 ac_check_lib_save_LIBS=$LIBS
7887 cat >conftest.$ac_ext <<_ACEOF
7888 #line $LINENO "configure"
7891 cat confdefs.h >>conftest.$ac_ext
7892 cat >>conftest.$ac_ext <<_ACEOF
7893 /* end confdefs.h. */
7895 /* Override any gcc2 internal prototype to avoid an error. */
7899 /* We use char because int might match the return type of a gcc2
7900 builtin and then its argument prototype would still apply. */
7910 rm -f conftest.$ac_objext conftest$ac_exeext
7911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7912 (eval $ac_link) 2>&5
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); } &&
7916 { ac_try='test -s conftest$ac_exeext'
7917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); }; }; then
7922 ac_cv_lib_dl_dlopen=yes
7924 echo "$as_me: failed program was:" >&5
7925 sed 's/^/| /' conftest.$ac_ext >&5
7927 ac_cv_lib_dl_dlopen=no
7929 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7930 LIBS=$ac_check_lib_save_LIBS
7932 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7933 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7934 if test $ac_cv_lib_dl_dlopen = yes; then
7935 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7940 lt_cv_dlopen_self=yes
7947 echo "$as_me:$LINENO: checking for shl_load" >&5
7948 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7949 if test "${ac_cv_func_shl_load+set}" = set; then
7950 echo $ECHO_N "(cached) $ECHO_C" >&6
7952 cat >conftest.$ac_ext <<_ACEOF
7953 #line $LINENO "configure"
7956 cat confdefs.h >>conftest.$ac_ext
7957 cat >>conftest.$ac_ext <<_ACEOF
7958 /* end confdefs.h. */
7959 /* System header to define __stub macros and hopefully few prototypes,
7960 which can conflict with char shl_load (); below.
7961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7962 <limits.h> exists even on freestanding compilers. */
7964 # include <limits.h>
7966 # include <assert.h>
7968 /* Override any gcc2 internal prototype to avoid an error. */
7973 /* We use char because int might match the return type of a gcc2
7974 builtin and then its argument prototype would still apply. */
7976 /* The GNU C library defines this for functions which it implements
7977 to always fail with ENOSYS. Some functions are actually named
7978 something starting with __ and the normal name is an alias. */
7979 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7982 char (*f) () = shl_load;
7991 return f != shl_load;
7996 rm -f conftest.$ac_objext conftest$ac_exeext
7997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7998 (eval $ac_link) 2>&5
8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); } &&
8002 { ac_try='test -s conftest$ac_exeext'
8003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); }; }; then
8008 ac_cv_func_shl_load=yes
8010 echo "$as_me: failed program was:" >&5
8011 sed 's/^/| /' conftest.$ac_ext >&5
8013 ac_cv_func_shl_load=no
8015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8017 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8018 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8019 if test $ac_cv_func_shl_load = yes; then
8020 lt_cv_dlopen="shl_load"
8022 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8023 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8024 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8025 echo $ECHO_N "(cached) $ECHO_C" >&6
8027 ac_check_lib_save_LIBS=$LIBS
8029 cat >conftest.$ac_ext <<_ACEOF
8030 #line $LINENO "configure"
8033 cat confdefs.h >>conftest.$ac_ext
8034 cat >>conftest.$ac_ext <<_ACEOF
8035 /* end confdefs.h. */
8037 /* Override any gcc2 internal prototype to avoid an error. */
8041 /* We use char because int might match the return type of a gcc2
8042 builtin and then its argument prototype would still apply. */
8052 rm -f conftest.$ac_objext conftest$ac_exeext
8053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8054 (eval $ac_link) 2>&5
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); } &&
8058 { ac_try='test -s conftest$ac_exeext'
8059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); }; }; then
8064 ac_cv_lib_dld_shl_load=yes
8066 echo "$as_me: failed program was:" >&5
8067 sed 's/^/| /' conftest.$ac_ext >&5
8069 ac_cv_lib_dld_shl_load=no
8071 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8072 LIBS=$ac_check_lib_save_LIBS
8074 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8075 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8076 if test $ac_cv_lib_dld_shl_load = yes; then
8077 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8079 echo "$as_me:$LINENO: checking for dlopen" >&5
8080 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8081 if test "${ac_cv_func_dlopen+set}" = set; then
8082 echo $ECHO_N "(cached) $ECHO_C" >&6
8084 cat >conftest.$ac_ext <<_ACEOF
8085 #line $LINENO "configure"
8088 cat confdefs.h >>conftest.$ac_ext
8089 cat >>conftest.$ac_ext <<_ACEOF
8090 /* end confdefs.h. */
8091 /* System header to define __stub macros and hopefully few prototypes,
8092 which can conflict with char dlopen (); below.
8093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8094 <limits.h> exists even on freestanding compilers. */
8096 # include <limits.h>
8098 # include <assert.h>
8100 /* Override any gcc2 internal prototype to avoid an error. */
8105 /* We use char because int might match the return type of a gcc2
8106 builtin and then its argument prototype would still apply. */
8108 /* The GNU C library defines this for functions which it implements
8109 to always fail with ENOSYS. Some functions are actually named
8110 something starting with __ and the normal name is an alias. */
8111 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8114 char (*f) () = dlopen;
8128 rm -f conftest.$ac_objext conftest$ac_exeext
8129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8130 (eval $ac_link) 2>&5
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); } &&
8134 { ac_try='test -s conftest$ac_exeext'
8135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); }; }; then
8140 ac_cv_func_dlopen=yes
8142 echo "$as_me: failed program was:" >&5
8143 sed 's/^/| /' conftest.$ac_ext >&5
8145 ac_cv_func_dlopen=no
8147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8149 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8150 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8151 if test $ac_cv_func_dlopen = yes; then
8152 lt_cv_dlopen="dlopen"
8154 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8155 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8156 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8157 echo $ECHO_N "(cached) $ECHO_C" >&6
8159 ac_check_lib_save_LIBS=$LIBS
8161 cat >conftest.$ac_ext <<_ACEOF
8162 #line $LINENO "configure"
8165 cat confdefs.h >>conftest.$ac_ext
8166 cat >>conftest.$ac_ext <<_ACEOF
8167 /* end confdefs.h. */
8169 /* Override any gcc2 internal prototype to avoid an error. */
8173 /* We use char because int might match the return type of a gcc2
8174 builtin and then its argument prototype would still apply. */
8184 rm -f conftest.$ac_objext conftest$ac_exeext
8185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8186 (eval $ac_link) 2>&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); } &&
8190 { ac_try='test -s conftest$ac_exeext'
8191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195 (exit $ac_status); }; }; then
8196 ac_cv_lib_dl_dlopen=yes
8198 echo "$as_me: failed program was:" >&5
8199 sed 's/^/| /' conftest.$ac_ext >&5
8201 ac_cv_lib_dl_dlopen=no
8203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8204 LIBS=$ac_check_lib_save_LIBS
8206 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8207 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8208 if test $ac_cv_lib_dl_dlopen = yes; then
8209 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8211 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8212 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8213 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8214 echo $ECHO_N "(cached) $ECHO_C" >&6
8216 ac_check_lib_save_LIBS=$LIBS
8218 cat >conftest.$ac_ext <<_ACEOF
8219 #line $LINENO "configure"
8222 cat confdefs.h >>conftest.$ac_ext
8223 cat >>conftest.$ac_ext <<_ACEOF
8224 /* end confdefs.h. */
8226 /* Override any gcc2 internal prototype to avoid an error. */
8230 /* We use char because int might match the return type of a gcc2
8231 builtin and then its argument prototype would still apply. */
8241 rm -f conftest.$ac_objext conftest$ac_exeext
8242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8243 (eval $ac_link) 2>&5
8245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246 (exit $ac_status); } &&
8247 { ac_try='test -s conftest$ac_exeext'
8248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); }; }; then
8253 ac_cv_lib_svld_dlopen=yes
8255 echo "$as_me: failed program was:" >&5
8256 sed 's/^/| /' conftest.$ac_ext >&5
8258 ac_cv_lib_svld_dlopen=no
8260 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8261 LIBS=$ac_check_lib_save_LIBS
8263 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8264 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8265 if test $ac_cv_lib_svld_dlopen = yes; then
8266 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8268 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8269 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8270 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8271 echo $ECHO_N "(cached) $ECHO_C" >&6
8273 ac_check_lib_save_LIBS=$LIBS
8275 cat >conftest.$ac_ext <<_ACEOF
8276 #line $LINENO "configure"
8279 cat confdefs.h >>conftest.$ac_ext
8280 cat >>conftest.$ac_ext <<_ACEOF
8281 /* end confdefs.h. */
8283 /* Override any gcc2 internal prototype to avoid an error. */
8287 /* We use char because int might match the return type of a gcc2
8288 builtin and then its argument prototype would still apply. */
8298 rm -f conftest.$ac_objext conftest$ac_exeext
8299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8300 (eval $ac_link) 2>&5
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); } &&
8304 { ac_try='test -s conftest$ac_exeext'
8305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); }; }; then
8310 ac_cv_lib_dld_dld_link=yes
8312 echo "$as_me: failed program was:" >&5
8313 sed 's/^/| /' conftest.$ac_ext >&5
8315 ac_cv_lib_dld_dld_link=no
8317 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8318 LIBS=$ac_check_lib_save_LIBS
8320 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8321 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8322 if test $ac_cv_lib_dld_dld_link = yes; then
8323 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8344 if test "x$lt_cv_dlopen" != xno; then
8350 case $lt_cv_dlopen in
8352 save_CPPFLAGS="$CPPFLAGS"
8353 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8355 save_LDFLAGS="$LDFLAGS"
8356 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8359 LIBS="$lt_cv_dlopen_libs $LIBS"
8361 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8362 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8363 if test "${lt_cv_dlopen_self+set}" = set; then
8364 echo $ECHO_N "(cached) $ECHO_C" >&6
8366 if test "$cross_compiling" = yes; then :
8367 lt_cv_dlopen_self=cross
8369 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8370 lt_status=$lt_dlunknown
8371 cat > conftest.$ac_ext <<EOF
8372 #line 8372 "configure"
8373 #include "confdefs.h"
8382 # define LT_DLGLOBAL RTLD_GLOBAL
8385 # define LT_DLGLOBAL DL_GLOBAL
8387 # define LT_DLGLOBAL 0
8391 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8392 find out it does not work in some platform. */
8393 #ifndef LT_DLLAZY_OR_NOW
8395 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8398 # define LT_DLLAZY_OR_NOW DL_LAZY
8401 # define LT_DLLAZY_OR_NOW RTLD_NOW
8404 # define LT_DLLAZY_OR_NOW DL_NOW
8406 # define LT_DLLAZY_OR_NOW 0
8414 extern "C" void exit (int);
8417 void fnord() { int i=42;}
8420 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8421 int status = $lt_dlunknown;
8425 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8426 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8427 /* dlclose (self); */
8433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8434 (eval $ac_link) 2>&5
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8438 (./conftest; exit; ) 2>/dev/null
8441 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8442 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8443 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8446 # compilation failed
8447 lt_cv_dlopen_self=no
8454 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8455 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8457 if test "x$lt_cv_dlopen_self" = xyes; then
8458 LDFLAGS="$LDFLAGS $link_static_flag"
8459 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8460 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8461 if test "${lt_cv_dlopen_self_static+set}" = set; then
8462 echo $ECHO_N "(cached) $ECHO_C" >&6
8464 if test "$cross_compiling" = yes; then :
8465 lt_cv_dlopen_self_static=cross
8467 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8468 lt_status=$lt_dlunknown
8469 cat > conftest.$ac_ext <<EOF
8470 #line 8470 "configure"
8471 #include "confdefs.h"
8480 # define LT_DLGLOBAL RTLD_GLOBAL
8483 # define LT_DLGLOBAL DL_GLOBAL
8485 # define LT_DLGLOBAL 0
8489 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8490 find out it does not work in some platform. */
8491 #ifndef LT_DLLAZY_OR_NOW
8493 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8496 # define LT_DLLAZY_OR_NOW DL_LAZY
8499 # define LT_DLLAZY_OR_NOW RTLD_NOW
8502 # define LT_DLLAZY_OR_NOW DL_NOW
8504 # define LT_DLLAZY_OR_NOW 0
8512 extern "C" void exit (int);
8515 void fnord() { int i=42;}
8518 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8519 int status = $lt_dlunknown;
8523 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8524 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8525 /* dlclose (self); */
8531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8532 (eval $ac_link) 2>&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8536 (./conftest; exit; ) 2>/dev/null
8539 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8540 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8541 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8544 # compilation failed
8545 lt_cv_dlopen_self_static=no
8552 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8553 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8556 CPPFLAGS="$save_CPPFLAGS"
8557 LDFLAGS="$save_LDFLAGS"
8562 case $lt_cv_dlopen_self in
8563 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8564 *) enable_dlopen_self=unknown ;;
8567 case $lt_cv_dlopen_self_static in
8568 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8569 *) enable_dlopen_self_static=unknown ;;
8574 # Report which librarie types wil actually be built
8575 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8576 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8577 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8578 echo "${ECHO_T}$can_build_shared" >&6
8580 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8581 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8582 test "$can_build_shared" = "no" && enable_shared=no
8584 # On AIX, shared libraries and static libraries use the same namespace, and
8585 # are all built from PIC.
8588 test "$enable_shared" = yes && enable_static=no
8589 if test -n "$RANLIB"; then
8590 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8591 postinstall_cmds='$RANLIB $lib'
8596 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8597 test "$enable_shared" = yes && enable_static=no
8600 darwin* | rhapsody*)
8601 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8602 archive_cmds_need_lc=no
8604 rhapsody* | darwin1.[012])
8605 allow_undefined_flag='-undefined suppress'
8608 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8611 # FIXME: Relying on posixy $() will cause problems for
8612 # cross-compilation, but unfortunately the echo tests do not
8613 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8614 # `"' quotes if we put them in here... so don't!
8615 output_verbose_link_cmd='echo'
8616 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8617 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8618 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8619 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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}'
8620 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8622 hardcode_automatic=yes
8623 hardcode_shlibpath_var=unsupported
8624 whole_archive_flag_spec='-all_load $convenience'
8625 link_all_deplibs=yes
8629 echo "$as_me:$LINENO: result: $enable_shared" >&5
8630 echo "${ECHO_T}$enable_shared" >&6
8632 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8633 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8634 # Make sure either enable_shared or enable_static is yes.
8635 test "$enable_shared" = yes || enable_static=yes
8636 echo "$as_me:$LINENO: result: $enable_static" >&5
8637 echo "${ECHO_T}$enable_static" >&6
8639 # The else clause should only fire when bootstrapping the
8640 # libtool distribution, otherwise you forgot to ship ltmain.sh
8641 # with your package, and you will get complaints that there are
8642 # no rules to generate ltmain.sh.
8643 if test -f "$ltmain"; then
8644 # See if we are running on zsh, and set the options which allow our commands through
8645 # without removal of \ escapes.
8646 if test -n "${ZSH_VERSION+set}" ; then
8647 setopt NO_GLOB_SUBST
8649 # Now quote all the things that may contain metacharacters while being
8650 # careful not to overquote the AC_SUBSTed values. We take copies of the
8651 # variables and quote the copies for generation of the libtool script.
8652 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8653 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8654 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8655 deplibs_check_method reload_flag reload_cmds need_locks \
8656 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8657 lt_cv_sys_global_symbol_to_c_name_address \
8658 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8659 old_postinstall_cmds old_postuninstall_cmds \
8663 lt_prog_compiler_wl \
8664 lt_prog_compiler_pic \
8665 lt_prog_compiler_static \
8666 lt_prog_compiler_no_builtin_flag \
8667 export_dynamic_flag_spec \
8668 thread_safe_flag_spec \
8669 whole_archive_flag_spec \
8670 enable_shared_with_static_runtimes \
8672 old_archive_from_new_cmds \
8677 compiler_lib_search_path \
8679 archive_expsym_cmds \
8681 postuninstall_cmds \
8682 old_archive_from_expsyms_cmds \
8683 allow_undefined_flag \
8685 export_symbols_cmds \
8686 hardcode_libdir_flag_spec \
8687 hardcode_libdir_flag_spec_ld \
8688 hardcode_libdir_separator \
8689 hardcode_automatic \
8691 module_expsym_cmds \
8692 lt_cv_prog_compiler_c_o \
8697 old_archive_cmds | \
8698 old_archive_from_new_cmds | \
8700 archive_expsym_cmds | \
8702 module_expsym_cmds | \
8703 old_archive_from_expsyms_cmds | \
8704 export_symbols_cmds | \
8705 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8706 postinstall_cmds | postuninstall_cmds | \
8707 old_postinstall_cmds | old_postuninstall_cmds | \
8708 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8709 # Double-quote double-evaled strings.
8710 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8713 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8719 *'\$0 --fallback-echo"')
8720 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8725 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8727 { echo "$as_me:$LINENO: creating $ofile" >&5
8728 echo "$as_me: creating $ofile" >&6;}
8730 cat <<__EOF__ >> "$cfgfile"
8733 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8734 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8735 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8737 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8738 # Free Software Foundation, Inc.
8740 # This file is part of GNU Libtool:
8741 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8743 # This program is free software; you can redistribute it and/or modify
8744 # it under the terms of the GNU General Public License as published by
8745 # the Free Software Foundation; either version 2 of the License, or
8746 # (at your option) any later version.
8748 # This program is distributed in the hope that it will be useful, but
8749 # WITHOUT ANY WARRANTY; without even the implied warranty of
8750 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8751 # General Public License for more details.
8753 # You should have received a copy of the GNU General Public License
8754 # along with this program; if not, write to the Free Software
8755 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8757 # As a special exception to the GNU General Public License, if you
8758 # distribute this file as part of a program that contains a
8759 # configuration script generated by Autoconf, you may include it under
8760 # the same distribution terms that you use for the rest of that program.
8762 # A sed program that does not truncate output.
8765 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8766 Xsed="$SED -e s/^X//"
8768 # The HP-UX ksh and POSIX shell print the target directory to stdout
8770 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8772 # The names of the tagged configurations supported by this script.
8775 # ### BEGIN LIBTOOL CONFIG
8777 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8779 # Shell to use when invoking shell scripts.
8782 # Whether or not to build shared libraries.
8783 build_libtool_libs=$enable_shared
8785 # Whether or not to build static libraries.
8786 build_old_libs=$enable_static
8788 # Whether or not to add -lc for building shared libraries.
8789 build_libtool_need_lc=$archive_cmds_need_lc
8791 # Whether or not to disallow shared libs when runtime libs are static
8792 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8794 # Whether or not to optimize for fast installation.
8795 fast_install=$enable_fast_install
8798 host_alias=$host_alias
8801 # An echo program that does not interpret backslashes.
8806 AR_FLAGS=$lt_AR_FLAGS
8811 # A language-specific compiler.
8814 # Is the compiler the GNU C compiler?
8820 # The linker used to build libraries.
8823 # Whether we need hard or soft links.
8826 # A BSD-compatible nm program.
8829 # A symbol stripping program
8832 # Used to examine libraries when file_magic_cmd begins "file"
8833 MAGIC_CMD=$MAGIC_CMD
8835 # Used on cygwin: DLL creation program.
8838 # Used on cygwin: object dumper.
8841 # Used on cygwin: assembler.
8844 # The name of the directory that contains temporary libtool files.
8847 # How to create reloadable object files.
8848 reload_flag=$lt_reload_flag
8849 reload_cmds=$lt_reload_cmds
8851 # How to pass a linker flag through the compiler.
8852 wl=$lt_lt_prog_compiler_wl
8854 # Object file suffix (normally "o").
8857 # Old archive suffix (normally "a").
8860 # Shared library suffix (normally ".so").
8863 # Executable file suffix (normally "").
8866 # Additional compiler flags for building library objects.
8867 pic_flag=$lt_lt_prog_compiler_pic
8870 # What is the maximum length of a command?
8871 max_cmd_len=$lt_cv_sys_max_cmd_len
8873 # Does compiler simultaneously support -c and -o options?
8874 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8876 # Must we lock files when doing compilation ?
8877 need_locks=$lt_need_locks
8879 # Do we need the lib prefix for modules?
8880 need_lib_prefix=$need_lib_prefix
8882 # Do we need a version for libraries?
8883 need_version=$need_version
8885 # Whether dlopen is supported.
8886 dlopen_support=$enable_dlopen
8888 # Whether dlopen of programs is supported.
8889 dlopen_self=$enable_dlopen_self
8891 # Whether dlopen of statically linked programs is supported.
8892 dlopen_self_static=$enable_dlopen_self_static
8894 # Compiler flag to prevent dynamic linking.
8895 link_static_flag=$lt_lt_prog_compiler_static
8897 # Compiler flag to turn off builtin functions.
8898 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8900 # Compiler flag to allow reflexive dlopens.
8901 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8903 # Compiler flag to generate shared objects directly from archives.
8904 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8906 # Compiler flag to generate thread-safe objects.
8907 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8909 # Library versioning type.
8910 version_type=$version_type
8912 # Format of library name prefix.
8913 libname_spec=$lt_libname_spec
8915 # List of archive names. First name is the real one, the rest are links.
8916 # The last name is the one that the linker finds with -lNAME.
8917 library_names_spec=$lt_library_names_spec
8919 # The coded name of the library, if different from the real name.
8920 soname_spec=$lt_soname_spec
8922 # Commands used to build and install an old-style archive.
8924 old_archive_cmds=$lt_old_archive_cmds
8925 old_postinstall_cmds=$lt_old_postinstall_cmds
8926 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8928 # Create an old-style archive from a shared archive.
8929 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8931 # Create a temporary old-style archive to link instead of a shared archive.
8932 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8934 # Commands used to build and install a shared archive.
8935 archive_cmds=$lt_archive_cmds
8936 archive_expsym_cmds=$lt_archive_expsym_cmds
8937 postinstall_cmds=$lt_postinstall_cmds
8938 postuninstall_cmds=$lt_postuninstall_cmds
8940 # Commands used to build a loadable module (assumed same as above if empty)
8941 module_cmds=$lt_module_cmds
8942 module_expsym_cmds=$lt_module_expsym_cmds
8944 # Commands to strip libraries.
8945 old_striplib=$lt_old_striplib
8946 striplib=$lt_striplib
8948 # Dependencies to place before the objects being linked to create a
8950 predep_objects=$lt_predep_objects
8952 # Dependencies to place after the objects being linked to create a
8954 postdep_objects=$lt_postdep_objects
8956 # Dependencies to place before the objects being linked to create a
8960 # Dependencies to place after the objects being linked to create a
8962 postdeps=$lt_postdeps
8964 # The library search path used internally by the compiler when linking
8966 compiler_lib_search_path=$lt_compiler_lib_search_path
8968 # Method to check whether dependent libraries are shared objects.
8969 deplibs_check_method=$lt_deplibs_check_method
8971 # Command to use when deplibs_check_method == file_magic.
8972 file_magic_cmd=$lt_file_magic_cmd
8974 # Flag that allows shared libraries with undefined symbols to be built.
8975 allow_undefined_flag=$lt_allow_undefined_flag
8977 # Flag that forces no undefined symbols.
8978 no_undefined_flag=$lt_no_undefined_flag
8980 # Commands used to finish a libtool library installation in a directory.
8981 finish_cmds=$lt_finish_cmds
8983 # Same as above, but a single script fragment to be evaled but not shown.
8984 finish_eval=$lt_finish_eval
8986 # Take the output of nm and produce a listing of raw symbols and C names.
8987 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8989 # Transform the output of nm in a proper C declaration
8990 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8992 # Transform the output of nm in a C name address pair
8993 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8995 # This is the shared library runtime path variable.
8996 runpath_var=$runpath_var
8998 # This is the shared library path variable.
8999 shlibpath_var=$shlibpath_var
9001 # Is shlibpath searched before the hard-coded library search path?
9002 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9004 # How to hardcode a shared library path into an executable.
9005 hardcode_action=$hardcode_action
9007 # Whether we should hardcode library paths into libraries.
9008 hardcode_into_libs=$hardcode_into_libs
9010 # Flag to hardcode \$libdir into a binary during linking.
9011 # This must work even if \$libdir does not exist.
9012 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9014 # If ld is used when linking, flag to hardcode \$libdir into
9015 # a binary during linking. This must work even if \$libdir does
9017 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9019 # Whether we need a single -rpath flag with a separated argument.
9020 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9022 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9024 hardcode_direct=$hardcode_direct
9026 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9028 hardcode_minus_L=$hardcode_minus_L
9030 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9031 # the resulting binary.
9032 hardcode_shlibpath_var=$hardcode_shlibpath_var
9034 # Set to yes if building a shared library automatically hardcodes DIR into the library
9035 # and all subsequent libraries and executables linked against it.
9036 hardcode_automatic=$hardcode_automatic
9038 # Variables whose values should be saved in libtool wrapper scripts and
9039 # restored at relink time.
9040 variables_saved_for_relink="$variables_saved_for_relink"
9042 # Whether libtool must link a program against all its dependency libraries.
9043 link_all_deplibs=$link_all_deplibs
9045 # Compile-time system search path for libraries
9046 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9048 # Run-time system search path for libraries
9049 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9051 # Fix the shell variable \$srcfile for the compiler.
9052 fix_srcfile_path="$fix_srcfile_path"
9054 # Set to yes if exported symbols are required.
9055 always_export_symbols=$always_export_symbols
9057 # The commands to list exported symbols.
9058 export_symbols_cmds=$lt_export_symbols_cmds
9060 # The commands to extract the exported symbol list from a shared archive.
9061 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9063 # Symbols that should not be listed in the preloaded symbols.
9064 exclude_expsyms=$lt_exclude_expsyms
9066 # Symbols that must always be exported.
9067 include_expsyms=$lt_include_expsyms
9069 # ### END LIBTOOL CONFIG
9076 cat <<\EOF >> "$cfgfile"
9078 # AIX sometimes has problems with the GCC collect2 program. For some
9079 # reason, if we set the COLLECT_NAMES environment variable, the problems
9080 # vanish in a puff of smoke.
9081 if test "X${COLLECT_NAMES+set}" != Xset; then
9083 export COLLECT_NAMES
9089 # We use sed instead of cat because bash on DJGPP gets confused if
9090 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9091 # text mode, it properly converts lines to CR/LF. This bash problem
9092 # is reportedly fixed, but why not run on old versions too?
9093 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9095 mv -f "$cfgfile" "$ofile" || \
9096 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9100 # If there is no Makefile yet, we rely on a make rule to execute
9101 # `config.status --recheck' to rerun these tests and create the
9102 # libtool script then.
9103 test -f Makefile && make "$ltmain"
9108 ac_cpp='$CPP $CPPFLAGS'
9109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9116 # Check whether --with-tags or --without-tags was given.
9117 if test "${with_tags+set}" = set; then
9118 withval="$with_tags"
9122 if test -f "$ltmain" && test -n "$tagnames"; then
9123 if test ! -f "${ofile}"; then
9124 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9125 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9128 if test -z "$LTCC"; then
9129 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9130 if test -z "$LTCC"; then
9131 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9132 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9134 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9135 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9139 # Extract list of available tagged configurations in $ofile.
9140 # Note that this assumes the entire list is on one line.
9141 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9143 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9144 for tagname in $tagnames; do
9146 # Check whether tagname contains only valid characters
9147 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9149 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9150 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9151 { (exit 1); exit 1; }; }
9155 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9157 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9158 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9159 { (exit 1); exit 1; }; }
9162 # Update the list of available tags.
9163 if test -n "$tagname"; then
9164 echo appending configuration tag \"$tagname\" to $ofile
9168 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9170 ac_cpp='$CXXCPP $CPPFLAGS'
9171 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9172 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9173 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9178 archive_cmds_need_lc_CXX=no
9179 allow_undefined_flag_CXX=
9180 always_export_symbols_CXX=no
9181 archive_expsym_cmds_CXX=
9182 export_dynamic_flag_spec_CXX=
9183 hardcode_direct_CXX=no
9184 hardcode_libdir_flag_spec_CXX=
9185 hardcode_libdir_flag_spec_ld_CXX=
9186 hardcode_libdir_separator_CXX=
9187 hardcode_minus_L_CXX=no
9188 hardcode_automatic_CXX=no
9190 module_expsym_cmds_CXX=
9191 link_all_deplibs_CXX=unknown
9192 old_archive_cmds_CXX=$old_archive_cmds
9193 no_undefined_flag_CXX=
9194 whole_archive_flag_spec_CXX=
9195 enable_shared_with_static_runtimes_CXX=no
9197 # Dependencies to place before and after the object being linked:
9199 postdep_objects_CXX=
9202 compiler_lib_search_path_CXX=
9204 # Source file extension for C++ test sources.
9207 # Object file extension for compiled C++ test sources.
9211 # Code to be used in simple compile tests
9212 lt_simple_compile_test_code="int some_variable = 0;\n"
9214 # Code to be used in simple link tests
9215 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9217 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9219 # If no C compiler was specified, use CC.
9222 # Allow CC to be a program name with arguments.
9226 # Allow CC to be a program name with arguments.
9231 lt_save_with_gnu_ld=$with_gnu_ld
9232 lt_save_path_LD=$lt_cv_path_LD
9233 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9234 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9236 unset lt_cv_prog_gnu_ld
9238 if test -n "${lt_cv_path_LDCXX+set}"; then
9239 lt_cv_path_LD=$lt_cv_path_LDCXX
9243 test -z "${LDCXX+set}" || LD=$LDCXX
9247 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9249 # We don't want -fno-exception wen compiling C++ code, so set the
9250 # no_builtin_flag separately
9251 if test "$GXX" = yes; then
9252 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9254 lt_prog_compiler_no_builtin_flag_CXX=
9257 if test "$GXX" = yes; then
9258 # Set up default GNU C++ configuration
9261 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9262 if test "${with_gnu_ld+set}" = set; then
9263 withval="$with_gnu_ld"
9264 test "$withval" = no || with_gnu_ld=yes
9269 if test "$GCC" = yes; then
9270 # Check if gcc -print-prog-name=ld gives a path.
9271 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9272 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9275 # gcc leaves a trailing carriage return which upsets mingw
9276 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9278 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9281 # Accept absolute paths.
9283 re_direlt='/[^/][^/]*/\.\./'
9284 # Canonicalize the path of ld
9285 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9286 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9287 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9289 test -z "$LD" && LD="$ac_prog"
9292 # If it fails, then pretend we aren't using GCC.
9296 # If it is relative, then search for the first ld in PATH.
9300 elif test "$with_gnu_ld" = yes; then
9301 echo "$as_me:$LINENO: checking for GNU ld" >&5
9302 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9304 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9305 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9307 if test "${lt_cv_path_LD+set}" = set; then
9308 echo $ECHO_N "(cached) $ECHO_C" >&6
9310 if test -z "$LD"; then
9311 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9312 for ac_dir in $PATH; do
9314 test -z "$ac_dir" && ac_dir=.
9315 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9316 lt_cv_path_LD="$ac_dir/$ac_prog"
9317 # Check to see if the program is GNU ld. I'd rather use --version,
9318 # but apparently some GNU ld's only accept -v.
9319 # Break only if it was the GNU/non-GNU ld that we prefer.
9320 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9321 *GNU* | *'with BFD'*)
9322 test "$with_gnu_ld" != no && break
9325 test "$with_gnu_ld" != yes && break
9332 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9337 if test -n "$LD"; then
9338 echo "$as_me:$LINENO: result: $LD" >&5
9339 echo "${ECHO_T}$LD" >&6
9341 echo "$as_me:$LINENO: result: no" >&5
9342 echo "${ECHO_T}no" >&6
9344 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9345 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9346 { (exit 1); exit 1; }; }
9347 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9348 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9349 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9350 echo $ECHO_N "(cached) $ECHO_C" >&6
9352 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9353 case `$LD -v 2>&1 </dev/null` in
9354 *GNU* | *'with BFD'*)
9355 lt_cv_prog_gnu_ld=yes
9358 lt_cv_prog_gnu_ld=no
9362 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9363 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9364 with_gnu_ld=$lt_cv_prog_gnu_ld
9368 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9369 # archiving commands below assume that GNU ld is being used.
9370 if test "$with_gnu_ld" = yes; then
9371 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9372 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9374 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9375 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9377 # If archive_cmds runs LD, not CC, wlarc should be empty
9378 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9379 # investigate it a little bit more. (MM)
9382 # ancient GNU ld didn't support --whole-archive et. al.
9383 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9384 grep 'no-whole-archive' > /dev/null; then
9385 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9387 whole_archive_flag_spec_CXX=
9393 # A generic and very simple default shared library creation
9394 # command for GNU C++ for the case where it uses the native
9395 # linker, instead of GNU ld. If possible, this setting should
9396 # overridden to take advantage of the native linker features on
9397 # the platform it is being used on.
9398 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9401 # Commands to make compiler produce verbose output that lists
9402 # what "hidden" libraries, object files and flags are used when
9403 # linking a shared library.
9404 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9412 # PORTME: fill in a description of your system's C++ link characteristics
9413 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9414 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9418 # FIXME: insert proper C++ library support
9422 if test "$host_cpu" = ia64; then
9423 # On IA64, the linker does run time linking by default, so we don't
9424 # have to do anything special.
9425 aix_use_runtimelinking=no
9426 exp_sym_flag='-Bexport'
9429 aix_use_runtimelinking=no
9431 # Test if we are trying to use run time linking or normal
9432 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9433 # need to do runtime linking.
9434 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9435 for ld_flag in $LDFLAGS; do
9438 aix_use_runtimelinking=yes
9445 exp_sym_flag='-bexport'
9446 no_entry_flag='-bnoentry'
9449 # When large executables or shared objects are built, AIX ld can
9450 # have problems creating the table of contents. If linking a library
9451 # or program results in "error TOC overflow" add -mminimal-toc to
9452 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9453 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9456 hardcode_direct_CXX=yes
9457 hardcode_libdir_separator_CXX=':'
9458 link_all_deplibs_CXX=yes
9460 if test "$GXX" = yes; then
9461 case $host_os in aix4.012|aix4.012.*)
9462 # We only want to do this on AIX 4.2 and lower, the check
9463 # below for broken collect2 doesn't work under 4.3+
9464 collect2name=`${CC} -print-prog-name=collect2`
9465 if test -f "$collect2name" && \
9466 strings "$collect2name" | grep resolve_lib_name >/dev/null
9468 # We have reworked collect2
9469 hardcode_direct_CXX=yes
9471 # We have old collect2
9472 hardcode_direct_CXX=unsupported
9473 # It fails to find uninstalled libraries when the uninstalled
9474 # path is not listed in the libpath. Setting hardcode_minus_L
9475 # to unsupported forces relinking
9476 hardcode_minus_L_CXX=yes
9477 hardcode_libdir_flag_spec_CXX='-L$libdir'
9478 hardcode_libdir_separator_CXX=
9481 shared_flag='-shared'
9484 if test "$host_cpu" = ia64; then
9485 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9486 # chokes on -Wl,-G. The following line is correct:
9489 if test "$aix_use_runtimelinking" = yes; then
9490 shared_flag='${wl}-G'
9492 shared_flag='${wl}-bM:SRE'
9497 # It seems that -bexpall does not export symbols beginning with
9498 # underscore (_), so it is better to generate a list of symbols to export.
9499 always_export_symbols_CXX=yes
9500 if test "$aix_use_runtimelinking" = yes; then
9501 # Warning - without using the other runtime loading flags (-brtl),
9502 # -berok will link without error, but may produce a broken library.
9503 allow_undefined_flag_CXX='-berok'
9504 # Determine the default libpath from the value encoded in an empty executable.
9505 cat >conftest.$ac_ext <<_ACEOF
9506 #line $LINENO "configure"
9509 cat confdefs.h >>conftest.$ac_ext
9510 cat >>conftest.$ac_ext <<_ACEOF
9511 /* end confdefs.h. */
9521 rm -f conftest.$ac_objext conftest$ac_exeext
9522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9523 (eval $ac_link) 2>&5
9525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); } &&
9527 { ac_try='test -s conftest$ac_exeext'
9528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); }; }; then
9534 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9536 # Check for a 64-bit object if we didn't find anything.
9537 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9540 echo "$as_me: failed program was:" >&5
9541 sed 's/^/| /' conftest.$ac_ext >&5
9544 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9545 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9547 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9549 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9551 if test "$host_cpu" = ia64; then
9552 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9553 allow_undefined_flag_CXX="-z nodefs"
9554 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9556 # Determine the default libpath from the value encoded in an empty executable.
9557 cat >conftest.$ac_ext <<_ACEOF
9558 #line $LINENO "configure"
9561 cat confdefs.h >>conftest.$ac_ext
9562 cat >>conftest.$ac_ext <<_ACEOF
9563 /* end confdefs.h. */
9573 rm -f conftest.$ac_objext conftest$ac_exeext
9574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9575 (eval $ac_link) 2>&5
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); } &&
9579 { ac_try='test -s conftest$ac_exeext'
9580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); }; }; then
9586 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9588 # Check for a 64-bit object if we didn't find anything.
9589 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9592 echo "$as_me: failed program was:" >&5
9593 sed 's/^/| /' conftest.$ac_ext >&5
9596 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9597 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9599 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9600 # Warning - without using the other run time loading flags,
9601 # -berok will link without error, but may produce a broken library.
9602 no_undefined_flag_CXX=' ${wl}-bernotok'
9603 allow_undefined_flag_CXX=' ${wl}-berok'
9604 # -bexpall does not export symbols beginning with underscore (_)
9605 always_export_symbols_CXX=yes
9606 # Exported symbols can be pulled into shared objects from archives
9607 whole_archive_flag_spec_CXX=' '
9608 archive_cmds_need_lc_CXX=yes
9609 # This is similar to how AIX traditionally builds it's shared libraries.
9610 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9615 case $cc_basename in
9617 # FIXME: insert proper C++ library support
9623 cygwin* | mingw* | pw32*)
9624 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9625 # as there is no search path for DLLs.
9626 hardcode_libdir_flag_spec_CXX='-L$libdir'
9627 allow_undefined_flag_CXX=unsupported
9628 always_export_symbols_CXX=no
9629 enable_shared_with_static_runtimes_CXX=yes
9631 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9632 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9633 # If the export-symbols file already is a .def file (1st line
9634 # is EXPORTS), use it as is; otherwise, prepend...
9635 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9636 cp $export_symbols $output_objdir/$soname.def;
9638 echo EXPORTS > $output_objdir/$soname.def;
9639 cat $export_symbols >> $output_objdir/$soname.def;
9641 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9647 darwin* | rhapsody*)
9648 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9649 archive_cmds_need_lc_CXX=no
9651 rhapsody* | darwin1.[012])
9652 allow_undefined_flag_CXX='-undefined suppress'
9655 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9658 lt_int_apple_cc_single_mod=no
9659 output_verbose_link_cmd='echo'
9660 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9661 lt_int_apple_cc_single_mod=yes
9663 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9664 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9666 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9668 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9670 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9671 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9672 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9674 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9676 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9677 hardcode_direct_CXX=no
9678 hardcode_automatic_CXX=yes
9679 hardcode_shlibpath_var_CXX=unsupported
9680 whole_archive_flag_spec_CXX='-all_load $convenience'
9681 link_all_deplibs_CXX=yes
9686 case $cc_basename in
9688 # FIXME: insert proper C++ library support
9692 # Green Hills C++ Compiler
9693 # FIXME: insert proper C++ library support
9697 # FIXME: insert proper C++ library support
9703 # C++ shared libraries reported to be fairly broken before switch to ELF
9707 archive_cmds_need_lc_CXX=no
9710 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9717 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9718 hardcode_libdir_separator_CXX=:
9719 export_dynamic_flag_spec_CXX='${wl}-E'
9720 hardcode_direct_CXX=yes
9721 hardcode_minus_L_CXX=yes # Not in the search PATH,
9722 # but as the default
9723 # location of the library.
9725 case $cc_basename in
9727 # FIXME: insert proper C++ library support
9731 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9732 # Commands to make compiler produce verbose output that lists
9733 # what "hidden" libraries, object files and flags are used when
9734 # linking a shared library.
9736 # There doesn't appear to be a way to prevent this compiler from
9737 # explicitly linking system object files so we need to strip them
9738 # from the output so that they don't get included in the library
9740 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9743 if test "$GXX" = yes; then
9744 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9746 # FIXME: insert proper C++ library support
9753 if test $with_gnu_ld = no; then
9756 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9757 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9758 hardcode_libdir_separator_CXX=:
9761 hardcode_libdir_flag_spec_CXX='-L$libdir'
9764 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9765 hardcode_libdir_separator_CXX=:
9766 export_dynamic_flag_spec_CXX='${wl}-E'
9772 hardcode_direct_CXX=no
9773 hardcode_shlibpath_var_CXX=no
9776 hardcode_direct_CXX=no
9777 hardcode_shlibpath_var_CXX=no
9778 hardcode_minus_L_CXX=yes # Not in the search PATH,
9779 # but as the default
9780 # location of the library.
9783 hardcode_direct_CXX=yes
9784 hardcode_minus_L_CXX=yes # Not in the search PATH,
9785 # but as the default
9786 # location of the library.
9790 case $cc_basename in
9792 # FIXME: insert proper C++ library support
9798 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9801 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9804 # Commands to make compiler produce verbose output that lists
9805 # what "hidden" libraries, object files and flags are used when
9806 # linking a shared library.
9808 # There doesn't appear to be a way to prevent this compiler from
9809 # explicitly linking system object files so we need to strip them
9810 # from the output so that they don't get included in the library
9812 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9815 if test "$GXX" = yes; then
9816 if test $with_gnu_ld = no; then
9819 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9822 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9827 # FIXME: insert proper C++ library support
9834 case $cc_basename in
9837 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9839 # Archives containing C++ object files must be created using
9840 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9841 # necessary to make sure instantiated templates are included
9843 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9846 if test "$GXX" = yes; then
9847 if test "$with_gnu_ld" = no; then
9848 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9850 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
9853 link_all_deplibs_CXX=yes
9856 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9857 hardcode_libdir_separator_CXX=:
9860 case $cc_basename in
9862 # Kuck and Associates, Inc. (KAI) C++ Compiler
9864 # KCC will only create a shared library if the output file
9865 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9866 # to its proper name (with version) after linking.
9867 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9868 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
9869 # Commands to make compiler produce verbose output that lists
9870 # what "hidden" libraries, object files and flags are used when
9871 # linking a shared library.
9873 # There doesn't appear to be a way to prevent this compiler from
9874 # explicitly linking system object files so we need to strip them
9875 # from the output so that they don't get included in the library
9877 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9879 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9880 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9882 # Archives containing C++ object files must be created using
9883 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9884 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9889 archive_cmds_need_lc_CXX=no
9890 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9891 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9892 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9893 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9894 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9898 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9899 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
9901 runpath_var=LD_RUN_PATH
9902 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9903 hardcode_libdir_separator_CXX=:
9905 # Commands to make compiler produce verbose output that lists
9906 # what "hidden" libraries, object files and flags are used when
9907 # linking a shared library.
9909 # There doesn't appear to be a way to prevent this compiler from
9910 # explicitly linking system object files so we need to strip them
9911 # from the output so that they don't get included in the library
9913 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9918 # FIXME: insert proper C++ library support
9922 # FIXME: insert proper C++ library support
9926 case $cc_basename in
9928 # FIXME: insert proper C++ library support
9932 # FIXME: insert proper C++ library support
9938 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9939 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9941 hardcode_libdir_flag_spec_CXX='-R$libdir'
9942 hardcode_direct_CXX=yes
9943 hardcode_shlibpath_var_CXX=no
9945 # Workaround some broken pre-1.5 toolchains
9946 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9949 case $cc_basename in
9951 # Kuck and Associates, Inc. (KAI) C++ Compiler
9953 # KCC will only create a shared library if the output file
9954 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9955 # to its proper name (with version) after linking.
9956 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9958 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9959 hardcode_libdir_separator_CXX=:
9961 # Archives containing C++ object files must be created using
9962 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9963 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9967 # Rational C++ 2.4.1
9968 # FIXME: insert proper C++ library support
9972 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9973 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9975 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9976 hardcode_libdir_separator_CXX=:
9978 # Commands to make compiler produce verbose output that lists
9979 # what "hidden" libraries, object files and flags are used when
9980 # linking a shared library.
9982 # There doesn't appear to be a way to prevent this compiler from
9983 # explicitly linking system object files so we need to strip them
9984 # from the output so that they don't get included in the library
9986 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9989 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9990 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9991 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9993 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9994 hardcode_libdir_separator_CXX=:
9996 # Commands to make compiler produce verbose output that lists
9997 # what "hidden" libraries, object files and flags are used when
9998 # linking a shared library.
9999 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10002 # FIXME: insert proper C++ library support
10009 case $cc_basename in
10011 # Kuck and Associates, Inc. (KAI) C++ Compiler
10013 # KCC will only create a shared library if the output file
10014 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10015 # to its proper name (with version) after linking.
10016 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10018 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10019 hardcode_libdir_separator_CXX=:
10021 # Archives containing C++ object files must be created using
10022 # the KAI C++ compiler.
10023 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10026 # Rational C++ 2.4.1
10027 # FIXME: insert proper C++ library support
10031 allow_undefined_flag_CXX=' -expect_unresolved \*'
10032 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10033 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10034 echo "-hidden">> $lib.exp~
10035 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10038 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10039 hardcode_libdir_separator_CXX=:
10041 # Commands to make compiler produce verbose output that lists
10042 # what "hidden" libraries, object files and flags are used when
10043 # linking a shared library.
10045 # There doesn't appear to be a way to prevent this compiler from
10046 # explicitly linking system object files so we need to strip them
10047 # from the output so that they don't get included in the library
10049 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10052 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10053 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10054 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10056 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10057 hardcode_libdir_separator_CXX=:
10059 # Commands to make compiler produce verbose output that lists
10060 # what "hidden" libraries, object files and flags are used when
10061 # linking a shared library.
10062 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10065 # FIXME: insert proper C++ library support
10072 # FIXME: insert proper C++ library support
10076 archive_cmds_need_lc_CXX=no
10077 case $cc_basename in
10079 # FIXME: insert proper C++ library support
10083 # FIXME: insert proper C++ library support
10089 case $cc_basename in
10092 # FIXME: insert proper C++ library support
10097 # FIXME: insert proper C++ library support
10101 # FIXME: insert proper C++ library support
10107 case $cc_basename in
10109 # Sun C++ 4.2, 5.x and Centerline C++
10110 no_undefined_flag_CXX=' -zdefs'
10111 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10112 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10113 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10115 hardcode_libdir_flag_spec_CXX='-R$libdir'
10116 hardcode_shlibpath_var_CXX=no
10118 solaris2.0-5 | solaris2.0-5.*) ;;
10120 # The C++ compiler is used as linker so we must use $wl
10121 # flag to pass the commands to the underlying system
10123 # Supported since Solaris 2.6 (maybe 2.5.1?)
10124 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10127 link_all_deplibs_CXX=yes
10129 # Commands to make compiler produce verbose output that lists
10130 # what "hidden" libraries, object files and flags are used when
10131 # linking a shared library.
10133 # There doesn't appear to be a way to prevent this compiler from
10134 # explicitly linking system object files so we need to strip them
10135 # from the output so that they don't get included in the library
10137 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10139 # Archives containing C++ object files must be created using
10140 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10141 # necessary to make sure instantiated templates are included
10143 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10146 # Green Hills C++ Compiler
10147 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10149 # The C++ compiler must be used to create the archive.
10150 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10153 # GNU C++ compiler with Solaris linker
10154 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10155 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10156 if $CC --version | grep -v '^2\.7' > /dev/null; then
10157 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10158 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10159 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10161 # Commands to make compiler produce verbose output that lists
10162 # what "hidden" libraries, object files and flags are used when
10163 # linking a shared library.
10164 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10166 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10168 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10169 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10170 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10172 # Commands to make compiler produce verbose output that lists
10173 # what "hidden" libraries, object files and flags are used when
10174 # linking a shared library.
10175 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10178 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10183 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10184 archive_cmds_need_lc_CXX=no
10187 case $cc_basename in
10189 # NonStop-UX NCC 3.20
10190 # FIXME: insert proper C++ library support
10194 # FIXME: insert proper C++ library support
10200 # FIXME: insert proper C++ library support
10204 # FIXME: insert proper C++ library support
10208 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10209 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10210 test "$ld_shlibs_CXX" = no && can_build_shared=no
10216 cat > conftest.$ac_ext <<EOF
10220 Foo (void) { a = 0; }
10226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10227 (eval $ac_compile) 2>&5
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); }; then
10231 # Parse the compiler output and extract the necessary
10232 # objects, libraries and library flags.
10234 # Sentinel used to keep track of whether or not we are before
10235 # the conftest object file.
10236 pre_test_object_deps_done=no
10238 # The `*' in the case matches for architectures that use `case' in
10239 # $output_verbose_cmd can trigger glob expansion during the loop
10240 # eval without this substitution.
10241 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10243 for p in `eval $output_verbose_link_cmd`; do
10247 # Some compilers place space between "-{L,R}" and the path.
10248 # Remove the space.
10249 if test $p = "-L" \
10250 || test $p = "-R"; then
10257 if test "$pre_test_object_deps_done" = no; then
10260 # Internal compiler library paths should come after those
10261 # provided the user. The postdeps already come after the
10262 # user supplied libs so there is no need to process them.
10263 if test -z "$compiler_lib_search_path_CXX"; then
10264 compiler_lib_search_path_CXX="${prev}${p}"
10266 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10269 # The "-l" case would never come before the object being
10270 # linked, so don't bother handling this case.
10273 if test -z "$postdeps_CXX"; then
10274 postdeps_CXX="${prev}${p}"
10276 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10282 # This assumes that the test object file only shows up
10283 # once in the compiler output.
10284 if test "$p" = "conftest.$objext"; then
10285 pre_test_object_deps_done=yes
10289 if test "$pre_test_object_deps_done" = no; then
10290 if test -z "$predep_objects_CXX"; then
10291 predep_objects_CXX="$p"
10293 predep_objects_CXX="$predep_objects_CXX $p"
10296 if test -z "$postdep_objects_CXX"; then
10297 postdep_objects_CXX="$p"
10299 postdep_objects_CXX="$postdep_objects_CXX $p"
10304 *) ;; # Ignore the rest.
10312 echo "libtool.m4: error: problem compiling CXX test program"
10315 $rm -f confest.$objext
10317 case " $postdeps_CXX " in
10318 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10321 lt_prog_compiler_wl_CXX=
10322 lt_prog_compiler_pic_CXX=
10323 lt_prog_compiler_static_CXX=
10325 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10326 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10328 # C++ specific cases for pic, static, wl, etc.
10329 if test "$GXX" = yes; then
10330 lt_prog_compiler_wl_CXX='-Wl,'
10331 lt_prog_compiler_static_CXX='-static'
10335 # All AIX code is PIC.
10336 if test "$host_cpu" = ia64; then
10337 # AIX 5 now supports IA64 processor
10338 lt_prog_compiler_static_CXX='-Bstatic'
10342 # FIXME: we need at least 68020 code to build shared libraries, but
10343 # adding the `-m68020' flag to GCC prevents building anything better,
10345 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10347 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10348 # PIC is the default for these OSes.
10350 mingw* | os2* | pw32*)
10351 # This hack is so that the source file can tell whether it is being
10352 # built for inclusion in a dll (and should export symbols for example).
10353 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10355 darwin* | rhapsody*)
10356 # PIC is the default on this platform
10357 # Common symbols not allowed in MH_DYLIB files
10358 lt_prog_compiler_pic_CXX='-fno-common'
10361 # DJGPP does not support shared libraries at all
10362 lt_prog_compiler_pic_CXX=
10365 if test -d /usr/nec; then
10366 lt_prog_compiler_pic_CXX=-Kconform_pic
10370 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10371 # not for PA HP-UX.
10372 case "$host_cpu" in
10376 lt_prog_compiler_pic_CXX='-fPIC'
10381 lt_prog_compiler_pic_CXX='-fPIC'
10387 # All AIX code is PIC.
10388 if test "$host_cpu" = ia64; then
10389 # AIX 5 now supports IA64 processor
10390 lt_prog_compiler_static_CXX='-Bstatic'
10392 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10396 case $cc_basename in
10398 # Green Hills C++ Compiler
10399 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
10404 case $cc_basename in
10406 lt_prog_compiler_pic_CXX='-KPIC'
10409 # Green Hills C++ Compiler
10410 lt_prog_compiler_pic_CXX='-pic'
10417 # FreeBSD uses GNU C++
10419 hpux9* | hpux10* | hpux11*)
10420 case $cc_basename in
10422 lt_prog_compiler_wl_CXX='-Wl,'
10423 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10424 if test "$host_cpu" != ia64; then
10425 lt_prog_compiler_pic_CXX='+Z'
10429 lt_prog_compiler_wl_CXX='-Wl,'
10430 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10431 case "$host_cpu" in
10436 lt_prog_compiler_pic_CXX='+Z'
10444 irix5* | irix6* | nonstopux*)
10445 case $cc_basename in
10447 lt_prog_compiler_wl_CXX='-Wl,'
10448 lt_prog_compiler_static_CXX='-non_shared'
10449 # CC pic flag -KPIC is the default.
10456 case $cc_basename in
10459 lt_prog_compiler_wl_CXX='--backend -Wl,'
10460 lt_prog_compiler_pic_CXX='-fPIC'
10464 lt_prog_compiler_wl_CXX='-Wl,'
10465 lt_prog_compiler_pic_CXX='-KPIC'
10466 lt_prog_compiler_static_CXX='-static'
10470 # Make sure the PIC flag is empty. It appears that all Alpha
10471 # Linux and Compaq Tru64 Unix objects are PIC.
10472 lt_prog_compiler_pic_CXX=
10473 lt_prog_compiler_static_CXX='-non_shared'
10484 case $cc_basename in
10486 lt_prog_compiler_pic_CXX='-W c,exportall'
10494 osf3* | osf4* | osf5*)
10495 case $cc_basename in
10497 lt_prog_compiler_wl_CXX='--backend -Wl,'
10500 # Rational C++ 2.4.1
10501 lt_prog_compiler_pic_CXX='-pic'
10504 # Digital/Compaq C++
10505 lt_prog_compiler_wl_CXX='-Wl,'
10506 # Make sure the PIC flag is empty. It appears that all Alpha
10507 # Linux and Compaq Tru64 Unix objects are PIC.
10508 lt_prog_compiler_pic_CXX=
10509 lt_prog_compiler_static_CXX='-non_shared'
10518 case $cc_basename in
10520 lt_prog_compiler_pic_CXX='-fPIC'
10527 case $cc_basename in
10529 # Sun C++ 4.2, 5.x and Centerline C++
10530 lt_prog_compiler_pic_CXX='-KPIC'
10531 lt_prog_compiler_static_CXX='-Bstatic'
10532 lt_prog_compiler_wl_CXX='-Qoption ld '
10535 # Green Hills C++ Compiler
10536 lt_prog_compiler_pic_CXX='-PIC'
10543 case $cc_basename in
10546 lt_prog_compiler_pic_CXX='-pic'
10547 lt_prog_compiler_static_CXX='-Bstatic'
10551 lt_prog_compiler_pic_CXX='-pic'
10558 case $cc_basename in
10560 # NonStop-UX NCC 3.20
10561 lt_prog_compiler_pic_CXX='-KPIC'
10572 lt_prog_compiler_can_build_shared_CXX=no
10577 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10578 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10581 # Check to make sure the PIC flag actually works.
10583 if test -n "$lt_prog_compiler_pic_CXX"; then
10584 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10585 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10586 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10587 echo $ECHO_N "(cached) $ECHO_C" >&6
10589 lt_prog_compiler_pic_works_CXX=no
10590 ac_outfile=conftest.$ac_objext
10591 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10592 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10593 # Insert the option either (1) after the last *FLAGS variable, or
10594 # (2) before a word containing "conftest.", or (3) at the end.
10595 # Note that $ac_compile itself does not contain backslashes and begins
10596 # with a dollar sign (not a hyphen), so the echo should work correctly.
10597 # The option is referenced via a variable to avoid confusing sed.
10598 lt_compile=`echo "$ac_compile" | $SED \
10599 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10600 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10601 -e 's:$: $lt_compiler_flag:'`
10602 (eval echo "\"\$as_me:10602: $lt_compile\"" >&5)
10603 (eval "$lt_compile" 2>conftest.err)
10605 cat conftest.err >&5
10606 echo "$as_me:10606: \$? = $ac_status" >&5
10607 if (exit $ac_status) && test -s "$ac_outfile"; then
10608 # The compiler can only warn and ignore the option if not recognized
10609 # So say no if there are warnings
10610 if test ! -s conftest.err; then
10611 lt_prog_compiler_pic_works_CXX=yes
10617 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10618 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10620 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10621 case $lt_prog_compiler_pic_CXX in
10623 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10626 lt_prog_compiler_pic_CXX=
10627 lt_prog_compiler_can_build_shared_CXX=no
10632 # For platforms which do not support PIC, -DPIC is meaningless:
10634 lt_prog_compiler_pic_CXX=
10637 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10641 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10642 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10643 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10644 echo $ECHO_N "(cached) $ECHO_C" >&6
10646 lt_cv_prog_compiler_c_o_CXX=no
10647 $rm -r conftest 2>/dev/null
10651 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10653 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10654 # that will create temporary files in the current directory regardless of
10655 # the output directory. Thus, making CWD read-only will cause this test
10656 # to fail, enabling locking or at least warning the user not to do parallel
10660 lt_compiler_flag="-o out/conftest2.$ac_objext"
10661 # Insert the option either (1) after the last *FLAGS variable, or
10662 # (2) before a word containing "conftest.", or (3) at the end.
10663 # Note that $ac_compile itself does not contain backslashes and begins
10664 # with a dollar sign (not a hyphen), so the echo should work correctly.
10665 lt_compile=`echo "$ac_compile" | $SED \
10666 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10667 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10668 -e 's:$: $lt_compiler_flag:'`
10669 (eval echo "\"\$as_me:10669: $lt_compile\"" >&5)
10670 (eval "$lt_compile" 2>out/conftest.err)
10672 cat out/conftest.err >&5
10673 echo "$as_me:10673: \$? = $ac_status" >&5
10674 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10676 # The compiler can only warn and ignore the option if not recognized
10677 # So say no if there are warnings
10678 if test ! -s out/conftest.err; then
10679 lt_cv_prog_compiler_c_o_CXX=yes
10683 $rm conftest* out/*
10690 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10691 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10694 hard_links="nottested"
10695 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10696 # do not overwrite the value of need_locks provided by the user
10697 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10698 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10701 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10703 ln conftest.a conftest.b 2>&5 || hard_links=no
10704 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10705 echo "$as_me:$LINENO: result: $hard_links" >&5
10706 echo "${ECHO_T}$hard_links" >&6
10707 if test "$hard_links" = no; then
10708 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10709 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10716 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10717 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10719 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10722 # If we're using GNU nm, then we don't want the "-C" option.
10723 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10724 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10725 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
10727 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
10731 export_symbols_cmds_CXX="$ltdll_cmds"
10734 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10737 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10741 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10742 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10743 test "$ld_shlibs_CXX" = no && can_build_shared=no
10745 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10746 if test "$GCC" = yes; then
10747 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10751 # Do we need to explicitly link libc?
10753 case "x$archive_cmds_need_lc_CXX" in
10755 # Assume -lc should be added
10756 archive_cmds_need_lc_CXX=yes
10758 if test "$enable_shared" = yes && test "$GCC" = yes; then
10759 case $archive_cmds_CXX in
10761 # FIXME: we may have to deal with multi-command sequences.
10764 # Test whether the compiler implicitly links with -lc since on some
10765 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10766 # to ld, don't add -lc before -lgcc.
10767 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10768 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10770 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10773 (eval $ac_compile) 2>&5
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); } 2>conftest.err; then
10779 libobjs=conftest.$ac_objext
10781 wl=$lt_prog_compiler_wl_CXX
10787 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10788 allow_undefined_flag_CXX=
10789 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10790 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); }
10795 archive_cmds_need_lc_CXX=no
10797 archive_cmds_need_lc_CXX=yes
10799 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10801 cat conftest.err 1>&5
10804 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10805 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10812 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10813 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10814 hardcode_action_CXX=
10815 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10816 test -n "$runpath_var CXX" || \
10817 test "X$hardcode_automatic_CXX"="Xyes" ; then
10819 # We can hardcode non-existant directories.
10820 if test "$hardcode_direct_CXX" != no &&
10821 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10822 # have to relink, otherwise we might link with an installed library
10823 # when we should be linking with a yet-to-be-installed one
10824 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10825 test "$hardcode_minus_L_CXX" != no; then
10826 # Linking always hardcodes the temporary library directory.
10827 hardcode_action_CXX=relink
10829 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10830 hardcode_action_CXX=immediate
10833 # We cannot hardcode anything, or else we can only hardcode existing
10835 hardcode_action_CXX=unsupported
10837 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10838 echo "${ECHO_T}$hardcode_action_CXX" >&6
10840 if test "$hardcode_action_CXX" = relink; then
10841 # Fast installation is not supported
10842 enable_fast_install=no
10843 elif test "$shlibpath_overrides_runpath" = yes ||
10844 test "$enable_shared" = no; then
10845 # Fast installation is not necessary
10846 enable_fast_install=needless
10851 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10852 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10853 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10854 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10855 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10856 echo "$as_me:$LINENO: result: yes" >&5
10857 echo "${ECHO_T}yes" >&6
10859 # FIXME - insert some real tests, host_os isn't really good enough
10862 if test -n "$STRIP" ; then
10863 striplib="$STRIP -x"
10864 echo "$as_me:$LINENO: result: yes" >&5
10865 echo "${ECHO_T}yes" >&6
10867 echo "$as_me:$LINENO: result: no" >&5
10868 echo "${ECHO_T}no" >&6
10872 echo "$as_me:$LINENO: result: no" >&5
10873 echo "${ECHO_T}no" >&6
10878 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10879 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10880 library_names_spec=
10881 libname_spec='lib$name'
10885 postuninstall_cmds=
10889 shlibpath_overrides_runpath=unknown
10891 dynamic_linker="$host_os ld.so"
10892 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10893 if test "$GCC" = yes; then
10894 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10895 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10896 # if the path contains ";" then we assume it to be the separator
10897 # otherwise default to the standard path separator (i.e. ":") - it is
10898 # assumed that no part of a normal pathname contains ";" but that should
10899 # okay in the real world where ";" in dirpaths is itself problematic.
10900 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10902 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10905 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10907 need_lib_prefix=unknown
10908 hardcode_into_libs=no
10910 # when you set need_version to no, make sure it does not cause -set_version
10911 # flags to be left without arguments
10912 need_version=unknown
10917 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10918 shlibpath_var=LIBPATH
10920 # AIX 3 has no versioning support, so we append a major version to the name.
10921 soname_spec='${libname}${release}${shared_ext}$major'
10928 hardcode_into_libs=yes
10929 if test "$host_cpu" = ia64; then
10930 # AIX 5 supports IA64
10931 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10932 shlibpath_var=LD_LIBRARY_PATH
10934 # With GCC up to 2.95.x, collect2 would create an import file
10935 # for dependence libraries. The import file would start with
10936 # the line `#! .'. This would cause the generated library to
10937 # depend on `.', always an invalid library. This was fixed in
10938 # development snapshots of GCC prior to 3.0.
10940 aix4 | aix4.[01] | aix4.[01].*)
10941 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10943 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10946 can_build_shared=no
10950 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10951 # soname into executable. Probably we can add versioning support to
10952 # collect2, so additional links can be useful in future.
10953 if test "$aix_use_runtimelinking" = yes; then
10954 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10955 # instead of lib<name>.a to let people know that these are not
10956 # typical AIX shared libraries.
10957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10959 # We preserve .a as extension for shared libraries through AIX4.2
10960 # and later when we are not doing run time linking.
10961 library_names_spec='${libname}${release}.a $libname.a'
10962 soname_spec='${libname}${release}${shared_ext}$major'
10964 shlibpath_var=LIBPATH
10969 library_names_spec='$libname.ixlibrary $libname.a'
10970 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10971 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'
10975 library_names_spec='${libname}${shared_ext}'
10976 dynamic_linker="$host_os ld.so"
10977 shlibpath_var=LIBRARY_PATH
10983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10984 soname_spec='${libname}${release}${shared_ext}$major'
10985 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10986 shlibpath_var=LD_LIBRARY_PATH
10987 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10988 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10989 # the default ld.so.conf also contains /usr/contrib/lib and
10990 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10991 # libtool to hard-code these into programs
10994 cygwin* | mingw* | pw32*)
10995 version_type=windows
11000 case $GCC,$host_os in
11001 yes,cygwin* | yes,mingw* | yes,pw32*)
11002 library_names_spec='$libname.dll.a'
11003 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11004 postinstall_cmds='base_file=`basename \${file}`~
11005 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11006 dldir=$destdir/`dirname \$dlpath`~
11007 test -d \$dldir || mkdir -p \$dldir~
11008 $install_prog $dir/$dlname \$dldir/$dlname'
11009 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11010 dlpath=$dir/\$dldll~
11012 shlibpath_overrides_runpath=yes
11016 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11017 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11018 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11021 # MinGW DLLs use traditional 'lib' prefix
11022 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11023 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11024 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11025 # It is most probably a Windows format PATH printed by
11026 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11027 # path with ; separators, and with drive letters. We can handle the
11028 # drive letters (cygwin fileutils understands them), so leave them,
11029 # especially as we might pass files found there to a mingw objdump,
11030 # which wouldn't understand a cygwinified path. Ahh.
11031 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11033 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11037 # pw32 DLLs use 'pw' prefix rather than 'lib'
11038 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11044 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11047 dynamic_linker='Win32 ld.exe'
11048 # FIXME: first we should search . and the directory the executable is in
11052 darwin* | rhapsody*)
11053 dynamic_linker="$host_os dyld"
11054 version_type=darwin
11057 # FIXME: Relying on posixy $() will cause problems for
11058 # cross-compilation, but unfortunately the echo tests do not
11059 # yet detect zsh echo's removal of \ escapes.
11060 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11061 soname_spec='${libname}${release}${major}$shared_ext'
11062 shlibpath_overrides_runpath=yes
11063 shlibpath_var=DYLD_LIBRARY_PATH
11064 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11065 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11066 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11067 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11069 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11077 soname_spec='${libname}${release}${shared_ext}$major'
11078 shlibpath_var=LD_LIBRARY_PATH
11086 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11087 version_type=freebsd-$objformat
11088 case $version_type in
11090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11095 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11099 shlibpath_var=LD_LIBRARY_PATH
11102 shlibpath_overrides_runpath=yes
11104 freebsd3.01* | freebsdelf3.01*)
11105 shlibpath_overrides_runpath=yes
11106 hardcode_into_libs=yes
11109 shlibpath_overrides_runpath=no
11110 hardcode_into_libs=yes
11119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11120 soname_spec='${libname}${release}${shared_ext}$major'
11121 shlibpath_var=LD_LIBRARY_PATH
11122 hardcode_into_libs=yes
11125 hpux9* | hpux10* | hpux11*)
11126 # Give a soname corresponding to the major version so that dld.sl refuses to
11127 # link against other versions.
11131 case "$host_cpu" in
11134 hardcode_into_libs=yes
11135 dynamic_linker="$host_os dld.so"
11136 shlibpath_var=LD_LIBRARY_PATH
11137 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11139 soname_spec='${libname}${release}${shared_ext}$major'
11140 if test "X$HPUX_IA64_MODE" = X32; then
11141 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11143 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11145 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11149 hardcode_into_libs=yes
11150 dynamic_linker="$host_os dld.sl"
11151 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11152 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11154 soname_spec='${libname}${release}${shared_ext}$major'
11155 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11156 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11160 dynamic_linker="$host_os dld.sl"
11161 shlibpath_var=SHLIB_PATH
11162 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11164 soname_spec='${libname}${release}${shared_ext}$major'
11167 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11168 postinstall_cmds='chmod 555 $lib'
11171 irix5* | irix6* | nonstopux*)
11173 nonstopux*) version_type=nonstopux ;;
11175 if test "$lt_cv_prog_gnu_ld" = yes; then
11183 soname_spec='${libname}${release}${shared_ext}$major'
11184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11186 irix5* | nonstopux*)
11187 libsuff= shlibsuff=
11190 case $LD in # libtool.m4 will add one of these switches to LD
11191 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11192 libsuff= shlibsuff= libmagic=32-bit;;
11193 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11194 libsuff=32 shlibsuff=N32 libmagic=N32;;
11195 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11196 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11197 *) libsuff= shlibsuff= libmagic=never-match;;
11201 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11202 shlibpath_overrides_runpath=no
11203 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11204 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11205 hardcode_into_libs=yes
11208 # No shared lib support for Linux oldld, aout, or coff.
11209 linux*oldld* | linux*aout* | linux*coff*)
11213 # This must be Linux ELF.
11218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11219 soname_spec='${libname}${release}${shared_ext}$major'
11220 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11221 shlibpath_var=LD_LIBRARY_PATH
11222 shlibpath_overrides_runpath=no
11223 # This implies no fast_install, which is unacceptable.
11224 # Some rework will be needed to allow for fast_install
11225 # before this can be enabled.
11226 hardcode_into_libs=yes
11228 # We used to test for /lib/ld.so.1 and disable shared libraries on
11229 # powerpc, because MkLinux only supported shared libraries with the
11230 # GNU dynamic linker. Since this was broken with cross compilers,
11231 # most powerpc-linux boxes support dynamic linking these days and
11232 # people can always --disable-shared, the test was removed, and we
11233 # assume the GNU/Linux dynamic linker is in use.
11234 dynamic_linker='GNU/Linux ld.so'
11236 # Find out which ABI we are using (multilib Linux x86_64 hack).
11238 case "$host_cpu" in
11240 echo '#line 11240 "configure"' > conftest.$ac_ext
11241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11242 (eval $ac_compile) 2>&5
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); }; then
11246 case `/usr/bin/file conftest.$ac_objext` in
11257 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
11258 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
11265 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11267 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11268 dynamic_linker='NetBSD (a.out) ld.so'
11270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11271 soname_spec='${libname}${release}${shared_ext}$major'
11272 dynamic_linker='NetBSD ld.elf_so'
11274 shlibpath_var=LD_LIBRARY_PATH
11275 shlibpath_overrides_runpath=yes
11276 hardcode_into_libs=yes
11281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11282 shlibpath_var=LD_LIBRARY_PATH
11283 shlibpath_overrides_runpath=yes
11290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11291 soname_spec='${libname}${release}${shared_ext}$major'
11292 shlibpath_var=LD_LIBRARY_PATH
11293 shlibpath_overrides_runpath=yes
11300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11301 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11302 shlibpath_var=LD_LIBRARY_PATH
11303 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11305 openbsd2.[89] | openbsd2.[89].*)
11306 shlibpath_overrides_runpath=no
11309 shlibpath_overrides_runpath=yes
11313 shlibpath_overrides_runpath=yes
11318 libname_spec='$name'
11321 library_names_spec='$libname${shared_ext} $libname.a'
11322 dynamic_linker='OS/2 ld.exe'
11323 shlibpath_var=LIBPATH
11326 osf3* | osf4* | osf5*)
11330 soname_spec='${libname}${release}${shared_ext}$major'
11331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11332 shlibpath_var=LD_LIBRARY_PATH
11333 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11334 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11339 soname_spec='${libname}${release}${shared_ext}$major'
11340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11341 shlibpath_var=LD_LIBRARY_PATH
11348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11349 soname_spec='${libname}${release}${shared_ext}$major'
11350 shlibpath_var=LD_LIBRARY_PATH
11351 shlibpath_overrides_runpath=yes
11352 hardcode_into_libs=yes
11353 # ldd complains unless libraries are executable
11354 postinstall_cmds='chmod +x $lib'
11359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11360 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11361 shlibpath_var=LD_LIBRARY_PATH
11362 shlibpath_overrides_runpath=yes
11363 if test "$with_gnu_ld" = yes; then
11369 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11372 soname_spec='${libname}${release}${shared_ext}$major'
11373 shlibpath_var=LD_LIBRARY_PATH
11374 case $host_vendor in
11376 shlibpath_overrides_runpath=no
11378 export_dynamic_flag_spec='${wl}-Blargedynsym'
11379 runpath_var=LD_RUN_PATH
11387 shlibpath_overrides_runpath=no
11388 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11394 if test -d /usr/nec ;then
11396 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11397 soname_spec='$libname${shared_ext}.$major'
11398 shlibpath_var=LD_LIBRARY_PATH
11404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11405 soname_spec='${libname}${release}${shared_ext}$major'
11406 shlibpath_var=LD_LIBRARY_PATH
11413 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11414 echo "${ECHO_T}$dynamic_linker" >&6
11415 test "$dynamic_linker" = no && can_build_shared=no
11417 if test "x$enable_dlopen" != xyes; then
11418 enable_dlopen=unknown
11419 enable_dlopen_self=unknown
11420 enable_dlopen_self_static=unknown
11427 lt_cv_dlopen="load_add_on"
11429 lt_cv_dlopen_self=yes
11433 lt_cv_dlopen="LoadLibrary"
11438 lt_cv_dlopen="dlopen"
11443 # if libdl is installed we need to link against it
11444 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11445 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11446 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11447 echo $ECHO_N "(cached) $ECHO_C" >&6
11449 ac_check_lib_save_LIBS=$LIBS
11451 cat >conftest.$ac_ext <<_ACEOF
11452 #line $LINENO "configure"
11455 cat confdefs.h >>conftest.$ac_ext
11456 cat >>conftest.$ac_ext <<_ACEOF
11457 /* end confdefs.h. */
11459 /* Override any gcc2 internal prototype to avoid an error. */
11463 /* We use char because int might match the return type of a gcc2
11464 builtin and then its argument prototype would still apply. */
11474 rm -f conftest.$ac_objext conftest$ac_exeext
11475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11476 (eval $ac_link) 2>&5
11478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479 (exit $ac_status); } &&
11480 { ac_try='test -s conftest$ac_exeext'
11481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11482 (eval $ac_try) 2>&5
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); }; }; then
11486 ac_cv_lib_dl_dlopen=yes
11488 echo "$as_me: failed program was:" >&5
11489 sed 's/^/| /' conftest.$ac_ext >&5
11491 ac_cv_lib_dl_dlopen=no
11493 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11494 LIBS=$ac_check_lib_save_LIBS
11496 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11497 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11498 if test $ac_cv_lib_dl_dlopen = yes; then
11499 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11502 lt_cv_dlopen="dyld"
11504 lt_cv_dlopen_self=yes
11511 echo "$as_me:$LINENO: checking for shl_load" >&5
11512 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11513 if test "${ac_cv_func_shl_load+set}" = set; then
11514 echo $ECHO_N "(cached) $ECHO_C" >&6
11516 cat >conftest.$ac_ext <<_ACEOF
11517 #line $LINENO "configure"
11520 cat confdefs.h >>conftest.$ac_ext
11521 cat >>conftest.$ac_ext <<_ACEOF
11522 /* end confdefs.h. */
11523 /* System header to define __stub macros and hopefully few prototypes,
11524 which can conflict with char shl_load (); below.
11525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11526 <limits.h> exists even on freestanding compilers. */
11528 # include <limits.h>
11530 # include <assert.h>
11532 /* Override any gcc2 internal prototype to avoid an error. */
11537 /* We use char because int might match the return type of a gcc2
11538 builtin and then its argument prototype would still apply. */
11540 /* The GNU C library defines this for functions which it implements
11541 to always fail with ENOSYS. Some functions are actually named
11542 something starting with __ and the normal name is an alias. */
11543 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11546 char (*f) () = shl_load;
11555 return f != shl_load;
11560 rm -f conftest.$ac_objext conftest$ac_exeext
11561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11562 (eval $ac_link) 2>&5
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); } &&
11566 { ac_try='test -s conftest$ac_exeext'
11567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11568 (eval $ac_try) 2>&5
11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); }; }; then
11572 ac_cv_func_shl_load=yes
11574 echo "$as_me: failed program was:" >&5
11575 sed 's/^/| /' conftest.$ac_ext >&5
11577 ac_cv_func_shl_load=no
11579 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11581 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11582 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11583 if test $ac_cv_func_shl_load = yes; then
11584 lt_cv_dlopen="shl_load"
11586 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11587 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11588 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11589 echo $ECHO_N "(cached) $ECHO_C" >&6
11591 ac_check_lib_save_LIBS=$LIBS
11593 cat >conftest.$ac_ext <<_ACEOF
11594 #line $LINENO "configure"
11597 cat confdefs.h >>conftest.$ac_ext
11598 cat >>conftest.$ac_ext <<_ACEOF
11599 /* end confdefs.h. */
11601 /* Override any gcc2 internal prototype to avoid an error. */
11605 /* We use char because int might match the return type of a gcc2
11606 builtin and then its argument prototype would still apply. */
11616 rm -f conftest.$ac_objext conftest$ac_exeext
11617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11618 (eval $ac_link) 2>&5
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); } &&
11622 { ac_try='test -s conftest$ac_exeext'
11623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11624 (eval $ac_try) 2>&5
11626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627 (exit $ac_status); }; }; then
11628 ac_cv_lib_dld_shl_load=yes
11630 echo "$as_me: failed program was:" >&5
11631 sed 's/^/| /' conftest.$ac_ext >&5
11633 ac_cv_lib_dld_shl_load=no
11635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11636 LIBS=$ac_check_lib_save_LIBS
11638 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11639 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11640 if test $ac_cv_lib_dld_shl_load = yes; then
11641 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11643 echo "$as_me:$LINENO: checking for dlopen" >&5
11644 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11645 if test "${ac_cv_func_dlopen+set}" = set; then
11646 echo $ECHO_N "(cached) $ECHO_C" >&6
11648 cat >conftest.$ac_ext <<_ACEOF
11649 #line $LINENO "configure"
11652 cat confdefs.h >>conftest.$ac_ext
11653 cat >>conftest.$ac_ext <<_ACEOF
11654 /* end confdefs.h. */
11655 /* System header to define __stub macros and hopefully few prototypes,
11656 which can conflict with char dlopen (); below.
11657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11658 <limits.h> exists even on freestanding compilers. */
11660 # include <limits.h>
11662 # include <assert.h>
11664 /* Override any gcc2 internal prototype to avoid an error. */
11669 /* We use char because int might match the return type of a gcc2
11670 builtin and then its argument prototype would still apply. */
11672 /* The GNU C library defines this for functions which it implements
11673 to always fail with ENOSYS. Some functions are actually named
11674 something starting with __ and the normal name is an alias. */
11675 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11678 char (*f) () = dlopen;
11687 return f != dlopen;
11692 rm -f conftest.$ac_objext conftest$ac_exeext
11693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11694 (eval $ac_link) 2>&5
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); } &&
11698 { ac_try='test -s conftest$ac_exeext'
11699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11700 (eval $ac_try) 2>&5
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); }; }; then
11704 ac_cv_func_dlopen=yes
11706 echo "$as_me: failed program was:" >&5
11707 sed 's/^/| /' conftest.$ac_ext >&5
11709 ac_cv_func_dlopen=no
11711 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11713 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11714 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11715 if test $ac_cv_func_dlopen = yes; then
11716 lt_cv_dlopen="dlopen"
11718 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11719 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11720 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11721 echo $ECHO_N "(cached) $ECHO_C" >&6
11723 ac_check_lib_save_LIBS=$LIBS
11725 cat >conftest.$ac_ext <<_ACEOF
11726 #line $LINENO "configure"
11729 cat confdefs.h >>conftest.$ac_ext
11730 cat >>conftest.$ac_ext <<_ACEOF
11731 /* end confdefs.h. */
11733 /* Override any gcc2 internal prototype to avoid an error. */
11737 /* We use char because int might match the return type of a gcc2
11738 builtin and then its argument prototype would still apply. */
11748 rm -f conftest.$ac_objext conftest$ac_exeext
11749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11750 (eval $ac_link) 2>&5
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); } &&
11754 { ac_try='test -s conftest$ac_exeext'
11755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11756 (eval $ac_try) 2>&5
11758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); }; }; then
11760 ac_cv_lib_dl_dlopen=yes
11762 echo "$as_me: failed program was:" >&5
11763 sed 's/^/| /' conftest.$ac_ext >&5
11765 ac_cv_lib_dl_dlopen=no
11767 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11768 LIBS=$ac_check_lib_save_LIBS
11770 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11771 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11772 if test $ac_cv_lib_dl_dlopen = yes; then
11773 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11775 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11776 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11777 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11778 echo $ECHO_N "(cached) $ECHO_C" >&6
11780 ac_check_lib_save_LIBS=$LIBS
11781 LIBS="-lsvld $LIBS"
11782 cat >conftest.$ac_ext <<_ACEOF
11783 #line $LINENO "configure"
11786 cat confdefs.h >>conftest.$ac_ext
11787 cat >>conftest.$ac_ext <<_ACEOF
11788 /* end confdefs.h. */
11790 /* Override any gcc2 internal prototype to avoid an error. */
11794 /* We use char because int might match the return type of a gcc2
11795 builtin and then its argument prototype would still apply. */
11805 rm -f conftest.$ac_objext conftest$ac_exeext
11806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11807 (eval $ac_link) 2>&5
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); } &&
11811 { ac_try='test -s conftest$ac_exeext'
11812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11813 (eval $ac_try) 2>&5
11815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816 (exit $ac_status); }; }; then
11817 ac_cv_lib_svld_dlopen=yes
11819 echo "$as_me: failed program was:" >&5
11820 sed 's/^/| /' conftest.$ac_ext >&5
11822 ac_cv_lib_svld_dlopen=no
11824 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11825 LIBS=$ac_check_lib_save_LIBS
11827 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11828 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11829 if test $ac_cv_lib_svld_dlopen = yes; then
11830 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11832 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11833 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11834 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11835 echo $ECHO_N "(cached) $ECHO_C" >&6
11837 ac_check_lib_save_LIBS=$LIBS
11839 cat >conftest.$ac_ext <<_ACEOF
11840 #line $LINENO "configure"
11843 cat confdefs.h >>conftest.$ac_ext
11844 cat >>conftest.$ac_ext <<_ACEOF
11845 /* end confdefs.h. */
11847 /* Override any gcc2 internal prototype to avoid an error. */
11851 /* We use char because int might match the return type of a gcc2
11852 builtin and then its argument prototype would still apply. */
11862 rm -f conftest.$ac_objext conftest$ac_exeext
11863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11864 (eval $ac_link) 2>&5
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); } &&
11868 { ac_try='test -s conftest$ac_exeext'
11869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11870 (eval $ac_try) 2>&5
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); }; }; then
11874 ac_cv_lib_dld_dld_link=yes
11876 echo "$as_me: failed program was:" >&5
11877 sed 's/^/| /' conftest.$ac_ext >&5
11879 ac_cv_lib_dld_dld_link=no
11881 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11882 LIBS=$ac_check_lib_save_LIBS
11884 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11885 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11886 if test $ac_cv_lib_dld_dld_link = yes; then
11887 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11908 if test "x$lt_cv_dlopen" != xno; then
11914 case $lt_cv_dlopen in
11916 save_CPPFLAGS="$CPPFLAGS"
11917 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11919 save_LDFLAGS="$LDFLAGS"
11920 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11923 LIBS="$lt_cv_dlopen_libs $LIBS"
11925 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11926 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11927 if test "${lt_cv_dlopen_self+set}" = set; then
11928 echo $ECHO_N "(cached) $ECHO_C" >&6
11930 if test "$cross_compiling" = yes; then :
11931 lt_cv_dlopen_self=cross
11933 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11934 lt_status=$lt_dlunknown
11935 cat > conftest.$ac_ext <<EOF
11936 #line 11936 "configure"
11937 #include "confdefs.h"
11946 # define LT_DLGLOBAL RTLD_GLOBAL
11949 # define LT_DLGLOBAL DL_GLOBAL
11951 # define LT_DLGLOBAL 0
11955 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11956 find out it does not work in some platform. */
11957 #ifndef LT_DLLAZY_OR_NOW
11959 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11962 # define LT_DLLAZY_OR_NOW DL_LAZY
11965 # define LT_DLLAZY_OR_NOW RTLD_NOW
11968 # define LT_DLLAZY_OR_NOW DL_NOW
11970 # define LT_DLLAZY_OR_NOW 0
11978 extern "C" void exit (int);
11981 void fnord() { int i=42;}
11984 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11985 int status = $lt_dlunknown;
11989 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11990 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11991 /* dlclose (self); */
11997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11998 (eval $ac_link) 2>&5
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12002 (./conftest; exit; ) 2>/dev/null
12004 case x$lt_status in
12005 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12006 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12007 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12010 # compilation failed
12011 lt_cv_dlopen_self=no
12018 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12019 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12021 if test "x$lt_cv_dlopen_self" = xyes; then
12022 LDFLAGS="$LDFLAGS $link_static_flag"
12023 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12024 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12025 if test "${lt_cv_dlopen_self_static+set}" = set; then
12026 echo $ECHO_N "(cached) $ECHO_C" >&6
12028 if test "$cross_compiling" = yes; then :
12029 lt_cv_dlopen_self_static=cross
12031 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12032 lt_status=$lt_dlunknown
12033 cat > conftest.$ac_ext <<EOF
12034 #line 12034 "configure"
12035 #include "confdefs.h"
12044 # define LT_DLGLOBAL RTLD_GLOBAL
12047 # define LT_DLGLOBAL DL_GLOBAL
12049 # define LT_DLGLOBAL 0
12053 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12054 find out it does not work in some platform. */
12055 #ifndef LT_DLLAZY_OR_NOW
12057 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12060 # define LT_DLLAZY_OR_NOW DL_LAZY
12063 # define LT_DLLAZY_OR_NOW RTLD_NOW
12066 # define LT_DLLAZY_OR_NOW DL_NOW
12068 # define LT_DLLAZY_OR_NOW 0
12076 extern "C" void exit (int);
12079 void fnord() { int i=42;}
12082 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12083 int status = $lt_dlunknown;
12087 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12088 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12089 /* dlclose (self); */
12095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12096 (eval $ac_link) 2>&5
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12100 (./conftest; exit; ) 2>/dev/null
12102 case x$lt_status in
12103 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12104 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12105 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12108 # compilation failed
12109 lt_cv_dlopen_self_static=no
12116 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12117 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12120 CPPFLAGS="$save_CPPFLAGS"
12121 LDFLAGS="$save_LDFLAGS"
12126 case $lt_cv_dlopen_self in
12127 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12128 *) enable_dlopen_self=unknown ;;
12131 case $lt_cv_dlopen_self_static in
12132 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12133 *) enable_dlopen_self_static=unknown ;;
12138 # The else clause should only fire when bootstrapping the
12139 # libtool distribution, otherwise you forgot to ship ltmain.sh
12140 # with your package, and you will get complaints that there are
12141 # no rules to generate ltmain.sh.
12142 if test -f "$ltmain"; then
12143 # See if we are running on zsh, and set the options which allow our commands through
12144 # without removal of \ escapes.
12145 if test -n "${ZSH_VERSION+set}" ; then
12146 setopt NO_GLOB_SUBST
12148 # Now quote all the things that may contain metacharacters while being
12149 # careful not to overquote the AC_SUBSTed values. We take copies of the
12150 # variables and quote the copies for generation of the libtool script.
12151 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12152 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12153 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12154 deplibs_check_method reload_flag reload_cmds need_locks \
12155 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12156 lt_cv_sys_global_symbol_to_c_name_address \
12157 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12158 old_postinstall_cmds old_postuninstall_cmds \
12162 lt_prog_compiler_wl_CXX \
12163 lt_prog_compiler_pic_CXX \
12164 lt_prog_compiler_static_CXX \
12165 lt_prog_compiler_no_builtin_flag_CXX \
12166 export_dynamic_flag_spec_CXX \
12167 thread_safe_flag_spec_CXX \
12168 whole_archive_flag_spec_CXX \
12169 enable_shared_with_static_runtimes_CXX \
12170 old_archive_cmds_CXX \
12171 old_archive_from_new_cmds_CXX \
12172 predep_objects_CXX \
12173 postdep_objects_CXX \
12176 compiler_lib_search_path_CXX \
12178 archive_expsym_cmds_CXX \
12179 postinstall_cmds_CXX \
12180 postuninstall_cmds_CXX \
12181 old_archive_from_expsyms_cmds_CXX \
12182 allow_undefined_flag_CXX \
12183 no_undefined_flag_CXX \
12184 export_symbols_cmds_CXX \
12185 hardcode_libdir_flag_spec_CXX \
12186 hardcode_libdir_flag_spec_ld_CXX \
12187 hardcode_libdir_separator_CXX \
12188 hardcode_automatic_CXX \
12190 module_expsym_cmds_CXX \
12191 lt_cv_prog_compiler_c_o_CXX \
12192 exclude_expsyms_CXX \
12193 include_expsyms_CXX; do
12196 old_archive_cmds_CXX | \
12197 old_archive_from_new_cmds_CXX | \
12198 archive_cmds_CXX | \
12199 archive_expsym_cmds_CXX | \
12200 module_cmds_CXX | \
12201 module_expsym_cmds_CXX | \
12202 old_archive_from_expsyms_cmds_CXX | \
12203 export_symbols_cmds_CXX | \
12204 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12205 postinstall_cmds | postuninstall_cmds | \
12206 old_postinstall_cmds | old_postuninstall_cmds | \
12207 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12208 # Double-quote double-evaled strings.
12209 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12212 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12218 *'\$0 --fallback-echo"')
12219 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12225 cat <<__EOF__ >> "$cfgfile"
12226 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12228 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12230 # Shell to use when invoking shell scripts.
12233 # Whether or not to build shared libraries.
12234 build_libtool_libs=$enable_shared
12236 # Whether or not to build static libraries.
12237 build_old_libs=$enable_static
12239 # Whether or not to add -lc for building shared libraries.
12240 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12242 # Whether or not to disallow shared libs when runtime libs are static
12243 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12245 # Whether or not to optimize for fast installation.
12246 fast_install=$enable_fast_install
12249 host_alias=$host_alias
12252 # An echo program that does not interpret backslashes.
12257 AR_FLAGS=$lt_AR_FLAGS
12262 # A language-specific compiler.
12263 CC=$lt_compiler_CXX
12265 # Is the compiler the GNU C compiler?
12271 # The linker used to build libraries.
12274 # Whether we need hard or soft links.
12277 # A BSD-compatible nm program.
12280 # A symbol stripping program
12283 # Used to examine libraries when file_magic_cmd begins "file"
12284 MAGIC_CMD=$MAGIC_CMD
12286 # Used on cygwin: DLL creation program.
12289 # Used on cygwin: object dumper.
12292 # Used on cygwin: assembler.
12295 # The name of the directory that contains temporary libtool files.
12298 # How to create reloadable object files.
12299 reload_flag=$lt_reload_flag
12300 reload_cmds=$lt_reload_cmds
12302 # How to pass a linker flag through the compiler.
12303 wl=$lt_lt_prog_compiler_wl_CXX
12305 # Object file suffix (normally "o").
12306 objext="$ac_objext"
12308 # Old archive suffix (normally "a").
12311 # Shared library suffix (normally ".so").
12314 # Executable file suffix (normally "").
12317 # Additional compiler flags for building library objects.
12318 pic_flag=$lt_lt_prog_compiler_pic_CXX
12321 # What is the maximum length of a command?
12322 max_cmd_len=$lt_cv_sys_max_cmd_len
12324 # Does compiler simultaneously support -c and -o options?
12325 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12327 # Must we lock files when doing compilation ?
12328 need_locks=$lt_need_locks
12330 # Do we need the lib prefix for modules?
12331 need_lib_prefix=$need_lib_prefix
12333 # Do we need a version for libraries?
12334 need_version=$need_version
12336 # Whether dlopen is supported.
12337 dlopen_support=$enable_dlopen
12339 # Whether dlopen of programs is supported.
12340 dlopen_self=$enable_dlopen_self
12342 # Whether dlopen of statically linked programs is supported.
12343 dlopen_self_static=$enable_dlopen_self_static
12345 # Compiler flag to prevent dynamic linking.
12346 link_static_flag=$lt_lt_prog_compiler_static_CXX
12348 # Compiler flag to turn off builtin functions.
12349 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12351 # Compiler flag to allow reflexive dlopens.
12352 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12354 # Compiler flag to generate shared objects directly from archives.
12355 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12357 # Compiler flag to generate thread-safe objects.
12358 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12360 # Library versioning type.
12361 version_type=$version_type
12363 # Format of library name prefix.
12364 libname_spec=$lt_libname_spec
12366 # List of archive names. First name is the real one, the rest are links.
12367 # The last name is the one that the linker finds with -lNAME.
12368 library_names_spec=$lt_library_names_spec
12370 # The coded name of the library, if different from the real name.
12371 soname_spec=$lt_soname_spec
12373 # Commands used to build and install an old-style archive.
12375 old_archive_cmds=$lt_old_archive_cmds_CXX
12376 old_postinstall_cmds=$lt_old_postinstall_cmds
12377 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12379 # Create an old-style archive from a shared archive.
12380 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12382 # Create a temporary old-style archive to link instead of a shared archive.
12383 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12385 # Commands used to build and install a shared archive.
12386 archive_cmds=$lt_archive_cmds_CXX
12387 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12388 postinstall_cmds=$lt_postinstall_cmds
12389 postuninstall_cmds=$lt_postuninstall_cmds
12391 # Commands used to build a loadable module (assumed same as above if empty)
12392 module_cmds=$lt_module_cmds_CXX
12393 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12395 # Commands to strip libraries.
12396 old_striplib=$lt_old_striplib
12397 striplib=$lt_striplib
12399 # Dependencies to place before the objects being linked to create a
12401 predep_objects=$lt_predep_objects_CXX
12403 # Dependencies to place after the objects being linked to create a
12405 postdep_objects=$lt_postdep_objects_CXX
12407 # Dependencies to place before the objects being linked to create a
12409 predeps=$lt_predeps_CXX
12411 # Dependencies to place after the objects being linked to create a
12413 postdeps=$lt_postdeps_CXX
12415 # The library search path used internally by the compiler when linking
12416 # a shared library.
12417 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12419 # Method to check whether dependent libraries are shared objects.
12420 deplibs_check_method=$lt_deplibs_check_method
12422 # Command to use when deplibs_check_method == file_magic.
12423 file_magic_cmd=$lt_file_magic_cmd
12425 # Flag that allows shared libraries with undefined symbols to be built.
12426 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12428 # Flag that forces no undefined symbols.
12429 no_undefined_flag=$lt_no_undefined_flag_CXX
12431 # Commands used to finish a libtool library installation in a directory.
12432 finish_cmds=$lt_finish_cmds
12434 # Same as above, but a single script fragment to be evaled but not shown.
12435 finish_eval=$lt_finish_eval
12437 # Take the output of nm and produce a listing of raw symbols and C names.
12438 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12440 # Transform the output of nm in a proper C declaration
12441 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12443 # Transform the output of nm in a C name address pair
12444 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12446 # This is the shared library runtime path variable.
12447 runpath_var=$runpath_var
12449 # This is the shared library path variable.
12450 shlibpath_var=$shlibpath_var
12452 # Is shlibpath searched before the hard-coded library search path?
12453 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12455 # How to hardcode a shared library path into an executable.
12456 hardcode_action=$hardcode_action_CXX
12458 # Whether we should hardcode library paths into libraries.
12459 hardcode_into_libs=$hardcode_into_libs
12461 # Flag to hardcode \$libdir into a binary during linking.
12462 # This must work even if \$libdir does not exist.
12463 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12465 # If ld is used when linking, flag to hardcode \$libdir into
12466 # a binary during linking. This must work even if \$libdir does
12468 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12470 # Whether we need a single -rpath flag with a separated argument.
12471 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12473 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12474 # resulting binary.
12475 hardcode_direct=$hardcode_direct_CXX
12477 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12478 # resulting binary.
12479 hardcode_minus_L=$hardcode_minus_L_CXX
12481 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12482 # the resulting binary.
12483 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12485 # Set to yes if building a shared library automatically hardcodes DIR into the library
12486 # and all subsequent libraries and executables linked against it.
12487 hardcode_automatic=$hardcode_automatic_CXX
12489 # Variables whose values should be saved in libtool wrapper scripts and
12490 # restored at relink time.
12491 variables_saved_for_relink="$variables_saved_for_relink"
12493 # Whether libtool must link a program against all its dependency libraries.
12494 link_all_deplibs=$link_all_deplibs_CXX
12496 # Compile-time system search path for libraries
12497 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12499 # Run-time system search path for libraries
12500 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12502 # Fix the shell variable \$srcfile for the compiler.
12503 fix_srcfile_path="$fix_srcfile_path_CXX"
12505 # Set to yes if exported symbols are required.
12506 always_export_symbols=$always_export_symbols_CXX
12508 # The commands to list exported symbols.
12509 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12511 # The commands to extract the exported symbol list from a shared archive.
12512 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12514 # Symbols that should not be listed in the preloaded symbols.
12515 exclude_expsyms=$lt_exclude_expsyms_CXX
12517 # Symbols that must always be exported.
12518 include_expsyms=$lt_include_expsyms_CXX
12520 # ### END LIBTOOL TAG CONFIG: $tagname
12526 # If there is no Makefile yet, we rely on a make rule to execute
12527 # `config.status --recheck' to rerun these tests and create the
12528 # libtool script then.
12529 test -f Makefile && make "$ltmain"
12534 ac_cpp='$CPP $CPPFLAGS'
12535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12543 with_gnu_ldcxx=$with_gnu_ld
12544 with_gnu_ld=$lt_save_with_gnu_ld
12545 lt_cv_path_LDCXX=$lt_cv_path_LD
12546 lt_cv_path_LD=$lt_save_path_LD
12547 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12548 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12556 if test -n "$F77" && test "X$F77" != "Xno"; then
12559 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12560 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12561 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12564 archive_cmds_need_lc_F77=no
12565 allow_undefined_flag_F77=
12566 always_export_symbols_F77=no
12567 archive_expsym_cmds_F77=
12568 export_dynamic_flag_spec_F77=
12569 hardcode_direct_F77=no
12570 hardcode_libdir_flag_spec_F77=
12571 hardcode_libdir_flag_spec_ld_F77=
12572 hardcode_libdir_separator_F77=
12573 hardcode_minus_L_F77=no
12574 hardcode_automatic_F77=no
12576 module_expsym_cmds_F77=
12577 link_all_deplibs_F77=unknown
12578 old_archive_cmds_F77=$old_archive_cmds
12579 no_undefined_flag_F77=
12580 whole_archive_flag_spec_F77=
12581 enable_shared_with_static_runtimes_F77=no
12583 # Source file extension for f77 test sources.
12586 # Object file extension for compiled f77 test sources.
12590 # Code to be used in simple compile tests
12591 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12593 # Code to be used in simple link tests
12594 lt_simple_link_test_code=" program t\n end\n"
12596 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12598 # If no C compiler was specified, use CC.
12601 # Allow CC to be a program name with arguments.
12605 # Allow CC to be a program name with arguments.
12610 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12612 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12613 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12614 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12615 echo "${ECHO_T}$can_build_shared" >&6
12617 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12618 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12619 test "$can_build_shared" = "no" && enable_shared=no
12621 # On AIX, shared libraries and static libraries use the same namespace, and
12622 # are all built from PIC.
12625 test "$enable_shared" = yes && enable_static=no
12626 if test -n "$RANLIB"; then
12627 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12628 postinstall_cmds='$RANLIB $lib'
12632 test "$enable_shared" = yes && enable_static=no
12635 echo "$as_me:$LINENO: result: $enable_shared" >&5
12636 echo "${ECHO_T}$enable_shared" >&6
12638 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12639 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12640 # Make sure either enable_shared or enable_static is yes.
12641 test "$enable_shared" = yes || enable_static=yes
12642 echo "$as_me:$LINENO: result: $enable_static" >&5
12643 echo "${ECHO_T}$enable_static" >&6
12645 test "$ld_shlibs_F77" = no && can_build_shared=no
12650 lt_prog_compiler_wl_F77=
12651 lt_prog_compiler_pic_F77=
12652 lt_prog_compiler_static_F77=
12654 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12655 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12657 if test "$GCC" = yes; then
12658 lt_prog_compiler_wl_F77='-Wl,'
12659 lt_prog_compiler_static_F77='-static'
12663 # All AIX code is PIC.
12664 if test "$host_cpu" = ia64; then
12665 # AIX 5 now supports IA64 processor
12666 lt_prog_compiler_static_F77='-Bstatic'
12671 # FIXME: we need at least 68020 code to build shared libraries, but
12672 # adding the `-m68020' flag to GCC prevents building anything better,
12674 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12677 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12678 # PIC is the default for these OSes.
12681 mingw* | pw32* | os2*)
12682 # This hack is so that the source file can tell whether it is being
12683 # built for inclusion in a dll (and should export symbols for example).
12684 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12687 darwin* | rhapsody*)
12688 # PIC is the default on this platform
12689 # Common symbols not allowed in MH_DYLIB files
12690 lt_prog_compiler_pic_F77='-fno-common'
12694 # Just because we use GCC doesn't mean we suddenly get shared libraries
12695 # on systems that don't support them.
12696 lt_prog_compiler_can_build_shared_F77=no
12701 if test -d /usr/nec; then
12702 lt_prog_compiler_pic_F77=-Kconform_pic
12707 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12708 # not for PA HP-UX.
12709 case "$host_cpu" in
12714 lt_prog_compiler_pic_F77='-fPIC'
12720 lt_prog_compiler_pic_F77='-fPIC'
12724 # PORTME Check for flag to pass linker flags through the system compiler.
12727 lt_prog_compiler_wl_F77='-Wl,'
12728 if test "$host_cpu" = ia64; then
12729 # AIX 5 now supports IA64 processor
12730 lt_prog_compiler_static_F77='-Bstatic'
12732 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12736 mingw* | pw32* | os2*)
12737 # This hack is so that the source file can tell whether it is being
12738 # built for inclusion in a dll (and should export symbols for example).
12739 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12742 hpux9* | hpux10* | hpux11*)
12743 lt_prog_compiler_wl_F77='-Wl,'
12744 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12745 # not for PA HP-UX.
12746 case "$host_cpu" in
12751 lt_prog_compiler_pic_F77='+Z'
12754 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12755 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12758 irix5* | irix6* | nonstopux*)
12759 lt_prog_compiler_wl_F77='-Wl,'
12760 # PIC (with -KPIC) is the default.
12761 lt_prog_compiler_static_F77='-non_shared'
12765 lt_prog_compiler_pic_F77='-KPIC'
12766 lt_prog_compiler_static_F77='-Bstatic'
12772 lt_prog_compiler_wl_F77='-Wl,'
12773 lt_prog_compiler_pic_F77='-KPIC'
12774 lt_prog_compiler_static_F77='-static'
12777 lt_prog_compiler_wl_F77='-Wl,'
12778 # All Alpha code is PIC.
12779 lt_prog_compiler_static_F77='-non_shared'
12784 osf3* | osf4* | osf5*)
12785 lt_prog_compiler_wl_F77='-Wl,'
12786 # All OSF/1 code is PIC.
12787 lt_prog_compiler_static_F77='-non_shared'
12791 lt_prog_compiler_pic_F77='-Kpic'
12792 lt_prog_compiler_static_F77='-dn'
12796 lt_prog_compiler_wl_F77='-Wl,'
12797 lt_prog_compiler_pic_F77='-KPIC'
12798 lt_prog_compiler_static_F77='-Bstatic'
12802 lt_prog_compiler_wl_F77='-Qoption ld '
12803 lt_prog_compiler_pic_F77='-PIC'
12804 lt_prog_compiler_static_F77='-Bstatic'
12807 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12808 lt_prog_compiler_wl_F77='-Wl,'
12809 lt_prog_compiler_pic_F77='-KPIC'
12810 lt_prog_compiler_static_F77='-Bstatic'
12814 if test -d /usr/nec ;then
12815 lt_prog_compiler_pic_F77='-Kconform_pic'
12816 lt_prog_compiler_static_F77='-Bstatic'
12821 lt_prog_compiler_pic_F77='-pic'
12822 lt_prog_compiler_static_F77='-Bstatic'
12826 lt_prog_compiler_can_build_shared_F77=no
12831 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12832 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12835 # Check to make sure the PIC flag actually works.
12837 if test -n "$lt_prog_compiler_pic_F77"; then
12838 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12839 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12840 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12841 echo $ECHO_N "(cached) $ECHO_C" >&6
12843 lt_prog_compiler_pic_works_F77=no
12844 ac_outfile=conftest.$ac_objext
12845 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12846 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12847 # Insert the option either (1) after the last *FLAGS variable, or
12848 # (2) before a word containing "conftest.", or (3) at the end.
12849 # Note that $ac_compile itself does not contain backslashes and begins
12850 # with a dollar sign (not a hyphen), so the echo should work correctly.
12851 # The option is referenced via a variable to avoid confusing sed.
12852 lt_compile=`echo "$ac_compile" | $SED \
12853 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12854 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12855 -e 's:$: $lt_compiler_flag:'`
12856 (eval echo "\"\$as_me:12856: $lt_compile\"" >&5)
12857 (eval "$lt_compile" 2>conftest.err)
12859 cat conftest.err >&5
12860 echo "$as_me:12860: \$? = $ac_status" >&5
12861 if (exit $ac_status) && test -s "$ac_outfile"; then
12862 # The compiler can only warn and ignore the option if not recognized
12863 # So say no if there are warnings
12864 if test ! -s conftest.err; then
12865 lt_prog_compiler_pic_works_F77=yes
12871 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12872 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12874 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12875 case $lt_prog_compiler_pic_F77 in
12877 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12880 lt_prog_compiler_pic_F77=
12881 lt_prog_compiler_can_build_shared_F77=no
12886 # For platforms which do not support PIC, -DPIC is meaningless:
12888 lt_prog_compiler_pic_F77=
12891 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12895 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12896 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12897 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12898 echo $ECHO_N "(cached) $ECHO_C" >&6
12900 lt_cv_prog_compiler_c_o_F77=no
12901 $rm -r conftest 2>/dev/null
12905 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12907 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12908 # that will create temporary files in the current directory regardless of
12909 # the output directory. Thus, making CWD read-only will cause this test
12910 # to fail, enabling locking or at least warning the user not to do parallel
12914 lt_compiler_flag="-o out/conftest2.$ac_objext"
12915 # Insert the option either (1) after the last *FLAGS variable, or
12916 # (2) before a word containing "conftest.", or (3) at the end.
12917 # Note that $ac_compile itself does not contain backslashes and begins
12918 # with a dollar sign (not a hyphen), so the echo should work correctly.
12919 lt_compile=`echo "$ac_compile" | $SED \
12920 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12921 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12922 -e 's:$: $lt_compiler_flag:'`
12923 (eval echo "\"\$as_me:12923: $lt_compile\"" >&5)
12924 (eval "$lt_compile" 2>out/conftest.err)
12926 cat out/conftest.err >&5
12927 echo "$as_me:12927: \$? = $ac_status" >&5
12928 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12930 # The compiler can only warn and ignore the option if not recognized
12931 # So say no if there are warnings
12932 if test ! -s out/conftest.err; then
12933 lt_cv_prog_compiler_c_o_F77=yes
12937 $rm conftest* out/*
12944 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12945 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12948 hard_links="nottested"
12949 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12950 # do not overwrite the value of need_locks provided by the user
12951 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12952 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12955 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12957 ln conftest.a conftest.b 2>&5 || hard_links=no
12958 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12959 echo "$as_me:$LINENO: result: $hard_links" >&5
12960 echo "${ECHO_T}$hard_links" >&6
12961 if test "$hard_links" = no; then
12962 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12963 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12970 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12971 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12974 allow_undefined_flag_F77=
12975 enable_shared_with_static_runtimes_F77=no
12977 archive_expsym_cmds_F77=
12978 old_archive_From_new_cmds_F77=
12979 old_archive_from_expsyms_cmds_F77=
12980 export_dynamic_flag_spec_F77=
12981 whole_archive_flag_spec_F77=
12982 thread_safe_flag_spec_F77=
12983 hardcode_libdir_flag_spec_F77=
12984 hardcode_libdir_flag_spec_ld_F77=
12985 hardcode_libdir_separator_F77=
12986 hardcode_direct_F77=no
12987 hardcode_minus_L_F77=no
12988 hardcode_shlibpath_var_F77=unsupported
12989 link_all_deplibs_F77=unknown
12990 hardcode_automatic_F77=no
12992 module_expsym_cmds_F77=
12993 always_export_symbols_F77=no
12994 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12995 # include_expsyms should be a list of space-separated symbols to be *always*
12996 # included in the symbol list
12997 include_expsyms_F77=
12998 # exclude_expsyms can be an extended regexp of symbols to exclude
12999 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13000 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13001 # as well as any symbol that contains `d'.
13002 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13003 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13004 # platforms (ab)use it in PIC code, but their linkers get confused if
13005 # the symbol is explicitly referenced. Since portable code cannot
13006 # rely on this symbol name, it's probably fine to never include it in
13007 # preloaded symbol tables.
13008 extract_expsyms_cmds=
13011 cygwin* | mingw* | pw32*)
13012 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13013 # When not using gcc, we currently assume that we are using
13014 # Microsoft Visual C++.
13015 if test "$GCC" != yes; then
13025 if test "$with_gnu_ld" = yes; then
13026 # If archive_cmds runs LD, not CC, wlarc should be empty
13029 # See if GNU ld supports shared libraries.
13031 aix3* | aix4* | aix5*)
13032 # On AIX/PPC, the GNU linker is very broken
13033 if test "$host_cpu" != ia64; then
13037 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13038 *** to be unable to reliably create shared libraries on AIX.
13039 *** Therefore, libtool is disabling shared libraries support. If you
13040 *** really care for shared libraries, you may want to modify your PATH
13041 *** so that a non-GNU linker is found, and then restart.
13048 archive_cmds_F77='$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)'
13049 hardcode_libdir_flag_spec_F77='-L$libdir'
13050 hardcode_minus_L_F77=yes
13052 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13053 # that the semantics of dynamic libraries on AmigaOS, at least up
13054 # to version 4, is to share data among multiple programs linked
13055 # with the same dynamic library. Since this doesn't match the
13056 # behavior of shared libraries on other platforms, we can't use
13062 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13063 allow_undefined_flag_F77=unsupported
13064 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13065 # support --undefined. This deserves some investigation. FIXME
13066 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13072 cygwin* | mingw* | pw32*)
13073 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13074 # as there is no search path for DLLs.
13075 hardcode_libdir_flag_spec_F77='-L$libdir'
13076 allow_undefined_flag_F77=unsupported
13077 always_export_symbols_F77=no
13078 enable_shared_with_static_runtimes_F77=yes
13079 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13081 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13082 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13083 # If the export-symbols file already is a .def file (1st line
13084 # is EXPORTS), use it as is; otherwise, prepend...
13085 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13086 cp $export_symbols $output_objdir/$soname.def;
13088 echo EXPORTS > $output_objdir/$soname.def;
13089 cat $export_symbols >> $output_objdir/$soname.def;
13091 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13098 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13099 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13102 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13103 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13108 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13112 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13113 *** create shared libraries on Solaris systems. Therefore, libtool
13114 *** is disabling shared libraries support. We urge you to upgrade GNU
13115 *** binutils to release 2.9.1 or newer. Another option is to modify
13116 *** your PATH or compiler configuration so that the native linker is
13117 *** used, and then restart.
13120 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13121 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13122 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13129 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13131 hardcode_direct_F77=yes
13132 hardcode_shlibpath_var_F77=no
13136 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13137 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13138 archive_cmds_F77="$tmp_archive_cmds"
13139 supports_anon_versioning=no
13140 case `$LD -v 2>/dev/null` in
13141 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13142 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13143 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13144 *\ 2.11.*) ;; # other 2.11 versions
13145 *) supports_anon_versioning=yes ;;
13147 if test $supports_anon_versioning = yes; then
13148 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13149 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13150 $echo "local: *; };" >> $output_objdir/$libname.ver~
13151 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13153 archive_expsym_cmds_F77="$tmp_archive_cmds"
13161 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13162 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13163 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13170 if test "$ld_shlibs_F77" = yes; then
13171 runpath_var=LD_RUN_PATH
13172 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13173 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13174 # ancient GNU ld didn't support --whole-archive et. al.
13175 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13176 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13178 whole_archive_flag_spec_F77=
13182 # PORTME fill in a description of your system's linker (not GNU ld)
13185 allow_undefined_flag_F77=unsupported
13186 always_export_symbols_F77=yes
13187 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13188 # Note: this linker hardcodes the directories in LIBPATH if there
13189 # are no directories specified by -L.
13190 hardcode_minus_L_F77=yes
13191 if test "$GCC" = yes && test -z "$link_static_flag"; then
13192 # Neither direct hardcoding nor static linking is supported with a
13194 hardcode_direct_F77=unsupported
13199 if test "$host_cpu" = ia64; then
13200 # On IA64, the linker does run time linking by default, so we don't
13201 # have to do anything special.
13202 aix_use_runtimelinking=no
13203 exp_sym_flag='-Bexport'
13206 # If we're using GNU nm, then we don't want the "-C" option.
13207 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13208 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13209 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13211 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13213 aix_use_runtimelinking=no
13215 # Test if we are trying to use run time linking or normal
13216 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13217 # need to do runtime linking.
13218 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13219 for ld_flag in $LDFLAGS; do
13220 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13221 aix_use_runtimelinking=yes
13227 exp_sym_flag='-bexport'
13228 no_entry_flag='-bnoentry'
13231 # When large executables or shared objects are built, AIX ld can
13232 # have problems creating the table of contents. If linking a library
13233 # or program results in "error TOC overflow" add -mminimal-toc to
13234 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13235 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13237 archive_cmds_F77=''
13238 hardcode_direct_F77=yes
13239 hardcode_libdir_separator_F77=':'
13240 link_all_deplibs_F77=yes
13242 if test "$GCC" = yes; then
13243 case $host_os in aix4.012|aix4.012.*)
13244 # We only want to do this on AIX 4.2 and lower, the check
13245 # below for broken collect2 doesn't work under 4.3+
13246 collect2name=`${CC} -print-prog-name=collect2`
13247 if test -f "$collect2name" && \
13248 strings "$collect2name" | grep resolve_lib_name >/dev/null
13250 # We have reworked collect2
13251 hardcode_direct_F77=yes
13253 # We have old collect2
13254 hardcode_direct_F77=unsupported
13255 # It fails to find uninstalled libraries when the uninstalled
13256 # path is not listed in the libpath. Setting hardcode_minus_L
13257 # to unsupported forces relinking
13258 hardcode_minus_L_F77=yes
13259 hardcode_libdir_flag_spec_F77='-L$libdir'
13260 hardcode_libdir_separator_F77=
13263 shared_flag='-shared'
13266 if test "$host_cpu" = ia64; then
13267 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13268 # chokes on -Wl,-G. The following line is correct:
13271 if test "$aix_use_runtimelinking" = yes; then
13272 shared_flag='${wl}-G'
13274 shared_flag='${wl}-bM:SRE'
13279 # It seems that -bexpall does not export symbols beginning with
13280 # underscore (_), so it is better to generate a list of symbols to export.
13281 always_export_symbols_F77=yes
13282 if test "$aix_use_runtimelinking" = yes; then
13283 # Warning - without using the other runtime loading flags (-brtl),
13284 # -berok will link without error, but may produce a broken library.
13285 allow_undefined_flag_F77='-berok'
13286 # Determine the default libpath from the value encoded in an empty executable.
13287 cat >conftest.$ac_ext <<_ACEOF
13292 rm -f conftest.$ac_objext conftest$ac_exeext
13293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13294 (eval $ac_link) 2>&5
13296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297 (exit $ac_status); } &&
13298 { ac_try='test -s conftest$ac_exeext'
13299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13300 (eval $ac_try) 2>&5
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); }; }; then
13305 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13307 # Check for a 64-bit object if we didn't find anything.
13308 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13311 echo "$as_me: failed program was:" >&5
13312 sed 's/^/| /' conftest.$ac_ext >&5
13315 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13316 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13318 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13319 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13321 if test "$host_cpu" = ia64; then
13322 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13323 allow_undefined_flag_F77="-z nodefs"
13324 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13326 # Determine the default libpath from the value encoded in an empty executable.
13327 cat >conftest.$ac_ext <<_ACEOF
13332 rm -f conftest.$ac_objext conftest$ac_exeext
13333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13334 (eval $ac_link) 2>&5
13336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); } &&
13338 { ac_try='test -s conftest$ac_exeext'
13339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13340 (eval $ac_try) 2>&5
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); }; }; then
13345 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13347 # Check for a 64-bit object if we didn't find anything.
13348 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13351 echo "$as_me: failed program was:" >&5
13352 sed 's/^/| /' conftest.$ac_ext >&5
13355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13356 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13358 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13359 # Warning - without using the other run time loading flags,
13360 # -berok will link without error, but may produce a broken library.
13361 no_undefined_flag_F77=' ${wl}-bernotok'
13362 allow_undefined_flag_F77=' ${wl}-berok'
13363 # -bexpall does not export symbols beginning with underscore (_)
13364 always_export_symbols_F77=yes
13365 # Exported symbols can be pulled into shared objects from archives
13366 whole_archive_flag_spec_F77=' '
13367 archive_cmds_need_lc_F77=yes
13368 # This is similar to how AIX traditionally builds it's shared libraries.
13369 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13375 archive_cmds_F77='$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)'
13376 hardcode_libdir_flag_spec_F77='-L$libdir'
13377 hardcode_minus_L_F77=yes
13378 # see comment about different semantics on the GNU ld section
13383 export_dynamic_flag_spec_F77=-rdynamic
13386 cygwin* | mingw* | pw32*)
13387 # When not using gcc, we currently assume that we are using
13388 # Microsoft Visual C++.
13389 # hardcode_libdir_flag_spec is actually meaningless, as there is
13390 # no search path for DLLs.
13391 hardcode_libdir_flag_spec_F77=' '
13392 allow_undefined_flag_F77=unsupported
13393 # Tell ltmain to make .lib files, not .a files.
13395 # Tell ltmain to make .dll files, not .so files.
13397 # FIXME: Setting linknames here is a bad hack.
13398 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13399 # The linker will automatically build a .lib file if we build a DLL.
13400 old_archive_From_new_cmds_F77='true'
13401 # FIXME: Should let the user specify the lib program.
13402 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13403 fix_srcfile_path='`cygpath -w "$srcfile"`'
13404 enable_shared_with_static_runtimes_F77=yes
13407 darwin* | rhapsody*)
13408 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13409 archive_cmds_need_lc_F77=no
13411 rhapsody* | darwin1.[012])
13412 allow_undefined_flag_F77='-undefined suppress'
13415 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13418 # FIXME: Relying on posixy $() will cause problems for
13419 # cross-compilation, but unfortunately the echo tests do not
13420 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13421 # `"' quotes if we put them in here... so don't!
13422 lt_int_apple_cc_single_mod=no
13423 output_verbose_link_cmd='echo'
13424 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13425 lt_int_apple_cc_single_mod=yes
13427 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13428 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13430 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13432 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13433 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13434 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13435 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13437 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13439 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13440 hardcode_direct_F77=no
13441 hardcode_automatic_F77=yes
13442 hardcode_shlibpath_var_F77=unsupported
13443 whole_archive_flag_spec_F77='-all_load $convenience'
13444 link_all_deplibs_F77=yes
13449 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13450 hardcode_libdir_flag_spec_F77='-L$libdir'
13451 hardcode_shlibpath_var_F77=no
13458 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13459 # support. Future versions do this automatically, but an explicit c++rt0.o
13460 # does not break anything, and helps significantly (at the cost of a little
13463 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13464 hardcode_libdir_flag_spec_F77='-R$libdir'
13465 hardcode_direct_F77=yes
13466 hardcode_shlibpath_var_F77=no
13469 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13471 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13472 hardcode_direct_F77=yes
13473 hardcode_minus_L_F77=yes
13474 hardcode_shlibpath_var_F77=no
13477 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13479 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13480 hardcode_libdir_flag_spec_F77='-R$libdir'
13481 hardcode_direct_F77=yes
13482 hardcode_shlibpath_var_F77=no
13486 if test "$GCC" = yes; then
13487 archive_cmds_F77='$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'
13489 archive_cmds_F77='$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'
13491 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13492 hardcode_libdir_separator_F77=:
13493 hardcode_direct_F77=yes
13495 # hardcode_minus_L: Not really in the search PATH,
13496 # but as the default location of the library.
13497 hardcode_minus_L_F77=yes
13498 export_dynamic_flag_spec_F77='${wl}-E'
13502 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13503 case "$host_cpu" in
13505 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13508 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13512 case "$host_cpu" in
13514 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13517 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13521 if test "$with_gnu_ld" = no; then
13522 case "$host_cpu" in
13524 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13525 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13526 hardcode_libdir_separator_F77=:
13527 hardcode_direct_F77=no
13528 hardcode_shlibpath_var_F77=no
13531 hardcode_libdir_flag_spec_F77='-L$libdir'
13532 hardcode_direct_F77=no
13533 hardcode_shlibpath_var_F77=no
13535 # hardcode_minus_L: Not really in the search PATH,
13536 # but as the default location of the library.
13537 hardcode_minus_L_F77=yes
13540 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13541 hardcode_libdir_separator_F77=:
13542 hardcode_direct_F77=yes
13543 export_dynamic_flag_spec_F77='${wl}-E'
13545 # hardcode_minus_L: Not really in the search PATH,
13546 # but as the default location of the library.
13547 hardcode_minus_L_F77=yes
13553 irix5* | irix6* | nonstopux*)
13554 if test "$GCC" = yes; then
13555 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13557 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13558 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13560 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13561 hardcode_libdir_separator_F77=:
13562 link_all_deplibs_F77=yes
13566 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13567 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13569 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13571 hardcode_libdir_flag_spec_F77='-R$libdir'
13572 hardcode_direct_F77=yes
13573 hardcode_shlibpath_var_F77=no
13577 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13578 hardcode_direct_F77=yes
13579 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13580 hardcode_libdir_separator_F77=:
13581 hardcode_shlibpath_var_F77=no
13585 hardcode_direct_F77=yes
13586 hardcode_shlibpath_var_F77=no
13587 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13588 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13589 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13590 export_dynamic_flag_spec_F77='${wl}-E'
13593 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13594 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13595 hardcode_libdir_flag_spec_F77='-R$libdir'
13598 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13599 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13606 hardcode_libdir_flag_spec_F77='-L$libdir'
13607 hardcode_minus_L_F77=yes
13608 allow_undefined_flag_F77=unsupported
13609 archive_cmds_F77='$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'
13610 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13614 if test "$GCC" = yes; then
13615 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13616 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13618 allow_undefined_flag_F77=' -expect_unresolved \*'
13619 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13621 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13622 hardcode_libdir_separator_F77=:
13625 osf4* | osf5*) # as osf3* with the addition of -msym flag
13626 if test "$GCC" = yes; then
13627 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13628 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13629 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13631 allow_undefined_flag_F77=' -expect_unresolved \*'
13632 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13633 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13634 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
13636 # Both c and cxx compiler support -rpath directly
13637 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13639 hardcode_libdir_separator_F77=:
13643 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13644 hardcode_shlibpath_var_F77=no
13645 export_dynamic_flag_spec_F77='${wl}-Bexport'
13646 runpath_var=LD_RUN_PATH
13647 hardcode_runpath_var=yes
13651 no_undefined_flag_F77=' -z text'
13652 if test "$GCC" = yes; then
13653 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13654 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13655 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13657 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13658 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13659 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13661 hardcode_libdir_flag_spec_F77='-R$libdir'
13662 hardcode_shlibpath_var_F77=no
13664 solaris2.[0-5] | solaris2.[0-5].*) ;;
13665 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13666 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13668 link_all_deplibs_F77=yes
13672 if test "x$host_vendor" = xsequent; then
13673 # Use $CC to link under sequent, because it throws in some extra .o
13674 # files that make .init and .fini sections work.
13675 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13677 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13679 hardcode_libdir_flag_spec_F77='-L$libdir'
13680 hardcode_direct_F77=yes
13681 hardcode_minus_L_F77=yes
13682 hardcode_shlibpath_var_F77=no
13686 case $host_vendor in
13688 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13689 hardcode_direct_F77=yes # is this really true???
13692 ## LD is ld it makes a PLAMLIB
13693 ## CC just makes a GrossModule.
13694 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13695 reload_cmds_F77='$CC -r -o $output$reload_objs'
13696 hardcode_direct_F77=no
13699 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13700 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13703 runpath_var='LD_RUN_PATH'
13704 hardcode_shlibpath_var_F77=no
13708 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13709 hardcode_shlibpath_var_F77=no
13710 export_dynamic_flag_spec_F77='-Bexport'
13714 if test -d /usr/nec; then
13715 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13716 hardcode_shlibpath_var_F77=no
13717 runpath_var=LD_RUN_PATH
13718 hardcode_runpath_var=yes
13724 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13725 hardcode_direct_F77=yes
13726 hardcode_minus_L_F77=no
13727 hardcode_shlibpath_var_F77=no
13728 hardcode_runpath_var=yes
13729 runpath_var=LD_RUN_PATH
13732 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13733 no_undefined_flag_F77='${wl}-z ${wl}text'
13734 if test "$GCC" = yes; then
13735 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13737 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13739 runpath_var='LD_RUN_PATH'
13740 hardcode_shlibpath_var_F77=no
13744 no_undefined_flag_F77=' -z text'
13745 # $CC -shared without GNU ld will not create a library from C++
13746 # object files and a static libstdc++, better avoid it by now
13747 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13748 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13749 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13750 hardcode_libdir_flag_spec_F77=
13751 hardcode_shlibpath_var_F77=no
13752 runpath_var='LD_RUN_PATH'
13756 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13757 hardcode_libdir_flag_spec_F77='-L$libdir'
13758 hardcode_shlibpath_var_F77=no
13767 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13768 echo "${ECHO_T}$ld_shlibs_F77" >&6
13769 test "$ld_shlibs_F77" = no && can_build_shared=no
13771 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13772 if test "$GCC" = yes; then
13773 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13777 # Do we need to explicitly link libc?
13779 case "x$archive_cmds_need_lc_F77" in
13781 # Assume -lc should be added
13782 archive_cmds_need_lc_F77=yes
13784 if test "$enable_shared" = yes && test "$GCC" = yes; then
13785 case $archive_cmds_F77 in
13787 # FIXME: we may have to deal with multi-command sequences.
13790 # Test whether the compiler implicitly links with -lc since on some
13791 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13792 # to ld, don't add -lc before -lgcc.
13793 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13794 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13796 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13799 (eval $ac_compile) 2>&5
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); } 2>conftest.err; then
13805 libobjs=conftest.$ac_objext
13807 wl=$lt_prog_compiler_wl_F77
13813 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13814 allow_undefined_flag_F77=
13815 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13816 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); }
13821 archive_cmds_need_lc_F77=no
13823 archive_cmds_need_lc_F77=yes
13825 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13827 cat conftest.err 1>&5
13830 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13831 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13838 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13839 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13840 hardcode_action_F77=
13841 if test -n "$hardcode_libdir_flag_spec_F77" || \
13842 test -n "$runpath_var F77" || \
13843 test "X$hardcode_automatic_F77"="Xyes" ; then
13845 # We can hardcode non-existant directories.
13846 if test "$hardcode_direct_F77" != no &&
13847 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13848 # have to relink, otherwise we might link with an installed library
13849 # when we should be linking with a yet-to-be-installed one
13850 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13851 test "$hardcode_minus_L_F77" != no; then
13852 # Linking always hardcodes the temporary library directory.
13853 hardcode_action_F77=relink
13855 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13856 hardcode_action_F77=immediate
13859 # We cannot hardcode anything, or else we can only hardcode existing
13861 hardcode_action_F77=unsupported
13863 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13864 echo "${ECHO_T}$hardcode_action_F77" >&6
13866 if test "$hardcode_action_F77" = relink; then
13867 # Fast installation is not supported
13868 enable_fast_install=no
13869 elif test "$shlibpath_overrides_runpath" = yes ||
13870 test "$enable_shared" = no; then
13871 # Fast installation is not necessary
13872 enable_fast_install=needless
13877 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13878 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13879 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13880 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13881 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13882 echo "$as_me:$LINENO: result: yes" >&5
13883 echo "${ECHO_T}yes" >&6
13885 # FIXME - insert some real tests, host_os isn't really good enough
13888 if test -n "$STRIP" ; then
13889 striplib="$STRIP -x"
13890 echo "$as_me:$LINENO: result: yes" >&5
13891 echo "${ECHO_T}yes" >&6
13893 echo "$as_me:$LINENO: result: no" >&5
13894 echo "${ECHO_T}no" >&6
13898 echo "$as_me:$LINENO: result: no" >&5
13899 echo "${ECHO_T}no" >&6
13904 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13905 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13906 library_names_spec=
13907 libname_spec='lib$name'
13911 postuninstall_cmds=
13915 shlibpath_overrides_runpath=unknown
13917 dynamic_linker="$host_os ld.so"
13918 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13919 if test "$GCC" = yes; then
13920 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13921 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13922 # if the path contains ";" then we assume it to be the separator
13923 # otherwise default to the standard path separator (i.e. ":") - it is
13924 # assumed that no part of a normal pathname contains ";" but that should
13925 # okay in the real world where ";" in dirpaths is itself problematic.
13926 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13928 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13931 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13933 need_lib_prefix=unknown
13934 hardcode_into_libs=no
13936 # when you set need_version to no, make sure it does not cause -set_version
13937 # flags to be left without arguments
13938 need_version=unknown
13943 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13944 shlibpath_var=LIBPATH
13946 # AIX 3 has no versioning support, so we append a major version to the name.
13947 soname_spec='${libname}${release}${shared_ext}$major'
13954 hardcode_into_libs=yes
13955 if test "$host_cpu" = ia64; then
13956 # AIX 5 supports IA64
13957 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13958 shlibpath_var=LD_LIBRARY_PATH
13960 # With GCC up to 2.95.x, collect2 would create an import file
13961 # for dependence libraries. The import file would start with
13962 # the line `#! .'. This would cause the generated library to
13963 # depend on `.', always an invalid library. This was fixed in
13964 # development snapshots of GCC prior to 3.0.
13966 aix4 | aix4.[01] | aix4.[01].*)
13967 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13969 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13972 can_build_shared=no
13976 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13977 # soname into executable. Probably we can add versioning support to
13978 # collect2, so additional links can be useful in future.
13979 if test "$aix_use_runtimelinking" = yes; then
13980 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13981 # instead of lib<name>.a to let people know that these are not
13982 # typical AIX shared libraries.
13983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13985 # We preserve .a as extension for shared libraries through AIX4.2
13986 # and later when we are not doing run time linking.
13987 library_names_spec='${libname}${release}.a $libname.a'
13988 soname_spec='${libname}${release}${shared_ext}$major'
13990 shlibpath_var=LIBPATH
13995 library_names_spec='$libname.ixlibrary $libname.a'
13996 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13997 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'
14001 library_names_spec='${libname}${shared_ext}'
14002 dynamic_linker="$host_os ld.so"
14003 shlibpath_var=LIBRARY_PATH
14009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14010 soname_spec='${libname}${release}${shared_ext}$major'
14011 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14012 shlibpath_var=LD_LIBRARY_PATH
14013 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14014 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14015 # the default ld.so.conf also contains /usr/contrib/lib and
14016 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14017 # libtool to hard-code these into programs
14020 cygwin* | mingw* | pw32*)
14021 version_type=windows
14026 case $GCC,$host_os in
14027 yes,cygwin* | yes,mingw* | yes,pw32*)
14028 library_names_spec='$libname.dll.a'
14029 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14030 postinstall_cmds='base_file=`basename \${file}`~
14031 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14032 dldir=$destdir/`dirname \$dlpath`~
14033 test -d \$dldir || mkdir -p \$dldir~
14034 $install_prog $dir/$dlname \$dldir/$dlname'
14035 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14036 dlpath=$dir/\$dldll~
14038 shlibpath_overrides_runpath=yes
14042 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14043 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14044 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14047 # MinGW DLLs use traditional 'lib' prefix
14048 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14049 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14050 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14051 # It is most probably a Windows format PATH printed by
14052 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14053 # path with ; separators, and with drive letters. We can handle the
14054 # drive letters (cygwin fileutils understands them), so leave them,
14055 # especially as we might pass files found there to a mingw objdump,
14056 # which wouldn't understand a cygwinified path. Ahh.
14057 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14059 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14063 # pw32 DLLs use 'pw' prefix rather than 'lib'
14064 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14070 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14073 dynamic_linker='Win32 ld.exe'
14074 # FIXME: first we should search . and the directory the executable is in
14078 darwin* | rhapsody*)
14079 dynamic_linker="$host_os dyld"
14080 version_type=darwin
14083 # FIXME: Relying on posixy $() will cause problems for
14084 # cross-compilation, but unfortunately the echo tests do not
14085 # yet detect zsh echo's removal of \ escapes.
14086 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14087 soname_spec='${libname}${release}${major}$shared_ext'
14088 shlibpath_overrides_runpath=yes
14089 shlibpath_var=DYLD_LIBRARY_PATH
14090 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14091 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14092 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14093 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14095 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14103 soname_spec='${libname}${release}${shared_ext}$major'
14104 shlibpath_var=LD_LIBRARY_PATH
14112 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14113 version_type=freebsd-$objformat
14114 case $version_type in
14116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14121 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14125 shlibpath_var=LD_LIBRARY_PATH
14128 shlibpath_overrides_runpath=yes
14130 freebsd3.01* | freebsdelf3.01*)
14131 shlibpath_overrides_runpath=yes
14132 hardcode_into_libs=yes
14135 shlibpath_overrides_runpath=no
14136 hardcode_into_libs=yes
14145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14146 soname_spec='${libname}${release}${shared_ext}$major'
14147 shlibpath_var=LD_LIBRARY_PATH
14148 hardcode_into_libs=yes
14151 hpux9* | hpux10* | hpux11*)
14152 # Give a soname corresponding to the major version so that dld.sl refuses to
14153 # link against other versions.
14157 case "$host_cpu" in
14160 hardcode_into_libs=yes
14161 dynamic_linker="$host_os dld.so"
14162 shlibpath_var=LD_LIBRARY_PATH
14163 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14165 soname_spec='${libname}${release}${shared_ext}$major'
14166 if test "X$HPUX_IA64_MODE" = X32; then
14167 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14169 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14171 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14175 hardcode_into_libs=yes
14176 dynamic_linker="$host_os dld.sl"
14177 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14178 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14180 soname_spec='${libname}${release}${shared_ext}$major'
14181 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14182 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14186 dynamic_linker="$host_os dld.sl"
14187 shlibpath_var=SHLIB_PATH
14188 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14190 soname_spec='${libname}${release}${shared_ext}$major'
14193 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14194 postinstall_cmds='chmod 555 $lib'
14197 irix5* | irix6* | nonstopux*)
14199 nonstopux*) version_type=nonstopux ;;
14201 if test "$lt_cv_prog_gnu_ld" = yes; then
14209 soname_spec='${libname}${release}${shared_ext}$major'
14210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14212 irix5* | nonstopux*)
14213 libsuff= shlibsuff=
14216 case $LD in # libtool.m4 will add one of these switches to LD
14217 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14218 libsuff= shlibsuff= libmagic=32-bit;;
14219 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14220 libsuff=32 shlibsuff=N32 libmagic=N32;;
14221 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14222 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14223 *) libsuff= shlibsuff= libmagic=never-match;;
14227 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14228 shlibpath_overrides_runpath=no
14229 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14230 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14231 hardcode_into_libs=yes
14234 # No shared lib support for Linux oldld, aout, or coff.
14235 linux*oldld* | linux*aout* | linux*coff*)
14239 # This must be Linux ELF.
14244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14245 soname_spec='${libname}${release}${shared_ext}$major'
14246 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14247 shlibpath_var=LD_LIBRARY_PATH
14248 shlibpath_overrides_runpath=no
14249 # This implies no fast_install, which is unacceptable.
14250 # Some rework will be needed to allow for fast_install
14251 # before this can be enabled.
14252 hardcode_into_libs=yes
14254 # We used to test for /lib/ld.so.1 and disable shared libraries on
14255 # powerpc, because MkLinux only supported shared libraries with the
14256 # GNU dynamic linker. Since this was broken with cross compilers,
14257 # most powerpc-linux boxes support dynamic linking these days and
14258 # people can always --disable-shared, the test was removed, and we
14259 # assume the GNU/Linux dynamic linker is in use.
14260 dynamic_linker='GNU/Linux ld.so'
14262 # Find out which ABI we are using (multilib Linux x86_64 hack).
14264 case "$host_cpu" in
14266 echo '#line 14266 "configure"' > conftest.$ac_ext
14267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14268 (eval $ac_compile) 2>&5
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); }; then
14272 case `/usr/bin/file conftest.$ac_objext` in
14283 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
14284 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14291 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14293 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14294 dynamic_linker='NetBSD (a.out) ld.so'
14296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14297 soname_spec='${libname}${release}${shared_ext}$major'
14298 dynamic_linker='NetBSD ld.elf_so'
14300 shlibpath_var=LD_LIBRARY_PATH
14301 shlibpath_overrides_runpath=yes
14302 hardcode_into_libs=yes
14307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14308 shlibpath_var=LD_LIBRARY_PATH
14309 shlibpath_overrides_runpath=yes
14316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14317 soname_spec='${libname}${release}${shared_ext}$major'
14318 shlibpath_var=LD_LIBRARY_PATH
14319 shlibpath_overrides_runpath=yes
14326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14327 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14328 shlibpath_var=LD_LIBRARY_PATH
14329 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14331 openbsd2.[89] | openbsd2.[89].*)
14332 shlibpath_overrides_runpath=no
14335 shlibpath_overrides_runpath=yes
14339 shlibpath_overrides_runpath=yes
14344 libname_spec='$name'
14347 library_names_spec='$libname${shared_ext} $libname.a'
14348 dynamic_linker='OS/2 ld.exe'
14349 shlibpath_var=LIBPATH
14352 osf3* | osf4* | osf5*)
14356 soname_spec='${libname}${release}${shared_ext}$major'
14357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14358 shlibpath_var=LD_LIBRARY_PATH
14359 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14360 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14365 soname_spec='${libname}${release}${shared_ext}$major'
14366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14367 shlibpath_var=LD_LIBRARY_PATH
14374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14375 soname_spec='${libname}${release}${shared_ext}$major'
14376 shlibpath_var=LD_LIBRARY_PATH
14377 shlibpath_overrides_runpath=yes
14378 hardcode_into_libs=yes
14379 # ldd complains unless libraries are executable
14380 postinstall_cmds='chmod +x $lib'
14385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14386 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14387 shlibpath_var=LD_LIBRARY_PATH
14388 shlibpath_overrides_runpath=yes
14389 if test "$with_gnu_ld" = yes; then
14395 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14398 soname_spec='${libname}${release}${shared_ext}$major'
14399 shlibpath_var=LD_LIBRARY_PATH
14400 case $host_vendor in
14402 shlibpath_overrides_runpath=no
14404 export_dynamic_flag_spec='${wl}-Blargedynsym'
14405 runpath_var=LD_RUN_PATH
14413 shlibpath_overrides_runpath=no
14414 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14420 if test -d /usr/nec ;then
14422 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14423 soname_spec='$libname${shared_ext}.$major'
14424 shlibpath_var=LD_LIBRARY_PATH
14430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14431 soname_spec='${libname}${release}${shared_ext}$major'
14432 shlibpath_var=LD_LIBRARY_PATH
14439 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14440 echo "${ECHO_T}$dynamic_linker" >&6
14441 test "$dynamic_linker" = no && can_build_shared=no
14444 # The else clause should only fire when bootstrapping the
14445 # libtool distribution, otherwise you forgot to ship ltmain.sh
14446 # with your package, and you will get complaints that there are
14447 # no rules to generate ltmain.sh.
14448 if test -f "$ltmain"; then
14449 # See if we are running on zsh, and set the options which allow our commands through
14450 # without removal of \ escapes.
14451 if test -n "${ZSH_VERSION+set}" ; then
14452 setopt NO_GLOB_SUBST
14454 # Now quote all the things that may contain metacharacters while being
14455 # careful not to overquote the AC_SUBSTed values. We take copies of the
14456 # variables and quote the copies for generation of the libtool script.
14457 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14458 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14459 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14460 deplibs_check_method reload_flag reload_cmds need_locks \
14461 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14462 lt_cv_sys_global_symbol_to_c_name_address \
14463 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14464 old_postinstall_cmds old_postuninstall_cmds \
14468 lt_prog_compiler_wl_F77 \
14469 lt_prog_compiler_pic_F77 \
14470 lt_prog_compiler_static_F77 \
14471 lt_prog_compiler_no_builtin_flag_F77 \
14472 export_dynamic_flag_spec_F77 \
14473 thread_safe_flag_spec_F77 \
14474 whole_archive_flag_spec_F77 \
14475 enable_shared_with_static_runtimes_F77 \
14476 old_archive_cmds_F77 \
14477 old_archive_from_new_cmds_F77 \
14478 predep_objects_F77 \
14479 postdep_objects_F77 \
14482 compiler_lib_search_path_F77 \
14484 archive_expsym_cmds_F77 \
14485 postinstall_cmds_F77 \
14486 postuninstall_cmds_F77 \
14487 old_archive_from_expsyms_cmds_F77 \
14488 allow_undefined_flag_F77 \
14489 no_undefined_flag_F77 \
14490 export_symbols_cmds_F77 \
14491 hardcode_libdir_flag_spec_F77 \
14492 hardcode_libdir_flag_spec_ld_F77 \
14493 hardcode_libdir_separator_F77 \
14494 hardcode_automatic_F77 \
14496 module_expsym_cmds_F77 \
14497 lt_cv_prog_compiler_c_o_F77 \
14498 exclude_expsyms_F77 \
14499 include_expsyms_F77; do
14502 old_archive_cmds_F77 | \
14503 old_archive_from_new_cmds_F77 | \
14504 archive_cmds_F77 | \
14505 archive_expsym_cmds_F77 | \
14506 module_cmds_F77 | \
14507 module_expsym_cmds_F77 | \
14508 old_archive_from_expsyms_cmds_F77 | \
14509 export_symbols_cmds_F77 | \
14510 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14511 postinstall_cmds | postuninstall_cmds | \
14512 old_postinstall_cmds | old_postuninstall_cmds | \
14513 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14514 # Double-quote double-evaled strings.
14515 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14518 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14524 *'\$0 --fallback-echo"')
14525 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14531 cat <<__EOF__ >> "$cfgfile"
14532 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14534 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14536 # Shell to use when invoking shell scripts.
14539 # Whether or not to build shared libraries.
14540 build_libtool_libs=$enable_shared
14542 # Whether or not to build static libraries.
14543 build_old_libs=$enable_static
14545 # Whether or not to add -lc for building shared libraries.
14546 build_libtool_need_lc=$archive_cmds_need_lc_F77
14548 # Whether or not to disallow shared libs when runtime libs are static
14549 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14551 # Whether or not to optimize for fast installation.
14552 fast_install=$enable_fast_install
14555 host_alias=$host_alias
14558 # An echo program that does not interpret backslashes.
14563 AR_FLAGS=$lt_AR_FLAGS
14568 # A language-specific compiler.
14569 CC=$lt_compiler_F77
14571 # Is the compiler the GNU C compiler?
14577 # The linker used to build libraries.
14580 # Whether we need hard or soft links.
14583 # A BSD-compatible nm program.
14586 # A symbol stripping program
14589 # Used to examine libraries when file_magic_cmd begins "file"
14590 MAGIC_CMD=$MAGIC_CMD
14592 # Used on cygwin: DLL creation program.
14595 # Used on cygwin: object dumper.
14598 # Used on cygwin: assembler.
14601 # The name of the directory that contains temporary libtool files.
14604 # How to create reloadable object files.
14605 reload_flag=$lt_reload_flag
14606 reload_cmds=$lt_reload_cmds
14608 # How to pass a linker flag through the compiler.
14609 wl=$lt_lt_prog_compiler_wl_F77
14611 # Object file suffix (normally "o").
14612 objext="$ac_objext"
14614 # Old archive suffix (normally "a").
14617 # Shared library suffix (normally ".so").
14620 # Executable file suffix (normally "").
14623 # Additional compiler flags for building library objects.
14624 pic_flag=$lt_lt_prog_compiler_pic_F77
14627 # What is the maximum length of a command?
14628 max_cmd_len=$lt_cv_sys_max_cmd_len
14630 # Does compiler simultaneously support -c and -o options?
14631 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14633 # Must we lock files when doing compilation ?
14634 need_locks=$lt_need_locks
14636 # Do we need the lib prefix for modules?
14637 need_lib_prefix=$need_lib_prefix
14639 # Do we need a version for libraries?
14640 need_version=$need_version
14642 # Whether dlopen is supported.
14643 dlopen_support=$enable_dlopen
14645 # Whether dlopen of programs is supported.
14646 dlopen_self=$enable_dlopen_self
14648 # Whether dlopen of statically linked programs is supported.
14649 dlopen_self_static=$enable_dlopen_self_static
14651 # Compiler flag to prevent dynamic linking.
14652 link_static_flag=$lt_lt_prog_compiler_static_F77
14654 # Compiler flag to turn off builtin functions.
14655 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14657 # Compiler flag to allow reflexive dlopens.
14658 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14660 # Compiler flag to generate shared objects directly from archives.
14661 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14663 # Compiler flag to generate thread-safe objects.
14664 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14666 # Library versioning type.
14667 version_type=$version_type
14669 # Format of library name prefix.
14670 libname_spec=$lt_libname_spec
14672 # List of archive names. First name is the real one, the rest are links.
14673 # The last name is the one that the linker finds with -lNAME.
14674 library_names_spec=$lt_library_names_spec
14676 # The coded name of the library, if different from the real name.
14677 soname_spec=$lt_soname_spec
14679 # Commands used to build and install an old-style archive.
14681 old_archive_cmds=$lt_old_archive_cmds_F77
14682 old_postinstall_cmds=$lt_old_postinstall_cmds
14683 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14685 # Create an old-style archive from a shared archive.
14686 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14688 # Create a temporary old-style archive to link instead of a shared archive.
14689 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14691 # Commands used to build and install a shared archive.
14692 archive_cmds=$lt_archive_cmds_F77
14693 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14694 postinstall_cmds=$lt_postinstall_cmds
14695 postuninstall_cmds=$lt_postuninstall_cmds
14697 # Commands used to build a loadable module (assumed same as above if empty)
14698 module_cmds=$lt_module_cmds_F77
14699 module_expsym_cmds=$lt_module_expsym_cmds_F77
14701 # Commands to strip libraries.
14702 old_striplib=$lt_old_striplib
14703 striplib=$lt_striplib
14705 # Dependencies to place before the objects being linked to create a
14707 predep_objects=$lt_predep_objects_F77
14709 # Dependencies to place after the objects being linked to create a
14711 postdep_objects=$lt_postdep_objects_F77
14713 # Dependencies to place before the objects being linked to create a
14715 predeps=$lt_predeps_F77
14717 # Dependencies to place after the objects being linked to create a
14719 postdeps=$lt_postdeps_F77
14721 # The library search path used internally by the compiler when linking
14722 # a shared library.
14723 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14725 # Method to check whether dependent libraries are shared objects.
14726 deplibs_check_method=$lt_deplibs_check_method
14728 # Command to use when deplibs_check_method == file_magic.
14729 file_magic_cmd=$lt_file_magic_cmd
14731 # Flag that allows shared libraries with undefined symbols to be built.
14732 allow_undefined_flag=$lt_allow_undefined_flag_F77
14734 # Flag that forces no undefined symbols.
14735 no_undefined_flag=$lt_no_undefined_flag_F77
14737 # Commands used to finish a libtool library installation in a directory.
14738 finish_cmds=$lt_finish_cmds
14740 # Same as above, but a single script fragment to be evaled but not shown.
14741 finish_eval=$lt_finish_eval
14743 # Take the output of nm and produce a listing of raw symbols and C names.
14744 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14746 # Transform the output of nm in a proper C declaration
14747 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14749 # Transform the output of nm in a C name address pair
14750 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14752 # This is the shared library runtime path variable.
14753 runpath_var=$runpath_var
14755 # This is the shared library path variable.
14756 shlibpath_var=$shlibpath_var
14758 # Is shlibpath searched before the hard-coded library search path?
14759 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14761 # How to hardcode a shared library path into an executable.
14762 hardcode_action=$hardcode_action_F77
14764 # Whether we should hardcode library paths into libraries.
14765 hardcode_into_libs=$hardcode_into_libs
14767 # Flag to hardcode \$libdir into a binary during linking.
14768 # This must work even if \$libdir does not exist.
14769 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14771 # If ld is used when linking, flag to hardcode \$libdir into
14772 # a binary during linking. This must work even if \$libdir does
14774 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14776 # Whether we need a single -rpath flag with a separated argument.
14777 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14779 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14780 # resulting binary.
14781 hardcode_direct=$hardcode_direct_F77
14783 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14784 # resulting binary.
14785 hardcode_minus_L=$hardcode_minus_L_F77
14787 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14788 # the resulting binary.
14789 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14791 # Set to yes if building a shared library automatically hardcodes DIR into the library
14792 # and all subsequent libraries and executables linked against it.
14793 hardcode_automatic=$hardcode_automatic_F77
14795 # Variables whose values should be saved in libtool wrapper scripts and
14796 # restored at relink time.
14797 variables_saved_for_relink="$variables_saved_for_relink"
14799 # Whether libtool must link a program against all its dependency libraries.
14800 link_all_deplibs=$link_all_deplibs_F77
14802 # Compile-time system search path for libraries
14803 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14805 # Run-time system search path for libraries
14806 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14808 # Fix the shell variable \$srcfile for the compiler.
14809 fix_srcfile_path="$fix_srcfile_path_F77"
14811 # Set to yes if exported symbols are required.
14812 always_export_symbols=$always_export_symbols_F77
14814 # The commands to list exported symbols.
14815 export_symbols_cmds=$lt_export_symbols_cmds_F77
14817 # The commands to extract the exported symbol list from a shared archive.
14818 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14820 # Symbols that should not be listed in the preloaded symbols.
14821 exclude_expsyms=$lt_exclude_expsyms_F77
14823 # Symbols that must always be exported.
14824 include_expsyms=$lt_include_expsyms_F77
14826 # ### END LIBTOOL TAG CONFIG: $tagname
14832 # If there is no Makefile yet, we rely on a make rule to execute
14833 # `config.status --recheck' to rerun these tests and create the
14834 # libtool script then.
14835 test -f Makefile && make "$ltmain"
14840 ac_cpp='$CPP $CPPFLAGS'
14841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14853 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14857 # Source file extension for Java test sources.
14860 # Object file extension for compiled Java test sources.
14864 # Code to be used in simple compile tests
14865 lt_simple_compile_test_code="class foo {}\n"
14867 # Code to be used in simple link tests
14868 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14870 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14872 # If no C compiler was specified, use CC.
14875 # Allow CC to be a program name with arguments.
14879 # Allow CC to be a program name with arguments.
14885 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14886 archive_cmds_need_lc_GCJ=no
14889 lt_prog_compiler_no_builtin_flag_GCJ=
14891 if test "$GCC" = yes; then
14892 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14894 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14895 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14896 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14897 echo $ECHO_N "(cached) $ECHO_C" >&6
14899 lt_cv_prog_compiler_rtti_exceptions=no
14900 ac_outfile=conftest.$ac_objext
14901 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14902 lt_compiler_flag="-fno-rtti -fno-exceptions"
14903 # Insert the option either (1) after the last *FLAGS variable, or
14904 # (2) before a word containing "conftest.", or (3) at the end.
14905 # Note that $ac_compile itself does not contain backslashes and begins
14906 # with a dollar sign (not a hyphen), so the echo should work correctly.
14907 # The option is referenced via a variable to avoid confusing sed.
14908 lt_compile=`echo "$ac_compile" | $SED \
14909 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14910 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14911 -e 's:$: $lt_compiler_flag:'`
14912 (eval echo "\"\$as_me:14912: $lt_compile\"" >&5)
14913 (eval "$lt_compile" 2>conftest.err)
14915 cat conftest.err >&5
14916 echo "$as_me:14916: \$? = $ac_status" >&5
14917 if (exit $ac_status) && test -s "$ac_outfile"; then
14918 # The compiler can only warn and ignore the option if not recognized
14919 # So say no if there are warnings
14920 if test ! -s conftest.err; then
14921 lt_cv_prog_compiler_rtti_exceptions=yes
14927 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14928 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14930 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14931 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14938 lt_prog_compiler_wl_GCJ=
14939 lt_prog_compiler_pic_GCJ=
14940 lt_prog_compiler_static_GCJ=
14942 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14943 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14945 if test "$GCC" = yes; then
14946 lt_prog_compiler_wl_GCJ='-Wl,'
14947 lt_prog_compiler_static_GCJ='-static'
14951 # All AIX code is PIC.
14952 if test "$host_cpu" = ia64; then
14953 # AIX 5 now supports IA64 processor
14954 lt_prog_compiler_static_GCJ='-Bstatic'
14959 # FIXME: we need at least 68020 code to build shared libraries, but
14960 # adding the `-m68020' flag to GCC prevents building anything better,
14962 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14965 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14966 # PIC is the default for these OSes.
14969 mingw* | pw32* | os2*)
14970 # This hack is so that the source file can tell whether it is being
14971 # built for inclusion in a dll (and should export symbols for example).
14972 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14975 darwin* | rhapsody*)
14976 # PIC is the default on this platform
14977 # Common symbols not allowed in MH_DYLIB files
14978 lt_prog_compiler_pic_GCJ='-fno-common'
14982 # Just because we use GCC doesn't mean we suddenly get shared libraries
14983 # on systems that don't support them.
14984 lt_prog_compiler_can_build_shared_GCJ=no
14989 if test -d /usr/nec; then
14990 lt_prog_compiler_pic_GCJ=-Kconform_pic
14995 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14996 # not for PA HP-UX.
14997 case "$host_cpu" in
15002 lt_prog_compiler_pic_GCJ='-fPIC'
15008 lt_prog_compiler_pic_GCJ='-fPIC'
15012 # PORTME Check for flag to pass linker flags through the system compiler.
15015 lt_prog_compiler_wl_GCJ='-Wl,'
15016 if test "$host_cpu" = ia64; then
15017 # AIX 5 now supports IA64 processor
15018 lt_prog_compiler_static_GCJ='-Bstatic'
15020 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15024 mingw* | pw32* | os2*)
15025 # This hack is so that the source file can tell whether it is being
15026 # built for inclusion in a dll (and should export symbols for example).
15027 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15030 hpux9* | hpux10* | hpux11*)
15031 lt_prog_compiler_wl_GCJ='-Wl,'
15032 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15033 # not for PA HP-UX.
15034 case "$host_cpu" in
15039 lt_prog_compiler_pic_GCJ='+Z'
15042 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15043 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15046 irix5* | irix6* | nonstopux*)
15047 lt_prog_compiler_wl_GCJ='-Wl,'
15048 # PIC (with -KPIC) is the default.
15049 lt_prog_compiler_static_GCJ='-non_shared'
15053 lt_prog_compiler_pic_GCJ='-KPIC'
15054 lt_prog_compiler_static_GCJ='-Bstatic'
15060 lt_prog_compiler_wl_GCJ='-Wl,'
15061 lt_prog_compiler_pic_GCJ='-KPIC'
15062 lt_prog_compiler_static_GCJ='-static'
15065 lt_prog_compiler_wl_GCJ='-Wl,'
15066 # All Alpha code is PIC.
15067 lt_prog_compiler_static_GCJ='-non_shared'
15072 osf3* | osf4* | osf5*)
15073 lt_prog_compiler_wl_GCJ='-Wl,'
15074 # All OSF/1 code is PIC.
15075 lt_prog_compiler_static_GCJ='-non_shared'
15079 lt_prog_compiler_pic_GCJ='-Kpic'
15080 lt_prog_compiler_static_GCJ='-dn'
15084 lt_prog_compiler_wl_GCJ='-Wl,'
15085 lt_prog_compiler_pic_GCJ='-KPIC'
15086 lt_prog_compiler_static_GCJ='-Bstatic'
15090 lt_prog_compiler_wl_GCJ='-Qoption ld '
15091 lt_prog_compiler_pic_GCJ='-PIC'
15092 lt_prog_compiler_static_GCJ='-Bstatic'
15095 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15096 lt_prog_compiler_wl_GCJ='-Wl,'
15097 lt_prog_compiler_pic_GCJ='-KPIC'
15098 lt_prog_compiler_static_GCJ='-Bstatic'
15102 if test -d /usr/nec ;then
15103 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15104 lt_prog_compiler_static_GCJ='-Bstatic'
15109 lt_prog_compiler_pic_GCJ='-pic'
15110 lt_prog_compiler_static_GCJ='-Bstatic'
15114 lt_prog_compiler_can_build_shared_GCJ=no
15119 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15120 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15123 # Check to make sure the PIC flag actually works.
15125 if test -n "$lt_prog_compiler_pic_GCJ"; then
15126 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15127 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15128 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15129 echo $ECHO_N "(cached) $ECHO_C" >&6
15131 lt_prog_compiler_pic_works_GCJ=no
15132 ac_outfile=conftest.$ac_objext
15133 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15134 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15135 # Insert the option either (1) after the last *FLAGS variable, or
15136 # (2) before a word containing "conftest.", or (3) at the end.
15137 # Note that $ac_compile itself does not contain backslashes and begins
15138 # with a dollar sign (not a hyphen), so the echo should work correctly.
15139 # The option is referenced via a variable to avoid confusing sed.
15140 lt_compile=`echo "$ac_compile" | $SED \
15141 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15142 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15143 -e 's:$: $lt_compiler_flag:'`
15144 (eval echo "\"\$as_me:15144: $lt_compile\"" >&5)
15145 (eval "$lt_compile" 2>conftest.err)
15147 cat conftest.err >&5
15148 echo "$as_me:15148: \$? = $ac_status" >&5
15149 if (exit $ac_status) && test -s "$ac_outfile"; then
15150 # The compiler can only warn and ignore the option if not recognized
15151 # So say no if there are warnings
15152 if test ! -s conftest.err; then
15153 lt_prog_compiler_pic_works_GCJ=yes
15159 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15160 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15162 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15163 case $lt_prog_compiler_pic_GCJ in
15165 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15168 lt_prog_compiler_pic_GCJ=
15169 lt_prog_compiler_can_build_shared_GCJ=no
15174 # For platforms which do not support PIC, -DPIC is meaningless:
15176 lt_prog_compiler_pic_GCJ=
15179 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15183 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15184 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15185 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15186 echo $ECHO_N "(cached) $ECHO_C" >&6
15188 lt_cv_prog_compiler_c_o_GCJ=no
15189 $rm -r conftest 2>/dev/null
15193 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15195 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15196 # that will create temporary files in the current directory regardless of
15197 # the output directory. Thus, making CWD read-only will cause this test
15198 # to fail, enabling locking or at least warning the user not to do parallel
15202 lt_compiler_flag="-o out/conftest2.$ac_objext"
15203 # Insert the option either (1) after the last *FLAGS variable, or
15204 # (2) before a word containing "conftest.", or (3) at the end.
15205 # Note that $ac_compile itself does not contain backslashes and begins
15206 # with a dollar sign (not a hyphen), so the echo should work correctly.
15207 lt_compile=`echo "$ac_compile" | $SED \
15208 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15209 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15210 -e 's:$: $lt_compiler_flag:'`
15211 (eval echo "\"\$as_me:15211: $lt_compile\"" >&5)
15212 (eval "$lt_compile" 2>out/conftest.err)
15214 cat out/conftest.err >&5
15215 echo "$as_me:15215: \$? = $ac_status" >&5
15216 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15218 # The compiler can only warn and ignore the option if not recognized
15219 # So say no if there are warnings
15220 if test ! -s out/conftest.err; then
15221 lt_cv_prog_compiler_c_o_GCJ=yes
15225 $rm conftest* out/*
15232 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15233 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15236 hard_links="nottested"
15237 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15238 # do not overwrite the value of need_locks provided by the user
15239 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15240 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15243 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15245 ln conftest.a conftest.b 2>&5 || hard_links=no
15246 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15247 echo "$as_me:$LINENO: result: $hard_links" >&5
15248 echo "${ECHO_T}$hard_links" >&6
15249 if test "$hard_links" = no; then
15250 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15251 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15258 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15259 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15262 allow_undefined_flag_GCJ=
15263 enable_shared_with_static_runtimes_GCJ=no
15265 archive_expsym_cmds_GCJ=
15266 old_archive_From_new_cmds_GCJ=
15267 old_archive_from_expsyms_cmds_GCJ=
15268 export_dynamic_flag_spec_GCJ=
15269 whole_archive_flag_spec_GCJ=
15270 thread_safe_flag_spec_GCJ=
15271 hardcode_libdir_flag_spec_GCJ=
15272 hardcode_libdir_flag_spec_ld_GCJ=
15273 hardcode_libdir_separator_GCJ=
15274 hardcode_direct_GCJ=no
15275 hardcode_minus_L_GCJ=no
15276 hardcode_shlibpath_var_GCJ=unsupported
15277 link_all_deplibs_GCJ=unknown
15278 hardcode_automatic_GCJ=no
15280 module_expsym_cmds_GCJ=
15281 always_export_symbols_GCJ=no
15282 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15283 # include_expsyms should be a list of space-separated symbols to be *always*
15284 # included in the symbol list
15285 include_expsyms_GCJ=
15286 # exclude_expsyms can be an extended regexp of symbols to exclude
15287 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15288 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15289 # as well as any symbol that contains `d'.
15290 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15291 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15292 # platforms (ab)use it in PIC code, but their linkers get confused if
15293 # the symbol is explicitly referenced. Since portable code cannot
15294 # rely on this symbol name, it's probably fine to never include it in
15295 # preloaded symbol tables.
15296 extract_expsyms_cmds=
15299 cygwin* | mingw* | pw32*)
15300 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15301 # When not using gcc, we currently assume that we are using
15302 # Microsoft Visual C++.
15303 if test "$GCC" != yes; then
15313 if test "$with_gnu_ld" = yes; then
15314 # If archive_cmds runs LD, not CC, wlarc should be empty
15317 # See if GNU ld supports shared libraries.
15319 aix3* | aix4* | aix5*)
15320 # On AIX/PPC, the GNU linker is very broken
15321 if test "$host_cpu" != ia64; then
15325 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15326 *** to be unable to reliably create shared libraries on AIX.
15327 *** Therefore, libtool is disabling shared libraries support. If you
15328 *** really care for shared libraries, you may want to modify your PATH
15329 *** so that a non-GNU linker is found, and then restart.
15336 archive_cmds_GCJ='$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)'
15337 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15338 hardcode_minus_L_GCJ=yes
15340 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15341 # that the semantics of dynamic libraries on AmigaOS, at least up
15342 # to version 4, is to share data among multiple programs linked
15343 # with the same dynamic library. Since this doesn't match the
15344 # behavior of shared libraries on other platforms, we can't use
15350 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15351 allow_undefined_flag_GCJ=unsupported
15352 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15353 # support --undefined. This deserves some investigation. FIXME
15354 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15360 cygwin* | mingw* | pw32*)
15361 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15362 # as there is no search path for DLLs.
15363 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15364 allow_undefined_flag_GCJ=unsupported
15365 always_export_symbols_GCJ=no
15366 enable_shared_with_static_runtimes_GCJ=yes
15367 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15369 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15370 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15371 # If the export-symbols file already is a .def file (1st line
15372 # is EXPORTS), use it as is; otherwise, prepend...
15373 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15374 cp $export_symbols $output_objdir/$soname.def;
15376 echo EXPORTS > $output_objdir/$soname.def;
15377 cat $export_symbols >> $output_objdir/$soname.def;
15379 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15386 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15387 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15390 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15391 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15396 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15400 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15401 *** create shared libraries on Solaris systems. Therefore, libtool
15402 *** is disabling shared libraries support. We urge you to upgrade GNU
15403 *** binutils to release 2.9.1 or newer. Another option is to modify
15404 *** your PATH or compiler configuration so that the native linker is
15405 *** used, and then restart.
15408 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15409 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15410 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15417 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15419 hardcode_direct_GCJ=yes
15420 hardcode_shlibpath_var_GCJ=no
15424 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15425 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15426 archive_cmds_GCJ="$tmp_archive_cmds"
15427 supports_anon_versioning=no
15428 case `$LD -v 2>/dev/null` in
15429 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15430 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15431 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15432 *\ 2.11.*) ;; # other 2.11 versions
15433 *) supports_anon_versioning=yes ;;
15435 if test $supports_anon_versioning = yes; then
15436 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15437 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15438 $echo "local: *; };" >> $output_objdir/$libname.ver~
15439 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15441 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15449 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15450 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15451 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15458 if test "$ld_shlibs_GCJ" = yes; then
15459 runpath_var=LD_RUN_PATH
15460 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15461 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15462 # ancient GNU ld didn't support --whole-archive et. al.
15463 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15464 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15466 whole_archive_flag_spec_GCJ=
15470 # PORTME fill in a description of your system's linker (not GNU ld)
15473 allow_undefined_flag_GCJ=unsupported
15474 always_export_symbols_GCJ=yes
15475 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15476 # Note: this linker hardcodes the directories in LIBPATH if there
15477 # are no directories specified by -L.
15478 hardcode_minus_L_GCJ=yes
15479 if test "$GCC" = yes && test -z "$link_static_flag"; then
15480 # Neither direct hardcoding nor static linking is supported with a
15482 hardcode_direct_GCJ=unsupported
15487 if test "$host_cpu" = ia64; then
15488 # On IA64, the linker does run time linking by default, so we don't
15489 # have to do anything special.
15490 aix_use_runtimelinking=no
15491 exp_sym_flag='-Bexport'
15494 # If we're using GNU nm, then we don't want the "-C" option.
15495 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15496 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15497 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15499 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15501 aix_use_runtimelinking=no
15503 # Test if we are trying to use run time linking or normal
15504 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15505 # need to do runtime linking.
15506 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15507 for ld_flag in $LDFLAGS; do
15508 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15509 aix_use_runtimelinking=yes
15515 exp_sym_flag='-bexport'
15516 no_entry_flag='-bnoentry'
15519 # When large executables or shared objects are built, AIX ld can
15520 # have problems creating the table of contents. If linking a library
15521 # or program results in "error TOC overflow" add -mminimal-toc to
15522 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15523 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15525 archive_cmds_GCJ=''
15526 hardcode_direct_GCJ=yes
15527 hardcode_libdir_separator_GCJ=':'
15528 link_all_deplibs_GCJ=yes
15530 if test "$GCC" = yes; then
15531 case $host_os in aix4.012|aix4.012.*)
15532 # We only want to do this on AIX 4.2 and lower, the check
15533 # below for broken collect2 doesn't work under 4.3+
15534 collect2name=`${CC} -print-prog-name=collect2`
15535 if test -f "$collect2name" && \
15536 strings "$collect2name" | grep resolve_lib_name >/dev/null
15538 # We have reworked collect2
15539 hardcode_direct_GCJ=yes
15541 # We have old collect2
15542 hardcode_direct_GCJ=unsupported
15543 # It fails to find uninstalled libraries when the uninstalled
15544 # path is not listed in the libpath. Setting hardcode_minus_L
15545 # to unsupported forces relinking
15546 hardcode_minus_L_GCJ=yes
15547 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15548 hardcode_libdir_separator_GCJ=
15551 shared_flag='-shared'
15554 if test "$host_cpu" = ia64; then
15555 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15556 # chokes on -Wl,-G. The following line is correct:
15559 if test "$aix_use_runtimelinking" = yes; then
15560 shared_flag='${wl}-G'
15562 shared_flag='${wl}-bM:SRE'
15567 # It seems that -bexpall does not export symbols beginning with
15568 # underscore (_), so it is better to generate a list of symbols to export.
15569 always_export_symbols_GCJ=yes
15570 if test "$aix_use_runtimelinking" = yes; then
15571 # Warning - without using the other runtime loading flags (-brtl),
15572 # -berok will link without error, but may produce a broken library.
15573 allow_undefined_flag_GCJ='-berok'
15574 # Determine the default libpath from the value encoded in an empty executable.
15575 cat >conftest.$ac_ext <<_ACEOF
15576 #line $LINENO "configure"
15579 cat confdefs.h >>conftest.$ac_ext
15580 cat >>conftest.$ac_ext <<_ACEOF
15581 /* end confdefs.h. */
15591 rm -f conftest.$ac_objext conftest$ac_exeext
15592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15593 (eval $ac_link) 2>&5
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); } &&
15597 { ac_try='test -s conftest$ac_exeext'
15598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15599 (eval $ac_try) 2>&5
15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602 (exit $ac_status); }; }; then
15604 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15606 # Check for a 64-bit object if we didn't find anything.
15607 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15610 echo "$as_me: failed program was:" >&5
15611 sed 's/^/| /' conftest.$ac_ext >&5
15614 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15615 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15617 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15618 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15620 if test "$host_cpu" = ia64; then
15621 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15622 allow_undefined_flag_GCJ="-z nodefs"
15623 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15625 # Determine the default libpath from the value encoded in an empty executable.
15626 cat >conftest.$ac_ext <<_ACEOF
15627 #line $LINENO "configure"
15630 cat confdefs.h >>conftest.$ac_ext
15631 cat >>conftest.$ac_ext <<_ACEOF
15632 /* end confdefs.h. */
15642 rm -f conftest.$ac_objext conftest$ac_exeext
15643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15644 (eval $ac_link) 2>&5
15646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647 (exit $ac_status); } &&
15648 { ac_try='test -s conftest$ac_exeext'
15649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15650 (eval $ac_try) 2>&5
15652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); }; }; then
15655 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15657 # Check for a 64-bit object if we didn't find anything.
15658 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15661 echo "$as_me: failed program was:" >&5
15662 sed 's/^/| /' conftest.$ac_ext >&5
15665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15666 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15668 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15669 # Warning - without using the other run time loading flags,
15670 # -berok will link without error, but may produce a broken library.
15671 no_undefined_flag_GCJ=' ${wl}-bernotok'
15672 allow_undefined_flag_GCJ=' ${wl}-berok'
15673 # -bexpall does not export symbols beginning with underscore (_)
15674 always_export_symbols_GCJ=yes
15675 # Exported symbols can be pulled into shared objects from archives
15676 whole_archive_flag_spec_GCJ=' '
15677 archive_cmds_need_lc_GCJ=yes
15678 # This is similar to how AIX traditionally builds it's shared libraries.
15679 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15685 archive_cmds_GCJ='$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)'
15686 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15687 hardcode_minus_L_GCJ=yes
15688 # see comment about different semantics on the GNU ld section
15693 export_dynamic_flag_spec_GCJ=-rdynamic
15696 cygwin* | mingw* | pw32*)
15697 # When not using gcc, we currently assume that we are using
15698 # Microsoft Visual C++.
15699 # hardcode_libdir_flag_spec is actually meaningless, as there is
15700 # no search path for DLLs.
15701 hardcode_libdir_flag_spec_GCJ=' '
15702 allow_undefined_flag_GCJ=unsupported
15703 # Tell ltmain to make .lib files, not .a files.
15705 # Tell ltmain to make .dll files, not .so files.
15707 # FIXME: Setting linknames here is a bad hack.
15708 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15709 # The linker will automatically build a .lib file if we build a DLL.
15710 old_archive_From_new_cmds_GCJ='true'
15711 # FIXME: Should let the user specify the lib program.
15712 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15713 fix_srcfile_path='`cygpath -w "$srcfile"`'
15714 enable_shared_with_static_runtimes_GCJ=yes
15717 darwin* | rhapsody*)
15718 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15719 archive_cmds_need_lc_GCJ=no
15721 rhapsody* | darwin1.[012])
15722 allow_undefined_flag_GCJ='-undefined suppress'
15725 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15728 # FIXME: Relying on posixy $() will cause problems for
15729 # cross-compilation, but unfortunately the echo tests do not
15730 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15731 # `"' quotes if we put them in here... so don't!
15732 lt_int_apple_cc_single_mod=no
15733 output_verbose_link_cmd='echo'
15734 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15735 lt_int_apple_cc_single_mod=yes
15737 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15738 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15740 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15742 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15743 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15744 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15745 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15747 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15749 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15750 hardcode_direct_GCJ=no
15751 hardcode_automatic_GCJ=yes
15752 hardcode_shlibpath_var_GCJ=unsupported
15753 whole_archive_flag_spec_GCJ='-all_load $convenience'
15754 link_all_deplibs_GCJ=yes
15759 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15760 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15761 hardcode_shlibpath_var_GCJ=no
15768 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15769 # support. Future versions do this automatically, but an explicit c++rt0.o
15770 # does not break anything, and helps significantly (at the cost of a little
15773 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15774 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15775 hardcode_direct_GCJ=yes
15776 hardcode_shlibpath_var_GCJ=no
15779 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15781 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15782 hardcode_direct_GCJ=yes
15783 hardcode_minus_L_GCJ=yes
15784 hardcode_shlibpath_var_GCJ=no
15787 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15789 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15790 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15791 hardcode_direct_GCJ=yes
15792 hardcode_shlibpath_var_GCJ=no
15796 if test "$GCC" = yes; then
15797 archive_cmds_GCJ='$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'
15799 archive_cmds_GCJ='$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'
15801 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15802 hardcode_libdir_separator_GCJ=:
15803 hardcode_direct_GCJ=yes
15805 # hardcode_minus_L: Not really in the search PATH,
15806 # but as the default location of the library.
15807 hardcode_minus_L_GCJ=yes
15808 export_dynamic_flag_spec_GCJ='${wl}-E'
15812 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15813 case "$host_cpu" in
15815 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15818 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15822 case "$host_cpu" in
15824 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15827 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15831 if test "$with_gnu_ld" = no; then
15832 case "$host_cpu" in
15834 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15835 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15836 hardcode_libdir_separator_GCJ=:
15837 hardcode_direct_GCJ=no
15838 hardcode_shlibpath_var_GCJ=no
15841 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15842 hardcode_direct_GCJ=no
15843 hardcode_shlibpath_var_GCJ=no
15845 # hardcode_minus_L: Not really in the search PATH,
15846 # but as the default location of the library.
15847 hardcode_minus_L_GCJ=yes
15850 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15851 hardcode_libdir_separator_GCJ=:
15852 hardcode_direct_GCJ=yes
15853 export_dynamic_flag_spec_GCJ='${wl}-E'
15855 # hardcode_minus_L: Not really in the search PATH,
15856 # but as the default location of the library.
15857 hardcode_minus_L_GCJ=yes
15863 irix5* | irix6* | nonstopux*)
15864 if test "$GCC" = yes; then
15865 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15867 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15868 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15870 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15871 hardcode_libdir_separator_GCJ=:
15872 link_all_deplibs_GCJ=yes
15876 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15877 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15879 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15881 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15882 hardcode_direct_GCJ=yes
15883 hardcode_shlibpath_var_GCJ=no
15887 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15888 hardcode_direct_GCJ=yes
15889 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15890 hardcode_libdir_separator_GCJ=:
15891 hardcode_shlibpath_var_GCJ=no
15895 hardcode_direct_GCJ=yes
15896 hardcode_shlibpath_var_GCJ=no
15897 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15898 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15899 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15900 export_dynamic_flag_spec_GCJ='${wl}-E'
15903 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15904 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15905 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15908 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15909 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15916 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15917 hardcode_minus_L_GCJ=yes
15918 allow_undefined_flag_GCJ=unsupported
15919 archive_cmds_GCJ='$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'
15920 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15924 if test "$GCC" = yes; then
15925 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15926 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15928 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15929 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15931 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15932 hardcode_libdir_separator_GCJ=:
15935 osf4* | osf5*) # as osf3* with the addition of -msym flag
15936 if test "$GCC" = yes; then
15937 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15938 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15939 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15941 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15942 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15943 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15944 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
15946 # Both c and cxx compiler support -rpath directly
15947 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15949 hardcode_libdir_separator_GCJ=:
15953 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15954 hardcode_shlibpath_var_GCJ=no
15955 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15956 runpath_var=LD_RUN_PATH
15957 hardcode_runpath_var=yes
15961 no_undefined_flag_GCJ=' -z text'
15962 if test "$GCC" = yes; then
15963 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15964 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15965 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15967 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15968 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15969 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15971 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15972 hardcode_shlibpath_var_GCJ=no
15974 solaris2.[0-5] | solaris2.[0-5].*) ;;
15975 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15976 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15978 link_all_deplibs_GCJ=yes
15982 if test "x$host_vendor" = xsequent; then
15983 # Use $CC to link under sequent, because it throws in some extra .o
15984 # files that make .init and .fini sections work.
15985 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15987 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15989 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15990 hardcode_direct_GCJ=yes
15991 hardcode_minus_L_GCJ=yes
15992 hardcode_shlibpath_var_GCJ=no
15996 case $host_vendor in
15998 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15999 hardcode_direct_GCJ=yes # is this really true???
16002 ## LD is ld it makes a PLAMLIB
16003 ## CC just makes a GrossModule.
16004 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16005 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16006 hardcode_direct_GCJ=no
16009 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16010 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16013 runpath_var='LD_RUN_PATH'
16014 hardcode_shlibpath_var_GCJ=no
16018 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16019 hardcode_shlibpath_var_GCJ=no
16020 export_dynamic_flag_spec_GCJ='-Bexport'
16024 if test -d /usr/nec; then
16025 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16026 hardcode_shlibpath_var_GCJ=no
16027 runpath_var=LD_RUN_PATH
16028 hardcode_runpath_var=yes
16034 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16035 hardcode_direct_GCJ=yes
16036 hardcode_minus_L_GCJ=no
16037 hardcode_shlibpath_var_GCJ=no
16038 hardcode_runpath_var=yes
16039 runpath_var=LD_RUN_PATH
16042 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16043 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16044 if test "$GCC" = yes; then
16045 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16047 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16049 runpath_var='LD_RUN_PATH'
16050 hardcode_shlibpath_var_GCJ=no
16054 no_undefined_flag_GCJ=' -z text'
16055 # $CC -shared without GNU ld will not create a library from C++
16056 # object files and a static libstdc++, better avoid it by now
16057 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16058 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16059 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16060 hardcode_libdir_flag_spec_GCJ=
16061 hardcode_shlibpath_var_GCJ=no
16062 runpath_var='LD_RUN_PATH'
16066 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16067 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16068 hardcode_shlibpath_var_GCJ=no
16077 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16078 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16079 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16081 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16082 if test "$GCC" = yes; then
16083 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16087 # Do we need to explicitly link libc?
16089 case "x$archive_cmds_need_lc_GCJ" in
16091 # Assume -lc should be added
16092 archive_cmds_need_lc_GCJ=yes
16094 if test "$enable_shared" = yes && test "$GCC" = yes; then
16095 case $archive_cmds_GCJ in
16097 # FIXME: we may have to deal with multi-command sequences.
16100 # Test whether the compiler implicitly links with -lc since on some
16101 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16102 # to ld, don't add -lc before -lgcc.
16103 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16104 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16106 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16109 (eval $ac_compile) 2>&5
16111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112 (exit $ac_status); } 2>conftest.err; then
16115 libobjs=conftest.$ac_objext
16117 wl=$lt_prog_compiler_wl_GCJ
16123 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16124 allow_undefined_flag_GCJ=
16125 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16126 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129 (exit $ac_status); }
16131 archive_cmds_need_lc_GCJ=no
16133 archive_cmds_need_lc_GCJ=yes
16135 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16137 cat conftest.err 1>&5
16140 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16141 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16148 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16149 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16150 hardcode_action_GCJ=
16151 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16152 test -n "$runpath_var GCJ" || \
16153 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16155 # We can hardcode non-existant directories.
16156 if test "$hardcode_direct_GCJ" != no &&
16157 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16158 # have to relink, otherwise we might link with an installed library
16159 # when we should be linking with a yet-to-be-installed one
16160 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16161 test "$hardcode_minus_L_GCJ" != no; then
16162 # Linking always hardcodes the temporary library directory.
16163 hardcode_action_GCJ=relink
16165 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16166 hardcode_action_GCJ=immediate
16169 # We cannot hardcode anything, or else we can only hardcode existing
16171 hardcode_action_GCJ=unsupported
16173 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16174 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16176 if test "$hardcode_action_GCJ" = relink; then
16177 # Fast installation is not supported
16178 enable_fast_install=no
16179 elif test "$shlibpath_overrides_runpath" = yes ||
16180 test "$enable_shared" = no; then
16181 # Fast installation is not necessary
16182 enable_fast_install=needless
16187 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16188 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16189 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16190 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16191 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16192 echo "$as_me:$LINENO: result: yes" >&5
16193 echo "${ECHO_T}yes" >&6
16195 # FIXME - insert some real tests, host_os isn't really good enough
16198 if test -n "$STRIP" ; then
16199 striplib="$STRIP -x"
16200 echo "$as_me:$LINENO: result: yes" >&5
16201 echo "${ECHO_T}yes" >&6
16203 echo "$as_me:$LINENO: result: no" >&5
16204 echo "${ECHO_T}no" >&6
16208 echo "$as_me:$LINENO: result: no" >&5
16209 echo "${ECHO_T}no" >&6
16214 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16215 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16216 library_names_spec=
16217 libname_spec='lib$name'
16221 postuninstall_cmds=
16225 shlibpath_overrides_runpath=unknown
16227 dynamic_linker="$host_os ld.so"
16228 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16229 if test "$GCC" = yes; then
16230 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16231 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16232 # if the path contains ";" then we assume it to be the separator
16233 # otherwise default to the standard path separator (i.e. ":") - it is
16234 # assumed that no part of a normal pathname contains ";" but that should
16235 # okay in the real world where ";" in dirpaths is itself problematic.
16236 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16238 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16241 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16243 need_lib_prefix=unknown
16244 hardcode_into_libs=no
16246 # when you set need_version to no, make sure it does not cause -set_version
16247 # flags to be left without arguments
16248 need_version=unknown
16253 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16254 shlibpath_var=LIBPATH
16256 # AIX 3 has no versioning support, so we append a major version to the name.
16257 soname_spec='${libname}${release}${shared_ext}$major'
16264 hardcode_into_libs=yes
16265 if test "$host_cpu" = ia64; then
16266 # AIX 5 supports IA64
16267 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16268 shlibpath_var=LD_LIBRARY_PATH
16270 # With GCC up to 2.95.x, collect2 would create an import file
16271 # for dependence libraries. The import file would start with
16272 # the line `#! .'. This would cause the generated library to
16273 # depend on `.', always an invalid library. This was fixed in
16274 # development snapshots of GCC prior to 3.0.
16276 aix4 | aix4.[01] | aix4.[01].*)
16277 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16279 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16282 can_build_shared=no
16286 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16287 # soname into executable. Probably we can add versioning support to
16288 # collect2, so additional links can be useful in future.
16289 if test "$aix_use_runtimelinking" = yes; then
16290 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16291 # instead of lib<name>.a to let people know that these are not
16292 # typical AIX shared libraries.
16293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16295 # We preserve .a as extension for shared libraries through AIX4.2
16296 # and later when we are not doing run time linking.
16297 library_names_spec='${libname}${release}.a $libname.a'
16298 soname_spec='${libname}${release}${shared_ext}$major'
16300 shlibpath_var=LIBPATH
16305 library_names_spec='$libname.ixlibrary $libname.a'
16306 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16307 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'
16311 library_names_spec='${libname}${shared_ext}'
16312 dynamic_linker="$host_os ld.so"
16313 shlibpath_var=LIBRARY_PATH
16319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16320 soname_spec='${libname}${release}${shared_ext}$major'
16321 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16322 shlibpath_var=LD_LIBRARY_PATH
16323 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16324 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16325 # the default ld.so.conf also contains /usr/contrib/lib and
16326 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16327 # libtool to hard-code these into programs
16330 cygwin* | mingw* | pw32*)
16331 version_type=windows
16336 case $GCC,$host_os in
16337 yes,cygwin* | yes,mingw* | yes,pw32*)
16338 library_names_spec='$libname.dll.a'
16339 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16340 postinstall_cmds='base_file=`basename \${file}`~
16341 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16342 dldir=$destdir/`dirname \$dlpath`~
16343 test -d \$dldir || mkdir -p \$dldir~
16344 $install_prog $dir/$dlname \$dldir/$dlname'
16345 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16346 dlpath=$dir/\$dldll~
16348 shlibpath_overrides_runpath=yes
16352 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16353 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16354 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16357 # MinGW DLLs use traditional 'lib' prefix
16358 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16359 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16360 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16361 # It is most probably a Windows format PATH printed by
16362 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16363 # path with ; separators, and with drive letters. We can handle the
16364 # drive letters (cygwin fileutils understands them), so leave them,
16365 # especially as we might pass files found there to a mingw objdump,
16366 # which wouldn't understand a cygwinified path. Ahh.
16367 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16369 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16373 # pw32 DLLs use 'pw' prefix rather than 'lib'
16374 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16380 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16383 dynamic_linker='Win32 ld.exe'
16384 # FIXME: first we should search . and the directory the executable is in
16388 darwin* | rhapsody*)
16389 dynamic_linker="$host_os dyld"
16390 version_type=darwin
16393 # FIXME: Relying on posixy $() will cause problems for
16394 # cross-compilation, but unfortunately the echo tests do not
16395 # yet detect zsh echo's removal of \ escapes.
16396 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16397 soname_spec='${libname}${release}${major}$shared_ext'
16398 shlibpath_overrides_runpath=yes
16399 shlibpath_var=DYLD_LIBRARY_PATH
16400 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16401 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16402 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16403 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16405 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16413 soname_spec='${libname}${release}${shared_ext}$major'
16414 shlibpath_var=LD_LIBRARY_PATH
16422 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16423 version_type=freebsd-$objformat
16424 case $version_type in
16426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16431 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16435 shlibpath_var=LD_LIBRARY_PATH
16438 shlibpath_overrides_runpath=yes
16440 freebsd3.01* | freebsdelf3.01*)
16441 shlibpath_overrides_runpath=yes
16442 hardcode_into_libs=yes
16445 shlibpath_overrides_runpath=no
16446 hardcode_into_libs=yes
16455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16456 soname_spec='${libname}${release}${shared_ext}$major'
16457 shlibpath_var=LD_LIBRARY_PATH
16458 hardcode_into_libs=yes
16461 hpux9* | hpux10* | hpux11*)
16462 # Give a soname corresponding to the major version so that dld.sl refuses to
16463 # link against other versions.
16467 case "$host_cpu" in
16470 hardcode_into_libs=yes
16471 dynamic_linker="$host_os dld.so"
16472 shlibpath_var=LD_LIBRARY_PATH
16473 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16475 soname_spec='${libname}${release}${shared_ext}$major'
16476 if test "X$HPUX_IA64_MODE" = X32; then
16477 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16479 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16481 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16485 hardcode_into_libs=yes
16486 dynamic_linker="$host_os dld.sl"
16487 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16488 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16490 soname_spec='${libname}${release}${shared_ext}$major'
16491 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16492 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16496 dynamic_linker="$host_os dld.sl"
16497 shlibpath_var=SHLIB_PATH
16498 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16500 soname_spec='${libname}${release}${shared_ext}$major'
16503 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16504 postinstall_cmds='chmod 555 $lib'
16507 irix5* | irix6* | nonstopux*)
16509 nonstopux*) version_type=nonstopux ;;
16511 if test "$lt_cv_prog_gnu_ld" = yes; then
16519 soname_spec='${libname}${release}${shared_ext}$major'
16520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16522 irix5* | nonstopux*)
16523 libsuff= shlibsuff=
16526 case $LD in # libtool.m4 will add one of these switches to LD
16527 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16528 libsuff= shlibsuff= libmagic=32-bit;;
16529 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16530 libsuff=32 shlibsuff=N32 libmagic=N32;;
16531 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16532 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16533 *) libsuff= shlibsuff= libmagic=never-match;;
16537 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16538 shlibpath_overrides_runpath=no
16539 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16540 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16541 hardcode_into_libs=yes
16544 # No shared lib support for Linux oldld, aout, or coff.
16545 linux*oldld* | linux*aout* | linux*coff*)
16549 # This must be Linux ELF.
16554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16555 soname_spec='${libname}${release}${shared_ext}$major'
16556 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16557 shlibpath_var=LD_LIBRARY_PATH
16558 shlibpath_overrides_runpath=no
16559 # This implies no fast_install, which is unacceptable.
16560 # Some rework will be needed to allow for fast_install
16561 # before this can be enabled.
16562 hardcode_into_libs=yes
16564 # We used to test for /lib/ld.so.1 and disable shared libraries on
16565 # powerpc, because MkLinux only supported shared libraries with the
16566 # GNU dynamic linker. Since this was broken with cross compilers,
16567 # most powerpc-linux boxes support dynamic linking these days and
16568 # people can always --disable-shared, the test was removed, and we
16569 # assume the GNU/Linux dynamic linker is in use.
16570 dynamic_linker='GNU/Linux ld.so'
16572 # Find out which ABI we are using (multilib Linux x86_64 hack).
16574 case "$host_cpu" in
16576 echo '#line 16576 "configure"' > conftest.$ac_ext
16577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16578 (eval $ac_compile) 2>&5
16580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581 (exit $ac_status); }; then
16582 case `/usr/bin/file conftest.$ac_objext` in
16593 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
16594 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16601 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16603 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16604 dynamic_linker='NetBSD (a.out) ld.so'
16606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16607 soname_spec='${libname}${release}${shared_ext}$major'
16608 dynamic_linker='NetBSD ld.elf_so'
16610 shlibpath_var=LD_LIBRARY_PATH
16611 shlibpath_overrides_runpath=yes
16612 hardcode_into_libs=yes
16617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16618 shlibpath_var=LD_LIBRARY_PATH
16619 shlibpath_overrides_runpath=yes
16626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16627 soname_spec='${libname}${release}${shared_ext}$major'
16628 shlibpath_var=LD_LIBRARY_PATH
16629 shlibpath_overrides_runpath=yes
16636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16637 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16638 shlibpath_var=LD_LIBRARY_PATH
16639 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16641 openbsd2.[89] | openbsd2.[89].*)
16642 shlibpath_overrides_runpath=no
16645 shlibpath_overrides_runpath=yes
16649 shlibpath_overrides_runpath=yes
16654 libname_spec='$name'
16657 library_names_spec='$libname${shared_ext} $libname.a'
16658 dynamic_linker='OS/2 ld.exe'
16659 shlibpath_var=LIBPATH
16662 osf3* | osf4* | osf5*)
16666 soname_spec='${libname}${release}${shared_ext}$major'
16667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16668 shlibpath_var=LD_LIBRARY_PATH
16669 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16670 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16675 soname_spec='${libname}${release}${shared_ext}$major'
16676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16677 shlibpath_var=LD_LIBRARY_PATH
16684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16685 soname_spec='${libname}${release}${shared_ext}$major'
16686 shlibpath_var=LD_LIBRARY_PATH
16687 shlibpath_overrides_runpath=yes
16688 hardcode_into_libs=yes
16689 # ldd complains unless libraries are executable
16690 postinstall_cmds='chmod +x $lib'
16695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16696 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16697 shlibpath_var=LD_LIBRARY_PATH
16698 shlibpath_overrides_runpath=yes
16699 if test "$with_gnu_ld" = yes; then
16705 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16708 soname_spec='${libname}${release}${shared_ext}$major'
16709 shlibpath_var=LD_LIBRARY_PATH
16710 case $host_vendor in
16712 shlibpath_overrides_runpath=no
16714 export_dynamic_flag_spec='${wl}-Blargedynsym'
16715 runpath_var=LD_RUN_PATH
16723 shlibpath_overrides_runpath=no
16724 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16730 if test -d /usr/nec ;then
16732 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16733 soname_spec='$libname${shared_ext}.$major'
16734 shlibpath_var=LD_LIBRARY_PATH
16740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16741 soname_spec='${libname}${release}${shared_ext}$major'
16742 shlibpath_var=LD_LIBRARY_PATH
16749 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16750 echo "${ECHO_T}$dynamic_linker" >&6
16751 test "$dynamic_linker" = no && can_build_shared=no
16753 if test "x$enable_dlopen" != xyes; then
16754 enable_dlopen=unknown
16755 enable_dlopen_self=unknown
16756 enable_dlopen_self_static=unknown
16763 lt_cv_dlopen="load_add_on"
16765 lt_cv_dlopen_self=yes
16769 lt_cv_dlopen="LoadLibrary"
16774 lt_cv_dlopen="dlopen"
16779 # if libdl is installed we need to link against it
16780 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16781 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16782 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16783 echo $ECHO_N "(cached) $ECHO_C" >&6
16785 ac_check_lib_save_LIBS=$LIBS
16787 cat >conftest.$ac_ext <<_ACEOF
16788 #line $LINENO "configure"
16791 cat confdefs.h >>conftest.$ac_ext
16792 cat >>conftest.$ac_ext <<_ACEOF
16793 /* end confdefs.h. */
16795 /* Override any gcc2 internal prototype to avoid an error. */
16799 /* We use char because int might match the return type of a gcc2
16800 builtin and then its argument prototype would still apply. */
16810 rm -f conftest.$ac_objext conftest$ac_exeext
16811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16812 (eval $ac_link) 2>&5
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); } &&
16816 { ac_try='test -s conftest$ac_exeext'
16817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16818 (eval $ac_try) 2>&5
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); }; }; then
16822 ac_cv_lib_dl_dlopen=yes
16824 echo "$as_me: failed program was:" >&5
16825 sed 's/^/| /' conftest.$ac_ext >&5
16827 ac_cv_lib_dl_dlopen=no
16829 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16830 LIBS=$ac_check_lib_save_LIBS
16832 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16833 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16834 if test $ac_cv_lib_dl_dlopen = yes; then
16835 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16838 lt_cv_dlopen="dyld"
16840 lt_cv_dlopen_self=yes
16847 echo "$as_me:$LINENO: checking for shl_load" >&5
16848 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16849 if test "${ac_cv_func_shl_load+set}" = set; then
16850 echo $ECHO_N "(cached) $ECHO_C" >&6
16852 cat >conftest.$ac_ext <<_ACEOF
16853 #line $LINENO "configure"
16856 cat confdefs.h >>conftest.$ac_ext
16857 cat >>conftest.$ac_ext <<_ACEOF
16858 /* end confdefs.h. */
16859 /* System header to define __stub macros and hopefully few prototypes,
16860 which can conflict with char shl_load (); below.
16861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16862 <limits.h> exists even on freestanding compilers. */
16864 # include <limits.h>
16866 # include <assert.h>
16868 /* Override any gcc2 internal prototype to avoid an error. */
16873 /* We use char because int might match the return type of a gcc2
16874 builtin and then its argument prototype would still apply. */
16876 /* The GNU C library defines this for functions which it implements
16877 to always fail with ENOSYS. Some functions are actually named
16878 something starting with __ and the normal name is an alias. */
16879 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16882 char (*f) () = shl_load;
16891 return f != shl_load;
16896 rm -f conftest.$ac_objext conftest$ac_exeext
16897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16898 (eval $ac_link) 2>&5
16900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901 (exit $ac_status); } &&
16902 { ac_try='test -s conftest$ac_exeext'
16903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16904 (eval $ac_try) 2>&5
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); }; }; then
16908 ac_cv_func_shl_load=yes
16910 echo "$as_me: failed program was:" >&5
16911 sed 's/^/| /' conftest.$ac_ext >&5
16913 ac_cv_func_shl_load=no
16915 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16917 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16918 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16919 if test $ac_cv_func_shl_load = yes; then
16920 lt_cv_dlopen="shl_load"
16922 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16923 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16924 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16925 echo $ECHO_N "(cached) $ECHO_C" >&6
16927 ac_check_lib_save_LIBS=$LIBS
16929 cat >conftest.$ac_ext <<_ACEOF
16930 #line $LINENO "configure"
16933 cat confdefs.h >>conftest.$ac_ext
16934 cat >>conftest.$ac_ext <<_ACEOF
16935 /* end confdefs.h. */
16937 /* Override any gcc2 internal prototype to avoid an error. */
16941 /* We use char because int might match the return type of a gcc2
16942 builtin and then its argument prototype would still apply. */
16952 rm -f conftest.$ac_objext conftest$ac_exeext
16953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16954 (eval $ac_link) 2>&5
16956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957 (exit $ac_status); } &&
16958 { ac_try='test -s conftest$ac_exeext'
16959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16960 (eval $ac_try) 2>&5
16962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963 (exit $ac_status); }; }; then
16964 ac_cv_lib_dld_shl_load=yes
16966 echo "$as_me: failed program was:" >&5
16967 sed 's/^/| /' conftest.$ac_ext >&5
16969 ac_cv_lib_dld_shl_load=no
16971 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16972 LIBS=$ac_check_lib_save_LIBS
16974 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16975 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16976 if test $ac_cv_lib_dld_shl_load = yes; then
16977 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16979 echo "$as_me:$LINENO: checking for dlopen" >&5
16980 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16981 if test "${ac_cv_func_dlopen+set}" = set; then
16982 echo $ECHO_N "(cached) $ECHO_C" >&6
16984 cat >conftest.$ac_ext <<_ACEOF
16985 #line $LINENO "configure"
16988 cat confdefs.h >>conftest.$ac_ext
16989 cat >>conftest.$ac_ext <<_ACEOF
16990 /* end confdefs.h. */
16991 /* System header to define __stub macros and hopefully few prototypes,
16992 which can conflict with char dlopen (); below.
16993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16994 <limits.h> exists even on freestanding compilers. */
16996 # include <limits.h>
16998 # include <assert.h>
17000 /* Override any gcc2 internal prototype to avoid an error. */
17005 /* We use char because int might match the return type of a gcc2
17006 builtin and then its argument prototype would still apply. */
17008 /* The GNU C library defines this for functions which it implements
17009 to always fail with ENOSYS. Some functions are actually named
17010 something starting with __ and the normal name is an alias. */
17011 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17014 char (*f) () = dlopen;
17023 return f != dlopen;
17028 rm -f conftest.$ac_objext conftest$ac_exeext
17029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17030 (eval $ac_link) 2>&5
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); } &&
17034 { ac_try='test -s conftest$ac_exeext'
17035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17036 (eval $ac_try) 2>&5
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); }; }; then
17040 ac_cv_func_dlopen=yes
17042 echo "$as_me: failed program was:" >&5
17043 sed 's/^/| /' conftest.$ac_ext >&5
17045 ac_cv_func_dlopen=no
17047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17049 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17050 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17051 if test $ac_cv_func_dlopen = yes; then
17052 lt_cv_dlopen="dlopen"
17054 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17055 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17056 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17057 echo $ECHO_N "(cached) $ECHO_C" >&6
17059 ac_check_lib_save_LIBS=$LIBS
17061 cat >conftest.$ac_ext <<_ACEOF
17062 #line $LINENO "configure"
17065 cat confdefs.h >>conftest.$ac_ext
17066 cat >>conftest.$ac_ext <<_ACEOF
17067 /* end confdefs.h. */
17069 /* Override any gcc2 internal prototype to avoid an error. */
17073 /* We use char because int might match the return type of a gcc2
17074 builtin and then its argument prototype would still apply. */
17084 rm -f conftest.$ac_objext conftest$ac_exeext
17085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17086 (eval $ac_link) 2>&5
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); } &&
17090 { ac_try='test -s conftest$ac_exeext'
17091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17092 (eval $ac_try) 2>&5
17094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); }; }; then
17096 ac_cv_lib_dl_dlopen=yes
17098 echo "$as_me: failed program was:" >&5
17099 sed 's/^/| /' conftest.$ac_ext >&5
17101 ac_cv_lib_dl_dlopen=no
17103 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17104 LIBS=$ac_check_lib_save_LIBS
17106 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17107 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17108 if test $ac_cv_lib_dl_dlopen = yes; then
17109 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17111 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17112 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17113 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17114 echo $ECHO_N "(cached) $ECHO_C" >&6
17116 ac_check_lib_save_LIBS=$LIBS
17117 LIBS="-lsvld $LIBS"
17118 cat >conftest.$ac_ext <<_ACEOF
17119 #line $LINENO "configure"
17122 cat confdefs.h >>conftest.$ac_ext
17123 cat >>conftest.$ac_ext <<_ACEOF
17124 /* end confdefs.h. */
17126 /* Override any gcc2 internal prototype to avoid an error. */
17130 /* We use char because int might match the return type of a gcc2
17131 builtin and then its argument prototype would still apply. */
17141 rm -f conftest.$ac_objext conftest$ac_exeext
17142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17143 (eval $ac_link) 2>&5
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); } &&
17147 { ac_try='test -s conftest$ac_exeext'
17148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17149 (eval $ac_try) 2>&5
17151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152 (exit $ac_status); }; }; then
17153 ac_cv_lib_svld_dlopen=yes
17155 echo "$as_me: failed program was:" >&5
17156 sed 's/^/| /' conftest.$ac_ext >&5
17158 ac_cv_lib_svld_dlopen=no
17160 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17161 LIBS=$ac_check_lib_save_LIBS
17163 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17164 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17165 if test $ac_cv_lib_svld_dlopen = yes; then
17166 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17168 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17169 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17170 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17171 echo $ECHO_N "(cached) $ECHO_C" >&6
17173 ac_check_lib_save_LIBS=$LIBS
17175 cat >conftest.$ac_ext <<_ACEOF
17176 #line $LINENO "configure"
17179 cat confdefs.h >>conftest.$ac_ext
17180 cat >>conftest.$ac_ext <<_ACEOF
17181 /* end confdefs.h. */
17183 /* Override any gcc2 internal prototype to avoid an error. */
17187 /* We use char because int might match the return type of a gcc2
17188 builtin and then its argument prototype would still apply. */
17198 rm -f conftest.$ac_objext conftest$ac_exeext
17199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17200 (eval $ac_link) 2>&5
17202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203 (exit $ac_status); } &&
17204 { ac_try='test -s conftest$ac_exeext'
17205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17206 (eval $ac_try) 2>&5
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); }; }; then
17210 ac_cv_lib_dld_dld_link=yes
17212 echo "$as_me: failed program was:" >&5
17213 sed 's/^/| /' conftest.$ac_ext >&5
17215 ac_cv_lib_dld_dld_link=no
17217 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17218 LIBS=$ac_check_lib_save_LIBS
17220 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17221 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17222 if test $ac_cv_lib_dld_dld_link = yes; then
17223 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17244 if test "x$lt_cv_dlopen" != xno; then
17250 case $lt_cv_dlopen in
17252 save_CPPFLAGS="$CPPFLAGS"
17253 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17255 save_LDFLAGS="$LDFLAGS"
17256 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17259 LIBS="$lt_cv_dlopen_libs $LIBS"
17261 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17262 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17263 if test "${lt_cv_dlopen_self+set}" = set; then
17264 echo $ECHO_N "(cached) $ECHO_C" >&6
17266 if test "$cross_compiling" = yes; then :
17267 lt_cv_dlopen_self=cross
17269 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17270 lt_status=$lt_dlunknown
17271 cat > conftest.$ac_ext <<EOF
17272 #line 17272 "configure"
17273 #include "confdefs.h"
17282 # define LT_DLGLOBAL RTLD_GLOBAL
17285 # define LT_DLGLOBAL DL_GLOBAL
17287 # define LT_DLGLOBAL 0
17291 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17292 find out it does not work in some platform. */
17293 #ifndef LT_DLLAZY_OR_NOW
17295 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17298 # define LT_DLLAZY_OR_NOW DL_LAZY
17301 # define LT_DLLAZY_OR_NOW RTLD_NOW
17304 # define LT_DLLAZY_OR_NOW DL_NOW
17306 # define LT_DLLAZY_OR_NOW 0
17314 extern "C" void exit (int);
17317 void fnord() { int i=42;}
17320 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17321 int status = $lt_dlunknown;
17325 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17326 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17327 /* dlclose (self); */
17333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17334 (eval $ac_link) 2>&5
17336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17338 (./conftest; exit; ) 2>/dev/null
17340 case x$lt_status in
17341 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17342 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17343 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17346 # compilation failed
17347 lt_cv_dlopen_self=no
17354 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17355 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17357 if test "x$lt_cv_dlopen_self" = xyes; then
17358 LDFLAGS="$LDFLAGS $link_static_flag"
17359 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17360 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17361 if test "${lt_cv_dlopen_self_static+set}" = set; then
17362 echo $ECHO_N "(cached) $ECHO_C" >&6
17364 if test "$cross_compiling" = yes; then :
17365 lt_cv_dlopen_self_static=cross
17367 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17368 lt_status=$lt_dlunknown
17369 cat > conftest.$ac_ext <<EOF
17370 #line 17370 "configure"
17371 #include "confdefs.h"
17380 # define LT_DLGLOBAL RTLD_GLOBAL
17383 # define LT_DLGLOBAL DL_GLOBAL
17385 # define LT_DLGLOBAL 0
17389 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17390 find out it does not work in some platform. */
17391 #ifndef LT_DLLAZY_OR_NOW
17393 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17396 # define LT_DLLAZY_OR_NOW DL_LAZY
17399 # define LT_DLLAZY_OR_NOW RTLD_NOW
17402 # define LT_DLLAZY_OR_NOW DL_NOW
17404 # define LT_DLLAZY_OR_NOW 0
17412 extern "C" void exit (int);
17415 void fnord() { int i=42;}
17418 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17419 int status = $lt_dlunknown;
17423 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17424 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17425 /* dlclose (self); */
17431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17432 (eval $ac_link) 2>&5
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17436 (./conftest; exit; ) 2>/dev/null
17438 case x$lt_status in
17439 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17440 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17441 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17444 # compilation failed
17445 lt_cv_dlopen_self_static=no
17452 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17453 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17456 CPPFLAGS="$save_CPPFLAGS"
17457 LDFLAGS="$save_LDFLAGS"
17462 case $lt_cv_dlopen_self in
17463 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17464 *) enable_dlopen_self=unknown ;;
17467 case $lt_cv_dlopen_self_static in
17468 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17469 *) enable_dlopen_self_static=unknown ;;
17474 # The else clause should only fire when bootstrapping the
17475 # libtool distribution, otherwise you forgot to ship ltmain.sh
17476 # with your package, and you will get complaints that there are
17477 # no rules to generate ltmain.sh.
17478 if test -f "$ltmain"; then
17479 # See if we are running on zsh, and set the options which allow our commands through
17480 # without removal of \ escapes.
17481 if test -n "${ZSH_VERSION+set}" ; then
17482 setopt NO_GLOB_SUBST
17484 # Now quote all the things that may contain metacharacters while being
17485 # careful not to overquote the AC_SUBSTed values. We take copies of the
17486 # variables and quote the copies for generation of the libtool script.
17487 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17488 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17489 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17490 deplibs_check_method reload_flag reload_cmds need_locks \
17491 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17492 lt_cv_sys_global_symbol_to_c_name_address \
17493 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17494 old_postinstall_cmds old_postuninstall_cmds \
17498 lt_prog_compiler_wl_GCJ \
17499 lt_prog_compiler_pic_GCJ \
17500 lt_prog_compiler_static_GCJ \
17501 lt_prog_compiler_no_builtin_flag_GCJ \
17502 export_dynamic_flag_spec_GCJ \
17503 thread_safe_flag_spec_GCJ \
17504 whole_archive_flag_spec_GCJ \
17505 enable_shared_with_static_runtimes_GCJ \
17506 old_archive_cmds_GCJ \
17507 old_archive_from_new_cmds_GCJ \
17508 predep_objects_GCJ \
17509 postdep_objects_GCJ \
17512 compiler_lib_search_path_GCJ \
17514 archive_expsym_cmds_GCJ \
17515 postinstall_cmds_GCJ \
17516 postuninstall_cmds_GCJ \
17517 old_archive_from_expsyms_cmds_GCJ \
17518 allow_undefined_flag_GCJ \
17519 no_undefined_flag_GCJ \
17520 export_symbols_cmds_GCJ \
17521 hardcode_libdir_flag_spec_GCJ \
17522 hardcode_libdir_flag_spec_ld_GCJ \
17523 hardcode_libdir_separator_GCJ \
17524 hardcode_automatic_GCJ \
17526 module_expsym_cmds_GCJ \
17527 lt_cv_prog_compiler_c_o_GCJ \
17528 exclude_expsyms_GCJ \
17529 include_expsyms_GCJ; do
17532 old_archive_cmds_GCJ | \
17533 old_archive_from_new_cmds_GCJ | \
17534 archive_cmds_GCJ | \
17535 archive_expsym_cmds_GCJ | \
17536 module_cmds_GCJ | \
17537 module_expsym_cmds_GCJ | \
17538 old_archive_from_expsyms_cmds_GCJ | \
17539 export_symbols_cmds_GCJ | \
17540 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17541 postinstall_cmds | postuninstall_cmds | \
17542 old_postinstall_cmds | old_postuninstall_cmds | \
17543 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17544 # Double-quote double-evaled strings.
17545 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17548 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17554 *'\$0 --fallback-echo"')
17555 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17561 cat <<__EOF__ >> "$cfgfile"
17562 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17564 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17566 # Shell to use when invoking shell scripts.
17569 # Whether or not to build shared libraries.
17570 build_libtool_libs=$enable_shared
17572 # Whether or not to build static libraries.
17573 build_old_libs=$enable_static
17575 # Whether or not to add -lc for building shared libraries.
17576 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17578 # Whether or not to disallow shared libs when runtime libs are static
17579 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17581 # Whether or not to optimize for fast installation.
17582 fast_install=$enable_fast_install
17585 host_alias=$host_alias
17588 # An echo program that does not interpret backslashes.
17593 AR_FLAGS=$lt_AR_FLAGS
17598 # A language-specific compiler.
17599 CC=$lt_compiler_GCJ
17601 # Is the compiler the GNU C compiler?
17607 # The linker used to build libraries.
17610 # Whether we need hard or soft links.
17613 # A BSD-compatible nm program.
17616 # A symbol stripping program
17619 # Used to examine libraries when file_magic_cmd begins "file"
17620 MAGIC_CMD=$MAGIC_CMD
17622 # Used on cygwin: DLL creation program.
17625 # Used on cygwin: object dumper.
17628 # Used on cygwin: assembler.
17631 # The name of the directory that contains temporary libtool files.
17634 # How to create reloadable object files.
17635 reload_flag=$lt_reload_flag
17636 reload_cmds=$lt_reload_cmds
17638 # How to pass a linker flag through the compiler.
17639 wl=$lt_lt_prog_compiler_wl_GCJ
17641 # Object file suffix (normally "o").
17642 objext="$ac_objext"
17644 # Old archive suffix (normally "a").
17647 # Shared library suffix (normally ".so").
17650 # Executable file suffix (normally "").
17653 # Additional compiler flags for building library objects.
17654 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17657 # What is the maximum length of a command?
17658 max_cmd_len=$lt_cv_sys_max_cmd_len
17660 # Does compiler simultaneously support -c and -o options?
17661 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17663 # Must we lock files when doing compilation ?
17664 need_locks=$lt_need_locks
17666 # Do we need the lib prefix for modules?
17667 need_lib_prefix=$need_lib_prefix
17669 # Do we need a version for libraries?
17670 need_version=$need_version
17672 # Whether dlopen is supported.
17673 dlopen_support=$enable_dlopen
17675 # Whether dlopen of programs is supported.
17676 dlopen_self=$enable_dlopen_self
17678 # Whether dlopen of statically linked programs is supported.
17679 dlopen_self_static=$enable_dlopen_self_static
17681 # Compiler flag to prevent dynamic linking.
17682 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17684 # Compiler flag to turn off builtin functions.
17685 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17687 # Compiler flag to allow reflexive dlopens.
17688 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17690 # Compiler flag to generate shared objects directly from archives.
17691 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17693 # Compiler flag to generate thread-safe objects.
17694 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17696 # Library versioning type.
17697 version_type=$version_type
17699 # Format of library name prefix.
17700 libname_spec=$lt_libname_spec
17702 # List of archive names. First name is the real one, the rest are links.
17703 # The last name is the one that the linker finds with -lNAME.
17704 library_names_spec=$lt_library_names_spec
17706 # The coded name of the library, if different from the real name.
17707 soname_spec=$lt_soname_spec
17709 # Commands used to build and install an old-style archive.
17711 old_archive_cmds=$lt_old_archive_cmds_GCJ
17712 old_postinstall_cmds=$lt_old_postinstall_cmds
17713 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17715 # Create an old-style archive from a shared archive.
17716 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17718 # Create a temporary old-style archive to link instead of a shared archive.
17719 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17721 # Commands used to build and install a shared archive.
17722 archive_cmds=$lt_archive_cmds_GCJ
17723 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17724 postinstall_cmds=$lt_postinstall_cmds
17725 postuninstall_cmds=$lt_postuninstall_cmds
17727 # Commands used to build a loadable module (assumed same as above if empty)
17728 module_cmds=$lt_module_cmds_GCJ
17729 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17731 # Commands to strip libraries.
17732 old_striplib=$lt_old_striplib
17733 striplib=$lt_striplib
17735 # Dependencies to place before the objects being linked to create a
17737 predep_objects=$lt_predep_objects_GCJ
17739 # Dependencies to place after the objects being linked to create a
17741 postdep_objects=$lt_postdep_objects_GCJ
17743 # Dependencies to place before the objects being linked to create a
17745 predeps=$lt_predeps_GCJ
17747 # Dependencies to place after the objects being linked to create a
17749 postdeps=$lt_postdeps_GCJ
17751 # The library search path used internally by the compiler when linking
17752 # a shared library.
17753 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17755 # Method to check whether dependent libraries are shared objects.
17756 deplibs_check_method=$lt_deplibs_check_method
17758 # Command to use when deplibs_check_method == file_magic.
17759 file_magic_cmd=$lt_file_magic_cmd
17761 # Flag that allows shared libraries with undefined symbols to be built.
17762 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17764 # Flag that forces no undefined symbols.
17765 no_undefined_flag=$lt_no_undefined_flag_GCJ
17767 # Commands used to finish a libtool library installation in a directory.
17768 finish_cmds=$lt_finish_cmds
17770 # Same as above, but a single script fragment to be evaled but not shown.
17771 finish_eval=$lt_finish_eval
17773 # Take the output of nm and produce a listing of raw symbols and C names.
17774 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17776 # Transform the output of nm in a proper C declaration
17777 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17779 # Transform the output of nm in a C name address pair
17780 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17782 # This is the shared library runtime path variable.
17783 runpath_var=$runpath_var
17785 # This is the shared library path variable.
17786 shlibpath_var=$shlibpath_var
17788 # Is shlibpath searched before the hard-coded library search path?
17789 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17791 # How to hardcode a shared library path into an executable.
17792 hardcode_action=$hardcode_action_GCJ
17794 # Whether we should hardcode library paths into libraries.
17795 hardcode_into_libs=$hardcode_into_libs
17797 # Flag to hardcode \$libdir into a binary during linking.
17798 # This must work even if \$libdir does not exist.
17799 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17801 # If ld is used when linking, flag to hardcode \$libdir into
17802 # a binary during linking. This must work even if \$libdir does
17804 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17806 # Whether we need a single -rpath flag with a separated argument.
17807 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17809 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17810 # resulting binary.
17811 hardcode_direct=$hardcode_direct_GCJ
17813 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17814 # resulting binary.
17815 hardcode_minus_L=$hardcode_minus_L_GCJ
17817 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17818 # the resulting binary.
17819 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17821 # Set to yes if building a shared library automatically hardcodes DIR into the library
17822 # and all subsequent libraries and executables linked against it.
17823 hardcode_automatic=$hardcode_automatic_GCJ
17825 # Variables whose values should be saved in libtool wrapper scripts and
17826 # restored at relink time.
17827 variables_saved_for_relink="$variables_saved_for_relink"
17829 # Whether libtool must link a program against all its dependency libraries.
17830 link_all_deplibs=$link_all_deplibs_GCJ
17832 # Compile-time system search path for libraries
17833 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17835 # Run-time system search path for libraries
17836 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17838 # Fix the shell variable \$srcfile for the compiler.
17839 fix_srcfile_path="$fix_srcfile_path_GCJ"
17841 # Set to yes if exported symbols are required.
17842 always_export_symbols=$always_export_symbols_GCJ
17844 # The commands to list exported symbols.
17845 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17847 # The commands to extract the exported symbol list from a shared archive.
17848 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17850 # Symbols that should not be listed in the preloaded symbols.
17851 exclude_expsyms=$lt_exclude_expsyms_GCJ
17853 # Symbols that must always be exported.
17854 include_expsyms=$lt_include_expsyms_GCJ
17856 # ### END LIBTOOL TAG CONFIG: $tagname
17862 # If there is no Makefile yet, we rely on a make rule to execute
17863 # `config.status --recheck' to rerun these tests and create the
17864 # libtool script then.
17865 test -f Makefile && make "$ltmain"
17870 ac_cpp='$CPP $CPPFLAGS'
17871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17886 # Source file extension for RC test sources.
17889 # Object file extension for compiled RC test sources.
17893 # Code to be used in simple compile tests
17894 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17896 # Code to be used in simple link tests
17897 lt_simple_link_test_code="$lt_simple_compile_test_code"
17899 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17901 # If no C compiler was specified, use CC.
17904 # Allow CC to be a program name with arguments.
17908 # Allow CC to be a program name with arguments.
17913 lt_cv_prog_compiler_c_o_RC=yes
17915 # The else clause should only fire when bootstrapping the
17916 # libtool distribution, otherwise you forgot to ship ltmain.sh
17917 # with your package, and you will get complaints that there are
17918 # no rules to generate ltmain.sh.
17919 if test -f "$ltmain"; then
17920 # See if we are running on zsh, and set the options which allow our commands through
17921 # without removal of \ escapes.
17922 if test -n "${ZSH_VERSION+set}" ; then
17923 setopt NO_GLOB_SUBST
17925 # Now quote all the things that may contain metacharacters while being
17926 # careful not to overquote the AC_SUBSTed values. We take copies of the
17927 # variables and quote the copies for generation of the libtool script.
17928 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17929 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17930 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17931 deplibs_check_method reload_flag reload_cmds need_locks \
17932 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17933 lt_cv_sys_global_symbol_to_c_name_address \
17934 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17935 old_postinstall_cmds old_postuninstall_cmds \
17939 lt_prog_compiler_wl_RC \
17940 lt_prog_compiler_pic_RC \
17941 lt_prog_compiler_static_RC \
17942 lt_prog_compiler_no_builtin_flag_RC \
17943 export_dynamic_flag_spec_RC \
17944 thread_safe_flag_spec_RC \
17945 whole_archive_flag_spec_RC \
17946 enable_shared_with_static_runtimes_RC \
17947 old_archive_cmds_RC \
17948 old_archive_from_new_cmds_RC \
17949 predep_objects_RC \
17950 postdep_objects_RC \
17953 compiler_lib_search_path_RC \
17955 archive_expsym_cmds_RC \
17956 postinstall_cmds_RC \
17957 postuninstall_cmds_RC \
17958 old_archive_from_expsyms_cmds_RC \
17959 allow_undefined_flag_RC \
17960 no_undefined_flag_RC \
17961 export_symbols_cmds_RC \
17962 hardcode_libdir_flag_spec_RC \
17963 hardcode_libdir_flag_spec_ld_RC \
17964 hardcode_libdir_separator_RC \
17965 hardcode_automatic_RC \
17967 module_expsym_cmds_RC \
17968 lt_cv_prog_compiler_c_o_RC \
17969 exclude_expsyms_RC \
17970 include_expsyms_RC; do
17973 old_archive_cmds_RC | \
17974 old_archive_from_new_cmds_RC | \
17975 archive_cmds_RC | \
17976 archive_expsym_cmds_RC | \
17978 module_expsym_cmds_RC | \
17979 old_archive_from_expsyms_cmds_RC | \
17980 export_symbols_cmds_RC | \
17981 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17982 postinstall_cmds | postuninstall_cmds | \
17983 old_postinstall_cmds | old_postuninstall_cmds | \
17984 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17985 # Double-quote double-evaled strings.
17986 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17989 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17995 *'\$0 --fallback-echo"')
17996 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18002 cat <<__EOF__ >> "$cfgfile"
18003 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18005 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18007 # Shell to use when invoking shell scripts.
18010 # Whether or not to build shared libraries.
18011 build_libtool_libs=$enable_shared
18013 # Whether or not to build static libraries.
18014 build_old_libs=$enable_static
18016 # Whether or not to add -lc for building shared libraries.
18017 build_libtool_need_lc=$archive_cmds_need_lc_RC
18019 # Whether or not to disallow shared libs when runtime libs are static
18020 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18022 # Whether or not to optimize for fast installation.
18023 fast_install=$enable_fast_install
18026 host_alias=$host_alias
18029 # An echo program that does not interpret backslashes.
18034 AR_FLAGS=$lt_AR_FLAGS
18039 # A language-specific compiler.
18042 # Is the compiler the GNU C compiler?
18048 # The linker used to build libraries.
18051 # Whether we need hard or soft links.
18054 # A BSD-compatible nm program.
18057 # A symbol stripping program
18060 # Used to examine libraries when file_magic_cmd begins "file"
18061 MAGIC_CMD=$MAGIC_CMD
18063 # Used on cygwin: DLL creation program.
18066 # Used on cygwin: object dumper.
18069 # Used on cygwin: assembler.
18072 # The name of the directory that contains temporary libtool files.
18075 # How to create reloadable object files.
18076 reload_flag=$lt_reload_flag
18077 reload_cmds=$lt_reload_cmds
18079 # How to pass a linker flag through the compiler.
18080 wl=$lt_lt_prog_compiler_wl_RC
18082 # Object file suffix (normally "o").
18083 objext="$ac_objext"
18085 # Old archive suffix (normally "a").
18088 # Shared library suffix (normally ".so").
18091 # Executable file suffix (normally "").
18094 # Additional compiler flags for building library objects.
18095 pic_flag=$lt_lt_prog_compiler_pic_RC
18098 # What is the maximum length of a command?
18099 max_cmd_len=$lt_cv_sys_max_cmd_len
18101 # Does compiler simultaneously support -c and -o options?
18102 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18104 # Must we lock files when doing compilation ?
18105 need_locks=$lt_need_locks
18107 # Do we need the lib prefix for modules?
18108 need_lib_prefix=$need_lib_prefix
18110 # Do we need a version for libraries?
18111 need_version=$need_version
18113 # Whether dlopen is supported.
18114 dlopen_support=$enable_dlopen
18116 # Whether dlopen of programs is supported.
18117 dlopen_self=$enable_dlopen_self
18119 # Whether dlopen of statically linked programs is supported.
18120 dlopen_self_static=$enable_dlopen_self_static
18122 # Compiler flag to prevent dynamic linking.
18123 link_static_flag=$lt_lt_prog_compiler_static_RC
18125 # Compiler flag to turn off builtin functions.
18126 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18128 # Compiler flag to allow reflexive dlopens.
18129 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18131 # Compiler flag to generate shared objects directly from archives.
18132 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18134 # Compiler flag to generate thread-safe objects.
18135 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18137 # Library versioning type.
18138 version_type=$version_type
18140 # Format of library name prefix.
18141 libname_spec=$lt_libname_spec
18143 # List of archive names. First name is the real one, the rest are links.
18144 # The last name is the one that the linker finds with -lNAME.
18145 library_names_spec=$lt_library_names_spec
18147 # The coded name of the library, if different from the real name.
18148 soname_spec=$lt_soname_spec
18150 # Commands used to build and install an old-style archive.
18152 old_archive_cmds=$lt_old_archive_cmds_RC
18153 old_postinstall_cmds=$lt_old_postinstall_cmds
18154 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18156 # Create an old-style archive from a shared archive.
18157 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18159 # Create a temporary old-style archive to link instead of a shared archive.
18160 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18162 # Commands used to build and install a shared archive.
18163 archive_cmds=$lt_archive_cmds_RC
18164 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18165 postinstall_cmds=$lt_postinstall_cmds
18166 postuninstall_cmds=$lt_postuninstall_cmds
18168 # Commands used to build a loadable module (assumed same as above if empty)
18169 module_cmds=$lt_module_cmds_RC
18170 module_expsym_cmds=$lt_module_expsym_cmds_RC
18172 # Commands to strip libraries.
18173 old_striplib=$lt_old_striplib
18174 striplib=$lt_striplib
18176 # Dependencies to place before the objects being linked to create a
18178 predep_objects=$lt_predep_objects_RC
18180 # Dependencies to place after the objects being linked to create a
18182 postdep_objects=$lt_postdep_objects_RC
18184 # Dependencies to place before the objects being linked to create a
18186 predeps=$lt_predeps_RC
18188 # Dependencies to place after the objects being linked to create a
18190 postdeps=$lt_postdeps_RC
18192 # The library search path used internally by the compiler when linking
18193 # a shared library.
18194 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18196 # Method to check whether dependent libraries are shared objects.
18197 deplibs_check_method=$lt_deplibs_check_method
18199 # Command to use when deplibs_check_method == file_magic.
18200 file_magic_cmd=$lt_file_magic_cmd
18202 # Flag that allows shared libraries with undefined symbols to be built.
18203 allow_undefined_flag=$lt_allow_undefined_flag_RC
18205 # Flag that forces no undefined symbols.
18206 no_undefined_flag=$lt_no_undefined_flag_RC
18208 # Commands used to finish a libtool library installation in a directory.
18209 finish_cmds=$lt_finish_cmds
18211 # Same as above, but a single script fragment to be evaled but not shown.
18212 finish_eval=$lt_finish_eval
18214 # Take the output of nm and produce a listing of raw symbols and C names.
18215 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18217 # Transform the output of nm in a proper C declaration
18218 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18220 # Transform the output of nm in a C name address pair
18221 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18223 # This is the shared library runtime path variable.
18224 runpath_var=$runpath_var
18226 # This is the shared library path variable.
18227 shlibpath_var=$shlibpath_var
18229 # Is shlibpath searched before the hard-coded library search path?
18230 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18232 # How to hardcode a shared library path into an executable.
18233 hardcode_action=$hardcode_action_RC
18235 # Whether we should hardcode library paths into libraries.
18236 hardcode_into_libs=$hardcode_into_libs
18238 # Flag to hardcode \$libdir into a binary during linking.
18239 # This must work even if \$libdir does not exist.
18240 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18242 # If ld is used when linking, flag to hardcode \$libdir into
18243 # a binary during linking. This must work even if \$libdir does
18245 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18247 # Whether we need a single -rpath flag with a separated argument.
18248 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18250 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18251 # resulting binary.
18252 hardcode_direct=$hardcode_direct_RC
18254 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18255 # resulting binary.
18256 hardcode_minus_L=$hardcode_minus_L_RC
18258 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18259 # the resulting binary.
18260 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18262 # Set to yes if building a shared library automatically hardcodes DIR into the library
18263 # and all subsequent libraries and executables linked against it.
18264 hardcode_automatic=$hardcode_automatic_RC
18266 # Variables whose values should be saved in libtool wrapper scripts and
18267 # restored at relink time.
18268 variables_saved_for_relink="$variables_saved_for_relink"
18270 # Whether libtool must link a program against all its dependency libraries.
18271 link_all_deplibs=$link_all_deplibs_RC
18273 # Compile-time system search path for libraries
18274 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18276 # Run-time system search path for libraries
18277 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18279 # Fix the shell variable \$srcfile for the compiler.
18280 fix_srcfile_path="$fix_srcfile_path_RC"
18282 # Set to yes if exported symbols are required.
18283 always_export_symbols=$always_export_symbols_RC
18285 # The commands to list exported symbols.
18286 export_symbols_cmds=$lt_export_symbols_cmds_RC
18288 # The commands to extract the exported symbol list from a shared archive.
18289 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18291 # Symbols that should not be listed in the preloaded symbols.
18292 exclude_expsyms=$lt_exclude_expsyms_RC
18294 # Symbols that must always be exported.
18295 include_expsyms=$lt_include_expsyms_RC
18297 # ### END LIBTOOL TAG CONFIG: $tagname
18303 # If there is no Makefile yet, we rely on a make rule to execute
18304 # `config.status --recheck' to rerun these tests and create the
18305 # libtool script then.
18306 test -f Makefile && make "$ltmain"
18311 ac_cpp='$CPP $CPPFLAGS'
18312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18321 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18322 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18323 { (exit 1); exit 1; }; }
18327 # Append the new tag name to the list of available tags.
18328 if test -n "$tagname" ; then
18329 available_tags="$available_tags $tagname"
18335 # Now substitute the updated list of available tags.
18336 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18337 mv "${ofile}T" "$ofile"
18341 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18342 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18343 { (exit 1); exit 1; }; }
18349 # This can be used to rebuild libtool when needed
18350 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18352 # Always use our own libtool.
18353 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18355 # Prevent multiple expansion
18377 # Check whether --enable-64-bit or --disable-64-bit was given.
18378 if test "${enable_64_bit+set}" = set; then
18379 enableval="$enable_64_bit"
18380 case "${enableval}" in
18381 yes) want64=true ;;
18382 no) want64=false ;;
18383 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit option" >&5
18384 echo "$as_me: error: bad value ${enableval} for 64-bit option" >&2;}
18385 { (exit 1); exit 1; }; } ;;
18390 if test "${ac_cv_header_libelf_h+set}" = set; then
18391 echo "$as_me:$LINENO: checking for libelf.h" >&5
18392 echo $ECHO_N "checking for libelf.h... $ECHO_C" >&6
18393 if test "${ac_cv_header_libelf_h+set}" = set; then
18394 echo $ECHO_N "(cached) $ECHO_C" >&6
18396 echo "$as_me:$LINENO: result: $ac_cv_header_libelf_h" >&5
18397 echo "${ECHO_T}$ac_cv_header_libelf_h" >&6
18399 # Is the header compilable?
18400 echo "$as_me:$LINENO: checking libelf.h usability" >&5
18401 echo $ECHO_N "checking libelf.h usability... $ECHO_C" >&6
18402 cat >conftest.$ac_ext <<_ACEOF
18403 #line $LINENO "configure"
18406 cat confdefs.h >>conftest.$ac_ext
18407 cat >>conftest.$ac_ext <<_ACEOF
18408 /* end confdefs.h. */
18409 $ac_includes_default
18410 #include <libelf.h>
18412 rm -f conftest.$ac_objext
18413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18414 (eval $ac_compile) 2>&5
18416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); } &&
18418 { ac_try='test -s conftest.$ac_objext'
18419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18420 (eval $ac_try) 2>&5
18422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423 (exit $ac_status); }; }; then
18424 ac_header_compiler=yes
18426 echo "$as_me: failed program was:" >&5
18427 sed 's/^/| /' conftest.$ac_ext >&5
18429 ac_header_compiler=no
18431 rm -f conftest.$ac_objext conftest.$ac_ext
18432 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18433 echo "${ECHO_T}$ac_header_compiler" >&6
18435 # Is the header present?
18436 echo "$as_me:$LINENO: checking libelf.h presence" >&5
18437 echo $ECHO_N "checking libelf.h presence... $ECHO_C" >&6
18438 cat >conftest.$ac_ext <<_ACEOF
18439 #line $LINENO "configure"
18442 cat confdefs.h >>conftest.$ac_ext
18443 cat >>conftest.$ac_ext <<_ACEOF
18444 /* end confdefs.h. */
18445 #include <libelf.h>
18447 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18448 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18450 grep -v '^ *+' conftest.er1 >conftest.err
18452 cat conftest.err >&5
18453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454 (exit $ac_status); } >/dev/null; then
18455 if test -s conftest.err; then
18456 ac_cpp_err=$ac_c_preproc_warn_flag
18463 if test -z "$ac_cpp_err"; then
18464 ac_header_preproc=yes
18466 echo "$as_me: failed program was:" >&5
18467 sed 's/^/| /' conftest.$ac_ext >&5
18469 ac_header_preproc=no
18471 rm -f conftest.err conftest.$ac_ext
18472 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18473 echo "${ECHO_T}$ac_header_preproc" >&6
18475 # So? What about this header?
18476 case $ac_header_compiler:$ac_header_preproc in
18478 { echo "$as_me:$LINENO: WARNING: libelf.h: accepted by the compiler, rejected by the preprocessor!" >&5
18479 echo "$as_me: WARNING: libelf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18480 { echo "$as_me:$LINENO: WARNING: libelf.h: proceeding with the preprocessor's result" >&5
18481 echo "$as_me: WARNING: libelf.h: proceeding with the preprocessor's result" >&2;}
18484 ## ------------------------------------ ##
18485 ## Report this to bug-autoconf@gnu.org. ##
18486 ## ------------------------------------ ##
18489 sed "s/^/$as_me: WARNING: /" >&2
18492 { echo "$as_me:$LINENO: WARNING: libelf.h: present but cannot be compiled" >&5
18493 echo "$as_me: WARNING: libelf.h: present but cannot be compiled" >&2;}
18494 { echo "$as_me:$LINENO: WARNING: libelf.h: check for missing prerequisite headers?" >&5
18495 echo "$as_me: WARNING: libelf.h: check for missing prerequisite headers?" >&2;}
18496 { echo "$as_me:$LINENO: WARNING: libelf.h: proceeding with the preprocessor's result" >&5
18497 echo "$as_me: WARNING: libelf.h: proceeding with the preprocessor's result" >&2;}
18500 ## ------------------------------------ ##
18501 ## Report this to bug-autoconf@gnu.org. ##
18502 ## ------------------------------------ ##
18505 sed "s/^/$as_me: WARNING: /" >&2
18508 echo "$as_me:$LINENO: checking for libelf.h" >&5
18509 echo $ECHO_N "checking for libelf.h... $ECHO_C" >&6
18510 if test "${ac_cv_header_libelf_h+set}" = set; then
18511 echo $ECHO_N "(cached) $ECHO_C" >&6
18513 ac_cv_header_libelf_h=$ac_header_preproc
18515 echo "$as_me:$LINENO: result: $ac_cv_header_libelf_h" >&5
18516 echo "${ECHO_T}$ac_cv_header_libelf_h" >&6
18519 if test $ac_cv_header_libelf_h = yes; then
18523 if test -f /usr/include/elfutils/libelf.h; then
18524 CPPFLAGS="$CPPFLAGS -I /usr/include/elfutils"
18525 elif test -f /usr/local/include/elfutils/libelf.h; then
18526 CPPFLAGS="$CPPFLAGS -I /usr/local/include/elfutils"
18527 elif test -f /usr/include/libelf/libelf.h; then
18528 CPPFLAGS="$CPPFLAGS -I /usr/include/libelf"
18529 elif test -f /usr/local/include/libelf/libelf.h; then
18530 CPPFLAGS="$CPPFLAGS -I /usr/local/include/libelf"
18532 { { echo "$as_me:$LINENO: error: libelf.h not found" >&5
18533 echo "$as_me: error: libelf.h not found" >&2;}
18534 { (exit 1); exit 1; }; }
18540 if test "$want64"x = falsex; then
18541 GELFINCLUDE='-I$(top_srcdir)/gelfx32'
18543 GELFINCLUDE='-I$(top_srcdir)/gelfx'
18544 if test "${ac_cv_header_gelf_h+set}" = set; then
18545 echo "$as_me:$LINENO: checking for gelf.h" >&5
18546 echo $ECHO_N "checking for gelf.h... $ECHO_C" >&6
18547 if test "${ac_cv_header_gelf_h+set}" = set; then
18548 echo $ECHO_N "(cached) $ECHO_C" >&6
18550 echo "$as_me:$LINENO: result: $ac_cv_header_gelf_h" >&5
18551 echo "${ECHO_T}$ac_cv_header_gelf_h" >&6
18553 # Is the header compilable?
18554 echo "$as_me:$LINENO: checking gelf.h usability" >&5
18555 echo $ECHO_N "checking gelf.h usability... $ECHO_C" >&6
18556 cat >conftest.$ac_ext <<_ACEOF
18557 #line $LINENO "configure"
18560 cat confdefs.h >>conftest.$ac_ext
18561 cat >>conftest.$ac_ext <<_ACEOF
18562 /* end confdefs.h. */
18563 $ac_includes_default
18566 rm -f conftest.$ac_objext
18567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18568 (eval $ac_compile) 2>&5
18570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571 (exit $ac_status); } &&
18572 { ac_try='test -s conftest.$ac_objext'
18573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18574 (eval $ac_try) 2>&5
18576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18577 (exit $ac_status); }; }; then
18578 ac_header_compiler=yes
18580 echo "$as_me: failed program was:" >&5
18581 sed 's/^/| /' conftest.$ac_ext >&5
18583 ac_header_compiler=no
18585 rm -f conftest.$ac_objext conftest.$ac_ext
18586 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18587 echo "${ECHO_T}$ac_header_compiler" >&6
18589 # Is the header present?
18590 echo "$as_me:$LINENO: checking gelf.h presence" >&5
18591 echo $ECHO_N "checking gelf.h presence... $ECHO_C" >&6
18592 cat >conftest.$ac_ext <<_ACEOF
18593 #line $LINENO "configure"
18596 cat confdefs.h >>conftest.$ac_ext
18597 cat >>conftest.$ac_ext <<_ACEOF
18598 /* end confdefs.h. */
18601 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18602 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18604 grep -v '^ *+' conftest.er1 >conftest.err
18606 cat conftest.err >&5
18607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608 (exit $ac_status); } >/dev/null; then
18609 if test -s conftest.err; then
18610 ac_cpp_err=$ac_c_preproc_warn_flag
18617 if test -z "$ac_cpp_err"; then
18618 ac_header_preproc=yes
18620 echo "$as_me: failed program was:" >&5
18621 sed 's/^/| /' conftest.$ac_ext >&5
18623 ac_header_preproc=no
18625 rm -f conftest.err conftest.$ac_ext
18626 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18627 echo "${ECHO_T}$ac_header_preproc" >&6
18629 # So? What about this header?
18630 case $ac_header_compiler:$ac_header_preproc in
18632 { echo "$as_me:$LINENO: WARNING: gelf.h: accepted by the compiler, rejected by the preprocessor!" >&5
18633 echo "$as_me: WARNING: gelf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18634 { echo "$as_me:$LINENO: WARNING: gelf.h: proceeding with the preprocessor's result" >&5
18635 echo "$as_me: WARNING: gelf.h: proceeding with the preprocessor's result" >&2;}
18638 ## ------------------------------------ ##
18639 ## Report this to bug-autoconf@gnu.org. ##
18640 ## ------------------------------------ ##
18643 sed "s/^/$as_me: WARNING: /" >&2
18646 { echo "$as_me:$LINENO: WARNING: gelf.h: present but cannot be compiled" >&5
18647 echo "$as_me: WARNING: gelf.h: present but cannot be compiled" >&2;}
18648 { echo "$as_me:$LINENO: WARNING: gelf.h: check for missing prerequisite headers?" >&5
18649 echo "$as_me: WARNING: gelf.h: check for missing prerequisite headers?" >&2;}
18650 { echo "$as_me:$LINENO: WARNING: gelf.h: proceeding with the preprocessor's result" >&5
18651 echo "$as_me: WARNING: gelf.h: proceeding with the preprocessor's result" >&2;}
18654 ## ------------------------------------ ##
18655 ## Report this to bug-autoconf@gnu.org. ##
18656 ## ------------------------------------ ##
18659 sed "s/^/$as_me: WARNING: /" >&2
18662 echo "$as_me:$LINENO: checking for gelf.h" >&5
18663 echo $ECHO_N "checking for gelf.h... $ECHO_C" >&6
18664 if test "${ac_cv_header_gelf_h+set}" = set; then
18665 echo $ECHO_N "(cached) $ECHO_C" >&6
18667 ac_cv_header_gelf_h=$ac_header_preproc
18669 echo "$as_me:$LINENO: result: $ac_cv_header_gelf_h" >&5
18670 echo "${ECHO_T}$ac_cv_header_gelf_h" >&6
18673 if test $ac_cv_header_gelf_h = yes; then
18677 GELFINCLUDE="$GELFINCLUDE "'-I$(top_srcdir)/gelf'
18678 LIBGELF='../gelf/libgelf.la'
18685 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18686 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18687 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18688 echo $ECHO_N "(cached) $ECHO_C" >&6
18690 ac_check_lib_save_LIBS=$LIBS
18692 cat >conftest.$ac_ext <<_ACEOF
18693 #line $LINENO "configure"
18696 cat confdefs.h >>conftest.$ac_ext
18697 cat >>conftest.$ac_ext <<_ACEOF
18698 /* end confdefs.h. */
18700 /* Override any gcc2 internal prototype to avoid an error. */
18704 /* We use char because int might match the return type of a gcc2
18705 builtin and then its argument prototype would still apply. */
18715 rm -f conftest.$ac_objext conftest$ac_exeext
18716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18717 (eval $ac_link) 2>&5
18719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720 (exit $ac_status); } &&
18721 { ac_try='test -s conftest$ac_exeext'
18722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18723 (eval $ac_try) 2>&5
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); }; }; then
18727 ac_cv_lib_elf_elf_begin=yes
18729 echo "$as_me: failed program was:" >&5
18730 sed 's/^/| /' conftest.$ac_ext >&5
18732 ac_cv_lib_elf_elf_begin=no
18734 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18735 LIBS=$ac_check_lib_save_LIBS
18737 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18738 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18739 if test $ac_cv_lib_elf_elf_begin = yes; then
18740 cat >>confdefs.h <<_ACEOF
18741 #define HAVE_LIBELF 1
18751 echo "$as_me:$LINENO: checking for gelf_getvernaux" >&5
18752 echo $ECHO_N "checking for gelf_getvernaux... $ECHO_C" >&6
18753 if test "${ac_cv_func_gelf_getvernaux+set}" = set; then
18754 echo $ECHO_N "(cached) $ECHO_C" >&6
18756 cat >conftest.$ac_ext <<_ACEOF
18757 #line $LINENO "configure"
18760 cat confdefs.h >>conftest.$ac_ext
18761 cat >>conftest.$ac_ext <<_ACEOF
18762 /* end confdefs.h. */
18763 /* System header to define __stub macros and hopefully few prototypes,
18764 which can conflict with char gelf_getvernaux (); below.
18765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18766 <limits.h> exists even on freestanding compilers. */
18768 # include <limits.h>
18770 # include <assert.h>
18772 /* Override any gcc2 internal prototype to avoid an error. */
18777 /* We use char because int might match the return type of a gcc2
18778 builtin and then its argument prototype would still apply. */
18779 char gelf_getvernaux ();
18780 /* The GNU C library defines this for functions which it implements
18781 to always fail with ENOSYS. Some functions are actually named
18782 something starting with __ and the normal name is an alias. */
18783 #if defined (__stub_gelf_getvernaux) || defined (__stub___gelf_getvernaux)
18786 char (*f) () = gelf_getvernaux;
18795 return f != gelf_getvernaux;
18800 rm -f conftest.$ac_objext conftest$ac_exeext
18801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18802 (eval $ac_link) 2>&5
18804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805 (exit $ac_status); } &&
18806 { ac_try='test -s conftest$ac_exeext'
18807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18808 (eval $ac_try) 2>&5
18810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811 (exit $ac_status); }; }; then
18812 ac_cv_func_gelf_getvernaux=yes
18814 echo "$as_me: failed program was:" >&5
18815 sed 's/^/| /' conftest.$ac_ext >&5
18817 ac_cv_func_gelf_getvernaux=no
18819 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18821 echo "$as_me:$LINENO: result: $ac_cv_func_gelf_getvernaux" >&5
18822 echo "${ECHO_T}$ac_cv_func_gelf_getvernaux" >&6
18823 if test $ac_cv_func_gelf_getvernaux = yes; then
18830 echo "$as_me:$LINENO: checking whether FTW_ACTIONRETVAL is supported" >&5
18831 echo $ECHO_N "checking whether FTW_ACTIONRETVAL is supported... $ECHO_C" >&6
18832 if test "${ac_cv_ftw_actionretval+set}" = set; then
18833 echo $ECHO_N "(cached) $ECHO_C" >&6
18835 cat >conftest.$ac_ext <<_ACEOF
18836 #line $LINENO "configure"
18839 cat confdefs.h >>conftest.$ac_ext
18840 cat >>conftest.$ac_ext <<_ACEOF
18841 /* end confdefs.h. */
18843 #ifndef _GNU_SOURCE
18844 #define _GNU_SOURCE 1
18847 #ifdef FTW_ACTIONRETVAL
18848 FTW supports ACTIONRETVAL
18852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18853 $EGREP "FTW supports ACTIONRETVAL" >/dev/null 2>&1; then
18854 ac_cv_ftw_actionretval=yes
18856 ac_cv_ftw_actionretval=no
18861 echo "$as_me:$LINENO: result: $ac_cv_ftw_actionretval" >&5
18862 echo "${ECHO_T}$ac_cv_ftw_actionretval" >&6
18863 if test "x$ac_cv_ftw_actionretval" = xyes; then
18865 cat >>confdefs.h <<\_ACEOF
18866 #define HAVE_FTW_ACTIONRETVAL 1
18872 echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
18873 echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6
18874 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
18875 echo $ECHO_N "(cached) $ECHO_C" >&6
18877 ac_check_lib_save_LIBS=$LIBS
18878 LIBS="-lselinux $LIBS"
18879 cat >conftest.$ac_ext <<_ACEOF
18880 #line $LINENO "configure"
18883 cat confdefs.h >>conftest.$ac_ext
18884 cat >>conftest.$ac_ext <<_ACEOF
18885 /* end confdefs.h. */
18887 /* Override any gcc2 internal prototype to avoid an error. */
18891 /* We use char because int might match the return type of a gcc2
18892 builtin and then its argument prototype would still apply. */
18893 char is_selinux_enabled ();
18897 is_selinux_enabled ();
18902 rm -f conftest.$ac_objext conftest$ac_exeext
18903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18904 (eval $ac_link) 2>&5
18906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18907 (exit $ac_status); } &&
18908 { ac_try='test -s conftest$ac_exeext'
18909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18910 (eval $ac_try) 2>&5
18912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913 (exit $ac_status); }; }; then
18914 ac_cv_lib_selinux_is_selinux_enabled=yes
18916 echo "$as_me: failed program was:" >&5
18917 sed 's/^/| /' conftest.$ac_ext >&5
18919 ac_cv_lib_selinux_is_selinux_enabled=no
18921 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18922 LIBS=$ac_check_lib_save_LIBS
18924 echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
18925 echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6
18926 if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
18927 cat >>confdefs.h <<_ACEOF
18928 #define HAVE_LIBSELINUX 1
18931 LIBS="-lselinux $LIBS"
18936 for ac_header in selinux/selinux.h
18938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18940 echo "$as_me:$LINENO: checking for $ac_header" >&5
18941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18943 echo $ECHO_N "(cached) $ECHO_C" >&6
18945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18946 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18948 # Is the header compilable?
18949 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18950 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18951 cat >conftest.$ac_ext <<_ACEOF
18952 #line $LINENO "configure"
18955 cat confdefs.h >>conftest.$ac_ext
18956 cat >>conftest.$ac_ext <<_ACEOF
18957 /* end confdefs.h. */
18958 $ac_includes_default
18959 #include <$ac_header>
18961 rm -f conftest.$ac_objext
18962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18963 (eval $ac_compile) 2>&5
18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); } &&
18967 { ac_try='test -s conftest.$ac_objext'
18968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18969 (eval $ac_try) 2>&5
18971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972 (exit $ac_status); }; }; then
18973 ac_header_compiler=yes
18975 echo "$as_me: failed program was:" >&5
18976 sed 's/^/| /' conftest.$ac_ext >&5
18978 ac_header_compiler=no
18980 rm -f conftest.$ac_objext conftest.$ac_ext
18981 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18982 echo "${ECHO_T}$ac_header_compiler" >&6
18984 # Is the header present?
18985 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18986 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18987 cat >conftest.$ac_ext <<_ACEOF
18988 #line $LINENO "configure"
18991 cat confdefs.h >>conftest.$ac_ext
18992 cat >>conftest.$ac_ext <<_ACEOF
18993 /* end confdefs.h. */
18994 #include <$ac_header>
18996 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18997 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18999 grep -v '^ *+' conftest.er1 >conftest.err
19001 cat conftest.err >&5
19002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003 (exit $ac_status); } >/dev/null; then
19004 if test -s conftest.err; then
19005 ac_cpp_err=$ac_c_preproc_warn_flag
19012 if test -z "$ac_cpp_err"; then
19013 ac_header_preproc=yes
19015 echo "$as_me: failed program was:" >&5
19016 sed 's/^/| /' conftest.$ac_ext >&5
19018 ac_header_preproc=no
19020 rm -f conftest.err conftest.$ac_ext
19021 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19022 echo "${ECHO_T}$ac_header_preproc" >&6
19024 # So? What about this header?
19025 case $ac_header_compiler:$ac_header_preproc in
19027 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19028 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19030 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19033 ## ------------------------------------ ##
19034 ## Report this to bug-autoconf@gnu.org. ##
19035 ## ------------------------------------ ##
19038 sed "s/^/$as_me: WARNING: /" >&2
19041 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19042 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19043 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19044 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19046 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19049 ## ------------------------------------ ##
19050 ## Report this to bug-autoconf@gnu.org. ##
19051 ## ------------------------------------ ##
19054 sed "s/^/$as_me: WARNING: /" >&2
19057 echo "$as_me:$LINENO: checking for $ac_header" >&5
19058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19060 echo $ECHO_N "(cached) $ECHO_C" >&6
19062 eval "$as_ac_Header=$ac_header_preproc"
19064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19065 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19069 cat >>confdefs.h <<_ACEOF
19070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19078 if test x"$newbu" = xtrue; then
19079 # Don't use LFS for libelf-0.x
19080 # Check whether --enable-largefile or --disable-largefile was given.
19081 if test "${enable_largefile+set}" = set; then
19082 enableval="$enable_largefile"
19085 if test "$enable_largefile" != no; then
19087 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
19088 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
19089 if test "${ac_cv_sys_largefile_CC+set}" = set; then
19090 echo $ECHO_N "(cached) $ECHO_C" >&6
19092 ac_cv_sys_largefile_CC=no
19093 if test "$GCC" != yes; then
19096 # IRIX 6.2 and later do not support large files by default,
19097 # so use the C compiler's -n32 option if that helps.
19098 cat >conftest.$ac_ext <<_ACEOF
19099 #line $LINENO "configure"
19102 cat confdefs.h >>conftest.$ac_ext
19103 cat >>conftest.$ac_ext <<_ACEOF
19104 /* end confdefs.h. */
19105 #include <sys/types.h>
19106 /* Check that off_t can represent 2**63 - 1 correctly.
19107 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19108 since some C++ compilers masquerading as C compilers
19109 incorrectly reject 9223372036854775807. */
19110 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19111 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19112 && LARGE_OFF_T % 2147483647 == 1)
19122 rm -f conftest.$ac_objext
19123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19124 (eval $ac_compile) 2>&5
19126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); } &&
19128 { ac_try='test -s conftest.$ac_objext'
19129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19130 (eval $ac_try) 2>&5
19132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133 (exit $ac_status); }; }; then
19136 echo "$as_me: failed program was:" >&5
19137 sed 's/^/| /' conftest.$ac_ext >&5
19140 rm -f conftest.$ac_objext
19142 rm -f conftest.$ac_objext
19143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19144 (eval $ac_compile) 2>&5
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); } &&
19148 { ac_try='test -s conftest.$ac_objext'
19149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19150 (eval $ac_try) 2>&5
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); }; }; then
19154 ac_cv_sys_largefile_CC=' -n32'; break
19156 echo "$as_me: failed program was:" >&5
19157 sed 's/^/| /' conftest.$ac_ext >&5
19160 rm -f conftest.$ac_objext
19164 rm -f conftest.$ac_ext
19167 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
19168 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
19169 if test "$ac_cv_sys_largefile_CC" != no; then
19170 CC=$CC$ac_cv_sys_largefile_CC
19173 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19174 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
19175 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19176 echo $ECHO_N "(cached) $ECHO_C" >&6
19179 ac_cv_sys_file_offset_bits=no
19180 cat >conftest.$ac_ext <<_ACEOF
19181 #line $LINENO "configure"
19184 cat confdefs.h >>conftest.$ac_ext
19185 cat >>conftest.$ac_ext <<_ACEOF
19186 /* end confdefs.h. */
19187 #include <sys/types.h>
19188 /* Check that off_t can represent 2**63 - 1 correctly.
19189 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19190 since some C++ compilers masquerading as C compilers
19191 incorrectly reject 9223372036854775807. */
19192 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19193 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19194 && LARGE_OFF_T % 2147483647 == 1)
19204 rm -f conftest.$ac_objext
19205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19206 (eval $ac_compile) 2>&5
19208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209 (exit $ac_status); } &&
19210 { ac_try='test -s conftest.$ac_objext'
19211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19212 (eval $ac_try) 2>&5
19214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215 (exit $ac_status); }; }; then
19218 echo "$as_me: failed program was:" >&5
19219 sed 's/^/| /' conftest.$ac_ext >&5
19222 rm -f conftest.$ac_objext conftest.$ac_ext
19223 cat >conftest.$ac_ext <<_ACEOF
19224 #line $LINENO "configure"
19227 cat confdefs.h >>conftest.$ac_ext
19228 cat >>conftest.$ac_ext <<_ACEOF
19229 /* end confdefs.h. */
19230 #define _FILE_OFFSET_BITS 64
19231 #include <sys/types.h>
19232 /* Check that off_t can represent 2**63 - 1 correctly.
19233 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19234 since some C++ compilers masquerading as C compilers
19235 incorrectly reject 9223372036854775807. */
19236 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19237 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19238 && LARGE_OFF_T % 2147483647 == 1)
19248 rm -f conftest.$ac_objext
19249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19250 (eval $ac_compile) 2>&5
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); } &&
19254 { ac_try='test -s conftest.$ac_objext'
19255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19256 (eval $ac_try) 2>&5
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); }; }; then
19260 ac_cv_sys_file_offset_bits=64; break
19262 echo "$as_me: failed program was:" >&5
19263 sed 's/^/| /' conftest.$ac_ext >&5
19266 rm -f conftest.$ac_objext conftest.$ac_ext
19270 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19271 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
19272 if test "$ac_cv_sys_file_offset_bits" != no; then
19274 cat >>confdefs.h <<_ACEOF
19275 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19280 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
19281 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
19282 if test "${ac_cv_sys_large_files+set}" = set; then
19283 echo $ECHO_N "(cached) $ECHO_C" >&6
19286 ac_cv_sys_large_files=no
19287 cat >conftest.$ac_ext <<_ACEOF
19288 #line $LINENO "configure"
19291 cat confdefs.h >>conftest.$ac_ext
19292 cat >>conftest.$ac_ext <<_ACEOF
19293 /* end confdefs.h. */
19294 #include <sys/types.h>
19295 /* Check that off_t can represent 2**63 - 1 correctly.
19296 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19297 since some C++ compilers masquerading as C compilers
19298 incorrectly reject 9223372036854775807. */
19299 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19300 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19301 && LARGE_OFF_T % 2147483647 == 1)
19311 rm -f conftest.$ac_objext
19312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19313 (eval $ac_compile) 2>&5
19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316 (exit $ac_status); } &&
19317 { ac_try='test -s conftest.$ac_objext'
19318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19319 (eval $ac_try) 2>&5
19321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322 (exit $ac_status); }; }; then
19325 echo "$as_me: failed program was:" >&5
19326 sed 's/^/| /' conftest.$ac_ext >&5
19329 rm -f conftest.$ac_objext conftest.$ac_ext
19330 cat >conftest.$ac_ext <<_ACEOF
19331 #line $LINENO "configure"
19334 cat confdefs.h >>conftest.$ac_ext
19335 cat >>conftest.$ac_ext <<_ACEOF
19336 /* end confdefs.h. */
19337 #define _LARGE_FILES 1
19338 #include <sys/types.h>
19339 /* Check that off_t can represent 2**63 - 1 correctly.
19340 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19341 since some C++ compilers masquerading as C compilers
19342 incorrectly reject 9223372036854775807. */
19343 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19344 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19345 && LARGE_OFF_T % 2147483647 == 1)
19355 rm -f conftest.$ac_objext
19356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19357 (eval $ac_compile) 2>&5
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); } &&
19361 { ac_try='test -s conftest.$ac_objext'
19362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19363 (eval $ac_try) 2>&5
19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); }; }; then
19367 ac_cv_sys_large_files=1; break
19369 echo "$as_me: failed program was:" >&5
19370 sed 's/^/| /' conftest.$ac_ext >&5
19373 rm -f conftest.$ac_objext conftest.$ac_ext
19377 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19378 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
19379 if test "$ac_cv_sys_large_files" != no; then
19381 cat >>confdefs.h <<_ACEOF
19382 #define _LARGE_FILES $ac_cv_sys_large_files
19391 if test "$cross_compiling" = yes; then
19392 { echo "$as_me:$LINENO: WARNING: Could not test whether libelf properly converts Elf64_Sxword quantities.
19393 If you are using libelf-0.7.0 and your libelf is buggy, please use
19394 patches/libelf-0.7.0.patch." >&5
19395 echo "$as_me: WARNING: Could not test whether libelf properly converts Elf64_Sxword quantities.
19396 If you are using libelf-0.7.0 and your libelf is buggy, please use
19397 patches/libelf-0.7.0.patch." >&2;}
19399 cat >conftest.$ac_ext <<_ACEOF
19400 #line $LINENO "configure"
19403 cat confdefs.h >>conftest.$ac_ext
19404 cat >>conftest.$ac_ext <<_ACEOF
19405 /* end confdefs.h. */
19410 #include <libelf.h>
19411 #include <stdlib.h>
19413 #include <string.h>
19415 static unsigned char sparc64_elf[] = {
19416 0x7f,0x45,0x4c,0x46,0x02,0x02,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
19417 0x00,0x01,0x00,0x2b,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
19418 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x78,
19419 0x00,0x00,0x00,0x02,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x08,0x00,0x05,
19420 0x00,0x00,0x07,0xff,0xf0,0x00,0x00,0x00,0x00,0x2e,0x73,0x79,0x6d,0x74,0x61,0x62,
19421 0x00,0x2e,0x73,0x74,0x72,0x74,0x61,0x62,0x00,0x2e,0x73,0x68,0x73,0x74,0x72,0x74,
19422 0x61,0x62,0x00,0x2e,0x74,0x65,0x78,0x74,0x00,0x2e,0x64,0x61,0x74,0x61,0x00,0x2e,
19423 0x62,0x73,0x73,0x00,0x66,0x6f,0x6f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
19424 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
19425 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
19426 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
19427 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1b,0x00,0x00,0x00,0x01,
19428 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
19429 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
19430 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
19431 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x21,0x00,0x00,0x00,0x01,
19432 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
19433 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
19434 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
19435 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x27,0x00,0x00,0x00,0x08,
19436 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
19437 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
19438 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
19439 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x2c,0x00,0x00,0x00,0x01,
19440 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
19441 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x08,
19442 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
19443 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x11,0x00,0x00,0x00,0x03,
19444 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
19445 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,
19446 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
19447 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x02,
19448 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
19449 0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x78,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x78,
19450 0x00,0x00,0x00,0x07,0x00,0x00,0x00,0x05,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x08,
19451 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x18,0x00,0x00,0x00,0x09,0x00,0x00,0x00,0x03,
19452 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
19453 0x00,0x00,0x00,0x00,0x00,0x00,0x02,0xf0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
19454 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
19455 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
19456 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
19457 0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
19458 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x02,
19459 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
19460 0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
19461 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x04,
19462 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
19473 fd = open ("conflibelftest", O_RDWR | O_CREAT | O_EXCL, 0600);
19474 if (fd == -1) exit (1);
19475 unlink ("conflibelftest");
19476 if (write (fd, sparc64_elf, sizeof(sparc64_elf)) != sizeof(sparc64_elf))
19478 if (lseek (fd, 0, SEEK_SET) != 0) exit (1);
19479 elf_version (EV_CURRENT);
19480 elf = elf_begin (fd, ELF_C_RDWR, NULL); if (elf == NULL) exit (2);
19481 if ((ehdr = elf64_getehdr (elf)) == NULL) exit (3);
19483 while ((scn = elf_nextscn (elf, scn)) != NULL)
19487 Elf_Data *src, *dst;
19489 if ((shdr = elf64_getshdr (scn))
19490 && (name = elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name))
19491 && !strcmp (name, "foo"))
19493 src = elf_rawdata (scn, NULL);
19494 if (shdr->sh_size != 8 || src->d_off || src->d_size != 8) exit (4);
19495 if (src == NULL || elf_rawdata (scn, src) != NULL) exit (5);
19496 if ((dst = elf_newdata (scn)) == NULL) exit (6);
19500 dst->d_type = ELF_T_SXWORD;
19501 src->d_type = ELF_T_SXWORD;
19502 if (elf64_xlatetom (dst, src, ELFDATA2MSB) == NULL) exit (7);
19503 if (val != 0x7fff0000000)
19513 rm -f conftest$ac_exeext
19514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19515 (eval $ac_link) 2>&5
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19520 (eval $ac_try) 2>&5
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); }; }; then
19526 echo "$as_me: program exited with status $ac_status" >&5
19527 echo "$as_me: failed program was:" >&5
19528 sed 's/^/| /' conftest.$ac_ext >&5
19530 ( exit $ac_status )
19531 { { echo "$as_me:$LINENO: error: libelf does not properly convert Elf64_Sxword quantities.
19532 If you are using libelf-0.7.0, please use patches/libelf-0.7.0.patch." >&5
19533 echo "$as_me: error: libelf does not properly convert Elf64_Sxword quantities.
19534 If you are using libelf-0.7.0, please use patches/libelf-0.7.0.patch." >&2;}
19535 { (exit 1); exit 1; }; }
19537 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19541 ac_config_files="$ac_config_files Makefile src/Makefile gelfx/Makefile gelfx32/Makefile gelf/Makefile m4/Makefile patches/Makefile doc/Makefile testsuite/Makefile"
19542 cat >confcache <<\_ACEOF
19543 # This file is a shell script that caches the results of configure
19544 # tests run on this system so they can be shared between configure
19545 # scripts and configure runs, see configure's option --config-cache.
19546 # It is not useful on other systems. If it contains results you don't
19547 # want to keep, you may remove or edit it.
19549 # config.status only pays attention to the cache file if you give it
19550 # the --recheck option to rerun configure.
19552 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19553 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19554 # following values.
19558 # The following way of writing the cache mishandles newlines in values,
19559 # but we know of no workaround that is simple, portable, and efficient.
19560 # So, don't put newlines in cache variables' values.
19561 # Ultrix sh set writes to stderr and can't be redirected directly,
19562 # and sets the high bit in the cache file unless we assign to the vars.
19565 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19567 # `set' does not quote correctly, so add quotes (double-quote
19568 # substitution turns \\\\ into \\, and sed turns \\ into \).
19571 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19574 # `set' quotes correctly as required by POSIX, so do not add quotes.
19576 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19583 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19585 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19587 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19588 if test -w $cache_file; then
19589 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19590 cat confcache >$cache_file
19592 echo "not updating unwritable cache $cache_file"
19597 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19598 # Let make expand exec_prefix.
19599 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19601 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19602 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19603 # trailing colons and then remove the whole line if VPATH becomes empty
19604 # (actually we leave an empty line to preserve line numbers).
19605 if test "x$srcdir" = x.; then
19606 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19607 s/:*\$(srcdir):*/:/;
19608 s/:*\${srcdir}:*/:/;
19610 s/^\([^=]*=[ ]*\):*/\1/;
19616 DEFS=-DHAVE_CONFIG_H
19620 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19621 # 1. Remove the extension, and $U if already installed.
19622 ac_i=`echo "$ac_i" |
19623 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19625 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19626 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19628 LIBOBJS=$ac_libobjs
19630 LTLIBOBJS=$ac_ltlibobjs
19633 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19634 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19635 Usually this means the macro was only invoked conditionally." >&5
19636 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19637 Usually this means the macro was only invoked conditionally." >&2;}
19638 { (exit 1); exit 1; }; }
19641 : ${CONFIG_STATUS=./config.status}
19642 ac_clean_files_save=$ac_clean_files
19643 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19644 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19645 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19646 cat >$CONFIG_STATUS <<_ACEOF
19648 # Generated by $as_me.
19649 # Run this file to recreate the current configuration.
19650 # Compiler output produced by configure, useful for debugging
19651 # configure, is in config.log if it exists.
19654 ac_cs_recheck=false
19656 SHELL=\${CONFIG_SHELL-$SHELL}
19659 cat >>$CONFIG_STATUS <<\_ACEOF
19660 ## --------------------- ##
19661 ## M4sh Initialization. ##
19662 ## --------------------- ##
19664 # Be Bourne compatible
19665 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19668 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19669 # is contrary to our usage. Disable this feature.
19670 alias -g '${1+"$@"}'='"$@"'
19671 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19675 # Support unset when possible.
19676 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19683 # Work around bugs in pre-3.0 UWIN ksh.
19684 $as_unset ENV MAIL MAILPATH
19691 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19692 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19693 LC_TELEPHONE LC_TIME
19695 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
19696 eval $as_var=C; export $as_var
19702 # Required to use basename.
19703 if expr a : '\(a\)' >/dev/null 2>&1; then
19709 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19710 as_basename=basename
19716 # Name of the executable.
19717 as_me=`$as_basename "$0" ||
19718 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19719 X"$0" : 'X\(//\)$' \| \
19720 X"$0" : 'X\(/\)$' \| \
19721 . : '\(.\)' 2>/dev/null ||
19723 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19724 /^X\/\(\/\/\)$/{ s//\1/; q; }
19725 /^X\/\(\/\).*/{ s//\1/; q; }
19729 # PATH needs CR, and LINENO needs CR and PATH.
19730 # Avoid depending upon Character Ranges.
19731 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19732 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19733 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19734 as_cr_digits='0123456789'
19735 as_cr_alnum=$as_cr_Letters$as_cr_digits
19737 # The user is always right.
19738 if test "${PATH_SEPARATOR+set}" != set; then
19739 echo "#! /bin/sh" >conf$$.sh
19740 echo "exit 0" >>conf$$.sh
19742 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19751 as_lineno_1=$LINENO
19752 as_lineno_2=$LINENO
19753 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19754 test "x$as_lineno_1" != "x$as_lineno_2" &&
19755 test "x$as_lineno_3" = "x$as_lineno_2" || {
19756 # Find who we are. Look in the path if we contain no path at all
19759 *[\\/]* ) as_myself=$0 ;;
19760 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19761 for as_dir in $PATH
19764 test -z "$as_dir" && as_dir=.
19765 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19770 # We did not find ourselves, most probably we were run as `sh COMMAND'
19771 # in which case we are not to be found in the path.
19772 if test "x$as_myself" = x; then
19775 if test ! -f "$as_myself"; then
19776 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19777 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19778 { (exit 1); exit 1; }; }
19780 case $CONFIG_SHELL in
19782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19783 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19786 test -z "$as_dir" && as_dir=.
19787 for as_base in sh bash ksh sh5; do
19790 if ("$as_dir/$as_base" -c '
19791 as_lineno_1=$LINENO
19792 as_lineno_2=$LINENO
19793 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19794 test "x$as_lineno_1" != "x$as_lineno_2" &&
19795 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19796 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19797 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19798 CONFIG_SHELL=$as_dir/$as_base
19799 export CONFIG_SHELL
19800 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19808 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19809 # uniformly replaced by the line number. The first 'sed' inserts a
19810 # line-number line before each line; the second 'sed' does the real
19811 # work. The second script uses 'N' to pair each line-number line
19812 # with the numbered line, and appends trailing '-' during
19813 # substitution so that $LINENO is not a special case at line end.
19814 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19815 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19816 sed '=' <$as_myself |
19821 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19824 s,^['$as_cr_digits']*\n,,
19825 ' >$as_me.lineno &&
19826 chmod +x $as_me.lineno ||
19827 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19828 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19829 { (exit 1); exit 1; }; }
19831 # Don't try to exec as it changes $[0], causing all sort of problems
19832 # (the dirname of $[0] is not the place where we might find the
19833 # original and so on. Autoconf is especially sensible to this).
19835 # Exit status is that of the last command.
19840 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19841 *c*,-n*) ECHO_N= ECHO_C='
19843 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19844 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19847 if expr a : '\(a\)' >/dev/null 2>&1; then
19853 rm -f conf$$ conf$$.exe conf$$.file
19855 if ln -s conf$$.file conf$$ 2>/dev/null; then
19856 # We could just check for DJGPP; but this test a) works b) is more generic
19857 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19858 if test -f conf$$.exe; then
19859 # Don't use ln at all; we don't have any links
19864 elif ln conf$$.file conf$$ 2>/dev/null; then
19869 rm -f conf$$ conf$$.exe conf$$.file
19871 if mkdir -p . 2>/dev/null; then
19877 as_executable_p="test -f"
19879 # Sed expression to map a string onto a valid CPP name.
19880 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19882 # Sed expression to map a string onto a valid variable name.
19883 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19887 # We need space, tab and new line, in precisely that order.
19897 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19898 # report actual input values of CONFIG_FILES etc. instead of their
19899 # values after options handling. Logging --version etc. is OK.
19903 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19904 ## Running $as_me. ##
19909 This file was extended by $as_me, which was
19910 generated by GNU Autoconf 2.57. Invocation command line was
19912 CONFIG_FILES = $CONFIG_FILES
19913 CONFIG_HEADERS = $CONFIG_HEADERS
19914 CONFIG_LINKS = $CONFIG_LINKS
19915 CONFIG_COMMANDS = $CONFIG_COMMANDS
19919 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19923 # Files that config.status was made for.
19924 if test -n "$ac_config_files"; then
19925 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19928 if test -n "$ac_config_headers"; then
19929 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19932 if test -n "$ac_config_links"; then
19933 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19936 if test -n "$ac_config_commands"; then
19937 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19940 cat >>$CONFIG_STATUS <<\_ACEOF
19943 \`$as_me' instantiates files from templates according to the
19944 current configuration.
19946 Usage: $0 [OPTIONS] [FILE]...
19948 -h, --help print this help, then exit
19949 -V, --version print version number, then exit
19950 -q, --quiet do not print progress messages
19951 -d, --debug don't remove temporary files
19952 --recheck update $as_me by reconfiguring in the same conditions
19953 --file=FILE[:TEMPLATE]
19954 instantiate the configuration file FILE
19955 --header=FILE[:TEMPLATE]
19956 instantiate the configuration header FILE
19958 Configuration files:
19961 Configuration headers:
19964 Configuration commands:
19967 Report bugs to <bug-autoconf@gnu.org>."
19970 cat >>$CONFIG_STATUS <<_ACEOF
19973 configured by $0, generated by GNU Autoconf 2.57,
19974 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19976 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19977 Free Software Foundation, Inc.
19978 This config.status script is free software; the Free Software Foundation
19979 gives unlimited permission to copy, distribute and modify it."
19984 cat >>$CONFIG_STATUS <<\_ACEOF
19985 # If no file are specified by the user, then we need to provide default
19986 # value. By we need to know if files were specified by the user.
19992 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19993 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20001 *) # This is not an option, so the user has probably given explicit
20004 ac_need_defaults=false;;
20008 # Handling of the options.
20010 cat >>$CONFIG_STATUS <<\_ACEOF
20011 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20013 --version | --vers* | -V )
20014 echo "$ac_cs_version"; exit 0 ;;
20016 # Conflict between --help and --header
20017 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20018 Try \`$0 --help' for more information." >&5
20019 echo "$as_me: error: ambiguous option: $1
20020 Try \`$0 --help' for more information." >&2;}
20021 { (exit 1); exit 1; }; };;
20022 --help | --hel | -h )
20023 echo "$ac_cs_usage"; exit 0 ;;
20024 --debug | --d* | -d )
20026 --file | --fil | --fi | --f )
20028 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20029 ac_need_defaults=false;;
20030 --header | --heade | --head | --hea )
20032 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20033 ac_need_defaults=false;;
20034 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20035 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20038 # This is an error.
20039 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20040 Try \`$0 --help' for more information." >&5
20041 echo "$as_me: error: unrecognized option: $1
20042 Try \`$0 --help' for more information." >&2;}
20043 { (exit 1); exit 1; }; } ;;
20045 *) ac_config_targets="$ac_config_targets $1" ;;
20051 ac_configure_extra_args=
20053 if $ac_cs_silent; then
20055 ac_configure_extra_args="$ac_configure_extra_args --silent"
20059 cat >>$CONFIG_STATUS <<_ACEOF
20060 if \$ac_cs_recheck; then
20061 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20062 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20067 cat >>$CONFIG_STATUS <<_ACEOF
20069 # INIT-COMMANDS section.
20072 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20078 cat >>$CONFIG_STATUS <<\_ACEOF
20079 for ac_config_target in $ac_config_targets
20081 case "$ac_config_target" in
20082 # Handling of arguments.
20083 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20084 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20085 "gelfx/Makefile" ) CONFIG_FILES="$CONFIG_FILES gelfx/Makefile" ;;
20086 "gelfx32/Makefile" ) CONFIG_FILES="$CONFIG_FILES gelfx32/Makefile" ;;
20087 "gelf/Makefile" ) CONFIG_FILES="$CONFIG_FILES gelf/Makefile" ;;
20088 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
20089 "patches/Makefile" ) CONFIG_FILES="$CONFIG_FILES patches/Makefile" ;;
20090 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20091 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
20092 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20093 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20094 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20095 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20096 { (exit 1); exit 1; }; };;
20100 # If the user did not use the arguments to specify the items to instantiate,
20101 # then the envvar interface is used. Set only those that are not.
20102 # We use the long form for the default assignment because of an extremely
20103 # bizarre bug on SunOS 4.1.3.
20104 if $ac_need_defaults; then
20105 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20106 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20107 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20110 # Have a temporary directory for convenience. Make it in the build tree
20111 # simply because there is no reason to put it here, and in addition,
20112 # creating and moving files from /tmp can sometimes cause problems.
20113 # Create a temporary directory, and hook for its removal unless debugging.
20116 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20117 trap '{ (exit 1); exit 1; }' 1 2 13 15
20120 # Create a (secure) tmp directory for tmp files.
20123 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20124 test -n "$tmp" && test -d "$tmp"
20127 tmp=./confstat$$-$RANDOM
20128 (umask 077 && mkdir $tmp)
20131 echo "$me: cannot create a temporary directory in ." >&2
20132 { (exit 1); exit 1; }
20137 cat >>$CONFIG_STATUS <<_ACEOF
20140 # CONFIG_FILES section.
20143 # No need to generate the scripts if there are no CONFIG_FILES.
20144 # This happens for instance when ./config.status config.h
20145 if test -n "\$CONFIG_FILES"; then
20146 # Protect against being on the right side of a sed subst in config.status.
20147 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20148 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20149 s,@SHELL@,$SHELL,;t t
20150 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20151 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20152 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20153 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20154 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20155 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20156 s,@exec_prefix@,$exec_prefix,;t t
20157 s,@prefix@,$prefix,;t t
20158 s,@program_transform_name@,$program_transform_name,;t t
20159 s,@bindir@,$bindir,;t t
20160 s,@sbindir@,$sbindir,;t t
20161 s,@libexecdir@,$libexecdir,;t t
20162 s,@datadir@,$datadir,;t t
20163 s,@sysconfdir@,$sysconfdir,;t t
20164 s,@sharedstatedir@,$sharedstatedir,;t t
20165 s,@localstatedir@,$localstatedir,;t t
20166 s,@libdir@,$libdir,;t t
20167 s,@includedir@,$includedir,;t t
20168 s,@oldincludedir@,$oldincludedir,;t t
20169 s,@infodir@,$infodir,;t t
20170 s,@mandir@,$mandir,;t t
20171 s,@build_alias@,$build_alias,;t t
20172 s,@host_alias@,$host_alias,;t t
20173 s,@target_alias@,$target_alias,;t t
20174 s,@DEFS@,$DEFS,;t t
20175 s,@ECHO_C@,$ECHO_C,;t t
20176 s,@ECHO_N@,$ECHO_N,;t t
20177 s,@ECHO_T@,$ECHO_T,;t t
20178 s,@LIBS@,$LIBS,;t t
20179 s,@build@,$build,;t t
20180 s,@build_cpu@,$build_cpu,;t t
20181 s,@build_vendor@,$build_vendor,;t t
20182 s,@build_os@,$build_os,;t t
20183 s,@host@,$host,;t t
20184 s,@host_cpu@,$host_cpu,;t t
20185 s,@host_vendor@,$host_vendor,;t t
20186 s,@host_os@,$host_os,;t t
20187 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20188 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20189 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20190 s,@PACKAGE@,$PACKAGE,;t t
20191 s,@VERSION@,$VERSION,;t t
20192 s,@ACLOCAL@,$ACLOCAL,;t t
20193 s,@AUTOCONF@,$AUTOCONF,;t t
20194 s,@AUTOMAKE@,$AUTOMAKE,;t t
20195 s,@AUTOHEADER@,$AUTOHEADER,;t t
20196 s,@MAKEINFO@,$MAKEINFO,;t t
20197 s,@AMTAR@,$AMTAR,;t t
20198 s,@install_sh@,$install_sh,;t t
20199 s,@STRIP@,$STRIP,;t t
20200 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20201 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20203 s,@SET_MAKE@,$SET_MAKE,;t t
20205 s,@CFLAGS@,$CFLAGS,;t t
20206 s,@LDFLAGS@,$LDFLAGS,;t t
20207 s,@CPPFLAGS@,$CPPFLAGS,;t t
20208 s,@ac_ct_CC@,$ac_ct_CC,;t t
20209 s,@EXEEXT@,$EXEEXT,;t t
20210 s,@OBJEXT@,$OBJEXT,;t t
20211 s,@DEPDIR@,$DEPDIR,;t t
20212 s,@am__include@,$am__include,;t t
20213 s,@am__quote@,$am__quote,;t t
20214 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20215 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20216 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20217 s,@CCDEPMODE@,$CCDEPMODE,;t t
20219 s,@CXXFLAGS@,$CXXFLAGS,;t t
20220 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20221 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20223 s,@EGREP@,$EGREP,;t t
20224 s,@LN_S@,$LN_S,;t t
20225 s,@ECHO@,$ECHO,;t t
20227 s,@ac_ct_AR@,$ac_ct_AR,;t t
20228 s,@RANLIB@,$RANLIB,;t t
20229 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20230 s,@CXXCPP@,$CXXCPP,;t t
20232 s,@FFLAGS@,$FFLAGS,;t t
20233 s,@ac_ct_F77@,$ac_ct_F77,;t t
20234 s,@LIBTOOL@,$LIBTOOL,;t t
20235 s,@GELFINCLUDE@,$GELFINCLUDE,;t t
20236 s,@LIBGELF@,$LIBGELF,;t t
20237 s,@LIBOBJS@,$LIBOBJS,;t t
20238 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20243 cat >>$CONFIG_STATUS <<\_ACEOF
20244 # Split the substitutions into bite-sized pieces for seds with
20245 # small command number limits, like on Digital OSF/1 and HP-UX.
20246 ac_max_sed_lines=48
20247 ac_sed_frag=1 # Number of current file.
20248 ac_beg=1 # First line for current file.
20249 ac_end=$ac_max_sed_lines # Line after last line for current file.
20252 while $ac_more_lines; do
20253 if test $ac_beg -gt 1; then
20254 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20256 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20258 if test ! -s $tmp/subs.frag; then
20259 ac_more_lines=false
20261 # The purpose of the label and of the branching condition is to
20262 # speed up the sed processing (if there are no `@' at all, there
20263 # is no need to browse any of the substitutions).
20264 # These are the two extra sed commands mentioned above.
20266 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20267 if test -z "$ac_sed_cmds"; then
20268 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20270 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20272 ac_sed_frag=`expr $ac_sed_frag + 1`
20274 ac_end=`expr $ac_end + $ac_max_sed_lines`
20277 if test -z "$ac_sed_cmds"; then
20280 fi # test -n "$CONFIG_FILES"
20283 cat >>$CONFIG_STATUS <<\_ACEOF
20284 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20285 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20287 - | *:- | *:-:* ) # input from stdin
20289 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20290 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20291 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20292 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20293 * ) ac_file_in=$ac_file.in ;;
20296 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20297 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20298 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20299 X"$ac_file" : 'X\(//\)[^/]' \| \
20300 X"$ac_file" : 'X\(//\)$' \| \
20301 X"$ac_file" : 'X\(/\)' \| \
20302 . : '\(.\)' 2>/dev/null ||
20304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20305 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20306 /^X\(\/\/\)$/{ s//\1/; q; }
20307 /^X\(\/\).*/{ s//\1/; q; }
20309 { if $as_mkdir_p; then
20314 while test ! -d "$as_dir"; do
20315 as_dirs="$as_dir $as_dirs"
20316 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20317 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20318 X"$as_dir" : 'X\(//\)[^/]' \| \
20319 X"$as_dir" : 'X\(//\)$' \| \
20320 X"$as_dir" : 'X\(/\)' \| \
20321 . : '\(.\)' 2>/dev/null ||
20323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20324 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20325 /^X\(\/\/\)$/{ s//\1/; q; }
20326 /^X\(\/\).*/{ s//\1/; q; }
20329 test ! -n "$as_dirs" || mkdir $as_dirs
20330 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20331 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20332 { (exit 1); exit 1; }; }; }
20336 if test "$ac_dir" != .; then
20337 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20338 # A "../" for each directory in $ac_dir_suffix.
20339 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20341 ac_dir_suffix= ac_top_builddir=
20345 .) # No --srcdir option. We are building in place.
20347 if test -z "$ac_top_builddir"; then
20350 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20352 [\\/]* | ?:[\\/]* ) # Absolute path.
20353 ac_srcdir=$srcdir$ac_dir_suffix;
20354 ac_top_srcdir=$srcdir ;;
20355 *) # Relative path.
20356 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20357 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20359 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20361 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20362 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20363 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20364 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20368 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20369 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20372 if test x"$ac_file" != x-; then
20373 { echo "$as_me:$LINENO: creating $ac_file" >&5
20374 echo "$as_me: creating $ac_file" >&6;}
20377 # Let's still pretend it is `configure' which instantiates (i.e., don't
20378 # use $as_me), people would be surprised to read:
20379 # /* config.h. Generated by config.status. */
20380 if test x"$ac_file" = x-; then
20383 configure_input="$ac_file. "
20385 configure_input=$configure_input"Generated from `echo $ac_file_in |
20386 sed 's,.*/,,'` by configure."
20388 # First look for the input files in the build tree, otherwise in the
20390 ac_file_inputs=`IFS=:
20391 for f in $ac_file_in; do
20393 -) echo $tmp/stdin ;;
20395 # Absolute (can't be DOS-style, as IFS=:)
20396 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20397 echo "$as_me: error: cannot find input file: $f" >&2;}
20398 { (exit 1); exit 1; }; }
20401 if test -f "$f"; then
20404 elif test -f "$srcdir/$f"; then
20409 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20410 echo "$as_me: error: cannot find input file: $f" >&2;}
20411 { (exit 1); exit 1; }; }
20414 done` || { (exit 1); exit 1; }
20416 cat >>$CONFIG_STATUS <<_ACEOF
20420 cat >>$CONFIG_STATUS <<\_ACEOF
20422 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20423 s,@configure_input@,$configure_input,;t t
20424 s,@srcdir@,$ac_srcdir,;t t
20425 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20426 s,@top_srcdir@,$ac_top_srcdir,;t t
20427 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20428 s,@builddir@,$ac_builddir,;t t
20429 s,@abs_builddir@,$ac_abs_builddir,;t t
20430 s,@top_builddir@,$ac_top_builddir,;t t
20431 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20432 s,@INSTALL@,$ac_INSTALL,;t t
20433 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20435 if test x"$ac_file" != x-; then
20436 mv $tmp/out $ac_file
20444 cat >>$CONFIG_STATUS <<\_ACEOF
20447 # CONFIG_HEADER section.
20450 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20451 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20453 # ac_d sets the value in "#define NAME VALUE" lines.
20454 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20455 ac_dB='[ ].*$,\1#\2'
20458 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20459 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20460 ac_uB='$,\1#\2define\3'
20464 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20465 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20467 - | *:- | *:-:* ) # input from stdin
20469 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20470 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20471 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20472 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20473 * ) ac_file_in=$ac_file.in ;;
20476 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20477 echo "$as_me: creating $ac_file" >&6;}
20479 # First look for the input files in the build tree, otherwise in the
20481 ac_file_inputs=`IFS=:
20482 for f in $ac_file_in; do
20484 -) echo $tmp/stdin ;;
20486 # Absolute (can't be DOS-style, as IFS=:)
20487 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20488 echo "$as_me: error: cannot find input file: $f" >&2;}
20489 { (exit 1); exit 1; }; }
20492 if test -f "$f"; then
20495 elif test -f "$srcdir/$f"; then
20500 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20501 echo "$as_me: error: cannot find input file: $f" >&2;}
20502 { (exit 1); exit 1; }; }
20505 done` || { (exit 1); exit 1; }
20506 # Remove the trailing spaces.
20507 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20511 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20512 # `conftest.undefs', that substitutes the proper values into
20513 # config.h.in to produce config.h. The first handles `#define'
20514 # templates, and the second `#undef' templates.
20515 # And first: Protect against being on the right side of a sed subst in
20516 # config.status. Protect against being in an unquoted here document
20517 # in config.status.
20518 rm -f conftest.defines conftest.undefs
20519 # Using a here document instead of a string reduces the quoting nightmare.
20520 # Putting comments in sed scripts is not portable.
20522 # `end' is used to avoid that the second main sed command (meant for
20523 # 0-ary CPP macros) applies to n-ary macro definitions.
20524 # See the Autoconf documentation for `clear'.
20525 cat >confdef2sed.sed <<\_ACEOF
20530 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20532 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20535 # If some macros were called several times there might be several times
20536 # the same #defines, which is useless. Nevertheless, we may not want to
20537 # sort them, since we want the *last* AC-DEFINE to be honored.
20538 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20539 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20540 rm -f confdef2sed.sed
20542 # This sed command replaces #undef with comments. This is necessary, for
20543 # example, in the case of _POSIX_SOURCE, which is predefined and required
20544 # on some systems where configure will not decide to define it.
20545 cat >>conftest.undefs <<\_ACEOF
20546 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20549 # Break up conftest.defines because some shells have a limit on the size
20550 # of here documents, and old seds have small limits too (100 cmds).
20551 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20552 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20553 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20554 echo ' :' >>$CONFIG_STATUS
20555 rm -f conftest.tail
20556 while grep . conftest.defines >/dev/null
20558 # Write a limited-size here document to $tmp/defines.sed.
20559 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20560 # Speed up: don't consider the non `#define' lines.
20561 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20562 # Work around the forget-to-reset-the-flag bug.
20563 echo 't clr' >>$CONFIG_STATUS
20564 echo ': clr' >>$CONFIG_STATUS
20565 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20567 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20569 mv $tmp/out $tmp/in
20571 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20572 rm -f conftest.defines
20573 mv conftest.tail conftest.defines
20575 rm -f conftest.defines
20576 echo ' fi # grep' >>$CONFIG_STATUS
20577 echo >>$CONFIG_STATUS
20579 # Break up conftest.undefs because some shells have a limit on the size
20580 # of here documents, and old seds have small limits too (100 cmds).
20581 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20582 rm -f conftest.tail
20583 while grep . conftest.undefs >/dev/null
20585 # Write a limited-size here document to $tmp/undefs.sed.
20586 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20587 # Speed up: don't consider the non `#undef'
20588 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20589 # Work around the forget-to-reset-the-flag bug.
20590 echo 't clr' >>$CONFIG_STATUS
20591 echo ': clr' >>$CONFIG_STATUS
20592 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20594 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20596 mv $tmp/out $tmp/in
20598 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20599 rm -f conftest.undefs
20600 mv conftest.tail conftest.undefs
20602 rm -f conftest.undefs
20604 cat >>$CONFIG_STATUS <<\_ACEOF
20605 # Let's still pretend it is `configure' which instantiates (i.e., don't
20606 # use $as_me), people would be surprised to read:
20607 # /* config.h. Generated by config.status. */
20608 if test x"$ac_file" = x-; then
20609 echo "/* Generated by configure. */" >$tmp/config.h
20611 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20613 cat $tmp/in >>$tmp/config.h
20615 if test x"$ac_file" != x-; then
20616 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20617 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20618 echo "$as_me: $ac_file is unchanged" >&6;}
20620 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20621 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20622 X"$ac_file" : 'X\(//\)[^/]' \| \
20623 X"$ac_file" : 'X\(//\)$' \| \
20624 X"$ac_file" : 'X\(/\)' \| \
20625 . : '\(.\)' 2>/dev/null ||
20627 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20628 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20629 /^X\(\/\/\)$/{ s//\1/; q; }
20630 /^X\(\/\).*/{ s//\1/; q; }
20632 { if $as_mkdir_p; then
20637 while test ! -d "$as_dir"; do
20638 as_dirs="$as_dir $as_dirs"
20639 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20640 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20641 X"$as_dir" : 'X\(//\)[^/]' \| \
20642 X"$as_dir" : 'X\(//\)$' \| \
20643 X"$as_dir" : 'X\(/\)' \| \
20644 . : '\(.\)' 2>/dev/null ||
20646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20647 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20648 /^X\(\/\/\)$/{ s//\1/; q; }
20649 /^X\(\/\).*/{ s//\1/; q; }
20652 test ! -n "$as_dirs" || mkdir $as_dirs
20653 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20654 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20655 { (exit 1); exit 1; }; }; }
20658 mv $tmp/config.h $ac_file
20662 rm -f $tmp/config.h
20664 # Run the commands associated with the file.
20666 config.h ) # update the timestamp
20667 echo 'timestamp for config.h' >"./stamp-h1"
20672 cat >>$CONFIG_STATUS <<\_ACEOF
20675 # CONFIG_COMMANDS section.
20677 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20678 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20679 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20680 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20681 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20682 X"$ac_dest" : 'X\(//\)[^/]' \| \
20683 X"$ac_dest" : 'X\(//\)$' \| \
20684 X"$ac_dest" : 'X\(/\)' \| \
20685 . : '\(.\)' 2>/dev/null ||
20687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20688 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20689 /^X\(\/\/\)$/{ s//\1/; q; }
20690 /^X\(\/\).*/{ s//\1/; q; }
20694 if test "$ac_dir" != .; then
20695 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20696 # A "../" for each directory in $ac_dir_suffix.
20697 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20699 ac_dir_suffix= ac_top_builddir=
20703 .) # No --srcdir option. We are building in place.
20705 if test -z "$ac_top_builddir"; then
20708 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20710 [\\/]* | ?:[\\/]* ) # Absolute path.
20711 ac_srcdir=$srcdir$ac_dir_suffix;
20712 ac_top_srcdir=$srcdir ;;
20713 *) # Relative path.
20714 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20715 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20717 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20719 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20720 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20721 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20722 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20725 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20726 echo "$as_me: executing $ac_dest commands" >&6;}
20728 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20729 # Strip MF so we end up with the name of the file.
20730 mf=`echo "$mf" | sed -e 's/:.*$//'`
20731 # Check whether this is an Automake generated Makefile or not.
20732 # We used to match only the files named `Makefile.in', but
20733 # some people rename them; so instead we look at the file content.
20734 # Grep'ing the first line is not enough: some people post-process
20735 # each Makefile.in and add a new line on top of each file to say so.
20736 # So let's grep whole file.
20737 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20738 dirpart=`(dirname "$mf") 2>/dev/null ||
20739 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20740 X"$mf" : 'X\(//\)[^/]' \| \
20741 X"$mf" : 'X\(//\)$' \| \
20742 X"$mf" : 'X\(/\)' \| \
20743 . : '\(.\)' 2>/dev/null ||
20745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20746 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20747 /^X\(\/\/\)$/{ s//\1/; q; }
20748 /^X\(\/\).*/{ s//\1/; q; }
20753 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
20754 # Extract the definition of DEP_FILES from the Makefile without
20756 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
20757 test -z "$DEPDIR" && continue
20758 # When using ansi2knr, U may be empty or an underscore; expand it
20759 U=`sed -n -e '/^U = / s///p' < "$mf"`
20760 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
20761 # We invoke sed twice because it is the simplest approach to
20762 # changing $(DEPDIR) to its actual value in the expansion.
20763 for file in `sed -n -e '
20764 /^DEP_FILES = .*\\\\$/ {
20773 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
20774 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20775 # Make sure the directory exists.
20776 test -f "$dirpart/$file" && continue
20777 fdir=`(dirname "$file") 2>/dev/null ||
20778 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20779 X"$file" : 'X\(//\)[^/]' \| \
20780 X"$file" : 'X\(//\)$' \| \
20781 X"$file" : 'X\(/\)' \| \
20782 . : '\(.\)' 2>/dev/null ||
20784 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20785 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20786 /^X\(\/\/\)$/{ s//\1/; q; }
20787 /^X\(\/\).*/{ s//\1/; q; }
20789 { if $as_mkdir_p; then
20790 mkdir -p $dirpart/$fdir
20792 as_dir=$dirpart/$fdir
20794 while test ! -d "$as_dir"; do
20795 as_dirs="$as_dir $as_dirs"
20796 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20797 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20798 X"$as_dir" : 'X\(//\)[^/]' \| \
20799 X"$as_dir" : 'X\(//\)$' \| \
20800 X"$as_dir" : 'X\(/\)' \| \
20801 . : '\(.\)' 2>/dev/null ||
20803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20804 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20805 /^X\(\/\/\)$/{ s//\1/; q; }
20806 /^X\(\/\).*/{ s//\1/; q; }
20809 test ! -n "$as_dirs" || mkdir $as_dirs
20810 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20811 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20812 { (exit 1); exit 1; }; }; }
20814 # echo "creating $dirpart/$file"
20815 echo '# dummy' > "$dirpart/$file"
20823 cat >>$CONFIG_STATUS <<\_ACEOF
20825 { (exit 0); exit 0; }
20827 chmod +x $CONFIG_STATUS
20828 ac_clean_files=$ac_clean_files_save
20831 # configure is writing to config.log, and then calls config.status.
20832 # config.status does its own redirection, appending to config.log.
20833 # Unfortunately, on DOS this fails, as config.log is still kept open
20834 # by configure, so config.status won't be able to write to it; its
20835 # output is simply discarded. So we exec the FD to /dev/null,
20836 # effectively closing config.log, so it can be properly (re)opened and
20837 # appended to by config.status. When coming back to configure, we
20838 # need to make the FD available again.
20839 if test "$no_create" != yes; then
20841 ac_config_status_args=
20842 test "$silent" = yes &&
20843 ac_config_status_args="$ac_config_status_args --quiet"
20845 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20847 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20848 # would make configure fail if this is the last instruction.
20849 $ac_cs_success || { (exit 1); exit 1; }