2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libltdl 1.2.
5 # Report bugs to <bug-libtool@gnu.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
223 test -d ./-p && rmdir ./-p
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
258 if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
261 elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
272 if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291 echo_test_string="`eval $cmd`" &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
308 # So, first we look for a working echo in the user's PATH.
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
361 # maybe with a smaller string...
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377 # Oops. We lost completely, so just stick with echo.
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396 tagnames=${tagnames+${tagnames},}CXX
398 tagnames=${tagnames+${tagnames},}F77
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
416 SHELL=${CONFIG_SHELL-/bin/sh}
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete. It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
423 # Identity of this package.
424 PACKAGE_NAME='libltdl'
425 PACKAGE_TARNAME='libltdl'
426 PACKAGE_VERSION='1.2'
427 PACKAGE_STRING='libltdl 1.2'
428 PACKAGE_BUGREPORT='bug-libtool@gnu.org'
430 ac_unique_file="ltdl.c"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
435 # include <sys/types.h>
438 # include <sys/stat.h>
449 # if !STDC_HEADERS && HAVE_MEMORY_H
455 # include <strings.h>
458 # include <inttypes.h>
468 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT multi_basedir INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL LIBOBJS LTLIBOBJS'
471 # Initialize some variables set by options.
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
483 program_transform_name=s,x,x,
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521 # Accept the important Cygnus configure options, so we can diagnose typos.
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
543 cache_file=config.cache ;;
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 datadir=$ac_optarg ;;
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571 eval "enable_$ac_feature='$ac_optarg'" ;;
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
586 -help | --help | --hel | --he | -h)
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
610 -libdir | --libdir | --libdi | --libd)
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637 # Obsolete; use --without-fp.
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 sbindir=$ac_optarg ;;
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 sharedstatedir=$ac_optarg ;;
714 -site | --site | --sit)
716 -site=* | --site=* | --sit=*)
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
739 -version | --version | --versio | --versi | --vers | -V)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753 eval "with_$ac_package='$ac_optarg'" ;;
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
765 # Obsolete; use --with-x.
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
817 eval ac_val=$`echo $ac_var`
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
829 eval ac_val=$`echo $ac_var`
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858 test "$silent" = yes && exec 6>/dev/null
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
878 if test ! -r $srcdir/$ac_unique_file; then
882 ac_srcdir_defaulted=no
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929 ac_env_CXX_set=${CXX+set}
930 ac_env_CXX_value=$CXX
931 ac_cv_env_CXX_set=${CXX+set}
932 ac_cv_env_CXX_value=$CXX
933 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_env_CXXFLAGS_value=$CXXFLAGS
935 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
951 # Report the --help message.
953 if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
957 \`configure' configures libltdl 1.2 to adapt to many kinds of systems.
959 Usage: $0 [OPTION]... [VAR=VALUE]...
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE. See below for descriptions of some of the useful variables.
964 Defaults for the options are specified in brackets.
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
980 Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
991 For better control, use the options below.
993 Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1011 --program-prefix=PREFIX prepend PREFIX to installed program names
1012 --program-suffix=SUFFIX append SUFFIX to installed program names
1013 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1016 --build=BUILD configure for building on BUILD [guessed]
1017 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1021 if test -n "$ac_init_help"; then
1022 case $ac_init_help in
1023 short | recursive ) echo "Configuration of libltdl 1.2:";;
1028 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1029 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1030 --enable-maintainer-mode enable make rules and dependencies not useful
1031 (and sometimes confusing) to the casual installer
1032 --enable-multilib build many library versions (default)
1033 --disable-dependency-tracking speeds up one-time build
1034 --enable-dependency-tracking do not reject slow dependency extractors
1035 --enable-shared[=PKGS]
1036 build shared libraries [default=yes]
1037 --enable-static[=PKGS]
1038 build static libraries [default=yes]
1039 --enable-fast-install[=PKGS]
1040 optimize for fast installation [default=yes]
1041 --disable-libtool-lock avoid locking (might break parallel builds)
1042 --enable-ltdl-install install libltdl
1045 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1046 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1047 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1048 --with-pic try to use only PIC/non-PIC objects [default=use
1051 include additional configurations [automatic]
1053 Some influential environment variables:
1054 CC C compiler command
1055 CFLAGS C compiler flags
1056 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1057 nonstandard directory <lib dir>
1058 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1059 headers in a nonstandard directory <include dir>
1061 CXX C++ compiler command
1062 CXXFLAGS C++ compiler flags
1063 CXXCPP C++ preprocessor
1064 F77 Fortran 77 compiler command
1065 FFLAGS Fortran 77 compiler flags
1067 Use these variables to override the choices made by `configure' or to help
1068 it to find libraries and programs with nonstandard names/locations.
1070 Report bugs to <bug-libtool@gnu.org>.
1074 if test "$ac_init_help" = "recursive"; then
1075 # If there are subdirs, report their specific --help.
1077 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1078 test -d $ac_dir || continue
1081 if test "$ac_dir" != .; then
1082 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1083 # A "../" for each directory in $ac_dir_suffix.
1084 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1086 ac_dir_suffix= ac_top_builddir=
1090 .) # No --srcdir option. We are building in place.
1092 if test -z "$ac_top_builddir"; then
1095 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1097 [\\/]* | ?:[\\/]* ) # Absolute path.
1098 ac_srcdir=$srcdir$ac_dir_suffix;
1099 ac_top_srcdir=$srcdir ;;
1101 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1102 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1105 # Do not use `cd foo && pwd` to compute absolute paths, because
1106 # the directories may not exist.
1108 .) ac_abs_builddir="$ac_dir";;
1111 .) ac_abs_builddir=`pwd`;;
1112 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1113 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1116 case $ac_abs_builddir in
1117 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1119 case ${ac_top_builddir}. in
1120 .) ac_abs_top_builddir=$ac_abs_builddir;;
1121 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1122 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1125 case $ac_abs_builddir in
1126 .) ac_abs_srcdir=$ac_srcdir;;
1129 .) ac_abs_srcdir=$ac_abs_builddir;;
1130 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1131 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1134 case $ac_abs_builddir in
1135 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1137 case $ac_top_srcdir in
1138 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1139 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1140 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1145 # Check for guested configure; otherwise get Cygnus style configure.
1146 if test -f $ac_srcdir/configure.gnu; then
1148 $SHELL $ac_srcdir/configure.gnu --help=recursive
1149 elif test -f $ac_srcdir/configure; then
1151 $SHELL $ac_srcdir/configure --help=recursive
1152 elif test -f $ac_srcdir/configure.ac ||
1153 test -f $ac_srcdir/configure.in; then
1155 $ac_configure --help
1157 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1163 test -n "$ac_init_help" && exit 0
1164 if $ac_init_version; then
1166 libltdl configure 1.2
1167 generated by GNU Autoconf 2.59
1169 Copyright (C) 2003 Free Software Foundation, Inc.
1170 This configure script is free software; the Free Software Foundation
1171 gives unlimited permission to copy, distribute and modify it.
1177 This file contains any messages produced by compilers while
1178 running configure, to aid debugging if configure makes a mistake.
1180 It was created by libltdl $as_me 1.2, which was
1181 generated by GNU Autoconf 2.59. Invocation command line was
1192 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1193 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1194 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1195 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1196 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1198 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1199 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1201 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1202 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1203 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1204 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1205 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1206 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1207 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1215 test -z "$as_dir" && as_dir=.
1216 echo "PATH: $as_dir"
1231 # Keep a trace of the command line.
1232 # Strip out --no-create and --no-recursion so they do not pile up.
1233 # Strip out --silent because we don't want to record it for future runs.
1234 # Also quote any args containing shell meta-characters.
1235 # Make two passes to allow for proper duplicate-argument suppression.
1240 ac_must_keep_next=false
1246 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1248 | -silent | --silent | --silen | --sile | --sil)
1250 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1251 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1254 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1256 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1257 if test $ac_must_keep_next = true; then
1258 ac_must_keep_next=false # Got value, back to normal.
1261 *=* | --config-cache | -C | -disable-* | --disable-* \
1262 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1263 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1264 | -with-* | --with-* | -without-* | --without-* | --x)
1265 case "$ac_configure_args0 " in
1266 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1269 -* ) ac_must_keep_next=true ;;
1272 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1273 # Get rid of the leading space.
1279 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1280 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1282 # When interrupted or exit'd, cleanup temporary files, and complete
1283 # config.log. We remove comments because anyway the quotes in there
1284 # would cause problems or look ugly.
1285 # WARNING: Be sure not to use single quotes in there, as some shells,
1286 # such as our DU 5.0 friend, will then `close' the trap.
1287 trap 'exit_status=$?
1288 # Save into config.log some information that might help in debugging.
1293 ## ---------------- ##
1294 ## Cache variables. ##
1295 ## ---------------- ##
1298 # The following way of writing the cache mishandles newlines in values,
1301 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1304 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1305 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1309 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1316 ## ----------------- ##
1317 ## Output variables. ##
1318 ## ----------------- ##
1321 for ac_var in $ac_subst_vars
1323 eval ac_val=$`echo $ac_var`
1324 echo "$ac_var='"'"'$ac_val'"'"'"
1328 if test -n "$ac_subst_files"; then
1335 for ac_var in $ac_subst_files
1337 eval ac_val=$`echo $ac_var`
1338 echo "$ac_var='"'"'$ac_val'"'"'"
1343 if test -s confdefs.h; then
1350 sed "/^$/d" confdefs.h | sort
1353 test "$ac_signal" != 0 &&
1354 echo "$as_me: caught signal $ac_signal"
1355 echo "$as_me: exit $exit_status"
1357 rm -f core *.core &&
1358 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1361 for ac_signal in 1 2 13 15; do
1362 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1366 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1367 rm -rf conftest* confdefs.h
1368 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1371 # Predefined preprocessor variables.
1373 cat >>confdefs.h <<_ACEOF
1374 #define PACKAGE_NAME "$PACKAGE_NAME"
1378 cat >>confdefs.h <<_ACEOF
1379 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1383 cat >>confdefs.h <<_ACEOF
1384 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_STRING "$PACKAGE_STRING"
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1398 # Let the site file select an alternate cache file if it wants to.
1399 # Prefer explicitly selected file to automatically selected ones.
1400 if test -z "$CONFIG_SITE"; then
1401 if test "x$prefix" != xNONE; then
1402 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1404 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1407 for ac_site_file in $CONFIG_SITE; do
1408 if test -r "$ac_site_file"; then
1409 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1410 echo "$as_me: loading site script $ac_site_file" >&6;}
1411 sed 's/^/| /' "$ac_site_file" >&5
1416 if test -r "$cache_file"; then
1417 # Some versions of bash will fail to source /dev/null (special
1418 # files actually), so we avoid doing that.
1419 if test -f "$cache_file"; then
1420 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1421 echo "$as_me: loading cache $cache_file" >&6;}
1423 [\\/]* | ?:[\\/]* ) . $cache_file;;
1424 *) . ./$cache_file;;
1428 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1429 echo "$as_me: creating cache $cache_file" >&6;}
1433 # Check that the precious variables saved in the cache have kept the same
1435 ac_cache_corrupted=false
1436 for ac_var in `(set) 2>&1 |
1437 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1438 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1439 eval ac_new_set=\$ac_env_${ac_var}_set
1440 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1441 eval ac_new_val="\$ac_env_${ac_var}_value"
1442 case $ac_old_set,$ac_new_set in
1444 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1445 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1446 ac_cache_corrupted=: ;;
1448 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1449 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1450 ac_cache_corrupted=: ;;
1453 if test "x$ac_old_val" != "x$ac_new_val"; then
1454 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1455 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1456 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1457 echo "$as_me: former value: $ac_old_val" >&2;}
1458 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1459 echo "$as_me: current value: $ac_new_val" >&2;}
1460 ac_cache_corrupted=:
1463 # Pass precious variables to config.status.
1464 if test "$ac_new_set" = set; then
1466 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1467 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1468 *) ac_arg=$ac_var=$ac_new_val ;;
1470 case " $ac_configure_args " in
1471 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1472 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1476 if $ac_cache_corrupted; then
1477 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1478 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1479 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1480 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1481 { (exit 1); exit 1; }; }
1485 ac_cpp='$CPP $CPPFLAGS'
1486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1518 ## GCJ LOCAL: gcc tree uses maintainer mode.
1519 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1520 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1521 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1522 if test "${enable_maintainer_mode+set}" = set; then
1523 enableval="$enable_maintainer_mode"
1524 USE_MAINTAINER_MODE=$enableval
1526 USE_MAINTAINER_MODE=no
1528 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1529 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1532 if test $USE_MAINTAINER_MODE = yes; then
1533 MAINTAINER_MODE_TRUE=
1534 MAINTAINER_MODE_FALSE='#'
1536 MAINTAINER_MODE_TRUE='#'
1537 MAINTAINER_MODE_FALSE=
1540 MAINT=$MAINTAINER_MODE_TRUE
1544 # Default to --enable-multilib
1545 # Check whether --enable-multilib or --disable-multilib was given.
1546 if test "${enable_multilib+set}" = set; then
1547 enableval="$enable_multilib"
1548 case "$enableval" in
1549 yes) multilib=yes ;;
1551 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1552 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1553 { (exit 1); exit 1; }; } ;;
1559 # We may get other options which we leave undocumented:
1560 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1561 # See config-ml.in if you want the gory details.
1563 if test "$srcdir" = "."; then
1564 if test "$with_target_subdir" != "."; then
1565 multi_basedir="$srcdir/$with_multisrctop../../.."
1567 multi_basedir="$srcdir/$with_multisrctop../.."
1570 multi_basedir="$srcdir/../.."
1574 # Even if the default multilib is not a cross compilation,
1575 # it may be that some of the other multilibs are.
1576 if test $cross_compiling = no && test $multilib = yes \
1577 && test "x${with_multisubdir}" != x ; then
1578 cross_compiling=maybe
1581 ac_config_commands="$ac_config_commands default-1"
1584 ## ------------------------------- ##
1585 ## Libltdl specific configuration. ##
1586 ## ------------------------------- ##
1589 for ac_dir in . $srcdir/.; do
1590 if test -f $ac_dir/install-sh; then
1592 ac_install_sh="$ac_aux_dir/install-sh -c"
1594 elif test -f $ac_dir/install.sh; then
1596 ac_install_sh="$ac_aux_dir/install.sh -c"
1598 elif test -f $ac_dir/shtool; then
1600 ac_install_sh="$ac_aux_dir/shtool install -c"
1604 if test -z "$ac_aux_dir"; then
1605 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5
1606 echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;}
1607 { (exit 1); exit 1; }; }
1609 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1610 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1611 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1614 if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
1615 if test -f ${srcdir}/ltmain.sh; then
1616 # if libltdl is libtoolized, it is assumed to be stand-alone and
1617 # installed unless the command line overrides it (tested above)
1618 enable_ltdl_install=yes
1620 { echo "$as_me:$LINENO: WARNING: *** The top-level configure must select either" >&5
1621 echo "$as_me: WARNING: *** The top-level configure must select either" >&2;}
1622 { echo "$as_me:$LINENO: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&5
1623 echo "$as_me: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&2;}
1624 { { echo "$as_me:$LINENO: error: *** Maybe you want to --enable-ltdl-install?" >&5
1625 echo "$as_me: error: *** Maybe you want to --enable-ltdl-install?" >&2;}
1626 { (exit 1); exit 1; }; }
1631 ## ------------------------ ##
1632 ## Automake Initialisation. ##
1633 ## ------------------------ ##
1634 am__api_version="1.9"
1635 # Find a good install program. We prefer a C program (faster),
1636 # so one script is as good as another. But avoid the broken or
1637 # incompatible versions:
1638 # SysV /etc/install, /usr/sbin/install
1639 # SunOS /usr/etc/install
1640 # IRIX /sbin/install
1642 # AmigaOS /C/install, which installs bootblocks on floppy discs
1643 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1644 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1645 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1646 # OS/2's system install, which has a completely different semantic
1647 # ./install, which can be erroneously created by make from ./install.sh.
1648 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1649 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1650 if test -z "$INSTALL"; then
1651 if test "${ac_cv_path_install+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1658 test -z "$as_dir" && as_dir=.
1659 # Account for people who put trailing slashes in PATH elements.
1661 ./ | .// | /cC/* | \
1662 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1663 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1666 # OSF1 and SCO ODT 3.0 have their own names for install.
1667 # Don't use installbsd from OSF since it installs stuff as root
1669 for ac_prog in ginstall scoinst install; do
1670 for ac_exec_ext in '' $ac_executable_extensions; do
1671 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1672 if test $ac_prog = install &&
1673 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1674 # AIX install. It has an incompatible calling convention.
1676 elif test $ac_prog = install &&
1677 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1678 # program-specific install script used by HP pwplus--don't use.
1681 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1693 if test "${ac_cv_path_install+set}" = set; then
1694 INSTALL=$ac_cv_path_install
1696 # As a last resort, use the slow shell script. We don't cache a
1697 # path for INSTALL within a source directory, because that will
1698 # break other packages using the cache if that directory is
1699 # removed, or if the path is relative.
1700 INSTALL=$ac_install_sh
1703 echo "$as_me:$LINENO: result: $INSTALL" >&5
1704 echo "${ECHO_T}$INSTALL" >&6
1706 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1707 # It thinks the first close brace ends the variable substitution.
1708 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1710 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1712 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1714 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1715 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1718 echo timestamp > conftest.file
1719 # Do `set' in a subshell so we don't clobber the current shell's
1720 # arguments. Must try -L first in case configure is actually a
1721 # symlink; some systems play weird games with the mod time of symlinks
1722 # (eg FreeBSD returns the mod time of the symlink's containing
1725 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1726 if test "$*" = "X"; then
1728 set X `ls -t $srcdir/configure conftest.file`
1731 if test "$*" != "X $srcdir/configure conftest.file" \
1732 && test "$*" != "X conftest.file $srcdir/configure"; then
1734 # If neither matched, then we have a broken ls. This can happen
1735 # if, for instance, CONFIG_SHELL is bash and it inherits a
1736 # broken ls alias from the environment. This has actually
1737 # happened. Such a system could not be considered "sane".
1738 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1739 alias in your environment" >&5
1740 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1741 alias in your environment" >&2;}
1742 { (exit 1); exit 1; }; }
1745 test "$2" = conftest.file
1751 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1752 Check your system clock" >&5
1753 echo "$as_me: error: newly created file is older than distributed files!
1754 Check your system clock" >&2;}
1755 { (exit 1); exit 1; }; }
1757 echo "$as_me:$LINENO: result: yes" >&5
1758 echo "${ECHO_T}yes" >&6
1759 test "$program_prefix" != NONE &&
1760 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1761 # Use a double $ so make ignores it.
1762 test "$program_suffix" != NONE &&
1763 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1764 # Double any \ or $. echo might interpret backslashes.
1765 # By default was `s,x,x', remove it if useless.
1766 cat <<\_ACEOF >conftest.sed
1767 s/[\\$]/&&/g;s/;s,x,x,$//
1769 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1772 # expand $ac_aux_dir to an absolute path
1773 am_aux_dir=`cd $ac_aux_dir && pwd`
1775 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1776 # Use eval to expand $SHELL
1777 if eval "$MISSING --run true"; then
1778 am_missing_run="$MISSING --run "
1781 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1782 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1785 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1786 # We used to keeping the `.' as first argument, in order to
1787 # allow $(mkdir_p) to be used without argument. As in
1788 # $(mkdir_p) $(somedir)
1789 # where $(somedir) is conditionally defined. However this is wrong
1791 # 1. if the package is installed by a user who cannot write `.'
1792 # make install will fail,
1793 # 2. the above comment should most certainly read
1794 # $(mkdir_p) $(DESTDIR)$(somedir)
1795 # so it does not work when $(somedir) is undefined and
1796 # $(DESTDIR) is not.
1797 # To support the latter case, we have to write
1798 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1799 # so the `.' trick is pointless.
1800 mkdir_p='mkdir -p --'
1802 # On NextStep and OpenStep, the `mkdir' command does not
1803 # recognize any option. It will interpret all options as
1804 # directories to create, and then abort because `.' already
1806 for d in ./-p ./--version;
1808 test -d $d && rmdir $d
1810 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1811 if test -f "$ac_aux_dir/mkinstalldirs"; then
1812 mkdir_p='$(mkinstalldirs)'
1814 mkdir_p='$(install_sh) -d'
1818 for ac_prog in gawk mawk nawk awk
1820 # Extract the first word of "$ac_prog", so it can be a program name with args.
1821 set dummy $ac_prog; 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_AWK+set}" = set; then
1825 echo $ECHO_N "(cached) $ECHO_C" >&6
1827 if test -n "$AWK"; then
1828 ac_cv_prog_AWK="$AWK" # 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_AWK="$ac_prog"
1838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1847 if test -n "$AWK"; then
1848 echo "$as_me:$LINENO: result: $AWK" >&5
1849 echo "${ECHO_T}$AWK" >&6
1851 echo "$as_me:$LINENO: result: no" >&5
1852 echo "${ECHO_T}no" >&6
1855 test -n "$AWK" && break
1858 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1859 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1860 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1861 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1862 echo $ECHO_N "(cached) $ECHO_C" >&6
1864 cat >conftest.make <<\_ACEOF
1866 @echo 'ac_maketemp="$(MAKE)"'
1868 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1869 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1870 if test -n "$ac_maketemp"; then
1871 eval ac_cv_prog_make_${ac_make}_set=yes
1873 eval ac_cv_prog_make_${ac_make}_set=no
1877 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1878 echo "$as_me:$LINENO: result: yes" >&5
1879 echo "${ECHO_T}yes" >&6
1882 echo "$as_me:$LINENO: result: no" >&5
1883 echo "${ECHO_T}no" >&6
1884 SET_MAKE="MAKE=${MAKE-make}"
1887 rm -rf .tst 2>/dev/null
1888 mkdir .tst 2>/dev/null
1889 if test -d .tst; then
1894 rmdir .tst 2>/dev/null
1896 # test to see if srcdir already configured
1897 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1898 test -f $srcdir/config.status; then
1899 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1900 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1901 { (exit 1); exit 1; }; }
1904 # test whether we have cygpath
1905 if test -z "$CYGPATH_W"; then
1906 if (cygpath --version) >/dev/null 2>/dev/null; then
1907 CYGPATH_W='cygpath -w'
1914 # Define the identity of the package.
1919 # Some tools Automake needs.
1921 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1924 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1927 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1930 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1933 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1935 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1937 # Installed binaries are usually stripped using `strip' when the user
1938 # run `make install-strip'. However `strip' might not be the right
1939 # tool to use in cross-compilation environments, therefore Automake
1940 # will honor the `STRIP' environment variable to overrule this program.
1941 if test "$cross_compiling" != no; then
1942 if test -n "$ac_tool_prefix"; then
1943 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1944 set dummy ${ac_tool_prefix}strip; ac_word=$2
1945 echo "$as_me:$LINENO: checking for $ac_word" >&5
1946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1947 if test "${ac_cv_prog_STRIP+set}" = set; then
1948 echo $ECHO_N "(cached) $ECHO_C" >&6
1950 if test -n "$STRIP"; then
1951 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1957 test -z "$as_dir" && as_dir=.
1958 for ac_exec_ext in '' $ac_executable_extensions; do
1959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1960 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1969 STRIP=$ac_cv_prog_STRIP
1970 if test -n "$STRIP"; then
1971 echo "$as_me:$LINENO: result: $STRIP" >&5
1972 echo "${ECHO_T}$STRIP" >&6
1974 echo "$as_me:$LINENO: result: no" >&5
1975 echo "${ECHO_T}no" >&6
1979 if test -z "$ac_cv_prog_STRIP"; then
1981 # Extract the first word of "strip", so it can be a program name with args.
1982 set dummy strip; ac_word=$2
1983 echo "$as_me:$LINENO: checking for $ac_word" >&5
1984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1985 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1986 echo $ECHO_N "(cached) $ECHO_C" >&6
1988 if test -n "$ac_ct_STRIP"; then
1989 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995 test -z "$as_dir" && as_dir=.
1996 for ac_exec_ext in '' $ac_executable_extensions; do
1997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1998 ac_cv_prog_ac_ct_STRIP="strip"
1999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2005 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2008 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2009 if test -n "$ac_ct_STRIP"; then
2010 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2011 echo "${ECHO_T}$ac_ct_STRIP" >&6
2013 echo "$as_me:$LINENO: result: no" >&5
2014 echo "${ECHO_T}no" >&6
2019 STRIP="$ac_cv_prog_STRIP"
2023 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2025 # We need awk for the "check" target. The system "awk" is bad on
2027 # Always define AMTAR for backward compatibility.
2029 AMTAR=${AMTAR-"${am_missing_run}tar"}
2031 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2037 ac_config_headers="$ac_config_headers config.h:config-h.in"
2041 ## ------------------ ##
2042 ## C compiler checks. ##
2043 ## ------------------ ##
2045 ac_cpp='$CPP $CPPFLAGS'
2046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2049 if test -n "$ac_tool_prefix"; then
2050 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2051 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2052 echo "$as_me:$LINENO: checking for $ac_word" >&5
2053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2054 if test "${ac_cv_prog_CC+set}" = set; then
2055 echo $ECHO_N "(cached) $ECHO_C" >&6
2057 if test -n "$CC"; then
2058 ac_cv_prog_CC="$CC" # Let the user override the test.
2060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2064 test -z "$as_dir" && as_dir=.
2065 for ac_exec_ext in '' $ac_executable_extensions; do
2066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2067 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2077 if test -n "$CC"; then
2078 echo "$as_me:$LINENO: result: $CC" >&5
2079 echo "${ECHO_T}$CC" >&6
2081 echo "$as_me:$LINENO: result: no" >&5
2082 echo "${ECHO_T}no" >&6
2086 if test -z "$ac_cv_prog_CC"; then
2088 # Extract the first word of "gcc", so it can be a program name with args.
2089 set dummy gcc; ac_word=$2
2090 echo "$as_me:$LINENO: checking for $ac_word" >&5
2091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2092 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2093 echo $ECHO_N "(cached) $ECHO_C" >&6
2095 if test -n "$ac_ct_CC"; then
2096 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2102 test -z "$as_dir" && as_dir=.
2103 for ac_exec_ext in '' $ac_executable_extensions; do
2104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2105 ac_cv_prog_ac_ct_CC="gcc"
2106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2114 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2115 if test -n "$ac_ct_CC"; then
2116 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2117 echo "${ECHO_T}$ac_ct_CC" >&6
2119 echo "$as_me:$LINENO: result: no" >&5
2120 echo "${ECHO_T}no" >&6
2128 if test -z "$CC"; then
2129 if test -n "$ac_tool_prefix"; then
2130 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2131 set dummy ${ac_tool_prefix}cc; ac_word=$2
2132 echo "$as_me:$LINENO: checking for $ac_word" >&5
2133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2134 if test "${ac_cv_prog_CC+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 if test -n "$CC"; then
2138 ac_cv_prog_CC="$CC" # Let the user override the test.
2140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144 test -z "$as_dir" && as_dir=.
2145 for ac_exec_ext in '' $ac_executable_extensions; do
2146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2147 ac_cv_prog_CC="${ac_tool_prefix}cc"
2148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2157 if test -n "$CC"; then
2158 echo "$as_me:$LINENO: result: $CC" >&5
2159 echo "${ECHO_T}$CC" >&6
2161 echo "$as_me:$LINENO: result: no" >&5
2162 echo "${ECHO_T}no" >&6
2166 if test -z "$ac_cv_prog_CC"; then
2168 # Extract the first word of "cc", so it can be a program name with args.
2169 set dummy cc; ac_word=$2
2170 echo "$as_me:$LINENO: checking for $ac_word" >&5
2171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2172 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2173 echo $ECHO_N "(cached) $ECHO_C" >&6
2175 if test -n "$ac_ct_CC"; then
2176 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2182 test -z "$as_dir" && as_dir=.
2183 for ac_exec_ext in '' $ac_executable_extensions; do
2184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2185 ac_cv_prog_ac_ct_CC="cc"
2186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2194 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2195 if test -n "$ac_ct_CC"; then
2196 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2197 echo "${ECHO_T}$ac_ct_CC" >&6
2199 echo "$as_me:$LINENO: result: no" >&5
2200 echo "${ECHO_T}no" >&6
2209 if test -z "$CC"; then
2210 # Extract the first word of "cc", so it can be a program name with args.
2211 set dummy cc; ac_word=$2
2212 echo "$as_me:$LINENO: checking for $ac_word" >&5
2213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2214 if test "${ac_cv_prog_CC+set}" = set; then
2215 echo $ECHO_N "(cached) $ECHO_C" >&6
2217 if test -n "$CC"; then
2218 ac_cv_prog_CC="$CC" # Let the user override the test.
2221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225 test -z "$as_dir" && as_dir=.
2226 for ac_exec_ext in '' $ac_executable_extensions; do
2227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2228 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2229 ac_prog_rejected=yes
2233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2239 if test $ac_prog_rejected = yes; then
2240 # We found a bogon in the path, so make sure we never use it.
2241 set dummy $ac_cv_prog_CC
2243 if test $# != 0; then
2244 # We chose a different compiler from the bogus one.
2245 # However, it has the same basename, so the bogon will be chosen
2246 # first if we set CC to just the basename; use the full file name.
2248 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2254 if test -n "$CC"; then
2255 echo "$as_me:$LINENO: result: $CC" >&5
2256 echo "${ECHO_T}$CC" >&6
2258 echo "$as_me:$LINENO: result: no" >&5
2259 echo "${ECHO_T}no" >&6
2263 if test -z "$CC"; then
2264 if test -n "$ac_tool_prefix"; then
2267 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2268 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2269 echo "$as_me:$LINENO: checking for $ac_word" >&5
2270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2271 if test "${ac_cv_prog_CC+set}" = set; then
2272 echo $ECHO_N "(cached) $ECHO_C" >&6
2274 if test -n "$CC"; then
2275 ac_cv_prog_CC="$CC" # Let the user override the test.
2277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281 test -z "$as_dir" && as_dir=.
2282 for ac_exec_ext in '' $ac_executable_extensions; do
2283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2284 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2294 if test -n "$CC"; then
2295 echo "$as_me:$LINENO: result: $CC" >&5
2296 echo "${ECHO_T}$CC" >&6
2298 echo "$as_me:$LINENO: result: no" >&5
2299 echo "${ECHO_T}no" >&6
2302 test -n "$CC" && break
2305 if test -z "$CC"; then
2309 # Extract the first word of "$ac_prog", so it can be a program name with args.
2310 set dummy $ac_prog; ac_word=$2
2311 echo "$as_me:$LINENO: checking for $ac_word" >&5
2312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2313 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2314 echo $ECHO_N "(cached) $ECHO_C" >&6
2316 if test -n "$ac_ct_CC"; then
2317 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2323 test -z "$as_dir" && as_dir=.
2324 for ac_exec_ext in '' $ac_executable_extensions; do
2325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2326 ac_cv_prog_ac_ct_CC="$ac_prog"
2327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2335 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2336 if test -n "$ac_ct_CC"; then
2337 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2338 echo "${ECHO_T}$ac_ct_CC" >&6
2340 echo "$as_me:$LINENO: result: no" >&5
2341 echo "${ECHO_T}no" >&6
2344 test -n "$ac_ct_CC" && break
2353 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2354 See \`config.log' for more details." >&5
2355 echo "$as_me: error: no acceptable C compiler found in \$PATH
2356 See \`config.log' for more details." >&2;}
2357 { (exit 1); exit 1; }; }
2359 # Provide some information about the compiler.
2360 echo "$as_me:$LINENO:" \
2361 "checking for C compiler version" >&5
2362 ac_compiler=`set X $ac_compile; echo $2`
2363 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2364 (eval $ac_compiler --version </dev/null >&5) 2>&5
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); }
2368 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2369 (eval $ac_compiler -v </dev/null >&5) 2>&5
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }
2373 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2374 (eval $ac_compiler -V </dev/null >&5) 2>&5
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); }
2379 cat >conftest.$ac_ext <<_ACEOF
2382 cat confdefs.h >>conftest.$ac_ext
2383 cat >>conftest.$ac_ext <<_ACEOF
2384 /* end confdefs.h. */
2394 ac_clean_files_save=$ac_clean_files
2395 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2396 # Try to create an executable without -o first, disregard a.out.
2397 # It will help us diagnose broken compilers, and finding out an intuition
2399 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2400 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2401 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2402 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2403 (eval $ac_link_default) 2>&5
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }; then
2407 # Find the output, starting from the most likely. This scheme is
2408 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2411 # Be careful to initialize this variable, since it used to be cached.
2412 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2414 # b.out is created by i960 compilers.
2415 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2417 test -f "$ac_file" || continue
2419 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2422 # This is the source file.
2425 # We found the default executable, but exeext='' is most
2429 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2430 # FIXME: I believe we export ac_cv_exeext for Libtool,
2431 # but it would be cool to find out if it's true. Does anybody
2432 # maintain Libtool? --akim.
2440 echo "$as_me: failed program was:" >&5
2441 sed 's/^/| /' conftest.$ac_ext >&5
2443 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2444 See \`config.log' for more details." >&5
2445 echo "$as_me: error: C compiler cannot create executables
2446 See \`config.log' for more details." >&2;}
2447 { (exit 77); exit 77; }; }
2450 ac_exeext=$ac_cv_exeext
2451 echo "$as_me:$LINENO: result: $ac_file" >&5
2452 echo "${ECHO_T}$ac_file" >&6
2454 # Check the compiler produces executables we can run. If not, either
2455 # the compiler is broken, or we cross compile.
2456 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2457 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2458 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2459 # If not cross compiling, check that we can run a simple program.
2460 if test "$cross_compiling" != yes; then
2461 if { ac_try='./$ac_file'
2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; }; then
2469 if test "$cross_compiling" = maybe; then
2472 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2473 If you meant to cross compile, use \`--host'.
2474 See \`config.log' for more details." >&5
2475 echo "$as_me: error: cannot run C compiled programs.
2476 If you meant to cross compile, use \`--host'.
2477 See \`config.log' for more details." >&2;}
2478 { (exit 1); exit 1; }; }
2482 echo "$as_me:$LINENO: result: yes" >&5
2483 echo "${ECHO_T}yes" >&6
2485 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2486 ac_clean_files=$ac_clean_files_save
2487 # Check the compiler produces executables we can run. If not, either
2488 # the compiler is broken, or we cross compile.
2489 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2490 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2491 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2492 echo "${ECHO_T}$cross_compiling" >&6
2494 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2495 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2497 (eval $ac_link) 2>&5
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); }; then
2501 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2502 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2503 # work properly (i.e., refer to `conftest.exe'), while it won't with
2505 for ac_file in conftest.exe conftest conftest.*; do
2506 test -f "$ac_file" || continue
2508 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2509 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2516 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2517 See \`config.log' for more details." >&5
2518 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2519 See \`config.log' for more details." >&2;}
2520 { (exit 1); exit 1; }; }
2523 rm -f conftest$ac_cv_exeext
2524 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2525 echo "${ECHO_T}$ac_cv_exeext" >&6
2527 rm -f conftest.$ac_ext
2528 EXEEXT=$ac_cv_exeext
2530 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2531 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2532 if test "${ac_cv_objext+set}" = set; then
2533 echo $ECHO_N "(cached) $ECHO_C" >&6
2535 cat >conftest.$ac_ext <<_ACEOF
2538 cat confdefs.h >>conftest.$ac_ext
2539 cat >>conftest.$ac_ext <<_ACEOF
2540 /* end confdefs.h. */
2550 rm -f conftest.o conftest.obj
2551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2552 (eval $ac_compile) 2>&5
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); }; then
2556 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2558 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2559 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2564 echo "$as_me: failed program was:" >&5
2565 sed 's/^/| /' conftest.$ac_ext >&5
2567 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2568 See \`config.log' for more details." >&5
2569 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2570 See \`config.log' for more details." >&2;}
2571 { (exit 1); exit 1; }; }
2574 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2576 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2577 echo "${ECHO_T}$ac_cv_objext" >&6
2578 OBJEXT=$ac_cv_objext
2580 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2581 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2582 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2583 echo $ECHO_N "(cached) $ECHO_C" >&6
2585 cat >conftest.$ac_ext <<_ACEOF
2588 cat confdefs.h >>conftest.$ac_ext
2589 cat >>conftest.$ac_ext <<_ACEOF
2590 /* end confdefs.h. */
2603 rm -f conftest.$ac_objext
2604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2605 (eval $ac_compile) 2>conftest.er1
2607 grep -v '^ *+' conftest.er1 >conftest.err
2609 cat conftest.err >&5
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); } &&
2612 { ac_try='test -z "$ac_c_werror_flag"
2613 || test ! -s conftest.err'
2614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); }; } &&
2619 { ac_try='test -s conftest.$ac_objext'
2620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }; }; then
2627 echo "$as_me: failed program was:" >&5
2628 sed 's/^/| /' conftest.$ac_ext >&5
2632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2633 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2636 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2637 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2638 GCC=`test $ac_compiler_gnu = yes && echo yes`
2639 ac_test_CFLAGS=${CFLAGS+set}
2640 ac_save_CFLAGS=$CFLAGS
2642 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2643 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2644 if test "${ac_cv_prog_cc_g+set}" = set; then
2645 echo $ECHO_N "(cached) $ECHO_C" >&6
2647 cat >conftest.$ac_ext <<_ACEOF
2650 cat confdefs.h >>conftest.$ac_ext
2651 cat >>conftest.$ac_ext <<_ACEOF
2652 /* end confdefs.h. */
2662 rm -f conftest.$ac_objext
2663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2664 (eval $ac_compile) 2>conftest.er1
2666 grep -v '^ *+' conftest.er1 >conftest.err
2668 cat conftest.err >&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); } &&
2671 { ac_try='test -z "$ac_c_werror_flag"
2672 || test ! -s conftest.err'
2673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); }; } &&
2678 { ac_try='test -s conftest.$ac_objext'
2679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); }; }; then
2686 echo "$as_me: failed program was:" >&5
2687 sed 's/^/| /' conftest.$ac_ext >&5
2691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2693 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2694 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2695 if test "$ac_test_CFLAGS" = set; then
2696 CFLAGS=$ac_save_CFLAGS
2697 elif test $ac_cv_prog_cc_g = yes; then
2698 if test "$GCC" = yes; then
2704 if test "$GCC" = yes; then
2710 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2711 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2712 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2713 echo $ECHO_N "(cached) $ECHO_C" >&6
2715 ac_cv_prog_cc_stdc=no
2717 cat >conftest.$ac_ext <<_ACEOF
2720 cat confdefs.h >>conftest.$ac_ext
2721 cat >>conftest.$ac_ext <<_ACEOF
2722 /* end confdefs.h. */
2725 #include <sys/types.h>
2726 #include <sys/stat.h>
2727 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2728 struct buf { int x; };
2729 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2730 static char *e (p, i)
2736 static char *f (char * (*g) (char **, int), char **p, ...)
2741 s = g (p, va_arg (v,int));
2746 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2747 function prototypes and stuff, but not '\xHH' hex character constants.
2748 These don't provoke an error unfortunately, instead are silently treated
2749 as 'x'. The following induces an error, until -std1 is added to get
2750 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2751 array size at least. It's necessary to write '\x00'==0 to get something
2752 that's true only with -std1. */
2753 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2755 int test (int i, double x);
2756 struct s1 {int (*f) (int a);};
2757 struct s2 {int (*f) (double a);};
2758 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2764 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2769 # Don't try gcc -ansi; that turns off useful extensions and
2770 # breaks some systems' header files.
2771 # AIX -qlanglvl=ansi
2772 # Ultrix and OSF/1 -std1
2773 # HP-UX 10.20 and later -Ae
2774 # HP-UX older versions -Aa -D_HPUX_SOURCE
2775 # SVR4 -Xc -D__EXTENSIONS__
2776 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2778 CC="$ac_save_CC $ac_arg"
2779 rm -f conftest.$ac_objext
2780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2781 (eval $ac_compile) 2>conftest.er1
2783 grep -v '^ *+' conftest.er1 >conftest.err
2785 cat conftest.err >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } &&
2788 { ac_try='test -z "$ac_c_werror_flag"
2789 || test ! -s conftest.err'
2790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; } &&
2795 { ac_try='test -s conftest.$ac_objext'
2796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }; }; then
2801 ac_cv_prog_cc_stdc=$ac_arg
2804 echo "$as_me: failed program was:" >&5
2805 sed 's/^/| /' conftest.$ac_ext >&5
2808 rm -f conftest.err conftest.$ac_objext
2810 rm -f conftest.$ac_ext conftest.$ac_objext
2815 case "x$ac_cv_prog_cc_stdc" in
2817 echo "$as_me:$LINENO: result: none needed" >&5
2818 echo "${ECHO_T}none needed" >&6 ;;
2820 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2821 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2822 CC="$CC $ac_cv_prog_cc_stdc" ;;
2825 # Some people use a C++ compiler to compile C. Since we use `exit',
2826 # in C++ we need to declare it. In case someone uses the same compiler
2827 # for both compiling C and C++ we need to have the C++ compiler decide
2828 # the declaration of exit, since it's the most demanding environment.
2829 cat >conftest.$ac_ext <<_ACEOF
2834 rm -f conftest.$ac_objext
2835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2836 (eval $ac_compile) 2>conftest.er1
2838 grep -v '^ *+' conftest.er1 >conftest.err
2840 cat conftest.err >&5
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); } &&
2843 { ac_try='test -z "$ac_c_werror_flag"
2844 || test ! -s conftest.err'
2845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); }; } &&
2850 { ac_try='test -s conftest.$ac_objext'
2851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); }; }; then
2856 for ac_declaration in \
2858 'extern "C" void std::exit (int) throw (); using std::exit;' \
2859 'extern "C" void std::exit (int); using std::exit;' \
2860 'extern "C" void exit (int) throw ();' \
2861 'extern "C" void exit (int);' \
2864 cat >conftest.$ac_ext <<_ACEOF
2867 cat confdefs.h >>conftest.$ac_ext
2868 cat >>conftest.$ac_ext <<_ACEOF
2869 /* end confdefs.h. */
2880 rm -f conftest.$ac_objext
2881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2882 (eval $ac_compile) 2>conftest.er1
2884 grep -v '^ *+' conftest.er1 >conftest.err
2886 cat conftest.err >&5
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); } &&
2889 { ac_try='test -z "$ac_c_werror_flag"
2890 || test ! -s conftest.err'
2891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }; } &&
2896 { ac_try='test -s conftest.$ac_objext'
2897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }; }; then
2904 echo "$as_me: failed program was:" >&5
2905 sed 's/^/| /' conftest.$ac_ext >&5
2909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2910 cat >conftest.$ac_ext <<_ACEOF
2913 cat confdefs.h >>conftest.$ac_ext
2914 cat >>conftest.$ac_ext <<_ACEOF
2915 /* end confdefs.h. */
2925 rm -f conftest.$ac_objext
2926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2927 (eval $ac_compile) 2>conftest.er1
2929 grep -v '^ *+' conftest.er1 >conftest.err
2931 cat conftest.err >&5
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); } &&
2934 { ac_try='test -z "$ac_c_werror_flag"
2935 || test ! -s conftest.err'
2936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); }; } &&
2941 { ac_try='test -s conftest.$ac_objext'
2942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }; }; then
2949 echo "$as_me: failed program was:" >&5
2950 sed 's/^/| /' conftest.$ac_ext >&5
2953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2956 if test -n "$ac_declaration"; then
2957 echo '#ifdef __cplusplus' >>confdefs.h
2958 echo $ac_declaration >>confdefs.h
2959 echo '#endif' >>confdefs.h
2963 echo "$as_me: failed program was:" >&5
2964 sed 's/^/| /' conftest.$ac_ext >&5
2967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2969 ac_cpp='$CPP $CPPFLAGS'
2970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2973 DEPDIR="${am__leading_dot}deps"
2975 ac_config_commands="$ac_config_commands depfiles"
2978 am_make=${MAKE-make}
2979 cat > confinc << 'END'
2984 # If we don't find an include directive, just comment out the code.
2985 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2986 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2990 # First try GNU make style include.
2991 echo "include confinc" > confmf
2992 # We grep out `Entering directory' and `Leaving directory'
2993 # messages which can occur if `w' ends up in MAKEFLAGS.
2994 # In particular we don't look at `^make:' because GNU make might
2995 # be invoked under some other name (usually "gmake"), in which
2996 # case it prints its new name instead of `make'.
2997 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3002 # Now try BSD make style include.
3003 if test "$am__include" = "#"; then
3004 echo '.include "confinc"' > confmf
3005 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3006 am__include=.include
3013 echo "$as_me:$LINENO: result: $_am_result" >&5
3014 echo "${ECHO_T}$_am_result" >&6
3015 rm -f confinc confmf
3017 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3018 if test "${enable_dependency_tracking+set}" = set; then
3019 enableval="$enable_dependency_tracking"
3022 if test "x$enable_dependency_tracking" != xno; then
3023 am_depcomp="$ac_aux_dir/depcomp"
3028 if test "x$enable_dependency_tracking" != xno; then
3039 depcc="$CC" am_compiler_list=
3041 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3042 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3043 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3044 echo $ECHO_N "(cached) $ECHO_C" >&6
3046 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3047 # We make a subdir and do the tests there. Otherwise we can end up
3048 # making bogus files that we don't know about and never remove. For
3049 # instance it was reported that on HP-UX the gcc test will end up
3050 # making a dummy file named `D' -- because `-MD' means `put the output
3053 # Copy depcomp to subdir because otherwise we won't find it if we're
3054 # using a relative directory.
3055 cp "$am_depcomp" conftest.dir
3057 # We will build objects and dependencies in a subdirectory because
3058 # it helps to detect inapplicable dependency modes. For instance
3059 # both Tru64's cc and ICC support -MD to output dependencies as a
3060 # side effect of compilation, but ICC will put the dependencies in
3061 # the current directory while Tru64 will put them in the object
3065 am_cv_CC_dependencies_compiler_type=none
3066 if test "$am_compiler_list" = ""; then
3067 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3069 for depmode in $am_compiler_list; do
3070 # Setup a source with many dependencies, because some compilers
3071 # like to wrap large dependency lists on column 80 (with \), and
3072 # we should not choose a depcomp mode which is confused by this.
3074 # We need to recreate these files for each test, as the compiler may
3075 # overwrite some of them when testing with obscure command lines.
3076 # This happens at least with the AIX C compiler.
3078 for i in 1 2 3 4 5 6; do
3079 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3080 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3081 # Solaris 8's {/usr,}/bin/sh.
3082 touch sub/conftst$i.h
3084 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3088 # after this tag, mechanisms are not by side-effect, so they'll
3089 # only be used when explicitly requested
3090 if test "x$enable_dependency_tracking" = xyes; then
3098 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3099 # mode. It turns out that the SunPro C++ compiler does not properly
3100 # handle `-M -o', and we need to detect this.
3101 if depmode=$depmode \
3102 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3103 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3104 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3105 >/dev/null 2>conftest.err &&
3106 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3107 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3108 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3109 # icc doesn't choke on unknown options, it will just issue warnings
3110 # or remarks (even with -Werror). So we grep stderr for any message
3111 # that says an option was ignored or not supported.
3112 # When given -MP, icc 7.0 and 7.1 complain thusly:
3113 # icc: Command line warning: ignoring option '-M'; no argument required
3114 # The diagnosis changed in icc 8.0:
3115 # icc: Command line remark: option '-MP' not supported
3116 if (grep 'ignoring option' conftest.err ||
3117 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3118 am_cv_CC_dependencies_compiler_type=$depmode
3127 am_cv_CC_dependencies_compiler_type=none
3131 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3132 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3133 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3138 test "x$enable_dependency_tracking" != xno \
3139 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3141 am__fastdepCC_FALSE='#'
3143 am__fastdepCC_TRUE='#'
3144 am__fastdepCC_FALSE=
3149 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3150 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3151 if test "${ac_cv_c_const+set}" = set; then
3152 echo $ECHO_N "(cached) $ECHO_C" >&6
3154 cat >conftest.$ac_ext <<_ACEOF
3157 cat confdefs.h >>conftest.$ac_ext
3158 cat >>conftest.$ac_ext <<_ACEOF
3159 /* end confdefs.h. */
3164 /* FIXME: Include the comments suggested by Paul. */
3166 /* Ultrix mips cc rejects this. */
3167 typedef int charset[2];
3169 /* SunOS 4.1.1 cc rejects this. */
3170 char const *const *ccp;
3172 /* NEC SVR4.0.2 mips cc rejects this. */
3173 struct point {int x, y;};
3174 static struct point const zero = {0,0};
3175 /* AIX XL C 1.02.0.0 rejects this.
3176 It does not let you subtract one const X* pointer from another in
3177 an arm of an if-expression whose if-part is not a constant
3179 const char *g = "string";
3180 ccp = &g + (g ? g-g : 0);
3181 /* HPUX 7.0 cc rejects these. */
3184 ccp = (char const *const *) p;
3185 { /* SCO 3.2v4 cc rejects this. */
3187 char const *s = 0 ? (char *) 0 : (char const *) 0;
3191 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3193 const int *foo = &x[0];
3196 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3197 typedef const int *iptr;
3201 { /* AIX XL C 1.02.0.0 rejects this saying
3202 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3203 struct s { int j; const int *ap[3]; };
3204 struct s *b; b->j = 5;
3206 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3215 rm -f conftest.$ac_objext
3216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3217 (eval $ac_compile) 2>conftest.er1
3219 grep -v '^ *+' conftest.er1 >conftest.err
3221 cat conftest.err >&5
3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223 (exit $ac_status); } &&
3224 { ac_try='test -z "$ac_c_werror_flag"
3225 || test ! -s conftest.err'
3226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }; } &&
3231 { ac_try='test -s conftest.$ac_objext'
3232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); }; }; then
3239 echo "$as_me: failed program was:" >&5
3240 sed 's/^/| /' conftest.$ac_ext >&5
3244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3246 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3247 echo "${ECHO_T}$ac_cv_c_const" >&6
3248 if test $ac_cv_c_const = no; then
3250 cat >>confdefs.h <<\_ACEOF
3256 echo "$as_me:$LINENO: checking for inline" >&5
3257 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3258 if test "${ac_cv_c_inline+set}" = set; then
3259 echo $ECHO_N "(cached) $ECHO_C" >&6
3262 for ac_kw in inline __inline__ __inline; do
3263 cat >conftest.$ac_ext <<_ACEOF
3266 cat confdefs.h >>conftest.$ac_ext
3267 cat >>conftest.$ac_ext <<_ACEOF
3268 /* end confdefs.h. */
3271 static $ac_kw foo_t static_foo () {return 0; }
3272 $ac_kw foo_t foo () {return 0; }
3276 rm -f conftest.$ac_objext
3277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3278 (eval $ac_compile) 2>conftest.er1
3280 grep -v '^ *+' conftest.er1 >conftest.err
3282 cat conftest.err >&5
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); } &&
3285 { ac_try='test -z "$ac_c_werror_flag"
3286 || test ! -s conftest.err'
3287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); }; } &&
3292 { ac_try='test -s conftest.$ac_objext'
3293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); }; }; then
3298 ac_cv_c_inline=$ac_kw; break
3300 echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.$ac_ext >&5
3304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3308 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3309 echo "${ECHO_T}$ac_cv_c_inline" >&6
3312 case $ac_cv_c_inline in
3315 case $ac_cv_c_inline in
3317 *) ac_val=$ac_cv_c_inline;;
3319 cat >>confdefs.h <<_ACEOF
3321 #define inline $ac_val
3329 ## ----------------------- ##
3330 ## Libtool initialisation. ##
3331 ## ----------------------- ##
3334 # Check whether --enable-shared or --disable-shared was given.
3335 if test "${enable_shared+set}" = set; then
3336 enableval="$enable_shared"
3337 p=${PACKAGE-default}
3339 yes) enable_shared=yes ;;
3340 no) enable_shared=no ;;
3343 # Look at the argument we got. We use all the common list separators.
3344 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3345 for pkg in $enableval; do
3347 if test "X$pkg" = "X$p"; then
3358 # Check whether --enable-static or --disable-static was given.
3359 if test "${enable_static+set}" = set; then
3360 enableval="$enable_static"
3361 p=${PACKAGE-default}
3363 yes) enable_static=yes ;;
3364 no) enable_static=no ;;
3367 # Look at the argument we got. We use all the common list separators.
3368 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3369 for pkg in $enableval; do
3371 if test "X$pkg" = "X$p"; then
3382 # Check whether --enable-fast-install or --disable-fast-install was given.
3383 if test "${enable_fast_install+set}" = set; then
3384 enableval="$enable_fast_install"
3385 p=${PACKAGE-default}
3387 yes) enable_fast_install=yes ;;
3388 no) enable_fast_install=no ;;
3390 enable_fast_install=no
3391 # Look at the argument we got. We use all the common list separators.
3392 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3393 for pkg in $enableval; do
3395 if test "X$pkg" = "X$p"; then
3396 enable_fast_install=yes
3403 enable_fast_install=yes
3406 # Make sure we can run config.sub.
3407 $ac_config_sub sun4 >/dev/null 2>&1 ||
3408 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3409 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3410 { (exit 1); exit 1; }; }
3412 echo "$as_me:$LINENO: checking build system type" >&5
3413 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3414 if test "${ac_cv_build+set}" = set; then
3415 echo $ECHO_N "(cached) $ECHO_C" >&6
3417 ac_cv_build_alias=$build_alias
3418 test -z "$ac_cv_build_alias" &&
3419 ac_cv_build_alias=`$ac_config_guess`
3420 test -z "$ac_cv_build_alias" &&
3421 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3422 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3423 { (exit 1); exit 1; }; }
3424 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3425 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3426 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3427 { (exit 1); exit 1; }; }
3430 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3431 echo "${ECHO_T}$ac_cv_build" >&6
3433 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3434 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3435 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3438 echo "$as_me:$LINENO: checking host system type" >&5
3439 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3440 if test "${ac_cv_host+set}" = set; then
3441 echo $ECHO_N "(cached) $ECHO_C" >&6
3443 ac_cv_host_alias=$host_alias
3444 test -z "$ac_cv_host_alias" &&
3445 ac_cv_host_alias=$ac_cv_build_alias
3446 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3447 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3448 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3449 { (exit 1); exit 1; }; }
3452 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3453 echo "${ECHO_T}$ac_cv_host" >&6
3455 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3456 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3457 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3460 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3461 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3462 if test "${lt_cv_path_SED+set}" = set; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3465 # Loop through the user's path and test for sed and gsed.
3466 # Then use that list of sed's as ones to test for truncation.
3467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471 test -z "$as_dir" && as_dir=.
3472 for lt_ac_prog in sed gsed; do
3473 for ac_exec_ext in '' $ac_executable_extensions; do
3474 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3475 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3482 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3483 # along with /bin/sed that truncates output.
3484 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3485 test ! -f $lt_ac_sed && continue
3486 cat /dev/null > conftest.in
3488 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3489 # Check for GNU sed and select it if it is found.
3490 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3491 lt_cv_path_SED=$lt_ac_sed
3495 cat conftest.in conftest.in >conftest.tmp
3496 mv conftest.tmp conftest.in
3497 cp conftest.in conftest.nl
3499 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3500 cmp -s conftest.out conftest.nl || break
3501 # 10000 chars as input seems more than enough
3502 test $lt_ac_count -gt 10 && break
3503 lt_ac_count=`expr $lt_ac_count + 1`
3504 if test $lt_ac_count -gt $lt_ac_max; then
3505 lt_ac_max=$lt_ac_count
3506 lt_cv_path_SED=$lt_ac_sed
3514 echo "$as_me:$LINENO: result: $SED" >&5
3515 echo "${ECHO_T}$SED" >&6
3517 echo "$as_me:$LINENO: checking for egrep" >&5
3518 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3519 if test "${ac_cv_prog_egrep+set}" = set; then
3520 echo $ECHO_N "(cached) $ECHO_C" >&6
3522 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3523 then ac_cv_prog_egrep='grep -E'
3524 else ac_cv_prog_egrep='egrep'
3527 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3528 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3529 EGREP=$ac_cv_prog_egrep
3533 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3534 if test "${with_gnu_ld+set}" = set; then
3535 withval="$with_gnu_ld"
3536 test "$withval" = no || with_gnu_ld=yes
3541 if test "$GCC" = yes; then
3542 # Check if gcc -print-prog-name=ld gives a path.
3543 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3544 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3547 # gcc leaves a trailing carriage return which upsets mingw
3548 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3550 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3553 # Accept absolute paths.
3555 re_direlt='/[^/][^/]*/\.\./'
3556 # Canonicalize the pathname of ld
3557 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3558 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3559 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3561 test -z "$LD" && LD="$ac_prog"
3564 # If it fails, then pretend we aren't using GCC.
3568 # If it is relative, then search for the first ld in PATH.
3572 elif test "$with_gnu_ld" = yes; then
3573 echo "$as_me:$LINENO: checking for GNU ld" >&5
3574 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3576 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3577 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3579 if test "${lt_cv_path_LD+set}" = set; then
3580 echo $ECHO_N "(cached) $ECHO_C" >&6
3582 if test -z "$LD"; then
3583 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3584 for ac_dir in $PATH; do
3586 test -z "$ac_dir" && ac_dir=.
3587 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3588 lt_cv_path_LD="$ac_dir/$ac_prog"
3589 # Check to see if the program is GNU ld. I'd rather use --version,
3590 # but apparently some GNU ld's only accept -v.
3591 # Break only if it was the GNU/non-GNU ld that we prefer.
3592 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3593 *GNU* | *'with BFD'*)
3594 test "$with_gnu_ld" != no && break
3597 test "$with_gnu_ld" != yes && break
3604 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3609 if test -n "$LD"; then
3610 echo "$as_me:$LINENO: result: $LD" >&5
3611 echo "${ECHO_T}$LD" >&6
3613 echo "$as_me:$LINENO: result: no" >&5
3614 echo "${ECHO_T}no" >&6
3616 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3617 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3618 { (exit 1); exit 1; }; }
3619 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3620 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3621 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3622 echo $ECHO_N "(cached) $ECHO_C" >&6
3624 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3625 case `$LD -v 2>&1 </dev/null` in
3626 *GNU* | *'with BFD'*)
3627 lt_cv_prog_gnu_ld=yes
3630 lt_cv_prog_gnu_ld=no
3634 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3635 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3636 with_gnu_ld=$lt_cv_prog_gnu_ld
3639 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3640 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3641 if test "${lt_cv_ld_reload_flag+set}" = set; then
3642 echo $ECHO_N "(cached) $ECHO_C" >&6
3644 lt_cv_ld_reload_flag='-r'
3646 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3647 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3648 reload_flag=$lt_cv_ld_reload_flag
3649 case $reload_flag in
3651 *) reload_flag=" $reload_flag" ;;
3653 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3656 if test "$GCC" = yes; then
3657 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3659 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3664 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3665 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3666 if test "${lt_cv_path_NM+set}" = set; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3669 if test -n "$NM"; then
3670 # Let the user override the test.
3673 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3674 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3676 test -z "$ac_dir" && ac_dir=.
3677 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3678 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3679 # Check to see if the nm accepts a BSD-compat flag.
3680 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3681 # nm: unknown option "B" ignored
3682 # Tru64's nm complains that /dev/null is an invalid object file
3683 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3684 */dev/null* | *'Invalid file or object type'*)
3685 lt_cv_path_NM="$tmp_nm -B"
3689 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3691 lt_cv_path_NM="$tmp_nm -p"
3695 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3696 continue # so that we can try to find one that supports BSD flags
3703 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3706 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3707 echo "${ECHO_T}$lt_cv_path_NM" >&6
3710 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3711 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3713 if test "$LN_S" = "ln -s"; then
3714 echo "$as_me:$LINENO: result: yes" >&5
3715 echo "${ECHO_T}yes" >&6
3717 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3718 echo "${ECHO_T}no, using $LN_S" >&6
3721 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3722 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3723 if test "${lt_cv_deplibs_check_method+set}" = set; then
3724 echo $ECHO_N "(cached) $ECHO_C" >&6
3726 lt_cv_file_magic_cmd='$MAGIC_CMD'
3727 lt_cv_file_magic_test_file=
3728 lt_cv_deplibs_check_method='unknown'
3729 # Need to set the preceding variable on all platforms that support
3730 # interlibrary dependencies.
3731 # 'none' -- dependencies not supported.
3732 # `unknown' -- same as none, but documents that we really don't know.
3733 # 'pass_all' -- all dependencies passed with no checks.
3734 # 'test_compile' -- check by making test program.
3735 # 'file_magic [[regex]]' -- check by looking for files in library path
3736 # which responds to the $file_magic_cmd with a given extended regex.
3737 # If you have `file' or equivalent on your system and you're not sure
3738 # whether `pass_all' will *always* work, you probably want this one.
3742 lt_cv_deplibs_check_method=pass_all
3746 lt_cv_deplibs_check_method=pass_all
3750 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3751 lt_cv_file_magic_cmd='/usr/bin/file -L'
3752 lt_cv_file_magic_test_file=/shlib/libc.so
3756 # func_win32_libid is a shell function defined in ltmain.sh
3757 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3758 lt_cv_file_magic_cmd='func_win32_libid'
3762 # Base MSYS/MinGW do not provide the 'file' command needed by
3763 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3764 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3765 lt_cv_file_magic_cmd='$OBJDUMP -f'
3768 darwin* | rhapsody*)
3769 lt_cv_deplibs_check_method=pass_all
3772 freebsd* | kfreebsd*-gnu | dragonfly*)
3773 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3776 # Not sure whether the presence of OpenBSD here was a mistake.
3777 # Let's accept both of them until this is cleared up.
3778 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3779 lt_cv_file_magic_cmd=/usr/bin/file
3780 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3784 lt_cv_deplibs_check_method=pass_all
3789 lt_cv_deplibs_check_method=pass_all
3792 hpux10.20* | hpux11*)
3793 lt_cv_file_magic_cmd=/usr/bin/file
3796 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3797 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3800 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]'
3801 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3804 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3805 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3810 irix5* | irix6* | nonstopux*)
3812 *-32|*"-32 ") libmagic=32-bit;;
3813 *-n32|*"-n32 ") libmagic=N32;;
3814 *-64|*"-64 ") libmagic=64-bit;;
3815 *) libmagic=never-match;;
3817 lt_cv_deplibs_check_method=pass_all
3820 # This must be Linux ELF.
3822 lt_cv_deplibs_check_method=pass_all
3826 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3827 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3829 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3834 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3835 lt_cv_file_magic_cmd=/usr/bin/file
3836 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3840 lt_cv_deplibs_check_method=unknown
3844 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3845 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3847 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3851 osf3* | osf4* | osf5*)
3852 lt_cv_deplibs_check_method=pass_all
3856 lt_cv_deplibs_check_method=pass_all
3860 lt_cv_deplibs_check_method=pass_all
3863 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3864 case $host_vendor in
3866 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]'
3867 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3870 lt_cv_deplibs_check_method=pass_all
3873 lt_cv_file_magic_cmd='/bin/file'
3874 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3877 lt_cv_file_magic_cmd='/bin/file'
3878 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3879 lt_cv_file_magic_test_file=/lib/libc.so
3882 lt_cv_deplibs_check_method=pass_all
3887 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3888 lt_cv_deplibs_check_method=pass_all
3893 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3894 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3895 file_magic_cmd=$lt_cv_file_magic_cmd
3896 deplibs_check_method=$lt_cv_deplibs_check_method
3897 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3902 # If no C compiler was specified, use CC.
3905 # Allow CC to be a program name with arguments.
3908 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3909 if test "${enable_libtool_lock+set}" = set; then
3910 enableval="$enable_libtool_lock"
3913 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3915 # Some flags need to be propagated to the compiler or linker for good
3919 # Find out which ABI we are using.
3920 echo 'int i;' > conftest.$ac_ext
3921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3922 (eval $ac_compile) 2>&5
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); }; then
3926 case `/usr/bin/file conftest.$ac_objext` in
3938 # Find out which ABI we are using.
3939 echo '#line 3939 "configure"' > conftest.$ac_ext
3940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3941 (eval $ac_compile) 2>&5
3943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); }; then
3945 if test "$lt_cv_prog_gnu_ld" = yes; then
3946 case `/usr/bin/file conftest.$ac_objext` in
3948 LD="${LD-ld} -melf32bsmip"
3951 LD="${LD-ld} -melf32bmipn32"
3954 LD="${LD-ld} -melf64bmip"
3958 case `/usr/bin/file conftest.$ac_objext` in
3974 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3975 # Find out which ABI we are using.
3976 echo 'int i;' > conftest.$ac_ext
3977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3978 (eval $ac_compile) 2>&5
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); }; then
3982 case "`/usr/bin/file conftest.o`" in
3986 LD="${LD-ld} -m elf_i386"
3988 ppc64-*linux*|powerpc64-*linux*)
3989 LD="${LD-ld} -m elf32ppclinux"
3992 LD="${LD-ld} -m elf_s390"
3995 LD="${LD-ld} -m elf32_sparc"
4002 LD="${LD-ld} -m elf_x86_64"
4004 ppc*-*linux*|powerpc*-*linux*)
4005 LD="${LD-ld} -m elf64ppc"
4008 LD="${LD-ld} -m elf64_s390"
4011 LD="${LD-ld} -m elf64_sparc"
4021 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4022 SAVE_CFLAGS="$CFLAGS"
4023 CFLAGS="$CFLAGS -belf"
4024 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4025 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4026 if test "${lt_cv_cc_needs_belf+set}" = set; then
4027 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 ac_cpp='$CPP $CPPFLAGS'
4031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4035 cat >conftest.$ac_ext <<_ACEOF
4038 cat confdefs.h >>conftest.$ac_ext
4039 cat >>conftest.$ac_ext <<_ACEOF
4040 /* end confdefs.h. */
4050 rm -f conftest.$ac_objext conftest$ac_exeext
4051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4052 (eval $ac_link) 2>conftest.er1
4054 grep -v '^ *+' conftest.er1 >conftest.err
4056 cat conftest.err >&5
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); } &&
4059 { ac_try='test -z "$ac_c_werror_flag"
4060 || test ! -s conftest.err'
4061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); }; } &&
4066 { ac_try='test -s conftest$ac_exeext'
4067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); }; }; then
4072 lt_cv_cc_needs_belf=yes
4074 echo "$as_me: failed program was:" >&5
4075 sed 's/^/| /' conftest.$ac_ext >&5
4077 lt_cv_cc_needs_belf=no
4079 rm -f conftest.err conftest.$ac_objext \
4080 conftest$ac_exeext conftest.$ac_ext
4082 ac_cpp='$CPP $CPPFLAGS'
4083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4088 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4089 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4090 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4091 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4092 CFLAGS="$SAVE_CFLAGS"
4095 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4096 if test -n "$ac_tool_prefix"; then
4097 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4098 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4099 echo "$as_me:$LINENO: checking for $ac_word" >&5
4100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4101 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4102 echo $ECHO_N "(cached) $ECHO_C" >&6
4104 if test -n "$DLLTOOL"; then
4105 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111 test -z "$as_dir" && as_dir=.
4112 for ac_exec_ext in '' $ac_executable_extensions; do
4113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4114 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4123 DLLTOOL=$ac_cv_prog_DLLTOOL
4124 if test -n "$DLLTOOL"; then
4125 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4126 echo "${ECHO_T}$DLLTOOL" >&6
4128 echo "$as_me:$LINENO: result: no" >&5
4129 echo "${ECHO_T}no" >&6
4133 if test -z "$ac_cv_prog_DLLTOOL"; then
4134 ac_ct_DLLTOOL=$DLLTOOL
4135 # Extract the first word of "dlltool", so it can be a program name with args.
4136 set dummy dlltool; ac_word=$2
4137 echo "$as_me:$LINENO: checking for $ac_word" >&5
4138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4139 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4140 echo $ECHO_N "(cached) $ECHO_C" >&6
4142 if test -n "$ac_ct_DLLTOOL"; then
4143 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149 test -z "$as_dir" && as_dir=.
4150 for ac_exec_ext in '' $ac_executable_extensions; do
4151 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4152 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4159 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
4162 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4163 if test -n "$ac_ct_DLLTOOL"; then
4164 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4165 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4167 echo "$as_me:$LINENO: result: no" >&5
4168 echo "${ECHO_T}no" >&6
4171 DLLTOOL=$ac_ct_DLLTOOL
4173 DLLTOOL="$ac_cv_prog_DLLTOOL"
4176 if test -n "$ac_tool_prefix"; then
4177 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4178 set dummy ${ac_tool_prefix}as; ac_word=$2
4179 echo "$as_me:$LINENO: checking for $ac_word" >&5
4180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4181 if test "${ac_cv_prog_AS+set}" = set; then
4182 echo $ECHO_N "(cached) $ECHO_C" >&6
4184 if test -n "$AS"; then
4185 ac_cv_prog_AS="$AS" # Let the user override the test.
4187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191 test -z "$as_dir" && as_dir=.
4192 for ac_exec_ext in '' $ac_executable_extensions; do
4193 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4194 ac_cv_prog_AS="${ac_tool_prefix}as"
4195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4204 if test -n "$AS"; then
4205 echo "$as_me:$LINENO: result: $AS" >&5
4206 echo "${ECHO_T}$AS" >&6
4208 echo "$as_me:$LINENO: result: no" >&5
4209 echo "${ECHO_T}no" >&6
4213 if test -z "$ac_cv_prog_AS"; then
4215 # Extract the first word of "as", so it can be a program name with args.
4216 set dummy as; ac_word=$2
4217 echo "$as_me:$LINENO: checking for $ac_word" >&5
4218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4219 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4220 echo $ECHO_N "(cached) $ECHO_C" >&6
4222 if test -n "$ac_ct_AS"; then
4223 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229 test -z "$as_dir" && as_dir=.
4230 for ac_exec_ext in '' $ac_executable_extensions; do
4231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4232 ac_cv_prog_ac_ct_AS="as"
4233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4239 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
4242 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4243 if test -n "$ac_ct_AS"; then
4244 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4245 echo "${ECHO_T}$ac_ct_AS" >&6
4247 echo "$as_me:$LINENO: result: no" >&5
4248 echo "${ECHO_T}no" >&6
4256 if test -n "$ac_tool_prefix"; then
4257 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4258 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4259 echo "$as_me:$LINENO: checking for $ac_word" >&5
4260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4261 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4264 if test -n "$OBJDUMP"; then
4265 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271 test -z "$as_dir" && as_dir=.
4272 for ac_exec_ext in '' $ac_executable_extensions; do
4273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4274 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4283 OBJDUMP=$ac_cv_prog_OBJDUMP
4284 if test -n "$OBJDUMP"; then
4285 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4286 echo "${ECHO_T}$OBJDUMP" >&6
4288 echo "$as_me:$LINENO: result: no" >&5
4289 echo "${ECHO_T}no" >&6
4293 if test -z "$ac_cv_prog_OBJDUMP"; then
4294 ac_ct_OBJDUMP=$OBJDUMP
4295 # Extract the first word of "objdump", so it can be a program name with args.
4296 set dummy objdump; ac_word=$2
4297 echo "$as_me:$LINENO: checking for $ac_word" >&5
4298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4299 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4300 echo $ECHO_N "(cached) $ECHO_C" >&6
4302 if test -n "$ac_ct_OBJDUMP"; then
4303 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4309 test -z "$as_dir" && as_dir=.
4310 for ac_exec_ext in '' $ac_executable_extensions; do
4311 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4312 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4319 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4322 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4323 if test -n "$ac_ct_OBJDUMP"; then
4324 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4325 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4327 echo "$as_me:$LINENO: result: no" >&5
4328 echo "${ECHO_T}no" >&6
4331 OBJDUMP=$ac_ct_OBJDUMP
4333 OBJDUMP="$ac_cv_prog_OBJDUMP"
4340 need_locks="$enable_libtool_lock"
4344 ac_cpp='$CPP $CPPFLAGS'
4345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4348 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4349 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4350 # On Suns, sometimes $CPP names a directory.
4351 if test -n "$CPP" && test -d "$CPP"; then
4354 if test -z "$CPP"; then
4355 if test "${ac_cv_prog_CPP+set}" = set; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
4358 # Double quotes because CPP needs to be expanded
4359 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4362 for ac_c_preproc_warn_flag in '' yes
4364 # Use a header file that comes with gcc, so configuring glibc
4365 # with a fresh cross-compiler works.
4366 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4367 # <limits.h> exists even on freestanding compilers.
4368 # On the NeXT, cc -E runs the code through the compiler's parser,
4369 # not just through cpp. "Syntax error" is here to catch this case.
4370 cat >conftest.$ac_ext <<_ACEOF
4373 cat confdefs.h >>conftest.$ac_ext
4374 cat >>conftest.$ac_ext <<_ACEOF
4375 /* end confdefs.h. */
4377 # include <limits.h>
4379 # include <assert.h>
4383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4386 grep -v '^ *+' conftest.er1 >conftest.err
4388 cat conftest.err >&5
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); } >/dev/null; then
4391 if test -s conftest.err; then
4392 ac_cpp_err=$ac_c_preproc_warn_flag
4393 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4400 if test -z "$ac_cpp_err"; then
4403 echo "$as_me: failed program was:" >&5
4404 sed 's/^/| /' conftest.$ac_ext >&5
4406 # Broken: fails on valid input.
4409 rm -f conftest.err conftest.$ac_ext
4411 # OK, works on sane cases. Now check whether non-existent headers
4412 # can be detected and how.
4413 cat >conftest.$ac_ext <<_ACEOF
4416 cat confdefs.h >>conftest.$ac_ext
4417 cat >>conftest.$ac_ext <<_ACEOF
4418 /* end confdefs.h. */
4419 #include <ac_nonexistent.h>
4421 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4422 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4424 grep -v '^ *+' conftest.er1 >conftest.err
4426 cat conftest.err >&5
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); } >/dev/null; then
4429 if test -s conftest.err; then
4430 ac_cpp_err=$ac_c_preproc_warn_flag
4431 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4438 if test -z "$ac_cpp_err"; then
4439 # Broken: success on invalid input.
4442 echo "$as_me: failed program was:" >&5
4443 sed 's/^/| /' conftest.$ac_ext >&5
4445 # Passes both tests.
4449 rm -f conftest.err conftest.$ac_ext
4452 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4453 rm -f conftest.err conftest.$ac_ext
4454 if $ac_preproc_ok; then
4466 echo "$as_me:$LINENO: result: $CPP" >&5
4467 echo "${ECHO_T}$CPP" >&6
4469 for ac_c_preproc_warn_flag in '' yes
4471 # Use a header file that comes with gcc, so configuring glibc
4472 # with a fresh cross-compiler works.
4473 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4474 # <limits.h> exists even on freestanding compilers.
4475 # On the NeXT, cc -E runs the code through the compiler's parser,
4476 # not just through cpp. "Syntax error" is here to catch this case.
4477 cat >conftest.$ac_ext <<_ACEOF
4480 cat confdefs.h >>conftest.$ac_ext
4481 cat >>conftest.$ac_ext <<_ACEOF
4482 /* end confdefs.h. */
4484 # include <limits.h>
4486 # include <assert.h>
4490 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4491 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4493 grep -v '^ *+' conftest.er1 >conftest.err
4495 cat conftest.err >&5
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); } >/dev/null; then
4498 if test -s conftest.err; then
4499 ac_cpp_err=$ac_c_preproc_warn_flag
4500 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4507 if test -z "$ac_cpp_err"; then
4510 echo "$as_me: failed program was:" >&5
4511 sed 's/^/| /' conftest.$ac_ext >&5
4513 # Broken: fails on valid input.
4516 rm -f conftest.err conftest.$ac_ext
4518 # OK, works on sane cases. Now check whether non-existent headers
4519 # can be detected and how.
4520 cat >conftest.$ac_ext <<_ACEOF
4523 cat confdefs.h >>conftest.$ac_ext
4524 cat >>conftest.$ac_ext <<_ACEOF
4525 /* end confdefs.h. */
4526 #include <ac_nonexistent.h>
4528 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4529 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4531 grep -v '^ *+' conftest.er1 >conftest.err
4533 cat conftest.err >&5
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); } >/dev/null; then
4536 if test -s conftest.err; then
4537 ac_cpp_err=$ac_c_preproc_warn_flag
4538 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4545 if test -z "$ac_cpp_err"; then
4546 # Broken: success on invalid input.
4549 echo "$as_me: failed program was:" >&5
4550 sed 's/^/| /' conftest.$ac_ext >&5
4552 # Passes both tests.
4556 rm -f conftest.err conftest.$ac_ext
4559 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4560 rm -f conftest.err conftest.$ac_ext
4561 if $ac_preproc_ok; then
4564 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4565 See \`config.log' for more details." >&5
4566 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4567 See \`config.log' for more details." >&2;}
4568 { (exit 1); exit 1; }; }
4572 ac_cpp='$CPP $CPPFLAGS'
4573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4578 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4579 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4580 if test "${ac_cv_header_stdc+set}" = set; then
4581 echo $ECHO_N "(cached) $ECHO_C" >&6
4583 cat >conftest.$ac_ext <<_ACEOF
4586 cat confdefs.h >>conftest.$ac_ext
4587 cat >>conftest.$ac_ext <<_ACEOF
4588 /* end confdefs.h. */
4602 rm -f conftest.$ac_objext
4603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4604 (eval $ac_compile) 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); } &&
4611 { ac_try='test -z "$ac_c_werror_flag"
4612 || test ! -s conftest.err'
4613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); }; } &&
4618 { ac_try='test -s conftest.$ac_objext'
4619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); }; }; then
4624 ac_cv_header_stdc=yes
4626 echo "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.$ac_ext >&5
4629 ac_cv_header_stdc=no
4631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4633 if test $ac_cv_header_stdc = yes; then
4634 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4635 cat >conftest.$ac_ext <<_ACEOF
4638 cat confdefs.h >>conftest.$ac_ext
4639 cat >>conftest.$ac_ext <<_ACEOF
4640 /* end confdefs.h. */
4644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4645 $EGREP "memchr" >/dev/null 2>&1; then
4648 ac_cv_header_stdc=no
4654 if test $ac_cv_header_stdc = yes; then
4655 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4656 cat >conftest.$ac_ext <<_ACEOF
4659 cat confdefs.h >>conftest.$ac_ext
4660 cat >>conftest.$ac_ext <<_ACEOF
4661 /* end confdefs.h. */
4665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4666 $EGREP "free" >/dev/null 2>&1; then
4669 ac_cv_header_stdc=no
4675 if test $ac_cv_header_stdc = yes; then
4676 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4677 if test "$cross_compiling" = yes; then
4680 cat >conftest.$ac_ext <<_ACEOF
4683 cat confdefs.h >>conftest.$ac_ext
4684 cat >>conftest.$ac_ext <<_ACEOF
4685 /* end confdefs.h. */
4687 #if ((' ' & 0x0FF) == 0x020)
4688 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4689 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4691 # define ISLOWER(c) \
4692 (('a' <= (c) && (c) <= 'i') \
4693 || ('j' <= (c) && (c) <= 'r') \
4694 || ('s' <= (c) && (c) <= 'z'))
4695 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4698 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4703 for (i = 0; i < 256; i++)
4704 if (XOR (islower (i), ISLOWER (i))
4705 || toupper (i) != TOUPPER (i))
4710 rm -f conftest$ac_exeext
4711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4712 (eval $ac_link) 2>&5
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }; }; then
4723 echo "$as_me: program exited with status $ac_status" >&5
4724 echo "$as_me: failed program was:" >&5
4725 sed 's/^/| /' conftest.$ac_ext >&5
4728 ac_cv_header_stdc=no
4730 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4734 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4735 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4736 if test $ac_cv_header_stdc = yes; then
4738 cat >>confdefs.h <<\_ACEOF
4739 #define STDC_HEADERS 1
4744 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4754 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4755 inttypes.h stdint.h unistd.h
4757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4758 echo "$as_me:$LINENO: checking for $ac_header" >&5
4759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4761 echo $ECHO_N "(cached) $ECHO_C" >&6
4763 cat >conftest.$ac_ext <<_ACEOF
4766 cat confdefs.h >>conftest.$ac_ext
4767 cat >>conftest.$ac_ext <<_ACEOF
4768 /* end confdefs.h. */
4769 $ac_includes_default
4771 #include <$ac_header>
4773 rm -f conftest.$ac_objext
4774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4775 (eval $ac_compile) 2>conftest.er1
4777 grep -v '^ *+' conftest.er1 >conftest.err
4779 cat conftest.err >&5
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); } &&
4782 { ac_try='test -z "$ac_c_werror_flag"
4783 || test ! -s conftest.err'
4784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); }; } &&
4789 { ac_try='test -s conftest.$ac_objext'
4790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); }; }; then
4795 eval "$as_ac_Header=yes"
4797 echo "$as_me: failed program was:" >&5
4798 sed 's/^/| /' conftest.$ac_ext >&5
4800 eval "$as_ac_Header=no"
4802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4805 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4806 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4807 cat >>confdefs.h <<_ACEOF
4808 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4817 for ac_header in dlfcn.h
4819 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4821 echo "$as_me:$LINENO: checking for $ac_header" >&5
4822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4824 echo $ECHO_N "(cached) $ECHO_C" >&6
4826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4829 # Is the header compilable?
4830 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4831 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4832 cat >conftest.$ac_ext <<_ACEOF
4835 cat confdefs.h >>conftest.$ac_ext
4836 cat >>conftest.$ac_ext <<_ACEOF
4837 /* end confdefs.h. */
4838 $ac_includes_default
4839 #include <$ac_header>
4841 rm -f conftest.$ac_objext
4842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4843 (eval $ac_compile) 2>conftest.er1
4845 grep -v '^ *+' conftest.er1 >conftest.err
4847 cat conftest.err >&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); } &&
4850 { ac_try='test -z "$ac_c_werror_flag"
4851 || test ! -s conftest.err'
4852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); }; } &&
4857 { ac_try='test -s conftest.$ac_objext'
4858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); }; }; then
4863 ac_header_compiler=yes
4865 echo "$as_me: failed program was:" >&5
4866 sed 's/^/| /' conftest.$ac_ext >&5
4868 ac_header_compiler=no
4870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4871 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4872 echo "${ECHO_T}$ac_header_compiler" >&6
4874 # Is the header present?
4875 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4876 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4877 cat >conftest.$ac_ext <<_ACEOF
4880 cat confdefs.h >>conftest.$ac_ext
4881 cat >>conftest.$ac_ext <<_ACEOF
4882 /* end confdefs.h. */
4883 #include <$ac_header>
4885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4888 grep -v '^ *+' conftest.er1 >conftest.err
4890 cat conftest.err >&5
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); } >/dev/null; then
4893 if test -s conftest.err; then
4894 ac_cpp_err=$ac_c_preproc_warn_flag
4895 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4902 if test -z "$ac_cpp_err"; then
4903 ac_header_preproc=yes
4905 echo "$as_me: failed program was:" >&5
4906 sed 's/^/| /' conftest.$ac_ext >&5
4908 ac_header_preproc=no
4910 rm -f conftest.err conftest.$ac_ext
4911 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4912 echo "${ECHO_T}$ac_header_preproc" >&6
4914 # So? What about this header?
4915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4921 ac_header_preproc=yes
4924 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4926 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4927 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4928 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4929 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4930 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4931 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4934 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4935 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4938 ## ---------------------------------- ##
4939 ## Report this to bug-libtool@gnu.org ##
4940 ## ---------------------------------- ##
4943 sed "s/^/$as_me: WARNING: /" >&2
4946 echo "$as_me:$LINENO: checking for $ac_header" >&5
4947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4949 echo $ECHO_N "(cached) $ECHO_C" >&6
4951 eval "$as_ac_Header=\$ac_header_preproc"
4953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4954 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4958 cat >>confdefs.h <<_ACEOF
4959 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4967 ac_cpp='$CXXCPP $CPPFLAGS'
4968 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4969 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4970 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4971 if test -n "$ac_tool_prefix"; then
4972 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4974 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4975 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4976 echo "$as_me:$LINENO: checking for $ac_word" >&5
4977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4978 if test "${ac_cv_prog_CXX+set}" = set; then
4979 echo $ECHO_N "(cached) $ECHO_C" >&6
4981 if test -n "$CXX"; then
4982 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988 test -z "$as_dir" && as_dir=.
4989 for ac_exec_ext in '' $ac_executable_extensions; do
4990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4991 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5001 if test -n "$CXX"; then
5002 echo "$as_me:$LINENO: result: $CXX" >&5
5003 echo "${ECHO_T}$CXX" >&6
5005 echo "$as_me:$LINENO: result: no" >&5
5006 echo "${ECHO_T}no" >&6
5009 test -n "$CXX" && break
5012 if test -z "$CXX"; then
5014 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5016 # Extract the first word of "$ac_prog", so it can be a program name with args.
5017 set dummy $ac_prog; ac_word=$2
5018 echo "$as_me:$LINENO: checking for $ac_word" >&5
5019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5020 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5021 echo $ECHO_N "(cached) $ECHO_C" >&6
5023 if test -n "$ac_ct_CXX"; then
5024 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030 test -z "$as_dir" && as_dir=.
5031 for ac_exec_ext in '' $ac_executable_extensions; do
5032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5033 ac_cv_prog_ac_ct_CXX="$ac_prog"
5034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5042 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5043 if test -n "$ac_ct_CXX"; then
5044 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5045 echo "${ECHO_T}$ac_ct_CXX" >&6
5047 echo "$as_me:$LINENO: result: no" >&5
5048 echo "${ECHO_T}no" >&6
5051 test -n "$ac_ct_CXX" && break
5053 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5059 # Provide some information about the compiler.
5060 echo "$as_me:$LINENO:" \
5061 "checking for C++ compiler version" >&5
5062 ac_compiler=`set X $ac_compile; echo $2`
5063 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5064 (eval $ac_compiler --version </dev/null >&5) 2>&5
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); }
5068 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5069 (eval $ac_compiler -v </dev/null >&5) 2>&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }
5073 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5074 (eval $ac_compiler -V </dev/null >&5) 2>&5
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); }
5079 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5080 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5081 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5082 echo $ECHO_N "(cached) $ECHO_C" >&6
5084 cat >conftest.$ac_ext <<_ACEOF
5087 cat confdefs.h >>conftest.$ac_ext
5088 cat >>conftest.$ac_ext <<_ACEOF
5089 /* end confdefs.h. */
5102 rm -f conftest.$ac_objext
5103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5104 (eval $ac_compile) 2>conftest.er1
5106 grep -v '^ *+' conftest.er1 >conftest.err
5108 cat conftest.err >&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); } &&
5111 { ac_try='test -z "$ac_cxx_werror_flag"
5112 || test ! -s conftest.err'
5113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); }; } &&
5118 { ac_try='test -s conftest.$ac_objext'
5119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); }; }; then
5126 echo "$as_me: failed program was:" >&5
5127 sed 's/^/| /' conftest.$ac_ext >&5
5131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5132 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5135 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5136 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5137 GXX=`test $ac_compiler_gnu = yes && echo yes`
5138 ac_test_CXXFLAGS=${CXXFLAGS+set}
5139 ac_save_CXXFLAGS=$CXXFLAGS
5141 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5142 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5143 if test "${ac_cv_prog_cxx_g+set}" = set; then
5144 echo $ECHO_N "(cached) $ECHO_C" >&6
5146 cat >conftest.$ac_ext <<_ACEOF
5149 cat confdefs.h >>conftest.$ac_ext
5150 cat >>conftest.$ac_ext <<_ACEOF
5151 /* end confdefs.h. */
5161 rm -f conftest.$ac_objext
5162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5163 (eval $ac_compile) 2>conftest.er1
5165 grep -v '^ *+' conftest.er1 >conftest.err
5167 cat conftest.err >&5
5168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169 (exit $ac_status); } &&
5170 { ac_try='test -z "$ac_cxx_werror_flag"
5171 || test ! -s conftest.err'
5172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); }; } &&
5177 { ac_try='test -s conftest.$ac_objext'
5178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); }; }; then
5183 ac_cv_prog_cxx_g=yes
5185 echo "$as_me: failed program was:" >&5
5186 sed 's/^/| /' conftest.$ac_ext >&5
5190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5192 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5193 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5194 if test "$ac_test_CXXFLAGS" = set; then
5195 CXXFLAGS=$ac_save_CXXFLAGS
5196 elif test $ac_cv_prog_cxx_g = yes; then
5197 if test "$GXX" = yes; then
5203 if test "$GXX" = yes; then
5209 for ac_declaration in \
5211 'extern "C" void std::exit (int) throw (); using std::exit;' \
5212 'extern "C" void std::exit (int); using std::exit;' \
5213 'extern "C" void exit (int) throw ();' \
5214 'extern "C" void exit (int);' \
5217 cat >conftest.$ac_ext <<_ACEOF
5220 cat confdefs.h >>conftest.$ac_ext
5221 cat >>conftest.$ac_ext <<_ACEOF
5222 /* end confdefs.h. */
5233 rm -f conftest.$ac_objext
5234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5235 (eval $ac_compile) 2>conftest.er1
5237 grep -v '^ *+' conftest.er1 >conftest.err
5239 cat conftest.err >&5
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); } &&
5242 { ac_try='test -z "$ac_cxx_werror_flag"
5243 || test ! -s conftest.err'
5244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); }; } &&
5249 { ac_try='test -s conftest.$ac_objext'
5250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); }; }; then
5257 echo "$as_me: failed program was:" >&5
5258 sed 's/^/| /' conftest.$ac_ext >&5
5262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5263 cat >conftest.$ac_ext <<_ACEOF
5266 cat confdefs.h >>conftest.$ac_ext
5267 cat >>conftest.$ac_ext <<_ACEOF
5268 /* end confdefs.h. */
5278 rm -f conftest.$ac_objext
5279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5280 (eval $ac_compile) 2>conftest.er1
5282 grep -v '^ *+' conftest.er1 >conftest.err
5284 cat conftest.err >&5
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); } &&
5287 { ac_try='test -z "$ac_cxx_werror_flag"
5288 || test ! -s conftest.err'
5289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); }; } &&
5294 { ac_try='test -s conftest.$ac_objext'
5295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); }; }; then
5302 echo "$as_me: failed program was:" >&5
5303 sed 's/^/| /' conftest.$ac_ext >&5
5306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5309 if test -n "$ac_declaration"; then
5310 echo '#ifdef __cplusplus' >>confdefs.h
5311 echo $ac_declaration >>confdefs.h
5312 echo '#endif' >>confdefs.h
5316 ac_cpp='$CXXCPP $CPPFLAGS'
5317 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5318 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5319 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5321 depcc="$CXX" am_compiler_list=
5323 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5324 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5325 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5326 echo $ECHO_N "(cached) $ECHO_C" >&6
5328 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5329 # We make a subdir and do the tests there. Otherwise we can end up
5330 # making bogus files that we don't know about and never remove. For
5331 # instance it was reported that on HP-UX the gcc test will end up
5332 # making a dummy file named `D' -- because `-MD' means `put the output
5335 # Copy depcomp to subdir because otherwise we won't find it if we're
5336 # using a relative directory.
5337 cp "$am_depcomp" conftest.dir
5339 # We will build objects and dependencies in a subdirectory because
5340 # it helps to detect inapplicable dependency modes. For instance
5341 # both Tru64's cc and ICC support -MD to output dependencies as a
5342 # side effect of compilation, but ICC will put the dependencies in
5343 # the current directory while Tru64 will put them in the object
5347 am_cv_CXX_dependencies_compiler_type=none
5348 if test "$am_compiler_list" = ""; then
5349 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5351 for depmode in $am_compiler_list; do
5352 # Setup a source with many dependencies, because some compilers
5353 # like to wrap large dependency lists on column 80 (with \), and
5354 # we should not choose a depcomp mode which is confused by this.
5356 # We need to recreate these files for each test, as the compiler may
5357 # overwrite some of them when testing with obscure command lines.
5358 # This happens at least with the AIX C compiler.
5360 for i in 1 2 3 4 5 6; do
5361 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5362 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5363 # Solaris 8's {/usr,}/bin/sh.
5364 touch sub/conftst$i.h
5366 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5370 # after this tag, mechanisms are not by side-effect, so they'll
5371 # only be used when explicitly requested
5372 if test "x$enable_dependency_tracking" = xyes; then
5380 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5381 # mode. It turns out that the SunPro C++ compiler does not properly
5382 # handle `-M -o', and we need to detect this.
5383 if depmode=$depmode \
5384 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5385 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5386 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5387 >/dev/null 2>conftest.err &&
5388 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5389 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5390 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5391 # icc doesn't choke on unknown options, it will just issue warnings
5392 # or remarks (even with -Werror). So we grep stderr for any message
5393 # that says an option was ignored or not supported.
5394 # When given -MP, icc 7.0 and 7.1 complain thusly:
5395 # icc: Command line warning: ignoring option '-M'; no argument required
5396 # The diagnosis changed in icc 8.0:
5397 # icc: Command line remark: option '-MP' not supported
5398 if (grep 'ignoring option' conftest.err ||
5399 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5400 am_cv_CXX_dependencies_compiler_type=$depmode
5409 am_cv_CXX_dependencies_compiler_type=none
5413 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5414 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5415 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5420 test "x$enable_dependency_tracking" != xno \
5421 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5422 am__fastdepCXX_TRUE=
5423 am__fastdepCXX_FALSE='#'
5425 am__fastdepCXX_TRUE='#'
5426 am__fastdepCXX_FALSE=
5432 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5433 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5434 (test "X$CXX" != "Xg++"))) ; then
5436 ac_cpp='$CXXCPP $CPPFLAGS'
5437 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5438 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5439 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5440 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5441 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5442 if test -z "$CXXCPP"; then
5443 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5444 echo $ECHO_N "(cached) $ECHO_C" >&6
5446 # Double quotes because CXXCPP needs to be expanded
5447 for CXXCPP in "$CXX -E" "/lib/cpp"
5450 for ac_cxx_preproc_warn_flag in '' yes
5452 # Use a header file that comes with gcc, so configuring glibc
5453 # with a fresh cross-compiler works.
5454 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5455 # <limits.h> exists even on freestanding compilers.
5456 # On the NeXT, cc -E runs the code through the compiler's parser,
5457 # not just through cpp. "Syntax error" is here to catch this case.
5458 cat >conftest.$ac_ext <<_ACEOF
5461 cat confdefs.h >>conftest.$ac_ext
5462 cat >>conftest.$ac_ext <<_ACEOF
5463 /* end confdefs.h. */
5465 # include <limits.h>
5467 # include <assert.h>
5471 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5472 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5474 grep -v '^ *+' conftest.er1 >conftest.err
5476 cat conftest.err >&5
5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478 (exit $ac_status); } >/dev/null; then
5479 if test -s conftest.err; then
5480 ac_cpp_err=$ac_cxx_preproc_warn_flag
5481 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5488 if test -z "$ac_cpp_err"; then
5491 echo "$as_me: failed program was:" >&5
5492 sed 's/^/| /' conftest.$ac_ext >&5
5494 # Broken: fails on valid input.
5497 rm -f conftest.err conftest.$ac_ext
5499 # OK, works on sane cases. Now check whether non-existent headers
5500 # can be detected and how.
5501 cat >conftest.$ac_ext <<_ACEOF
5504 cat confdefs.h >>conftest.$ac_ext
5505 cat >>conftest.$ac_ext <<_ACEOF
5506 /* end confdefs.h. */
5507 #include <ac_nonexistent.h>
5509 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5510 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5512 grep -v '^ *+' conftest.er1 >conftest.err
5514 cat conftest.err >&5
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); } >/dev/null; then
5517 if test -s conftest.err; then
5518 ac_cpp_err=$ac_cxx_preproc_warn_flag
5519 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5526 if test -z "$ac_cpp_err"; then
5527 # Broken: success on invalid input.
5530 echo "$as_me: failed program was:" >&5
5531 sed 's/^/| /' conftest.$ac_ext >&5
5533 # Passes both tests.
5537 rm -f conftest.err conftest.$ac_ext
5540 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5541 rm -f conftest.err conftest.$ac_ext
5542 if $ac_preproc_ok; then
5547 ac_cv_prog_CXXCPP=$CXXCPP
5550 CXXCPP=$ac_cv_prog_CXXCPP
5552 ac_cv_prog_CXXCPP=$CXXCPP
5554 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5555 echo "${ECHO_T}$CXXCPP" >&6
5557 for ac_cxx_preproc_warn_flag in '' yes
5559 # Use a header file that comes with gcc, so configuring glibc
5560 # with a fresh cross-compiler works.
5561 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5562 # <limits.h> exists even on freestanding compilers.
5563 # On the NeXT, cc -E runs the code through the compiler's parser,
5564 # not just through cpp. "Syntax error" is here to catch this case.
5565 cat >conftest.$ac_ext <<_ACEOF
5568 cat confdefs.h >>conftest.$ac_ext
5569 cat >>conftest.$ac_ext <<_ACEOF
5570 /* end confdefs.h. */
5572 # include <limits.h>
5574 # include <assert.h>
5578 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5579 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5581 grep -v '^ *+' conftest.er1 >conftest.err
5583 cat conftest.err >&5
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); } >/dev/null; then
5586 if test -s conftest.err; then
5587 ac_cpp_err=$ac_cxx_preproc_warn_flag
5588 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5595 if test -z "$ac_cpp_err"; then
5598 echo "$as_me: failed program was:" >&5
5599 sed 's/^/| /' conftest.$ac_ext >&5
5601 # Broken: fails on valid input.
5604 rm -f conftest.err conftest.$ac_ext
5606 # OK, works on sane cases. Now check whether non-existent headers
5607 # can be detected and how.
5608 cat >conftest.$ac_ext <<_ACEOF
5611 cat confdefs.h >>conftest.$ac_ext
5612 cat >>conftest.$ac_ext <<_ACEOF
5613 /* end confdefs.h. */
5614 #include <ac_nonexistent.h>
5616 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5617 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5619 grep -v '^ *+' conftest.er1 >conftest.err
5621 cat conftest.err >&5
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); } >/dev/null; then
5624 if test -s conftest.err; then
5625 ac_cpp_err=$ac_cxx_preproc_warn_flag
5626 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5633 if test -z "$ac_cpp_err"; then
5634 # Broken: success on invalid input.
5637 echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5640 # Passes both tests.
5644 rm -f conftest.err conftest.$ac_ext
5647 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5648 rm -f conftest.err conftest.$ac_ext
5649 if $ac_preproc_ok; then
5652 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5653 See \`config.log' for more details." >&5
5654 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5655 See \`config.log' for more details." >&2;}
5656 { (exit 1); exit 1; }; }
5660 ac_cpp='$CXXCPP $CPPFLAGS'
5661 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5662 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5663 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5669 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5670 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5671 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5672 if test -n "$ac_tool_prefix"; then
5673 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5675 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5676 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5677 echo "$as_me:$LINENO: checking for $ac_word" >&5
5678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5679 if test "${ac_cv_prog_F77+set}" = set; then
5680 echo $ECHO_N "(cached) $ECHO_C" >&6
5682 if test -n "$F77"; then
5683 ac_cv_prog_F77="$F77" # Let the user override the test.
5685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5689 test -z "$as_dir" && as_dir=.
5690 for ac_exec_ext in '' $ac_executable_extensions; do
5691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5692 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5702 if test -n "$F77"; then
5703 echo "$as_me:$LINENO: result: $F77" >&5
5704 echo "${ECHO_T}$F77" >&6
5706 echo "$as_me:$LINENO: result: no" >&5
5707 echo "${ECHO_T}no" >&6
5710 test -n "$F77" && break
5713 if test -z "$F77"; then
5715 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5717 # Extract the first word of "$ac_prog", so it can be a program name with args.
5718 set dummy $ac_prog; ac_word=$2
5719 echo "$as_me:$LINENO: checking for $ac_word" >&5
5720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5721 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5722 echo $ECHO_N "(cached) $ECHO_C" >&6
5724 if test -n "$ac_ct_F77"; then
5725 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5731 test -z "$as_dir" && as_dir=.
5732 for ac_exec_ext in '' $ac_executable_extensions; do
5733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5734 ac_cv_prog_ac_ct_F77="$ac_prog"
5735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5743 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5744 if test -n "$ac_ct_F77"; then
5745 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5746 echo "${ECHO_T}$ac_ct_F77" >&6
5748 echo "$as_me:$LINENO: result: no" >&5
5749 echo "${ECHO_T}no" >&6
5752 test -n "$ac_ct_F77" && break
5759 # Provide some information about the compiler.
5760 echo "$as_me:5760:" \
5761 "checking for Fortran 77 compiler version" >&5
5762 ac_compiler=`set X $ac_compile; echo $2`
5763 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5764 (eval $ac_compiler --version </dev/null >&5) 2>&5
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); }
5768 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5769 (eval $ac_compiler -v </dev/null >&5) 2>&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }
5773 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5774 (eval $ac_compiler -V </dev/null >&5) 2>&5
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); }
5780 # If we don't use `.F' as extension, the preprocessor is not run on the
5781 # input file. (Note that this only needs to work for GNU compilers.)
5784 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5785 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5786 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5787 echo $ECHO_N "(cached) $ECHO_C" >&6
5789 cat >conftest.$ac_ext <<_ACEOF
5797 rm -f conftest.$ac_objext
5798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5799 (eval $ac_compile) 2>conftest.er1
5801 grep -v '^ *+' conftest.er1 >conftest.err
5803 cat conftest.err >&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); } &&
5806 { ac_try='test -z "$ac_f77_werror_flag"
5807 || test ! -s conftest.err'
5808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); }; } &&
5813 { ac_try='test -s conftest.$ac_objext'
5814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); }; }; then
5821 echo "$as_me: failed program was:" >&5
5822 sed 's/^/| /' conftest.$ac_ext >&5
5826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5827 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5830 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5831 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5833 ac_test_FFLAGS=${FFLAGS+set}
5834 ac_save_FFLAGS=$FFLAGS
5836 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5837 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5838 if test "${ac_cv_prog_f77_g+set}" = set; then
5839 echo $ECHO_N "(cached) $ECHO_C" >&6
5842 cat >conftest.$ac_ext <<_ACEOF
5847 rm -f conftest.$ac_objext
5848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5849 (eval $ac_compile) 2>conftest.er1
5851 grep -v '^ *+' conftest.er1 >conftest.err
5853 cat conftest.err >&5
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); } &&
5856 { ac_try='test -z "$ac_f77_werror_flag"
5857 || test ! -s conftest.err'
5858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); }; } &&
5863 { ac_try='test -s conftest.$ac_objext'
5864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; }; then
5869 ac_cv_prog_f77_g=yes
5871 echo "$as_me: failed program was:" >&5
5872 sed 's/^/| /' conftest.$ac_ext >&5
5876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5879 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5880 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5881 if test "$ac_test_FFLAGS" = set; then
5882 FFLAGS=$ac_save_FFLAGS
5883 elif test $ac_cv_prog_f77_g = yes; then
5884 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5890 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5897 G77=`test $ac_compiler_gnu = yes && echo yes`
5899 ac_cpp='$CPP $CPPFLAGS'
5900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5906 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5908 # find the maximum length of command line arguments
5909 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5910 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5911 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5912 echo $ECHO_N "(cached) $ECHO_C" >&6
5919 # On DJGPP, this test can blow up pretty badly due to problems in libc
5920 # (any single argument exceeding 2000 bytes causes a buffer overrun
5921 # during glob expansion). Even if it were fixed, the result of this
5922 # check would be larger than it should be.
5923 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5927 # Under GNU Hurd, this test is not required because there is
5928 # no limit to the length of command line arguments.
5929 # Libtool will interpret -1 as no limit whatsoever
5930 lt_cv_sys_max_cmd_len=-1;
5934 # On Win9x/ME, this test blows up -- it succeeds, but takes
5935 # about 5 minutes as the teststring grows exponentially.
5936 # Worse, since 9x/ME are not pre-emptively multitasking,
5937 # you end up with a "frozen" computer, even though with patience
5938 # the test eventually succeeds (with a max line length of 256k).
5939 # Instead, let's just punt: use the minimum linelength reported by
5940 # all of the supported platforms: 8192 (on NT/2K/XP).
5941 lt_cv_sys_max_cmd_len=8192;
5945 # On AmigaOS with pdksh, this test takes hours, literally.
5946 # So we just punt and use a minimum line length of 8192.
5947 lt_cv_sys_max_cmd_len=8192;
5950 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5951 # This has been around since 386BSD, at least. Likely further.
5952 if test -x /sbin/sysctl; then
5953 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5954 elif test -x /usr/sbin/sysctl; then
5955 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5957 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5959 # And add a safety zone
5960 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5961 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5964 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5965 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5966 # nice to cause kernel panics so lets avoid the loop below.
5967 # First set a reasonable default.
5968 lt_cv_sys_max_cmd_len=16384
5970 if test -x /sbin/sysconfig; then
5971 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5972 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5977 # If test is not a shell built-in, we'll probably end up computing a
5978 # maximum length that is only half of the actual maximum length, but
5980 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5981 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5982 = "XX$teststring") >/dev/null 2>&1 &&
5983 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5984 lt_cv_sys_max_cmd_len=$new_result &&
5985 test $i != 17 # 1/2 MB should be enough
5988 teststring=$teststring$teststring
5991 # Add a significant safety factor because C++ compilers can tack on massive
5992 # amounts of additional arguments before passing them to the linker.
5993 # It appears as though 1/2 is a usable value.
5994 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6000 if test -n $lt_cv_sys_max_cmd_len ; then
6001 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6002 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6004 echo "$as_me:$LINENO: result: none" >&5
6005 echo "${ECHO_T}none" >&6
6011 # Check for command to grab the raw symbol name followed by C symbol from nm.
6012 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6013 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6014 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6015 echo $ECHO_N "(cached) $ECHO_C" >&6
6018 # These are sane defaults that work on at least a few old systems.
6019 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6021 # Character class describing NM global symbol codes.
6022 symcode='[BCDEGRST]'
6024 # Regexp to match symbols that can be accessed directly from C.
6025 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6027 # Transform an extracted symbol line into a proper C declaration
6028 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6030 # Transform an extracted symbol line into symbol name and symbol address
6031 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'"
6033 # Define system-specific variables.
6038 cygwin* | mingw* | pw32*)
6039 symcode='[ABCDGISTW]'
6041 hpux*) # Its linker distinguishes data from code symbols
6042 if test "$host_cpu" = ia64; then
6043 symcode='[ABCDEGRST]'
6045 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6046 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'"
6049 if test "$host_cpu" = ia64; then
6050 symcode='[ABCDGIRSTW]'
6051 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6052 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'"
6056 symcode='[BCDEGRST]'
6059 symcode='[BCDEGQRST]'
6069 # Handle CRLF in mingw tool chain
6073 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6077 # If we're using GNU nm, then use its standard symbol codes.
6078 case `$NM -V 2>&1` in
6079 *GNU* | *'with BFD'*)
6080 symcode='[ABCDGIRSTW]' ;;
6083 # Try without a prefix undercore, then with it.
6084 for ac_symprfx in "" "_"; do
6086 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6087 symxfrm="\\1 $ac_symprfx\\2 \\2"
6089 # Write the raw and C identifiers.
6090 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6092 # Check to see that the pipe works correctly.
6096 cat > conftest.$ac_ext <<EOF
6101 void nm_test_func(){}
6105 int main(){nm_test_var='a';nm_test_func();return(0);}
6108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6109 (eval $ac_compile) 2>&5
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); }; then
6113 # Now try to grab the symbols.
6115 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6116 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); } && test -s "$nlist"; then
6120 # Try sorting and uniquifying the output.
6121 if sort "$nlist" | uniq > "$nlist"T; then
6122 mv -f "$nlist"T "$nlist"
6127 # Make sure that we snagged all the symbols we need.
6128 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6129 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6130 cat <<EOF > conftest.$ac_ext
6136 # Now generate the symbol file.
6137 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6139 cat <<EOF >> conftest.$ac_ext
6140 #if defined (__STDC__) && __STDC__
6141 # define lt_ptr_t void *
6143 # define lt_ptr_t char *
6147 /* The mapping between symbol names and symbols. */
6152 lt_preloaded_symbols[] =
6155 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6156 cat <<\EOF >> conftest.$ac_ext
6164 # Now try linking the two files.
6165 mv conftest.$ac_objext conftstm.$ac_objext
6166 lt_save_LIBS="$LIBS"
6167 lt_save_CFLAGS="$CFLAGS"
6168 LIBS="conftstm.$ac_objext"
6169 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6171 (eval $ac_link) 2>&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6177 LIBS="$lt_save_LIBS"
6178 CFLAGS="$lt_save_CFLAGS"
6180 echo "cannot find nm_test_func in $nlist" >&5
6183 echo "cannot find nm_test_var in $nlist" >&5
6186 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6189 echo "$progname: failed program was:" >&5
6190 cat conftest.$ac_ext >&5
6192 rm -f conftest* conftst*
6194 # Do not use the global_symbol_pipe unless it works.
6195 if test "$pipe_works" = yes; then
6198 lt_cv_sys_global_symbol_pipe=
6204 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6205 lt_cv_sys_global_symbol_to_cdecl=
6207 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6208 echo "$as_me:$LINENO: result: failed" >&5
6209 echo "${ECHO_T}failed" >&6
6211 echo "$as_me:$LINENO: result: ok" >&5
6212 echo "${ECHO_T}ok" >&6
6215 echo "$as_me:$LINENO: checking for objdir" >&5
6216 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6217 if test "${lt_cv_objdir+set}" = set; then
6218 echo $ECHO_N "(cached) $ECHO_C" >&6
6220 rm -f .libs 2>/dev/null
6221 mkdir .libs 2>/dev/null
6222 if test -d .libs; then
6225 # MS-DOS does not allow filenames that begin with a dot.
6228 rmdir .libs 2>/dev/null
6230 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6231 echo "${ECHO_T}$lt_cv_objdir" >&6
6232 objdir=$lt_cv_objdir
6240 # AIX sometimes has problems with the GCC collect2 program. For some
6241 # reason, if we set the COLLECT_NAMES environment variable, the problems
6242 # vanish in a puff of smoke.
6243 if test "X${COLLECT_NAMES+set}" != Xset; then
6245 export COLLECT_NAMES
6250 # Sed substitution that helps us do robust quoting. It backslashifies
6251 # metacharacters that are still active within double-quoted strings.
6252 Xsed='sed -e 1s/^X//'
6253 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6255 # Same as above, but do not quote variable references.
6256 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6258 # Sed substitution to delay expansion of an escaped shell variable in a
6259 # double_quote_subst'ed string.
6260 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6262 # Sed substitution to avoid accidental globbing in evaled expressions
6263 no_glob_subst='s/\*/\\\*/g'
6269 default_ofile=libtool
6270 can_build_shared=yes
6272 # All known linkers require a `.a' archive for static linking (except M$VC,
6273 # which needs '.lib').
6275 ltmain="$ac_aux_dir/ltmain.sh"
6276 ofile="$default_ofile"
6277 with_gnu_ld="$lt_cv_prog_gnu_ld"
6279 if test -n "$ac_tool_prefix"; then
6280 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6281 set dummy ${ac_tool_prefix}ar; ac_word=$2
6282 echo "$as_me:$LINENO: checking for $ac_word" >&5
6283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6284 if test "${ac_cv_prog_AR+set}" = set; then
6285 echo $ECHO_N "(cached) $ECHO_C" >&6
6287 if test -n "$AR"; then
6288 ac_cv_prog_AR="$AR" # Let the user override the test.
6290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294 test -z "$as_dir" && as_dir=.
6295 for ac_exec_ext in '' $ac_executable_extensions; do
6296 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6297 ac_cv_prog_AR="${ac_tool_prefix}ar"
6298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6307 if test -n "$AR"; then
6308 echo "$as_me:$LINENO: result: $AR" >&5
6309 echo "${ECHO_T}$AR" >&6
6311 echo "$as_me:$LINENO: result: no" >&5
6312 echo "${ECHO_T}no" >&6
6316 if test -z "$ac_cv_prog_AR"; then
6318 # Extract the first word of "ar", so it can be a program name with args.
6319 set dummy ar; ac_word=$2
6320 echo "$as_me:$LINENO: checking for $ac_word" >&5
6321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6322 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6323 echo $ECHO_N "(cached) $ECHO_C" >&6
6325 if test -n "$ac_ct_AR"; then
6326 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6332 test -z "$as_dir" && as_dir=.
6333 for ac_exec_ext in '' $ac_executable_extensions; do
6334 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6335 ac_cv_prog_ac_ct_AR="ar"
6336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6342 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6345 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6346 if test -n "$ac_ct_AR"; then
6347 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6348 echo "${ECHO_T}$ac_ct_AR" >&6
6350 echo "$as_me:$LINENO: result: no" >&5
6351 echo "${ECHO_T}no" >&6
6359 if test -n "$ac_tool_prefix"; then
6360 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6361 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6362 echo "$as_me:$LINENO: checking for $ac_word" >&5
6363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6364 if test "${ac_cv_prog_RANLIB+set}" = set; then
6365 echo $ECHO_N "(cached) $ECHO_C" >&6
6367 if test -n "$RANLIB"; then
6368 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374 test -z "$as_dir" && as_dir=.
6375 for ac_exec_ext in '' $ac_executable_extensions; do
6376 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6377 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6386 RANLIB=$ac_cv_prog_RANLIB
6387 if test -n "$RANLIB"; then
6388 echo "$as_me:$LINENO: result: $RANLIB" >&5
6389 echo "${ECHO_T}$RANLIB" >&6
6391 echo "$as_me:$LINENO: result: no" >&5
6392 echo "${ECHO_T}no" >&6
6396 if test -z "$ac_cv_prog_RANLIB"; then
6397 ac_ct_RANLIB=$RANLIB
6398 # Extract the first word of "ranlib", so it can be a program name with args.
6399 set dummy ranlib; ac_word=$2
6400 echo "$as_me:$LINENO: checking for $ac_word" >&5
6401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6402 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6403 echo $ECHO_N "(cached) $ECHO_C" >&6
6405 if test -n "$ac_ct_RANLIB"; then
6406 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6412 test -z "$as_dir" && as_dir=.
6413 for ac_exec_ext in '' $ac_executable_extensions; do
6414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6415 ac_cv_prog_ac_ct_RANLIB="ranlib"
6416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6422 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6425 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6426 if test -n "$ac_ct_RANLIB"; then
6427 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6428 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6430 echo "$as_me:$LINENO: result: no" >&5
6431 echo "${ECHO_T}no" >&6
6434 RANLIB=$ac_ct_RANLIB
6436 RANLIB="$ac_cv_prog_RANLIB"
6439 if test -n "$ac_tool_prefix"; then
6440 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6441 set dummy ${ac_tool_prefix}strip; ac_word=$2
6442 echo "$as_me:$LINENO: checking for $ac_word" >&5
6443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6444 if test "${ac_cv_prog_STRIP+set}" = set; then
6445 echo $ECHO_N "(cached) $ECHO_C" >&6
6447 if test -n "$STRIP"; then
6448 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454 test -z "$as_dir" && as_dir=.
6455 for ac_exec_ext in '' $ac_executable_extensions; do
6456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6457 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6466 STRIP=$ac_cv_prog_STRIP
6467 if test -n "$STRIP"; then
6468 echo "$as_me:$LINENO: result: $STRIP" >&5
6469 echo "${ECHO_T}$STRIP" >&6
6471 echo "$as_me:$LINENO: result: no" >&5
6472 echo "${ECHO_T}no" >&6
6476 if test -z "$ac_cv_prog_STRIP"; then
6478 # Extract the first word of "strip", so it can be a program name with args.
6479 set dummy strip; ac_word=$2
6480 echo "$as_me:$LINENO: checking for $ac_word" >&5
6481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6482 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6485 if test -n "$ac_ct_STRIP"; then
6486 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492 test -z "$as_dir" && as_dir=.
6493 for ac_exec_ext in '' $ac_executable_extensions; do
6494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6495 ac_cv_prog_ac_ct_STRIP="strip"
6496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6502 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6505 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6506 if test -n "$ac_ct_STRIP"; then
6507 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6508 echo "${ECHO_T}$ac_ct_STRIP" >&6
6510 echo "$as_me:$LINENO: result: no" >&5
6511 echo "${ECHO_T}no" >&6
6516 STRIP="$ac_cv_prog_STRIP"
6521 old_CFLAGS="$CFLAGS"
6523 # Set sane defaults for various variables
6524 test -z "$AR" && AR=ar
6525 test -z "$AR_FLAGS" && AR_FLAGS=cru
6526 test -z "$AS" && AS=as
6527 test -z "$CC" && CC=cc
6528 test -z "$LTCC" && LTCC=$CC
6529 test -z "$DLLTOOL" && DLLTOOL=dlltool
6530 test -z "$LD" && LD=ld
6531 test -z "$LN_S" && LN_S="ln -s"
6532 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6533 test -z "$NM" && NM=nm
6534 test -z "$SED" && SED=sed
6535 test -z "$OBJDUMP" && OBJDUMP=objdump
6536 test -z "$RANLIB" && RANLIB=:
6537 test -z "$STRIP" && STRIP=:
6538 test -z "$ac_objext" && ac_objext=o
6540 # Determine commands to create old-style static archives.
6541 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6542 old_postinstall_cmds='chmod 644 $oldlib'
6543 old_postuninstall_cmds=
6545 if test -n "$RANLIB"; then
6548 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6551 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6554 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6557 for cc_temp in $compiler""; do
6559 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6560 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6565 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6568 # Only perform the check for file, if the check method requires it
6569 case $deplibs_check_method in
6571 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6572 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6573 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6574 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6575 echo $ECHO_N "(cached) $ECHO_C" >&6
6579 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6582 lt_save_MAGIC_CMD="$MAGIC_CMD"
6583 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6584 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6585 for ac_dir in $ac_dummy; do
6587 test -z "$ac_dir" && ac_dir=.
6588 if test -f $ac_dir/${ac_tool_prefix}file; then
6589 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6590 if test -n "$file_magic_test_file"; then
6591 case $deplibs_check_method in
6593 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6594 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6595 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6596 $EGREP "$file_magic_regex" > /dev/null; then
6601 *** Warning: the command libtool uses to detect shared libraries,
6602 *** $file_magic_cmd, produces output that libtool cannot recognize.
6603 *** The result is that libtool may fail to recognize shared libraries
6604 *** as such. This will affect the creation of libtool libraries that
6605 *** depend on shared libraries, but programs linked with such libtool
6606 *** libraries will work regardless of this problem. Nevertheless, you
6607 *** may want to report the problem to your system manager and/or to
6608 *** bug-libtool@gnu.org
6618 MAGIC_CMD="$lt_save_MAGIC_CMD"
6623 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6624 if test -n "$MAGIC_CMD"; then
6625 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6626 echo "${ECHO_T}$MAGIC_CMD" >&6
6628 echo "$as_me:$LINENO: result: no" >&5
6629 echo "${ECHO_T}no" >&6
6632 if test -z "$lt_cv_path_MAGIC_CMD"; then
6633 if test -n "$ac_tool_prefix"; then
6634 echo "$as_me:$LINENO: checking for file" >&5
6635 echo $ECHO_N "checking for file... $ECHO_C" >&6
6636 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6637 echo $ECHO_N "(cached) $ECHO_C" >&6
6641 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6644 lt_save_MAGIC_CMD="$MAGIC_CMD"
6645 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6646 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6647 for ac_dir in $ac_dummy; do
6649 test -z "$ac_dir" && ac_dir=.
6650 if test -f $ac_dir/file; then
6651 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6652 if test -n "$file_magic_test_file"; then
6653 case $deplibs_check_method in
6655 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6656 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6657 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6658 $EGREP "$file_magic_regex" > /dev/null; then
6663 *** Warning: the command libtool uses to detect shared libraries,
6664 *** $file_magic_cmd, produces output that libtool cannot recognize.
6665 *** The result is that libtool may fail to recognize shared libraries
6666 *** as such. This will affect the creation of libtool libraries that
6667 *** depend on shared libraries, but programs linked with such libtool
6668 *** libraries will work regardless of this problem. Nevertheless, you
6669 *** may want to report the problem to your system manager and/or to
6670 *** bug-libtool@gnu.org
6680 MAGIC_CMD="$lt_save_MAGIC_CMD"
6685 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6686 if test -n "$MAGIC_CMD"; then
6687 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6688 echo "${ECHO_T}$MAGIC_CMD" >&6
6690 echo "$as_me:$LINENO: result: no" >&5
6691 echo "${ECHO_T}no" >&6
6704 enable_win32_dll=yes
6706 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6707 if test "${enable_libtool_lock+set}" = set; then
6708 enableval="$enable_libtool_lock"
6711 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6714 # Check whether --with-pic or --without-pic was given.
6715 if test "${with_pic+set}" = set; then
6721 test -z "$pic_mode" && pic_mode=default
6723 # Use C for the default configuration in the libtool script
6727 ac_cpp='$CPP $CPPFLAGS'
6728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6733 # Source file extension for C test sources.
6736 # Object file extension for compiled C test sources.
6740 # Code to be used in simple compile tests
6741 lt_simple_compile_test_code="int some_variable = 0;\n"
6743 # Code to be used in simple link tests
6744 lt_simple_link_test_code='int main(){return(0);}\n'
6747 # If no C compiler was specified, use CC.
6750 # Allow CC to be a program name with arguments.
6754 # save warnings/boilerplate of simple test code
6755 ac_outfile=conftest.$ac_objext
6756 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6757 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6758 _lt_compiler_boilerplate=`cat conftest.err`
6761 ac_outfile=conftest.$ac_objext
6762 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6763 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6764 _lt_linker_boilerplate=`cat conftest.err`
6769 # Check for any special shared library compilation flags.
6772 if test "$GCC" = no; then
6775 lt_prog_cc_shlib='-belf'
6779 if test -n "$lt_prog_cc_shlib"; then
6780 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6781 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6782 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6784 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6785 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6786 lt_cv_prog_cc_can_build_shared=no
6792 # Check to make sure the static flag actually works.
6794 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6795 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6796 if test "${lt_prog_compiler_static_works+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6799 lt_prog_compiler_static_works=no
6800 save_LDFLAGS="$LDFLAGS"
6801 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6802 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6803 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6804 # The compiler can only warn and ignore the option if not recognized
6805 # So say no if there are warnings
6806 if test -s conftest.err; then
6807 # Append any errors to the config.log.
6808 cat conftest.err 1>&5
6809 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6810 $SED '/^$/d' conftest.err >conftest.er2
6811 if diff conftest.exp conftest.er2 >/dev/null; then
6812 lt_prog_compiler_static_works=yes
6815 lt_prog_compiler_static_works=yes
6819 LDFLAGS="$save_LDFLAGS"
6822 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6823 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6825 if test x"$lt_prog_compiler_static_works" = xyes; then
6828 lt_prog_compiler_static=
6834 ## There is no encapsulation within the following macros, do not change
6835 ## the running order or otherwise move them around unless you know exactly
6836 ## what you are doing...
6838 lt_prog_compiler_no_builtin_flag=
6840 if test "$GCC" = yes; then
6841 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6844 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6845 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6846 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6847 echo $ECHO_N "(cached) $ECHO_C" >&6
6849 lt_cv_prog_compiler_rtti_exceptions=no
6850 ac_outfile=conftest.$ac_objext
6851 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6852 lt_compiler_flag="-fno-rtti -fno-exceptions"
6853 # Insert the option either (1) after the last *FLAGS variable, or
6854 # (2) before a word containing "conftest.", or (3) at the end.
6855 # Note that $ac_compile itself does not contain backslashes and begins
6856 # with a dollar sign (not a hyphen), so the echo should work correctly.
6857 # The option is referenced via a variable to avoid confusing sed.
6858 lt_compile=`echo "$ac_compile" | $SED \
6859 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6860 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6861 -e 's:$: $lt_compiler_flag:'`
6862 (eval echo "\"\$as_me:6862: $lt_compile\"" >&5)
6863 (eval "$lt_compile" 2>conftest.err)
6865 cat conftest.err >&5
6866 echo "$as_me:6866: \$? = $ac_status" >&5
6867 if (exit $ac_status) && test -s "$ac_outfile"; then
6868 # The compiler can only warn and ignore the option if not recognized
6869 # So say no if there are warnings other than the usual output.
6870 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6871 $SED '/^$/d' conftest.err >conftest.er2
6872 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6873 lt_cv_prog_compiler_rtti_exceptions=yes
6879 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6880 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6882 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6883 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6890 lt_prog_compiler_wl=
6891 lt_prog_compiler_pic=
6892 lt_prog_compiler_static=
6894 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6895 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6897 if test "$GCC" = yes; then
6898 lt_prog_compiler_wl='-Wl,'
6899 lt_prog_compiler_static='-static'
6903 # All AIX code is PIC.
6904 if test "$host_cpu" = ia64; then
6905 # AIX 5 now supports IA64 processor
6906 lt_prog_compiler_static='-Bstatic'
6911 # FIXME: we need at least 68020 code to build shared libraries, but
6912 # adding the `-m68020' flag to GCC prevents building anything better,
6914 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6917 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6918 # PIC is the default for these OSes.
6921 mingw* | pw32* | os2*)
6922 # This hack is so that the source file can tell whether it is being
6923 # built for inclusion in a dll (and should export symbols for example).
6924 lt_prog_compiler_pic='-DDLL_EXPORT'
6927 darwin* | rhapsody*)
6928 # PIC is the default on this platform
6929 # Common symbols not allowed in MH_DYLIB files
6930 lt_prog_compiler_pic='-fno-common'
6934 # Just because we use GCC doesn't mean we suddenly get shared libraries
6935 # on systems that don't support them.
6936 lt_prog_compiler_can_build_shared=no
6941 if test -d /usr/nec; then
6942 lt_prog_compiler_pic=-Kconform_pic
6947 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6954 lt_prog_compiler_pic='-fPIC'
6960 lt_prog_compiler_pic='-fPIC'
6964 # PORTME Check for flag to pass linker flags through the system compiler.
6967 lt_prog_compiler_wl='-Wl,'
6968 if test "$host_cpu" = ia64; then
6969 # AIX 5 now supports IA64 processor
6970 lt_prog_compiler_static='-Bstatic'
6972 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6976 # PIC is the default on this platform
6977 # Common symbols not allowed in MH_DYLIB files
6978 case $cc_basename in
6980 lt_prog_compiler_pic='-qnocommon'
6981 lt_prog_compiler_wl='-Wl,'
6986 mingw* | pw32* | os2*)
6987 # This hack is so that the source file can tell whether it is being
6988 # built for inclusion in a dll (and should export symbols for example).
6989 lt_prog_compiler_pic='-DDLL_EXPORT'
6992 hpux9* | hpux10* | hpux11*)
6993 lt_prog_compiler_wl='-Wl,'
6994 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7001 lt_prog_compiler_pic='+Z'
7004 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7005 lt_prog_compiler_static='${wl}-a ${wl}archive'
7008 irix5* | irix6* | nonstopux*)
7009 lt_prog_compiler_wl='-Wl,'
7010 # PIC (with -KPIC) is the default.
7011 lt_prog_compiler_static='-non_shared'
7015 lt_prog_compiler_pic='-KPIC'
7016 lt_prog_compiler_static='-Bstatic'
7020 case $cc_basename in
7022 lt_prog_compiler_wl='-Wl,'
7023 lt_prog_compiler_pic='-KPIC'
7024 lt_prog_compiler_static='-static'
7026 pgcc* | pgf77* | pgf90*)
7027 # Portland Group compilers (*not* the Pentium gcc compiler,
7028 # which looks to be a dead project)
7029 lt_prog_compiler_wl='-Wl,'
7030 lt_prog_compiler_pic='-fpic'
7031 lt_prog_compiler_static='-static'
7034 lt_prog_compiler_wl='-Wl,'
7035 # All Alpha code is PIC.
7036 lt_prog_compiler_static='-non_shared'
7041 osf3* | osf4* | osf5*)
7042 lt_prog_compiler_wl='-Wl,'
7043 # All OSF/1 code is PIC.
7044 lt_prog_compiler_static='-non_shared'
7048 lt_prog_compiler_pic='-Kpic'
7049 lt_prog_compiler_static='-dn'
7053 lt_prog_compiler_pic='-KPIC'
7054 lt_prog_compiler_static='-Bstatic'
7055 case $cc_basename in
7057 lt_prog_compiler_wl='-Qoption ld ';;
7059 lt_prog_compiler_wl='-Wl,';;
7064 lt_prog_compiler_wl='-Qoption ld '
7065 lt_prog_compiler_pic='-PIC'
7066 lt_prog_compiler_static='-Bstatic'
7069 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7070 lt_prog_compiler_wl='-Wl,'
7071 lt_prog_compiler_pic='-KPIC'
7072 lt_prog_compiler_static='-Bstatic'
7076 if test -d /usr/nec ;then
7077 lt_prog_compiler_pic='-Kconform_pic'
7078 lt_prog_compiler_static='-Bstatic'
7083 lt_prog_compiler_wl='-Wl,'
7084 lt_prog_compiler_can_build_shared=no
7088 lt_prog_compiler_pic='-pic'
7089 lt_prog_compiler_static='-Bstatic'
7093 lt_prog_compiler_can_build_shared=no
7098 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7099 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7102 # Check to make sure the PIC flag actually works.
7104 if test -n "$lt_prog_compiler_pic"; then
7106 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7107 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7108 if test "${lt_prog_compiler_pic_works+set}" = set; then
7109 echo $ECHO_N "(cached) $ECHO_C" >&6
7111 lt_prog_compiler_pic_works=no
7112 ac_outfile=conftest.$ac_objext
7113 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7114 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7115 # Insert the option either (1) after the last *FLAGS variable, or
7116 # (2) before a word containing "conftest.", or (3) at the end.
7117 # Note that $ac_compile itself does not contain backslashes and begins
7118 # with a dollar sign (not a hyphen), so the echo should work correctly.
7119 # The option is referenced via a variable to avoid confusing sed.
7120 lt_compile=`echo "$ac_compile" | $SED \
7121 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7122 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7123 -e 's:$: $lt_compiler_flag:'`
7124 (eval echo "\"\$as_me:7124: $lt_compile\"" >&5)
7125 (eval "$lt_compile" 2>conftest.err)
7127 cat conftest.err >&5
7128 echo "$as_me:7128: \$? = $ac_status" >&5
7129 if (exit $ac_status) && test -s "$ac_outfile"; then
7130 # The compiler can only warn and ignore the option if not recognized
7131 # So say no if there are warnings other than the usual output.
7132 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7133 $SED '/^$/d' conftest.err >conftest.er2
7134 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7135 lt_prog_compiler_pic_works=yes
7141 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7142 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7144 if test x"$lt_prog_compiler_pic_works" = xyes; then
7145 case $lt_prog_compiler_pic in
7147 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7150 lt_prog_compiler_pic=
7151 lt_prog_compiler_can_build_shared=no
7156 # For platforms which do not support PIC, -DPIC is meaningless:
7158 lt_prog_compiler_pic=
7161 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7165 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7166 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7167 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7168 echo $ECHO_N "(cached) $ECHO_C" >&6
7170 lt_cv_prog_compiler_c_o=no
7171 $rm -r conftest 2>/dev/null
7175 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7177 lt_compiler_flag="-o out/conftest2.$ac_objext"
7178 # Insert the option either (1) after the last *FLAGS variable, or
7179 # (2) before a word containing "conftest.", or (3) at the end.
7180 # Note that $ac_compile itself does not contain backslashes and begins
7181 # with a dollar sign (not a hyphen), so the echo should work correctly.
7182 lt_compile=`echo "$ac_compile" | $SED \
7183 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7184 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7185 -e 's:$: $lt_compiler_flag:'`
7186 (eval echo "\"\$as_me:7186: $lt_compile\"" >&5)
7187 (eval "$lt_compile" 2>out/conftest.err)
7189 cat out/conftest.err >&5
7190 echo "$as_me:7190: \$? = $ac_status" >&5
7191 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7193 # The compiler can only warn and ignore the option if not recognized
7194 # So say no if there are warnings
7195 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7196 $SED '/^$/d' out/conftest.err >out/conftest.er2
7197 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7198 lt_cv_prog_compiler_c_o=yes
7203 # SGI C++ compiler will create directory out/ii_files/ for
7204 # template instantiation
7205 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7206 $rm out/* && rmdir out
7212 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7213 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7216 hard_links="nottested"
7217 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7218 # do not overwrite the value of need_locks provided by the user
7219 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7220 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7223 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7225 ln conftest.a conftest.b 2>&5 || hard_links=no
7226 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7227 echo "$as_me:$LINENO: result: $hard_links" >&5
7228 echo "${ECHO_T}$hard_links" >&6
7229 if test "$hard_links" = no; then
7230 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7231 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7238 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7239 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7242 allow_undefined_flag=
7243 enable_shared_with_static_runtimes=no
7245 archive_expsym_cmds=
7246 old_archive_From_new_cmds=
7247 old_archive_from_expsyms_cmds=
7248 export_dynamic_flag_spec=
7249 whole_archive_flag_spec=
7250 thread_safe_flag_spec=
7251 hardcode_libdir_flag_spec=
7252 hardcode_libdir_flag_spec_ld=
7253 hardcode_libdir_separator=
7256 hardcode_shlibpath_var=unsupported
7257 link_all_deplibs=unknown
7258 hardcode_automatic=no
7261 always_export_symbols=no
7262 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7263 # include_expsyms should be a list of space-separated symbols to be *always*
7264 # included in the symbol list
7266 # exclude_expsyms can be an extended regexp of symbols to exclude
7267 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7268 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7269 # as well as any symbol that contains `d'.
7270 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7271 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7272 # platforms (ab)use it in PIC code, but their linkers get confused if
7273 # the symbol is explicitly referenced. Since portable code cannot
7274 # rely on this symbol name, it's probably fine to never include it in
7275 # preloaded symbol tables.
7276 extract_expsyms_cmds=
7277 # Just being paranoid about ensuring that cc_basename is set.
7278 for cc_temp in $compiler""; do
7280 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7281 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7286 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7289 cygwin* | mingw* | pw32*)
7290 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7291 # When not using gcc, we currently assume that we are using
7292 # Microsoft Visual C++.
7293 if test "$GCC" != yes; then
7303 if test "$with_gnu_ld" = yes; then
7304 # If archive_cmds runs LD, not CC, wlarc should be empty
7307 # Set some defaults for GNU ld with shared library support. These
7308 # are reset later if shared libraries are not supported. Putting them
7309 # here allows them to be overridden if necessary.
7310 runpath_var=LD_RUN_PATH
7311 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7312 export_dynamic_flag_spec='${wl}--export-dynamic'
7313 # ancient GNU ld didn't support --whole-archive et. al.
7314 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7315 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7317 whole_archive_flag_spec=
7319 supports_anon_versioning=no
7320 case `$LD -v 2>/dev/null` in
7321 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7322 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7323 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7324 *\ 2.11.*) ;; # other 2.11 versions
7325 *) supports_anon_versioning=yes ;;
7328 # See if GNU ld supports shared libraries.
7330 aix3* | aix4* | aix5*)
7331 # On AIX/PPC, the GNU linker is very broken
7332 if test "$host_cpu" != ia64; then
7336 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7337 *** to be unable to reliably create shared libraries on AIX.
7338 *** Therefore, libtool is disabling shared libraries support. If you
7339 *** really care for shared libraries, you may want to modify your PATH
7340 *** so that a non-GNU linker is found, and then restart.
7347 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)'
7348 hardcode_libdir_flag_spec='-L$libdir'
7349 hardcode_minus_L=yes
7351 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7352 # that the semantics of dynamic libraries on AmigaOS, at least up
7353 # to version 4, is to share data among multiple programs linked
7354 # with the same dynamic library. Since this doesn't match the
7355 # behavior of shared libraries on other platforms, we can't use
7361 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7362 allow_undefined_flag=unsupported
7363 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7364 # support --undefined. This deserves some investigation. FIXME
7365 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7371 cygwin* | mingw* | pw32*)
7372 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7373 # as there is no search path for DLLs.
7374 hardcode_libdir_flag_spec='-L$libdir'
7375 allow_undefined_flag=unsupported
7376 always_export_symbols=no
7377 enable_shared_with_static_runtimes=yes
7378 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7380 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7381 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7382 # If the export-symbols file already is a .def file (1st line
7383 # is EXPORTS), use it as is; otherwise, prepend...
7384 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7385 cp $export_symbols $output_objdir/$soname.def;
7387 echo EXPORTS > $output_objdir/$soname.def;
7388 cat $export_symbols >> $output_objdir/$soname.def;
7390 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7397 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7399 case $cc_basename,$host_cpu in
7400 pgcc*) # Portland Group C compiler
7401 whole_archive_flag_spec=
7403 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
7404 whole_archive_flag_spec=
7405 tmp_addflag=' -fpic -Mnomain' ;;
7406 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7407 tmp_addflag=' -i_dynamic' ;;
7408 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7409 tmp_addflag=' -i_dynamic -nofor_main' ;;
7410 ifc* | ifort*) # Intel Fortran compiler
7411 tmp_addflag=' -nofor_main' ;;
7413 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7415 if test $supports_anon_versioning = yes; then
7416 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7417 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7418 $echo "local: *; };" >> $output_objdir/$libname.ver~
7419 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7427 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7428 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7431 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7432 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7437 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7441 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7442 *** create shared libraries on Solaris systems. Therefore, libtool
7443 *** is disabling shared libraries support. We urge you to upgrade GNU
7444 *** binutils to release 2.9.1 or newer. Another option is to modify
7445 *** your PATH or compiler configuration so that the native linker is
7446 *** used, and then restart.
7449 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7450 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7451 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7458 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7461 hardcode_shlibpath_var=no
7465 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7466 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7467 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7474 if test "$ld_shlibs" = no; then
7476 hardcode_libdir_flag_spec=
7477 export_dynamic_flag_spec=
7478 whole_archive_flag_spec=
7481 # PORTME fill in a description of your system's linker (not GNU ld)
7484 allow_undefined_flag=unsupported
7485 always_export_symbols=yes
7486 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'
7487 # Note: this linker hardcodes the directories in LIBPATH if there
7488 # are no directories specified by -L.
7489 hardcode_minus_L=yes
7490 if test "$GCC" = yes && test -z "$link_static_flag"; then
7491 # Neither direct hardcoding nor static linking is supported with a
7493 hardcode_direct=unsupported
7498 if test "$host_cpu" = ia64; then
7499 # On IA64, the linker does run time linking by default, so we don't
7500 # have to do anything special.
7501 aix_use_runtimelinking=no
7502 exp_sym_flag='-Bexport'
7505 # If we're using GNU nm, then we don't want the "-C" option.
7506 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7507 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7508 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'
7510 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'
7512 aix_use_runtimelinking=no
7514 # Test if we are trying to use run time linking or normal
7515 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7516 # need to do runtime linking.
7517 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7518 for ld_flag in $LDFLAGS; do
7519 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7520 aix_use_runtimelinking=yes
7526 exp_sym_flag='-bexport'
7527 no_entry_flag='-bnoentry'
7530 # When large executables or shared objects are built, AIX ld can
7531 # have problems creating the table of contents. If linking a library
7532 # or program results in "error TOC overflow" add -mminimal-toc to
7533 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7534 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7538 hardcode_libdir_separator=':'
7539 link_all_deplibs=yes
7541 if test "$GCC" = yes; then
7542 case $host_os in aix4.[012]|aix4.[012].*)
7543 # We only want to do this on AIX 4.2 and lower, the check
7544 # below for broken collect2 doesn't work under 4.3+
7545 collect2name=`${CC} -print-prog-name=collect2`
7546 if test -f "$collect2name" && \
7547 strings "$collect2name" | grep resolve_lib_name >/dev/null
7549 # We have reworked collect2
7552 # We have old collect2
7553 hardcode_direct=unsupported
7554 # It fails to find uninstalled libraries when the uninstalled
7555 # path is not listed in the libpath. Setting hardcode_minus_L
7556 # to unsupported forces relinking
7557 hardcode_minus_L=yes
7558 hardcode_libdir_flag_spec='-L$libdir'
7559 hardcode_libdir_separator=
7562 shared_flag='-shared'
7563 if test "$aix_use_runtimelinking" = yes; then
7564 shared_flag="$shared_flag "'${wl}-G'
7568 if test "$host_cpu" = ia64; then
7569 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7570 # chokes on -Wl,-G. The following line is correct:
7573 if test "$aix_use_runtimelinking" = yes; then
7574 shared_flag='${wl}-G'
7576 shared_flag='${wl}-bM:SRE'
7581 # It seems that -bexpall does not export symbols beginning with
7582 # underscore (_), so it is better to generate a list of symbols to export.
7583 always_export_symbols=yes
7584 if test "$aix_use_runtimelinking" = yes; then
7585 # Warning - without using the other runtime loading flags (-brtl),
7586 # -berok will link without error, but may produce a broken library.
7587 allow_undefined_flag='-berok'
7588 # Determine the default libpath from the value encoded in an empty executable.
7589 cat >conftest.$ac_ext <<_ACEOF
7592 cat confdefs.h >>conftest.$ac_ext
7593 cat >>conftest.$ac_ext <<_ACEOF
7594 /* end confdefs.h. */
7604 rm -f conftest.$ac_objext conftest$ac_exeext
7605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7606 (eval $ac_link) 2>conftest.er1
7608 grep -v '^ *+' conftest.er1 >conftest.err
7610 cat conftest.err >&5
7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); } &&
7613 { ac_try='test -z "$ac_c_werror_flag"
7614 || test ! -s conftest.err'
7615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619 (exit $ac_status); }; } &&
7620 { ac_try='test -s conftest$ac_exeext'
7621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); }; }; then
7627 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7629 # Check for a 64-bit object if we didn't find anything.
7630 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; }
7633 echo "$as_me: failed program was:" >&5
7634 sed 's/^/| /' conftest.$ac_ext >&5
7637 rm -f conftest.err conftest.$ac_objext \
7638 conftest$ac_exeext conftest.$ac_ext
7639 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7641 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7642 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"
7644 if test "$host_cpu" = ia64; then
7645 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7646 allow_undefined_flag="-z nodefs"
7647 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"
7649 # Determine the default libpath from the value encoded in an empty executable.
7650 cat >conftest.$ac_ext <<_ACEOF
7653 cat confdefs.h >>conftest.$ac_ext
7654 cat >>conftest.$ac_ext <<_ACEOF
7655 /* end confdefs.h. */
7665 rm -f conftest.$ac_objext conftest$ac_exeext
7666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7667 (eval $ac_link) 2>conftest.er1
7669 grep -v '^ *+' conftest.er1 >conftest.err
7671 cat conftest.err >&5
7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); } &&
7674 { ac_try='test -z "$ac_c_werror_flag"
7675 || test ! -s conftest.err'
7676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680 (exit $ac_status); }; } &&
7681 { ac_try='test -s conftest$ac_exeext'
7682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686 (exit $ac_status); }; }; then
7688 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7690 # Check for a 64-bit object if we didn't find anything.
7691 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; }
7694 echo "$as_me: failed program was:" >&5
7695 sed 's/^/| /' conftest.$ac_ext >&5
7698 rm -f conftest.err conftest.$ac_objext \
7699 conftest$ac_exeext conftest.$ac_ext
7700 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7702 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7703 # Warning - without using the other run time loading flags,
7704 # -berok will link without error, but may produce a broken library.
7705 no_undefined_flag=' ${wl}-bernotok'
7706 allow_undefined_flag=' ${wl}-berok'
7707 # -bexpall does not export symbols beginning with underscore (_)
7708 always_export_symbols=yes
7709 # Exported symbols can be pulled into shared objects from archives
7710 whole_archive_flag_spec=' '
7711 archive_cmds_need_lc=yes
7712 # This is similar to how AIX traditionally builds it's shared libraries.
7713 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'
7719 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)'
7720 hardcode_libdir_flag_spec='-L$libdir'
7721 hardcode_minus_L=yes
7722 # see comment about different semantics on the GNU ld section
7727 export_dynamic_flag_spec=-rdynamic
7730 cygwin* | mingw* | pw32*)
7731 # When not using gcc, we currently assume that we are using
7732 # Microsoft Visual C++.
7733 # hardcode_libdir_flag_spec is actually meaningless, as there is
7734 # no search path for DLLs.
7735 hardcode_libdir_flag_spec=' '
7736 allow_undefined_flag=unsupported
7737 # Tell ltmain to make .lib files, not .a files.
7739 # Tell ltmain to make .dll files, not .so files.
7741 # FIXME: Setting linknames here is a bad hack.
7742 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7743 # The linker will automatically build a .lib file if we build a DLL.
7744 old_archive_From_new_cmds='true'
7745 # FIXME: Should let the user specify the lib program.
7746 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7747 fix_srcfile_path='`cygpath -w "$srcfile"`'
7748 enable_shared_with_static_runtimes=yes
7751 darwin* | rhapsody*)
7753 rhapsody* | darwin1.[012])
7754 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7757 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7758 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7760 case ${MACOSX_DEPLOYMENT_TARGET} in
7762 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7765 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7771 archive_cmds_need_lc=no
7773 hardcode_automatic=yes
7774 hardcode_shlibpath_var=unsupported
7775 whole_archive_flag_spec=''
7776 link_all_deplibs=yes
7777 if test "$GCC" = yes ; then
7778 output_verbose_link_cmd='echo'
7779 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7780 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7781 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7782 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}'
7783 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7785 case $cc_basename in
7787 output_verbose_link_cmd='echo'
7788 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7789 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7790 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7791 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7792 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7802 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7803 hardcode_libdir_flag_spec='-L$libdir'
7804 hardcode_shlibpath_var=no
7811 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7812 # support. Future versions do this automatically, but an explicit c++rt0.o
7813 # does not break anything, and helps significantly (at the cost of a little
7816 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7817 hardcode_libdir_flag_spec='-R$libdir'
7819 hardcode_shlibpath_var=no
7822 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7824 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7826 hardcode_minus_L=yes
7827 hardcode_shlibpath_var=no
7830 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7831 freebsd* | kfreebsd*-gnu | dragonfly*)
7832 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7833 hardcode_libdir_flag_spec='-R$libdir'
7835 hardcode_shlibpath_var=no
7839 if test "$GCC" = yes; then
7840 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'
7842 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'
7844 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7845 hardcode_libdir_separator=:
7848 # hardcode_minus_L: Not really in the search PATH,
7849 # but as the default location of the library.
7850 hardcode_minus_L=yes
7851 export_dynamic_flag_spec='${wl}-E'
7855 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7858 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7861 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7867 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7870 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7874 if test "$with_gnu_ld" = no; then
7877 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7878 hardcode_libdir_flag_spec_ld='+b $libdir'
7879 hardcode_libdir_separator=:
7881 hardcode_shlibpath_var=no
7884 hardcode_libdir_flag_spec='-L$libdir'
7886 hardcode_shlibpath_var=no
7888 # hardcode_minus_L: Not really in the search PATH,
7889 # but as the default location of the library.
7890 hardcode_minus_L=yes
7893 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7894 hardcode_libdir_separator=:
7896 export_dynamic_flag_spec='${wl}-E'
7898 # hardcode_minus_L: Not really in the search PATH,
7899 # but as the default location of the library.
7900 hardcode_minus_L=yes
7906 irix5* | irix6* | nonstopux*)
7907 if test "$GCC" = yes; then
7908 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'
7910 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'
7911 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7913 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7914 hardcode_libdir_separator=:
7915 link_all_deplibs=yes
7919 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7920 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7922 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7924 hardcode_libdir_flag_spec='-R$libdir'
7926 hardcode_shlibpath_var=no
7930 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7932 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7933 hardcode_libdir_separator=:
7934 hardcode_shlibpath_var=no
7939 hardcode_shlibpath_var=no
7940 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7941 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7942 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7943 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7944 export_dynamic_flag_spec='${wl}-E'
7947 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7948 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7949 hardcode_libdir_flag_spec='-R$libdir'
7952 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7953 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7960 hardcode_libdir_flag_spec='-L$libdir'
7961 hardcode_minus_L=yes
7962 allow_undefined_flag=unsupported
7963 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'
7964 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7968 if test "$GCC" = yes; then
7969 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7970 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'
7972 allow_undefined_flag=' -expect_unresolved \*'
7973 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'
7975 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7976 hardcode_libdir_separator=:
7979 osf4* | osf5*) # as osf3* with the addition of -msym flag
7980 if test "$GCC" = yes; then
7981 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7982 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'
7983 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7985 allow_undefined_flag=' -expect_unresolved \*'
7986 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'
7987 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7988 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7990 # Both c and cxx compiler support -rpath directly
7991 hardcode_libdir_flag_spec='-rpath $libdir'
7993 hardcode_libdir_separator=:
7997 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7998 hardcode_shlibpath_var=no
7999 export_dynamic_flag_spec='${wl}-Bexport'
8000 runpath_var=LD_RUN_PATH
8001 hardcode_runpath_var=yes
8005 no_undefined_flag=' -z text'
8006 if test "$GCC" = yes; then
8008 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8009 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8010 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8013 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8014 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8015 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8017 hardcode_libdir_flag_spec='-R$libdir'
8018 hardcode_shlibpath_var=no
8020 solaris2.[0-5] | solaris2.[0-5].*) ;;
8022 # The compiler driver will combine linker options so we
8023 # cannot just pass the convience library names through
8024 # without $wl, iff we do not link with $LD.
8025 # Luckily, gcc supports the same syntax we need for Sun Studio.
8026 # Supported since Solaris 2.6 (maybe 2.5.1?)
8029 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8031 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8034 link_all_deplibs=yes
8038 if test "x$host_vendor" = xsequent; then
8039 # Use $CC to link under sequent, because it throws in some extra .o
8040 # files that make .init and .fini sections work.
8041 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8043 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8045 hardcode_libdir_flag_spec='-L$libdir'
8047 hardcode_minus_L=yes
8048 hardcode_shlibpath_var=no
8052 case $host_vendor in
8054 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8055 hardcode_direct=yes # is this really true???
8058 ## LD is ld it makes a PLAMLIB
8059 ## CC just makes a GrossModule.
8060 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8061 reload_cmds='$CC -r -o $output$reload_objs'
8065 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8066 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8069 runpath_var='LD_RUN_PATH'
8070 hardcode_shlibpath_var=no
8074 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8075 hardcode_shlibpath_var=no
8076 export_dynamic_flag_spec='-Bexport'
8080 if test -d /usr/nec; then
8081 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8082 hardcode_shlibpath_var=no
8083 runpath_var=LD_RUN_PATH
8084 hardcode_runpath_var=yes
8090 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8093 hardcode_shlibpath_var=no
8094 hardcode_runpath_var=yes
8095 runpath_var=LD_RUN_PATH
8098 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8099 no_undefined_flag='${wl}-z ${wl}text'
8100 if test "$GCC" = yes; then
8101 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8103 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8105 runpath_var='LD_RUN_PATH'
8106 hardcode_shlibpath_var=no
8110 no_undefined_flag=' -z text'
8111 # $CC -shared without GNU ld will not create a library from C++
8112 # object files and a static libstdc++, better avoid it by now
8113 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8114 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8115 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8116 hardcode_libdir_flag_spec=
8117 hardcode_shlibpath_var=no
8118 runpath_var='LD_RUN_PATH'
8122 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8123 hardcode_libdir_flag_spec='-L$libdir'
8124 hardcode_shlibpath_var=no
8133 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8134 echo "${ECHO_T}$ld_shlibs" >&6
8135 test "$ld_shlibs" = no && can_build_shared=no
8137 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8138 if test "$GCC" = yes; then
8139 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8143 # Do we need to explicitly link libc?
8145 case "x$archive_cmds_need_lc" in
8147 # Assume -lc should be added
8148 archive_cmds_need_lc=yes
8150 if test "$enable_shared" = yes && test "$GCC" = yes; then
8151 case $archive_cmds in
8153 # FIXME: we may have to deal with multi-command sequences.
8156 # Test whether the compiler implicitly links with -lc since on some
8157 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8158 # to ld, don't add -lc before -lgcc.
8159 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8160 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8162 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8165 (eval $ac_compile) 2>&5
8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); } 2>conftest.err; then
8171 libobjs=conftest.$ac_objext
8173 wl=$lt_prog_compiler_wl
8179 lt_save_allow_undefined_flag=$allow_undefined_flag
8180 allow_undefined_flag=
8181 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8182 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); }
8187 archive_cmds_need_lc=no
8189 archive_cmds_need_lc=yes
8191 allow_undefined_flag=$lt_save_allow_undefined_flag
8193 cat conftest.err 1>&5
8196 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8197 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8204 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8205 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8207 libname_spec='lib$name'
8215 shlibpath_overrides_runpath=unknown
8217 dynamic_linker="$host_os ld.so"
8218 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8219 if test "$GCC" = yes; then
8220 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8221 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8222 # if the path contains ";" then we assume it to be the separator
8223 # otherwise default to the standard path separator (i.e. ":") - it is
8224 # assumed that no part of a normal pathname contains ";" but that should
8225 # okay in the real world where ";" in dirpaths is itself problematic.
8226 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8228 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8231 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8233 need_lib_prefix=unknown
8234 hardcode_into_libs=no
8236 # when you set need_version to no, make sure it does not cause -set_version
8237 # flags to be left without arguments
8238 need_version=unknown
8243 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8244 shlibpath_var=LIBPATH
8246 # AIX 3 has no versioning support, so we append a major version to the name.
8247 soname_spec='${libname}${release}${shared_ext}$major'
8254 hardcode_into_libs=yes
8255 if test "$host_cpu" = ia64; then
8256 # AIX 5 supports IA64
8257 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8258 shlibpath_var=LD_LIBRARY_PATH
8260 # With GCC up to 2.95.x, collect2 would create an import file
8261 # for dependence libraries. The import file would start with
8262 # the line `#! .'. This would cause the generated library to
8263 # depend on `.', always an invalid library. This was fixed in
8264 # development snapshots of GCC prior to 3.0.
8266 aix4 | aix4.[01] | aix4.[01].*)
8267 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8269 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8276 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8277 # soname into executable. Probably we can add versioning support to
8278 # collect2, so additional links can be useful in future.
8279 if test "$aix_use_runtimelinking" = yes; then
8280 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8281 # instead of lib<name>.a to let people know that these are not
8282 # typical AIX shared libraries.
8283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8285 # We preserve .a as extension for shared libraries through AIX4.2
8286 # and later when we are not doing run time linking.
8287 library_names_spec='${libname}${release}.a $libname.a'
8288 soname_spec='${libname}${release}${shared_ext}$major'
8290 shlibpath_var=LIBPATH
8295 library_names_spec='$libname.ixlibrary $libname.a'
8296 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8297 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'
8301 library_names_spec='${libname}${shared_ext}'
8302 dynamic_linker="$host_os ld.so"
8303 shlibpath_var=LIBRARY_PATH
8309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8310 soname_spec='${libname}${release}${shared_ext}$major'
8311 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8312 shlibpath_var=LD_LIBRARY_PATH
8313 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8314 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8315 # the default ld.so.conf also contains /usr/contrib/lib and
8316 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8317 # libtool to hard-code these into programs
8320 cygwin* | mingw* | pw32*)
8321 version_type=windows
8326 case $GCC,$host_os in
8327 yes,cygwin* | yes,mingw* | yes,pw32*)
8328 library_names_spec='$libname.dll.a'
8329 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8330 postinstall_cmds='base_file=`basename \${file}`~
8331 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8332 dldir=$destdir/`dirname \$dlpath`~
8333 test -d \$dldir || mkdir -p \$dldir~
8334 $install_prog $dir/$dlname \$dldir/$dlname'
8335 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8336 dlpath=$dir/\$dldll~
8338 shlibpath_overrides_runpath=yes
8342 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8343 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8344 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8347 # MinGW DLLs use traditional 'lib' prefix
8348 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8349 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8350 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8351 # It is most probably a Windows format PATH printed by
8352 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8353 # path with ; separators, and with drive letters. We can handle the
8354 # drive letters (cygwin fileutils understands them), so leave them,
8355 # especially as we might pass files found there to a mingw objdump,
8356 # which wouldn't understand a cygwinified path. Ahh.
8357 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8359 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8363 # pw32 DLLs use 'pw' prefix rather than 'lib'
8364 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8370 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8373 dynamic_linker='Win32 ld.exe'
8374 # FIXME: first we should search . and the directory the executable is in
8378 darwin* | rhapsody*)
8379 dynamic_linker="$host_os dyld"
8383 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8384 soname_spec='${libname}${release}${major}$shared_ext'
8385 shlibpath_overrides_runpath=yes
8386 shlibpath_var=DYLD_LIBRARY_PATH
8387 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8388 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8389 if test "$GCC" = yes; then
8390 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"`
8392 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8394 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8402 soname_spec='${libname}${release}${shared_ext}$major'
8403 shlibpath_var=LD_LIBRARY_PATH
8414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8415 soname_spec='${libname}${release}${shared_ext}$major'
8416 shlibpath_var=LD_LIBRARY_PATH
8417 shlibpath_overrides_runpath=no
8418 hardcode_into_libs=yes
8419 dynamic_linker='GNU ld.so'
8422 freebsd* | dragonfly*)
8423 # DragonFly does not have aout. When/if they implement a new
8424 # versioning mechanism, adjust this.
8425 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8426 version_type=freebsd-$objformat
8427 case $version_type in
8429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8434 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8438 shlibpath_var=LD_LIBRARY_PATH
8441 shlibpath_overrides_runpath=yes
8443 freebsd3.[01]* | freebsdelf3.[01]*)
8444 shlibpath_overrides_runpath=yes
8445 hardcode_into_libs=yes
8448 shlibpath_overrides_runpath=no
8449 hardcode_into_libs=yes
8458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8459 soname_spec='${libname}${release}${shared_ext}$major'
8460 shlibpath_var=LD_LIBRARY_PATH
8461 hardcode_into_libs=yes
8464 hpux9* | hpux10* | hpux11*)
8465 # Give a soname corresponding to the major version so that dld.sl refuses to
8466 # link against other versions.
8473 hardcode_into_libs=yes
8474 dynamic_linker="$host_os dld.so"
8475 shlibpath_var=LD_LIBRARY_PATH
8476 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8478 soname_spec='${libname}${release}${shared_ext}$major'
8479 if test "X$HPUX_IA64_MODE" = X32; then
8480 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8482 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8484 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8488 hardcode_into_libs=yes
8489 dynamic_linker="$host_os dld.sl"
8490 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8491 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8493 soname_spec='${libname}${release}${shared_ext}$major'
8494 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8495 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8499 dynamic_linker="$host_os dld.sl"
8500 shlibpath_var=SHLIB_PATH
8501 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8503 soname_spec='${libname}${release}${shared_ext}$major'
8506 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8507 postinstall_cmds='chmod 555 $lib'
8510 irix5* | irix6* | nonstopux*)
8512 nonstopux*) version_type=nonstopux ;;
8514 if test "$lt_cv_prog_gnu_ld" = yes; then
8522 soname_spec='${libname}${release}${shared_ext}$major'
8523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8525 irix5* | nonstopux*)
8529 case $LD in # libtool.m4 will add one of these switches to LD
8530 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8531 libsuff= shlibsuff= libmagic=32-bit;;
8532 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8533 libsuff=32 shlibsuff=N32 libmagic=N32;;
8534 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8535 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8536 *) libsuff= shlibsuff= libmagic=never-match;;
8540 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8541 shlibpath_overrides_runpath=no
8542 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8543 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8544 hardcode_into_libs=yes
8547 # No shared lib support for Linux oldld, aout, or coff.
8548 linux*oldld* | linux*aout* | linux*coff*)
8552 # This must be Linux ELF.
8557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8558 soname_spec='${libname}${release}${shared_ext}$major'
8559 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8560 shlibpath_var=LD_LIBRARY_PATH
8561 shlibpath_overrides_runpath=no
8562 # This implies no fast_install, which is unacceptable.
8563 # Some rework will be needed to allow for fast_install
8564 # before this can be enabled.
8565 hardcode_into_libs=yes
8567 # find out which ABI we are using
8570 x86_64*|s390x*|powerpc64*)
8571 echo '#line 8571 "configure"' > conftest.$ac_ext
8572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8573 (eval $ac_compile) 2>&5
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); }; then
8577 case `/usr/bin/file conftest.$ac_objext` in
8580 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8588 # Append ld.so.conf contents to the search path
8589 if test -f /etc/ld.so.conf; then
8590 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8591 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8594 # We used to test for /lib/ld.so.1 and disable shared libraries on
8595 # powerpc, because MkLinux only supported shared libraries with the
8596 # GNU dynamic linker. Since this was broken with cross compilers,
8597 # most powerpc-linux boxes support dynamic linking these days and
8598 # people can always --disable-shared, the test was removed, and we
8599 # assume the GNU/Linux dynamic linker is in use.
8600 dynamic_linker='GNU/Linux ld.so'
8607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8608 soname_spec='${libname}${release}${shared_ext}$major'
8609 shlibpath_var=LD_LIBRARY_PATH
8610 shlibpath_overrides_runpath=no
8611 hardcode_into_libs=yes
8612 dynamic_linker='GNU ld.so'
8619 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8621 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8622 dynamic_linker='NetBSD (a.out) ld.so'
8624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8625 soname_spec='${libname}${release}${shared_ext}$major'
8626 dynamic_linker='NetBSD ld.elf_so'
8628 shlibpath_var=LD_LIBRARY_PATH
8629 shlibpath_overrides_runpath=yes
8630 hardcode_into_libs=yes
8635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8636 shlibpath_var=LD_LIBRARY_PATH
8637 shlibpath_overrides_runpath=yes
8644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8645 soname_spec='${libname}${release}${shared_ext}$major'
8646 shlibpath_var=LD_LIBRARY_PATH
8647 shlibpath_overrides_runpath=yes
8654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8655 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8656 shlibpath_var=LD_LIBRARY_PATH
8657 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8659 openbsd2.[89] | openbsd2.[89].*)
8660 shlibpath_overrides_runpath=no
8663 shlibpath_overrides_runpath=yes
8667 shlibpath_overrides_runpath=yes
8672 libname_spec='$name'
8675 library_names_spec='$libname${shared_ext} $libname.a'
8676 dynamic_linker='OS/2 ld.exe'
8677 shlibpath_var=LIBPATH
8680 osf3* | osf4* | osf5*)
8684 soname_spec='${libname}${release}${shared_ext}$major'
8685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8686 shlibpath_var=LD_LIBRARY_PATH
8687 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8688 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8693 soname_spec='${libname}${release}${shared_ext}$major'
8694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8695 shlibpath_var=LD_LIBRARY_PATH
8702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8703 soname_spec='${libname}${release}${shared_ext}$major'
8704 shlibpath_var=LD_LIBRARY_PATH
8705 shlibpath_overrides_runpath=yes
8706 hardcode_into_libs=yes
8707 # ldd complains unless libraries are executable
8708 postinstall_cmds='chmod +x $lib'
8713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8714 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8715 shlibpath_var=LD_LIBRARY_PATH
8716 shlibpath_overrides_runpath=yes
8717 if test "$with_gnu_ld" = yes; then
8723 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8726 soname_spec='${libname}${release}${shared_ext}$major'
8727 shlibpath_var=LD_LIBRARY_PATH
8728 case $host_vendor in
8730 shlibpath_overrides_runpath=no
8732 export_dynamic_flag_spec='${wl}-Blargedynsym'
8733 runpath_var=LD_RUN_PATH
8741 shlibpath_overrides_runpath=no
8742 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8748 if test -d /usr/nec ;then
8750 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8751 soname_spec='$libname${shared_ext}.$major'
8752 shlibpath_var=LD_LIBRARY_PATH
8758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8759 soname_spec='${libname}${release}${shared_ext}$major'
8760 shlibpath_var=LD_LIBRARY_PATH
8767 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8768 echo "${ECHO_T}$dynamic_linker" >&6
8769 test "$dynamic_linker" = no && can_build_shared=no
8771 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8772 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8774 if test -n "$hardcode_libdir_flag_spec" || \
8775 test -n "$runpath_var" || \
8776 test "X$hardcode_automatic" = "Xyes" ; then
8778 # We can hardcode non-existant directories.
8779 if test "$hardcode_direct" != no &&
8780 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8781 # have to relink, otherwise we might link with an installed library
8782 # when we should be linking with a yet-to-be-installed one
8783 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8784 test "$hardcode_minus_L" != no; then
8785 # Linking always hardcodes the temporary library directory.
8786 hardcode_action=relink
8788 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8789 hardcode_action=immediate
8792 # We cannot hardcode anything, or else we can only hardcode existing
8794 hardcode_action=unsupported
8796 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8797 echo "${ECHO_T}$hardcode_action" >&6
8799 if test "$hardcode_action" = relink; then
8800 # Fast installation is not supported
8801 enable_fast_install=no
8802 elif test "$shlibpath_overrides_runpath" = yes ||
8803 test "$enable_shared" = no; then
8804 # Fast installation is not necessary
8805 enable_fast_install=needless
8810 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8811 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8812 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8813 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8814 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8815 echo "$as_me:$LINENO: result: yes" >&5
8816 echo "${ECHO_T}yes" >&6
8818 # FIXME - insert some real tests, host_os isn't really good enough
8821 if test -n "$STRIP" ; then
8822 striplib="$STRIP -x"
8823 echo "$as_me:$LINENO: result: yes" >&5
8824 echo "${ECHO_T}yes" >&6
8826 echo "$as_me:$LINENO: result: no" >&5
8827 echo "${ECHO_T}no" >&6
8831 echo "$as_me:$LINENO: result: no" >&5
8832 echo "${ECHO_T}no" >&6
8837 if test "x$enable_dlopen" != xyes; then
8838 enable_dlopen=unknown
8839 enable_dlopen_self=unknown
8840 enable_dlopen_self_static=unknown
8847 lt_cv_dlopen="load_add_on"
8849 lt_cv_dlopen_self=yes
8853 lt_cv_dlopen="LoadLibrary"
8858 lt_cv_dlopen="dlopen"
8863 # if libdl is installed we need to link against it
8864 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8865 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8866 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8867 echo $ECHO_N "(cached) $ECHO_C" >&6
8869 ac_check_lib_save_LIBS=$LIBS
8871 cat >conftest.$ac_ext <<_ACEOF
8874 cat confdefs.h >>conftest.$ac_ext
8875 cat >>conftest.$ac_ext <<_ACEOF
8876 /* end confdefs.h. */
8878 /* Override any gcc2 internal prototype to avoid an error. */
8882 /* We use char because int might match the return type of a gcc2
8883 builtin and then its argument prototype would still apply. */
8893 rm -f conftest.$ac_objext conftest$ac_exeext
8894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8895 (eval $ac_link) 2>conftest.er1
8897 grep -v '^ *+' conftest.er1 >conftest.err
8899 cat conftest.err >&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); } &&
8902 { ac_try='test -z "$ac_c_werror_flag"
8903 || test ! -s conftest.err'
8904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); }; } &&
8909 { ac_try='test -s conftest$ac_exeext'
8910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 (exit $ac_status); }; }; then
8915 ac_cv_lib_dl_dlopen=yes
8917 echo "$as_me: failed program was:" >&5
8918 sed 's/^/| /' conftest.$ac_ext >&5
8920 ac_cv_lib_dl_dlopen=no
8922 rm -f conftest.err conftest.$ac_objext \
8923 conftest$ac_exeext conftest.$ac_ext
8924 LIBS=$ac_check_lib_save_LIBS
8926 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8927 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8928 if test $ac_cv_lib_dl_dlopen = yes; then
8929 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8934 lt_cv_dlopen_self=yes
8941 echo "$as_me:$LINENO: checking for shl_load" >&5
8942 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8943 if test "${ac_cv_func_shl_load+set}" = set; then
8944 echo $ECHO_N "(cached) $ECHO_C" >&6
8946 cat >conftest.$ac_ext <<_ACEOF
8949 cat confdefs.h >>conftest.$ac_ext
8950 cat >>conftest.$ac_ext <<_ACEOF
8951 /* end confdefs.h. */
8952 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8954 #define shl_load innocuous_shl_load
8956 /* System header to define __stub macros and hopefully few prototypes,
8957 which can conflict with char shl_load (); below.
8958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8959 <limits.h> exists even on freestanding compilers. */
8962 # include <limits.h>
8964 # include <assert.h>
8969 /* Override any gcc2 internal prototype to avoid an error. */
8974 /* We use char because int might match the return type of a gcc2
8975 builtin and then its argument prototype would still apply. */
8977 /* The GNU C library defines this for functions which it implements
8978 to always fail with ENOSYS. Some functions are actually named
8979 something starting with __ and the normal name is an alias. */
8980 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8983 char (*f) () = shl_load;
8992 return f != shl_load;
8997 rm -f conftest.$ac_objext conftest$ac_exeext
8998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8999 (eval $ac_link) 2>conftest.er1
9001 grep -v '^ *+' conftest.er1 >conftest.err
9003 cat conftest.err >&5
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); } &&
9006 { ac_try='test -z "$ac_c_werror_flag"
9007 || test ! -s conftest.err'
9008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); }; } &&
9013 { ac_try='test -s conftest$ac_exeext'
9014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 (exit $ac_status); }; }; then
9019 ac_cv_func_shl_load=yes
9021 echo "$as_me: failed program was:" >&5
9022 sed 's/^/| /' conftest.$ac_ext >&5
9024 ac_cv_func_shl_load=no
9026 rm -f conftest.err conftest.$ac_objext \
9027 conftest$ac_exeext conftest.$ac_ext
9029 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9030 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9031 if test $ac_cv_func_shl_load = yes; then
9032 lt_cv_dlopen="shl_load"
9034 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9035 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9036 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9037 echo $ECHO_N "(cached) $ECHO_C" >&6
9039 ac_check_lib_save_LIBS=$LIBS
9041 cat >conftest.$ac_ext <<_ACEOF
9044 cat confdefs.h >>conftest.$ac_ext
9045 cat >>conftest.$ac_ext <<_ACEOF
9046 /* end confdefs.h. */
9048 /* Override any gcc2 internal prototype to avoid an error. */
9052 /* We use char because int might match the return type of a gcc2
9053 builtin and then its argument prototype would still apply. */
9063 rm -f conftest.$ac_objext conftest$ac_exeext
9064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9065 (eval $ac_link) 2>conftest.er1
9067 grep -v '^ *+' conftest.er1 >conftest.err
9069 cat conftest.err >&5
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); } &&
9072 { ac_try='test -z "$ac_c_werror_flag"
9073 || test ! -s conftest.err'
9074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); }; } &&
9079 { ac_try='test -s conftest$ac_exeext'
9080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 (exit $ac_status); }; }; then
9085 ac_cv_lib_dld_shl_load=yes
9087 echo "$as_me: failed program was:" >&5
9088 sed 's/^/| /' conftest.$ac_ext >&5
9090 ac_cv_lib_dld_shl_load=no
9092 rm -f conftest.err conftest.$ac_objext \
9093 conftest$ac_exeext conftest.$ac_ext
9094 LIBS=$ac_check_lib_save_LIBS
9096 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9097 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9098 if test $ac_cv_lib_dld_shl_load = yes; then
9099 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9101 echo "$as_me:$LINENO: checking for dlopen" >&5
9102 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9103 if test "${ac_cv_func_dlopen+set}" = set; then
9104 echo $ECHO_N "(cached) $ECHO_C" >&6
9106 cat >conftest.$ac_ext <<_ACEOF
9109 cat confdefs.h >>conftest.$ac_ext
9110 cat >>conftest.$ac_ext <<_ACEOF
9111 /* end confdefs.h. */
9112 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9114 #define dlopen innocuous_dlopen
9116 /* System header to define __stub macros and hopefully few prototypes,
9117 which can conflict with char dlopen (); below.
9118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9119 <limits.h> exists even on freestanding compilers. */
9122 # include <limits.h>
9124 # include <assert.h>
9129 /* Override any gcc2 internal prototype to avoid an error. */
9134 /* We use char because int might match the return type of a gcc2
9135 builtin and then its argument prototype would still apply. */
9137 /* The GNU C library defines this for functions which it implements
9138 to always fail with ENOSYS. Some functions are actually named
9139 something starting with __ and the normal name is an alias. */
9140 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9143 char (*f) () = dlopen;
9157 rm -f conftest.$ac_objext conftest$ac_exeext
9158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9159 (eval $ac_link) 2>conftest.er1
9161 grep -v '^ *+' conftest.er1 >conftest.err
9163 cat conftest.err >&5
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); } &&
9166 { ac_try='test -z "$ac_c_werror_flag"
9167 || test ! -s conftest.err'
9168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); }; } &&
9173 { ac_try='test -s conftest$ac_exeext'
9174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); }; }; then
9179 ac_cv_func_dlopen=yes
9181 echo "$as_me: failed program was:" >&5
9182 sed 's/^/| /' conftest.$ac_ext >&5
9184 ac_cv_func_dlopen=no
9186 rm -f conftest.err conftest.$ac_objext \
9187 conftest$ac_exeext conftest.$ac_ext
9189 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9190 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9191 if test $ac_cv_func_dlopen = yes; then
9192 lt_cv_dlopen="dlopen"
9194 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9195 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9196 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9197 echo $ECHO_N "(cached) $ECHO_C" >&6
9199 ac_check_lib_save_LIBS=$LIBS
9201 cat >conftest.$ac_ext <<_ACEOF
9204 cat confdefs.h >>conftest.$ac_ext
9205 cat >>conftest.$ac_ext <<_ACEOF
9206 /* end confdefs.h. */
9208 /* Override any gcc2 internal prototype to avoid an error. */
9212 /* We use char because int might match the return type of a gcc2
9213 builtin and then its argument prototype would still apply. */
9223 rm -f conftest.$ac_objext conftest$ac_exeext
9224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9225 (eval $ac_link) 2>conftest.er1
9227 grep -v '^ *+' conftest.er1 >conftest.err
9229 cat conftest.err >&5
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); } &&
9232 { ac_try='test -z "$ac_c_werror_flag"
9233 || test ! -s conftest.err'
9234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); }; } &&
9239 { ac_try='test -s conftest$ac_exeext'
9240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244 (exit $ac_status); }; }; then
9245 ac_cv_lib_dl_dlopen=yes
9247 echo "$as_me: failed program was:" >&5
9248 sed 's/^/| /' conftest.$ac_ext >&5
9250 ac_cv_lib_dl_dlopen=no
9252 rm -f conftest.err conftest.$ac_objext \
9253 conftest$ac_exeext conftest.$ac_ext
9254 LIBS=$ac_check_lib_save_LIBS
9256 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9257 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9258 if test $ac_cv_lib_dl_dlopen = yes; then
9259 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9261 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9262 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9263 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9264 echo $ECHO_N "(cached) $ECHO_C" >&6
9266 ac_check_lib_save_LIBS=$LIBS
9268 cat >conftest.$ac_ext <<_ACEOF
9271 cat confdefs.h >>conftest.$ac_ext
9272 cat >>conftest.$ac_ext <<_ACEOF
9273 /* end confdefs.h. */
9275 /* Override any gcc2 internal prototype to avoid an error. */
9279 /* We use char because int might match the return type of a gcc2
9280 builtin and then its argument prototype would still apply. */
9290 rm -f conftest.$ac_objext conftest$ac_exeext
9291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9292 (eval $ac_link) 2>conftest.er1
9294 grep -v '^ *+' conftest.er1 >conftest.err
9296 cat conftest.err >&5
9297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298 (exit $ac_status); } &&
9299 { ac_try='test -z "$ac_c_werror_flag"
9300 || test ! -s conftest.err'
9301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305 (exit $ac_status); }; } &&
9306 { ac_try='test -s conftest$ac_exeext'
9307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311 (exit $ac_status); }; }; then
9312 ac_cv_lib_svld_dlopen=yes
9314 echo "$as_me: failed program was:" >&5
9315 sed 's/^/| /' conftest.$ac_ext >&5
9317 ac_cv_lib_svld_dlopen=no
9319 rm -f conftest.err conftest.$ac_objext \
9320 conftest$ac_exeext conftest.$ac_ext
9321 LIBS=$ac_check_lib_save_LIBS
9323 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9324 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9325 if test $ac_cv_lib_svld_dlopen = yes; then
9326 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9328 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9329 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9330 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9331 echo $ECHO_N "(cached) $ECHO_C" >&6
9333 ac_check_lib_save_LIBS=$LIBS
9335 cat >conftest.$ac_ext <<_ACEOF
9338 cat confdefs.h >>conftest.$ac_ext
9339 cat >>conftest.$ac_ext <<_ACEOF
9340 /* end confdefs.h. */
9342 /* Override any gcc2 internal prototype to avoid an error. */
9346 /* We use char because int might match the return type of a gcc2
9347 builtin and then its argument prototype would still apply. */
9357 rm -f conftest.$ac_objext conftest$ac_exeext
9358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9359 (eval $ac_link) 2>conftest.er1
9361 grep -v '^ *+' conftest.er1 >conftest.err
9363 cat conftest.err >&5
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); } &&
9366 { ac_try='test -z "$ac_c_werror_flag"
9367 || test ! -s conftest.err'
9368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 (exit $ac_status); }; } &&
9373 { ac_try='test -s conftest$ac_exeext'
9374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); }; }; then
9379 ac_cv_lib_dld_dld_link=yes
9381 echo "$as_me: failed program was:" >&5
9382 sed 's/^/| /' conftest.$ac_ext >&5
9384 ac_cv_lib_dld_dld_link=no
9386 rm -f conftest.err conftest.$ac_objext \
9387 conftest$ac_exeext conftest.$ac_ext
9388 LIBS=$ac_check_lib_save_LIBS
9390 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9391 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9392 if test $ac_cv_lib_dld_dld_link = yes; then
9393 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9414 if test "x$lt_cv_dlopen" != xno; then
9420 case $lt_cv_dlopen in
9422 save_CPPFLAGS="$CPPFLAGS"
9423 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9425 save_LDFLAGS="$LDFLAGS"
9426 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9429 LIBS="$lt_cv_dlopen_libs $LIBS"
9431 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9432 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9433 if test "${lt_cv_dlopen_self+set}" = set; then
9434 echo $ECHO_N "(cached) $ECHO_C" >&6
9436 if test "$cross_compiling" = yes; then :
9437 lt_cv_dlopen_self=cross
9439 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9440 lt_status=$lt_dlunknown
9441 cat > conftest.$ac_ext <<EOF
9442 #line 9442 "configure"
9443 #include "confdefs.h"
9452 # define LT_DLGLOBAL RTLD_GLOBAL
9455 # define LT_DLGLOBAL DL_GLOBAL
9457 # define LT_DLGLOBAL 0
9461 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9462 find out it does not work in some platform. */
9463 #ifndef LT_DLLAZY_OR_NOW
9465 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9468 # define LT_DLLAZY_OR_NOW DL_LAZY
9471 # define LT_DLLAZY_OR_NOW RTLD_NOW
9474 # define LT_DLLAZY_OR_NOW DL_NOW
9476 # define LT_DLLAZY_OR_NOW 0
9484 extern "C" void exit (int);
9487 void fnord() { int i=42;}
9490 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9491 int status = $lt_dlunknown;
9495 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9496 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9497 /* dlclose (self); */
9503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9504 (eval $ac_link) 2>&5
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9508 (./conftest; exit; ) 2>/dev/null
9511 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9512 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9513 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9516 # compilation failed
9517 lt_cv_dlopen_self=no
9524 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9525 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9527 if test "x$lt_cv_dlopen_self" = xyes; then
9528 LDFLAGS="$LDFLAGS $link_static_flag"
9529 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9530 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9531 if test "${lt_cv_dlopen_self_static+set}" = set; then
9532 echo $ECHO_N "(cached) $ECHO_C" >&6
9534 if test "$cross_compiling" = yes; then :
9535 lt_cv_dlopen_self_static=cross
9537 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9538 lt_status=$lt_dlunknown
9539 cat > conftest.$ac_ext <<EOF
9540 #line 9540 "configure"
9541 #include "confdefs.h"
9550 # define LT_DLGLOBAL RTLD_GLOBAL
9553 # define LT_DLGLOBAL DL_GLOBAL
9555 # define LT_DLGLOBAL 0
9559 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9560 find out it does not work in some platform. */
9561 #ifndef LT_DLLAZY_OR_NOW
9563 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9566 # define LT_DLLAZY_OR_NOW DL_LAZY
9569 # define LT_DLLAZY_OR_NOW RTLD_NOW
9572 # define LT_DLLAZY_OR_NOW DL_NOW
9574 # define LT_DLLAZY_OR_NOW 0
9582 extern "C" void exit (int);
9585 void fnord() { int i=42;}
9588 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9589 int status = $lt_dlunknown;
9593 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9594 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9595 /* dlclose (self); */
9601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9602 (eval $ac_link) 2>&5
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9606 (./conftest; exit; ) 2>/dev/null
9609 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9610 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9611 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9614 # compilation failed
9615 lt_cv_dlopen_self_static=no
9622 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9623 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9626 CPPFLAGS="$save_CPPFLAGS"
9627 LDFLAGS="$save_LDFLAGS"
9632 case $lt_cv_dlopen_self in
9633 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9634 *) enable_dlopen_self=unknown ;;
9637 case $lt_cv_dlopen_self_static in
9638 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9639 *) enable_dlopen_self_static=unknown ;;
9644 # Report which librarie types wil actually be built
9645 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9646 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9647 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9648 echo "${ECHO_T}$can_build_shared" >&6
9650 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9651 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9652 test "$can_build_shared" = "no" && enable_shared=no
9654 # On AIX, shared libraries and static libraries use the same namespace, and
9655 # are all built from PIC.
9658 test "$enable_shared" = yes && enable_static=no
9659 if test -n "$RANLIB"; then
9660 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9661 postinstall_cmds='$RANLIB $lib'
9666 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9667 test "$enable_shared" = yes && enable_static=no
9671 echo "$as_me:$LINENO: result: $enable_shared" >&5
9672 echo "${ECHO_T}$enable_shared" >&6
9674 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9675 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9676 # Make sure either enable_shared or enable_static is yes.
9677 test "$enable_shared" = yes || enable_static=yes
9678 echo "$as_me:$LINENO: result: $enable_static" >&5
9679 echo "${ECHO_T}$enable_static" >&6
9681 # The else clause should only fire when bootstrapping the
9682 # libtool distribution, otherwise you forgot to ship ltmain.sh
9683 # with your package, and you will get complaints that there are
9684 # no rules to generate ltmain.sh.
9685 if test -f "$ltmain"; then
9686 # See if we are running on zsh, and set the options which allow our commands through
9687 # without removal of \ escapes.
9688 if test -n "${ZSH_VERSION+set}" ; then
9689 setopt NO_GLOB_SUBST
9691 # Now quote all the things that may contain metacharacters while being
9692 # careful not to overquote the AC_SUBSTed values. We take copies of the
9693 # variables and quote the copies for generation of the libtool script.
9694 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9696 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9697 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9698 deplibs_check_method reload_flag reload_cmds need_locks \
9699 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9700 lt_cv_sys_global_symbol_to_c_name_address \
9701 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9702 old_postinstall_cmds old_postuninstall_cmds \
9706 lt_prog_compiler_wl \
9707 lt_prog_compiler_pic \
9708 lt_prog_compiler_static \
9709 lt_prog_compiler_no_builtin_flag \
9710 export_dynamic_flag_spec \
9711 thread_safe_flag_spec \
9712 whole_archive_flag_spec \
9713 enable_shared_with_static_runtimes \
9715 old_archive_from_new_cmds \
9720 compiler_lib_search_path \
9722 archive_expsym_cmds \
9724 postuninstall_cmds \
9725 old_archive_from_expsyms_cmds \
9726 allow_undefined_flag \
9728 export_symbols_cmds \
9729 hardcode_libdir_flag_spec \
9730 hardcode_libdir_flag_spec_ld \
9731 hardcode_libdir_separator \
9732 hardcode_automatic \
9734 module_expsym_cmds \
9735 lt_cv_prog_compiler_c_o \
9740 old_archive_cmds | \
9741 old_archive_from_new_cmds | \
9743 archive_expsym_cmds | \
9745 module_expsym_cmds | \
9746 old_archive_from_expsyms_cmds | \
9747 export_symbols_cmds | \
9748 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9749 postinstall_cmds | postuninstall_cmds | \
9750 old_postinstall_cmds | old_postuninstall_cmds | \
9751 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9752 # Double-quote double-evaled strings.
9753 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9756 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9762 *'\$0 --fallback-echo"')
9763 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9768 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9770 { echo "$as_me:$LINENO: creating $ofile" >&5
9771 echo "$as_me: creating $ofile" >&6;}
9773 cat <<__EOF__ >> "$cfgfile"
9776 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9777 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9778 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9780 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9781 # Free Software Foundation, Inc.
9783 # This file is part of GNU Libtool:
9784 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9786 # This program is free software; you can redistribute it and/or modify
9787 # it under the terms of the GNU General Public License as published by
9788 # the Free Software Foundation; either version 2 of the License, or
9789 # (at your option) any later version.
9791 # This program is distributed in the hope that it will be useful, but
9792 # WITHOUT ANY WARRANTY; without even the implied warranty of
9793 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9794 # General Public License for more details.
9796 # You should have received a copy of the GNU General Public License
9797 # along with this program; if not, write to the Free Software
9798 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9800 # As a special exception to the GNU General Public License, if you
9801 # distribute this file as part of a program that contains a
9802 # configuration script generated by Autoconf, you may include it under
9803 # the same distribution terms that you use for the rest of that program.
9805 # A sed program that does not truncate output.
9808 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9809 Xsed="$SED -e 1s/^X//"
9811 # The HP-UX ksh and POSIX shell print the target directory to stdout
9813 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9815 # The names of the tagged configurations supported by this script.
9818 # ### BEGIN LIBTOOL CONFIG
9820 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9822 # Shell to use when invoking shell scripts.
9825 # Whether or not to build shared libraries.
9826 build_libtool_libs=$enable_shared
9828 # Whether or not to build static libraries.
9829 build_old_libs=$enable_static
9831 # Whether or not to add -lc for building shared libraries.
9832 build_libtool_need_lc=$archive_cmds_need_lc
9834 # Whether or not to disallow shared libs when runtime libs are static
9835 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9837 # Whether or not to optimize for fast installation.
9838 fast_install=$enable_fast_install
9841 host_alias=$host_alias
9846 build_alias=$build_alias
9850 # An echo program that does not interpret backslashes.
9855 AR_FLAGS=$lt_AR_FLAGS
9860 # A language-specific compiler.
9863 # Is the compiler the GNU C compiler?
9869 # The linker used to build libraries.
9872 # Whether we need hard or soft links.
9875 # A BSD-compatible nm program.
9878 # A symbol stripping program
9881 # Used to examine libraries when file_magic_cmd begins "file"
9882 MAGIC_CMD=$MAGIC_CMD
9884 # Used on cygwin: DLL creation program.
9887 # Used on cygwin: object dumper.
9890 # Used on cygwin: assembler.
9893 # The name of the directory that contains temporary libtool files.
9896 # How to create reloadable object files.
9897 reload_flag=$lt_reload_flag
9898 reload_cmds=$lt_reload_cmds
9900 # How to pass a linker flag through the compiler.
9901 wl=$lt_lt_prog_compiler_wl
9903 # Object file suffix (normally "o").
9906 # Old archive suffix (normally "a").
9909 # Shared library suffix (normally ".so").
9910 shrext_cmds='$shrext_cmds'
9912 # Executable file suffix (normally "").
9915 # Additional compiler flags for building library objects.
9916 pic_flag=$lt_lt_prog_compiler_pic
9919 # What is the maximum length of a command?
9920 max_cmd_len=$lt_cv_sys_max_cmd_len
9922 # Does compiler simultaneously support -c and -o options?
9923 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9925 # Must we lock files when doing compilation?
9926 need_locks=$lt_need_locks
9928 # Do we need the lib prefix for modules?
9929 need_lib_prefix=$need_lib_prefix
9931 # Do we need a version for libraries?
9932 need_version=$need_version
9934 # Whether dlopen is supported.
9935 dlopen_support=$enable_dlopen
9937 # Whether dlopen of programs is supported.
9938 dlopen_self=$enable_dlopen_self
9940 # Whether dlopen of statically linked programs is supported.
9941 dlopen_self_static=$enable_dlopen_self_static
9943 # Compiler flag to prevent dynamic linking.
9944 link_static_flag=$lt_lt_prog_compiler_static
9946 # Compiler flag to turn off builtin functions.
9947 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9949 # Compiler flag to allow reflexive dlopens.
9950 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9952 # Compiler flag to generate shared objects directly from archives.
9953 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9955 # Compiler flag to generate thread-safe objects.
9956 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9958 # Library versioning type.
9959 version_type=$version_type
9961 # Format of library name prefix.
9962 libname_spec=$lt_libname_spec
9964 # List of archive names. First name is the real one, the rest are links.
9965 # The last name is the one that the linker finds with -lNAME.
9966 library_names_spec=$lt_library_names_spec
9968 # The coded name of the library, if different from the real name.
9969 soname_spec=$lt_soname_spec
9971 # Commands used to build and install an old-style archive.
9973 old_archive_cmds=$lt_old_archive_cmds
9974 old_postinstall_cmds=$lt_old_postinstall_cmds
9975 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9977 # Create an old-style archive from a shared archive.
9978 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9980 # Create a temporary old-style archive to link instead of a shared archive.
9981 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9983 # Commands used to build and install a shared archive.
9984 archive_cmds=$lt_archive_cmds
9985 archive_expsym_cmds=$lt_archive_expsym_cmds
9986 postinstall_cmds=$lt_postinstall_cmds
9987 postuninstall_cmds=$lt_postuninstall_cmds
9989 # Commands used to build a loadable module (assumed same as above if empty)
9990 module_cmds=$lt_module_cmds
9991 module_expsym_cmds=$lt_module_expsym_cmds
9993 # Commands to strip libraries.
9994 old_striplib=$lt_old_striplib
9995 striplib=$lt_striplib
9997 # Dependencies to place before the objects being linked to create a
9999 predep_objects=$lt_predep_objects
10001 # Dependencies to place after the objects being linked to create a
10003 postdep_objects=$lt_postdep_objects
10005 # Dependencies to place before the objects being linked to create a
10007 predeps=$lt_predeps
10009 # Dependencies to place after the objects being linked to create a
10011 postdeps=$lt_postdeps
10013 # The library search path used internally by the compiler when linking
10014 # a shared library.
10015 compiler_lib_search_path=$lt_compiler_lib_search_path
10017 # Method to check whether dependent libraries are shared objects.
10018 deplibs_check_method=$lt_deplibs_check_method
10020 # Command to use when deplibs_check_method == file_magic.
10021 file_magic_cmd=$lt_file_magic_cmd
10023 # Flag that allows shared libraries with undefined symbols to be built.
10024 allow_undefined_flag=$lt_allow_undefined_flag
10026 # Flag that forces no undefined symbols.
10027 no_undefined_flag=$lt_no_undefined_flag
10029 # Commands used to finish a libtool library installation in a directory.
10030 finish_cmds=$lt_finish_cmds
10032 # Same as above, but a single script fragment to be evaled but not shown.
10033 finish_eval=$lt_finish_eval
10035 # Take the output of nm and produce a listing of raw symbols and C names.
10036 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10038 # Transform the output of nm in a proper C declaration
10039 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10041 # Transform the output of nm in a C name address pair
10042 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10044 # This is the shared library runtime path variable.
10045 runpath_var=$runpath_var
10047 # This is the shared library path variable.
10048 shlibpath_var=$shlibpath_var
10050 # Is shlibpath searched before the hard-coded library search path?
10051 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10053 # How to hardcode a shared library path into an executable.
10054 hardcode_action=$hardcode_action
10056 # Whether we should hardcode library paths into libraries.
10057 hardcode_into_libs=$hardcode_into_libs
10059 # Flag to hardcode \$libdir into a binary during linking.
10060 # This must work even if \$libdir does not exist.
10061 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10063 # If ld is used when linking, flag to hardcode \$libdir into
10064 # a binary during linking. This must work even if \$libdir does
10066 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10068 # Whether we need a single -rpath flag with a separated argument.
10069 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10071 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10072 # resulting binary.
10073 hardcode_direct=$hardcode_direct
10075 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10076 # resulting binary.
10077 hardcode_minus_L=$hardcode_minus_L
10079 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10080 # the resulting binary.
10081 hardcode_shlibpath_var=$hardcode_shlibpath_var
10083 # Set to yes if building a shared library automatically hardcodes DIR into the library
10084 # and all subsequent libraries and executables linked against it.
10085 hardcode_automatic=$hardcode_automatic
10087 # Variables whose values should be saved in libtool wrapper scripts and
10088 # restored at relink time.
10089 variables_saved_for_relink="$variables_saved_for_relink"
10091 # Whether libtool must link a program against all its dependency libraries.
10092 link_all_deplibs=$link_all_deplibs
10094 # Compile-time system search path for libraries
10095 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10097 # Run-time system search path for libraries
10098 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10100 # Fix the shell variable \$srcfile for the compiler.
10101 fix_srcfile_path="$fix_srcfile_path"
10103 # Set to yes if exported symbols are required.
10104 always_export_symbols=$always_export_symbols
10106 # The commands to list exported symbols.
10107 export_symbols_cmds=$lt_export_symbols_cmds
10109 # The commands to extract the exported symbol list from a shared archive.
10110 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10112 # Symbols that should not be listed in the preloaded symbols.
10113 exclude_expsyms=$lt_exclude_expsyms
10115 # Symbols that must always be exported.
10116 include_expsyms=$lt_include_expsyms
10118 # ### END LIBTOOL CONFIG
10125 cat <<\EOF >> "$cfgfile"
10127 # AIX sometimes has problems with the GCC collect2 program. For some
10128 # reason, if we set the COLLECT_NAMES environment variable, the problems
10129 # vanish in a puff of smoke.
10130 if test "X${COLLECT_NAMES+set}" != Xset; then
10132 export COLLECT_NAMES
10138 # We use sed instead of cat because bash on DJGPP gets confused if
10139 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10140 # text mode, it properly converts lines to CR/LF. This bash problem
10141 # is reportedly fixed, but why not run on old versions too?
10142 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10144 mv -f "$cfgfile" "$ofile" || \
10145 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10149 # If there is no Makefile yet, we rely on a make rule to execute
10150 # `config.status --recheck' to rerun these tests and create the
10151 # libtool script then.
10152 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10153 if test -f "$ltmain_in"; then
10154 test -f Makefile && make "$ltmain"
10160 ac_cpp='$CPP $CPPFLAGS'
10161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10168 # Check whether --with-tags or --without-tags was given.
10169 if test "${with_tags+set}" = set; then
10170 withval="$with_tags"
10171 tagnames="$withval"
10174 if test -f "$ltmain" && test -n "$tagnames"; then
10175 if test ! -f "${ofile}"; then
10176 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10177 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10180 if test -z "$LTCC"; then
10181 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10182 if test -z "$LTCC"; then
10183 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10184 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10186 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10187 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10191 # Extract list of available tagged configurations in $ofile.
10192 # Note that this assumes the entire list is on one line.
10193 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10195 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10196 for tagname in $tagnames; do
10198 # Check whether tagname contains only valid characters
10199 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10201 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10202 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10203 { (exit 1); exit 1; }; }
10207 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10209 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10210 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10211 { (exit 1); exit 1; }; }
10214 # Update the list of available tags.
10215 if test -n "$tagname"; then
10216 echo appending configuration tag \"$tagname\" to $ofile
10220 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10221 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10222 (test "X$CXX" != "Xg++"))) ; then
10224 ac_cpp='$CXXCPP $CPPFLAGS'
10225 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10226 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10227 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10232 archive_cmds_need_lc_CXX=no
10233 allow_undefined_flag_CXX=
10234 always_export_symbols_CXX=no
10235 archive_expsym_cmds_CXX=
10236 export_dynamic_flag_spec_CXX=
10237 hardcode_direct_CXX=no
10238 hardcode_libdir_flag_spec_CXX=
10239 hardcode_libdir_flag_spec_ld_CXX=
10240 hardcode_libdir_separator_CXX=
10241 hardcode_minus_L_CXX=no
10242 hardcode_automatic_CXX=no
10244 module_expsym_cmds_CXX=
10245 link_all_deplibs_CXX=unknown
10246 old_archive_cmds_CXX=$old_archive_cmds
10247 no_undefined_flag_CXX=
10248 whole_archive_flag_spec_CXX=
10249 enable_shared_with_static_runtimes_CXX=no
10251 # Dependencies to place before and after the object being linked:
10252 predep_objects_CXX=
10253 postdep_objects_CXX=
10256 compiler_lib_search_path_CXX=
10258 # Source file extension for C++ test sources.
10261 # Object file extension for compiled C++ test sources.
10265 # Code to be used in simple compile tests
10266 lt_simple_compile_test_code="int some_variable = 0;\n"
10268 # Code to be used in simple link tests
10269 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10271 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10273 # If no C compiler was specified, use CC.
10276 # Allow CC to be a program name with arguments.
10280 # save warnings/boilerplate of simple test code
10281 ac_outfile=conftest.$ac_objext
10282 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10283 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10284 _lt_compiler_boilerplate=`cat conftest.err`
10287 ac_outfile=conftest.$ac_objext
10288 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10289 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10290 _lt_linker_boilerplate=`cat conftest.err`
10294 # Allow CC to be a program name with arguments.
10299 lt_save_with_gnu_ld=$with_gnu_ld
10300 lt_save_path_LD=$lt_cv_path_LD
10301 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10302 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10304 unset lt_cv_prog_gnu_ld
10306 if test -n "${lt_cv_path_LDCXX+set}"; then
10307 lt_cv_path_LD=$lt_cv_path_LDCXX
10309 unset lt_cv_path_LD
10311 test -z "${LDCXX+set}" || LD=$LDCXX
10315 for cc_temp in $compiler""; do
10317 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10318 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10323 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10326 # We don't want -fno-exception wen compiling C++ code, so set the
10327 # no_builtin_flag separately
10328 if test "$GXX" = yes; then
10329 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10331 lt_prog_compiler_no_builtin_flag_CXX=
10334 if test "$GXX" = yes; then
10335 # Set up default GNU C++ configuration
10338 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10339 if test "${with_gnu_ld+set}" = set; then
10340 withval="$with_gnu_ld"
10341 test "$withval" = no || with_gnu_ld=yes
10346 if test "$GCC" = yes; then
10347 # Check if gcc -print-prog-name=ld gives a path.
10348 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10349 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10352 # gcc leaves a trailing carriage return which upsets mingw
10353 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10355 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10358 # Accept absolute paths.
10360 re_direlt='/[^/][^/]*/\.\./'
10361 # Canonicalize the pathname of ld
10362 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10363 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10364 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10366 test -z "$LD" && LD="$ac_prog"
10369 # If it fails, then pretend we aren't using GCC.
10373 # If it is relative, then search for the first ld in PATH.
10374 with_gnu_ld=unknown
10377 elif test "$with_gnu_ld" = yes; then
10378 echo "$as_me:$LINENO: checking for GNU ld" >&5
10379 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10381 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10382 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10384 if test "${lt_cv_path_LD+set}" = set; then
10385 echo $ECHO_N "(cached) $ECHO_C" >&6
10387 if test -z "$LD"; then
10388 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10389 for ac_dir in $PATH; do
10391 test -z "$ac_dir" && ac_dir=.
10392 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10393 lt_cv_path_LD="$ac_dir/$ac_prog"
10394 # Check to see if the program is GNU ld. I'd rather use --version,
10395 # but apparently some GNU ld's only accept -v.
10396 # Break only if it was the GNU/non-GNU ld that we prefer.
10397 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10398 *GNU* | *'with BFD'*)
10399 test "$with_gnu_ld" != no && break
10402 test "$with_gnu_ld" != yes && break
10409 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10413 LD="$lt_cv_path_LD"
10414 if test -n "$LD"; then
10415 echo "$as_me:$LINENO: result: $LD" >&5
10416 echo "${ECHO_T}$LD" >&6
10418 echo "$as_me:$LINENO: result: no" >&5
10419 echo "${ECHO_T}no" >&6
10421 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10422 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10423 { (exit 1); exit 1; }; }
10424 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10425 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10426 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10427 echo $ECHO_N "(cached) $ECHO_C" >&6
10429 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10430 case `$LD -v 2>&1 </dev/null` in
10431 *GNU* | *'with BFD'*)
10432 lt_cv_prog_gnu_ld=yes
10435 lt_cv_prog_gnu_ld=no
10439 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10440 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10441 with_gnu_ld=$lt_cv_prog_gnu_ld
10445 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10446 # archiving commands below assume that GNU ld is being used.
10447 if test "$with_gnu_ld" = yes; then
10448 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10449 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'
10451 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10452 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10454 # If archive_cmds runs LD, not CC, wlarc should be empty
10455 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10456 # investigate it a little bit more. (MM)
10459 # ancient GNU ld didn't support --whole-archive et. al.
10460 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10461 grep 'no-whole-archive' > /dev/null; then
10462 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10464 whole_archive_flag_spec_CXX=
10470 # A generic and very simple default shared library creation
10471 # command for GNU C++ for the case where it uses the native
10472 # linker, instead of GNU ld. If possible, this setting should
10473 # overridden to take advantage of the native linker features on
10474 # the platform it is being used on.
10475 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10478 # Commands to make compiler produce verbose output that lists
10479 # what "hidden" libraries, object files and flags are used when
10480 # linking a shared library.
10481 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10489 # PORTME: fill in a description of your system's C++ link characteristics
10490 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10491 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10495 # FIXME: insert proper C++ library support
10499 if test "$host_cpu" = ia64; then
10500 # On IA64, the linker does run time linking by default, so we don't
10501 # have to do anything special.
10502 aix_use_runtimelinking=no
10503 exp_sym_flag='-Bexport'
10506 aix_use_runtimelinking=no
10508 # Test if we are trying to use run time linking or normal
10509 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10510 # need to do runtime linking.
10511 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10512 for ld_flag in $LDFLAGS; do
10515 aix_use_runtimelinking=yes
10522 exp_sym_flag='-bexport'
10523 no_entry_flag='-bnoentry'
10526 # When large executables or shared objects are built, AIX ld can
10527 # have problems creating the table of contents. If linking a library
10528 # or program results in "error TOC overflow" add -mminimal-toc to
10529 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10530 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10532 archive_cmds_CXX=''
10533 hardcode_direct_CXX=yes
10534 hardcode_libdir_separator_CXX=':'
10535 link_all_deplibs_CXX=yes
10537 if test "$GXX" = yes; then
10538 case $host_os in aix4.[012]|aix4.[012].*)
10539 # We only want to do this on AIX 4.2 and lower, the check
10540 # below for broken collect2 doesn't work under 4.3+
10541 collect2name=`${CC} -print-prog-name=collect2`
10542 if test -f "$collect2name" && \
10543 strings "$collect2name" | grep resolve_lib_name >/dev/null
10545 # We have reworked collect2
10546 hardcode_direct_CXX=yes
10548 # We have old collect2
10549 hardcode_direct_CXX=unsupported
10550 # It fails to find uninstalled libraries when the uninstalled
10551 # path is not listed in the libpath. Setting hardcode_minus_L
10552 # to unsupported forces relinking
10553 hardcode_minus_L_CXX=yes
10554 hardcode_libdir_flag_spec_CXX='-L$libdir'
10555 hardcode_libdir_separator_CXX=
10558 shared_flag='-shared'
10559 if test "$aix_use_runtimelinking" = yes; then
10560 shared_flag="$shared_flag "'${wl}-G'
10564 if test "$host_cpu" = ia64; then
10565 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10566 # chokes on -Wl,-G. The following line is correct:
10569 if test "$aix_use_runtimelinking" = yes; then
10570 shared_flag='${wl}-G'
10572 shared_flag='${wl}-bM:SRE'
10577 # It seems that -bexpall does not export symbols beginning with
10578 # underscore (_), so it is better to generate a list of symbols to export.
10579 always_export_symbols_CXX=yes
10580 if test "$aix_use_runtimelinking" = yes; then
10581 # Warning - without using the other runtime loading flags (-brtl),
10582 # -berok will link without error, but may produce a broken library.
10583 allow_undefined_flag_CXX='-berok'
10584 # Determine the default libpath from the value encoded in an empty executable.
10585 cat >conftest.$ac_ext <<_ACEOF
10588 cat confdefs.h >>conftest.$ac_ext
10589 cat >>conftest.$ac_ext <<_ACEOF
10590 /* end confdefs.h. */
10600 rm -f conftest.$ac_objext conftest$ac_exeext
10601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10602 (eval $ac_link) 2>conftest.er1
10604 grep -v '^ *+' conftest.er1 >conftest.err
10606 cat conftest.err >&5
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); } &&
10609 { ac_try='test -z "$ac_cxx_werror_flag"
10610 || test ! -s conftest.err'
10611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10612 (eval $ac_try) 2>&5
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); }; } &&
10616 { ac_try='test -s conftest$ac_exeext'
10617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10618 (eval $ac_try) 2>&5
10620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); }; }; then
10623 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10625 # Check for a 64-bit object if we didn't find anything.
10626 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; }
10629 echo "$as_me: failed program was:" >&5
10630 sed 's/^/| /' conftest.$ac_ext >&5
10633 rm -f conftest.err conftest.$ac_objext \
10634 conftest$ac_exeext conftest.$ac_ext
10635 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10637 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10639 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"
10641 if test "$host_cpu" = ia64; then
10642 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10643 allow_undefined_flag_CXX="-z nodefs"
10644 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"
10646 # Determine the default libpath from the value encoded in an empty executable.
10647 cat >conftest.$ac_ext <<_ACEOF
10650 cat confdefs.h >>conftest.$ac_ext
10651 cat >>conftest.$ac_ext <<_ACEOF
10652 /* end confdefs.h. */
10662 rm -f conftest.$ac_objext conftest$ac_exeext
10663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10664 (eval $ac_link) 2>conftest.er1
10666 grep -v '^ *+' conftest.er1 >conftest.err
10668 cat conftest.err >&5
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); } &&
10671 { ac_try='test -z "$ac_cxx_werror_flag"
10672 || test ! -s conftest.err'
10673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10674 (eval $ac_try) 2>&5
10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677 (exit $ac_status); }; } &&
10678 { ac_try='test -s conftest$ac_exeext'
10679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10680 (eval $ac_try) 2>&5
10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683 (exit $ac_status); }; }; then
10685 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10687 # Check for a 64-bit object if we didn't find anything.
10688 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; }
10691 echo "$as_me: failed program was:" >&5
10692 sed 's/^/| /' conftest.$ac_ext >&5
10695 rm -f conftest.err conftest.$ac_objext \
10696 conftest$ac_exeext conftest.$ac_ext
10697 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10699 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10700 # Warning - without using the other run time loading flags,
10701 # -berok will link without error, but may produce a broken library.
10702 no_undefined_flag_CXX=' ${wl}-bernotok'
10703 allow_undefined_flag_CXX=' ${wl}-berok'
10704 # -bexpall does not export symbols beginning with underscore (_)
10705 always_export_symbols_CXX=yes
10706 # Exported symbols can be pulled into shared objects from archives
10707 whole_archive_flag_spec_CXX=' '
10708 archive_cmds_need_lc_CXX=yes
10709 # This is similar to how AIX traditionally builds it's shared libraries.
10710 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'
10715 case $cc_basename in
10717 # FIXME: insert proper C++ library support
10724 cygwin* | mingw* | pw32*)
10725 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10726 # as there is no search path for DLLs.
10727 hardcode_libdir_flag_spec_CXX='-L$libdir'
10728 allow_undefined_flag_CXX=unsupported
10729 always_export_symbols_CXX=no
10730 enable_shared_with_static_runtimes_CXX=yes
10732 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10733 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'
10734 # If the export-symbols file already is a .def file (1st line
10735 # is EXPORTS), use it as is; otherwise, prepend...
10736 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10737 cp $export_symbols $output_objdir/$soname.def;
10739 echo EXPORTS > $output_objdir/$soname.def;
10740 cat $export_symbols >> $output_objdir/$soname.def;
10742 $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'
10747 darwin* | rhapsody*)
10749 rhapsody* | darwin1.[012])
10750 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10753 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10754 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10756 case ${MACOSX_DEPLOYMENT_TARGET} in
10758 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10761 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10767 archive_cmds_need_lc_CXX=no
10768 hardcode_direct_CXX=no
10769 hardcode_automatic_CXX=yes
10770 hardcode_shlibpath_var_CXX=unsupported
10771 whole_archive_flag_spec_CXX=''
10772 link_all_deplibs_CXX=yes
10774 if test "$GXX" = yes ; then
10775 lt_int_apple_cc_single_mod=no
10776 output_verbose_link_cmd='echo'
10777 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10778 lt_int_apple_cc_single_mod=yes
10780 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10781 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10783 archive_cmds_CXX='$CC -r -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'
10785 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10786 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10787 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10788 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}'
10790 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -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}'
10792 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10794 case $cc_basename in
10796 output_verbose_link_cmd='echo'
10797 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10798 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10799 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10800 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10801 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10811 case $cc_basename in
10813 # FIXME: insert proper C++ library support
10817 # Green Hills C++ Compiler
10818 # FIXME: insert proper C++ library support
10822 # FIXME: insert proper C++ library support
10828 # C++ shared libraries reported to be fairly broken before switch to ELF
10832 archive_cmds_need_lc_CXX=no
10834 freebsd* | kfreebsd*-gnu | dragonfly*)
10835 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10842 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10843 hardcode_libdir_separator_CXX=:
10844 export_dynamic_flag_spec_CXX='${wl}-E'
10845 hardcode_direct_CXX=yes
10846 hardcode_minus_L_CXX=yes # Not in the search PATH,
10847 # but as the default
10848 # location of the library.
10850 case $cc_basename in
10852 # FIXME: insert proper C++ library support
10856 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'
10857 # Commands to make compiler produce verbose output that lists
10858 # what "hidden" libraries, object files and flags are used when
10859 # linking a shared library.
10861 # There doesn't appear to be a way to prevent this compiler from
10862 # explicitly linking system object files so we need to strip them
10863 # from the output so that they don't get included in the library
10865 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'
10868 if test "$GXX" = yes; then
10869 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'
10871 # FIXME: insert proper C++ library support
10878 if test $with_gnu_ld = no; then
10879 case "$host_cpu" in
10881 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10882 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10883 hardcode_libdir_separator_CXX=:
10886 hardcode_libdir_flag_spec_CXX='-L$libdir'
10889 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10890 hardcode_libdir_separator_CXX=:
10891 export_dynamic_flag_spec_CXX='${wl}-E'
10895 case "$host_cpu" in
10897 hardcode_direct_CXX=no
10898 hardcode_shlibpath_var_CXX=no
10901 hardcode_direct_CXX=no
10902 hardcode_shlibpath_var_CXX=no
10903 hardcode_minus_L_CXX=yes # Not in the search PATH,
10904 # but as the default
10905 # location of the library.
10908 hardcode_direct_CXX=yes
10909 hardcode_minus_L_CXX=yes # Not in the search PATH,
10910 # but as the default
10911 # location of the library.
10915 case $cc_basename in
10917 # FIXME: insert proper C++ library support
10921 case "$host_cpu" in
10923 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10926 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10929 # Commands to make compiler produce verbose output that lists
10930 # what "hidden" libraries, object files and flags are used when
10931 # linking a shared library.
10933 # There doesn't appear to be a way to prevent this compiler from
10934 # explicitly linking system object files so we need to strip them
10935 # from the output so that they don't get included in the library
10937 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'
10940 if test "$GXX" = yes; then
10941 if test $with_gnu_ld = no; then
10942 case "$host_cpu" in
10944 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10947 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'
10952 # FIXME: insert proper C++ library support
10959 case $cc_basename in
10962 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 ${output_objdir}/so_locations -o $lib'
10964 # Archives containing C++ object files must be created using
10965 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10966 # necessary to make sure instantiated templates are included
10968 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10971 if test "$GXX" = yes; then
10972 if test "$with_gnu_ld" = no; then
10973 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}${output_objdir}/so_locations -o $lib'
10975 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'
10978 link_all_deplibs_CXX=yes
10981 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10982 hardcode_libdir_separator_CXX=:
10985 case $cc_basename in
10987 # Kuck and Associates, Inc. (KAI) C++ Compiler
10989 # KCC will only create a shared library if the output file
10990 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10991 # to its proper name (with version) after linking.
10992 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'
10993 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'
10994 # Commands to make compiler produce verbose output that lists
10995 # what "hidden" libraries, object files and flags are used when
10996 # linking a shared library.
10998 # There doesn't appear to be a way to prevent this compiler from
10999 # explicitly linking system object files so we need to strip them
11000 # from the output so that they don't get included in the library
11002 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'
11004 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11005 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11007 # Archives containing C++ object files must be created using
11008 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11009 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11014 # version 8.0 and above of icpc choke on multiply defined symbols
11015 # if we add $predep_objects and $postdep_objects, however 7.1 and
11016 # earlier do not add the objects themselves.
11017 case `$CC -V 2>&1` in
11019 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11020 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'
11022 *) # Version 8.0 or newer
11025 ia64*) tmp_idyn=' -i_dynamic';;
11027 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11028 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11031 archive_cmds_need_lc_CXX=no
11032 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11033 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11034 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11037 # Portland Group C++ compiler
11038 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11039 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'
11041 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11042 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11043 whole_archive_flag_spec_CXX=''
11047 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11048 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'
11050 runpath_var=LD_RUN_PATH
11051 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11052 hardcode_libdir_separator_CXX=:
11054 # Commands to make compiler produce verbose output that lists
11055 # what "hidden" libraries, object files and flags are used when
11056 # linking a shared library.
11058 # There doesn't appear to be a way to prevent this compiler from
11059 # explicitly linking system object files so we need to strip them
11060 # from the output so that they don't get included in the library
11062 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'
11067 # FIXME: insert proper C++ library support
11071 # FIXME: insert proper C++ library support
11075 case $cc_basename in
11077 # FIXME: insert proper C++ library support
11081 # FIXME: insert proper C++ library support
11087 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11088 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11090 hardcode_libdir_flag_spec_CXX='-R$libdir'
11091 hardcode_direct_CXX=yes
11092 hardcode_shlibpath_var_CXX=no
11094 # Workaround some broken pre-1.5 toolchains
11095 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11098 # C++ shared libraries are fairly broken
11102 hardcode_direct_CXX=yes
11103 hardcode_shlibpath_var_CXX=no
11104 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11105 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11106 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11107 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11108 export_dynamic_flag_spec_CXX='${wl}-E'
11109 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11111 output_verbose_link_cmd='echo'
11114 case $cc_basename in
11116 # Kuck and Associates, Inc. (KAI) C++ Compiler
11118 # KCC will only create a shared library if the output file
11119 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11120 # to its proper name (with version) after linking.
11121 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'
11123 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11124 hardcode_libdir_separator_CXX=:
11126 # Archives containing C++ object files must be created using
11127 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11128 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11132 # Rational C++ 2.4.1
11133 # FIXME: insert proper C++ library support
11137 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11138 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 ${output_objdir}/so_locations -o $lib'
11140 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11141 hardcode_libdir_separator_CXX=:
11143 # Commands to make compiler produce verbose output that lists
11144 # what "hidden" libraries, object files and flags are used when
11145 # linking a shared library.
11147 # There doesn't appear to be a way to prevent this compiler from
11148 # explicitly linking system object files so we need to strip them
11149 # from the output so that they don't get included in the library
11151 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'
11154 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11155 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11156 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}${output_objdir}/so_locations -o $lib'
11158 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11159 hardcode_libdir_separator_CXX=:
11161 # Commands to make compiler produce verbose output that lists
11162 # what "hidden" libraries, object files and flags are used when
11163 # linking a shared library.
11164 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11167 # FIXME: insert proper C++ library support
11174 case $cc_basename in
11176 # Kuck and Associates, Inc. (KAI) C++ Compiler
11178 # KCC will only create a shared library if the output file
11179 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11180 # to its proper name (with version) after linking.
11181 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'
11183 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11184 hardcode_libdir_separator_CXX=:
11186 # Archives containing C++ object files must be created using
11187 # the KAI C++ compiler.
11188 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11191 # Rational C++ 2.4.1
11192 # FIXME: insert proper C++ library support
11196 allow_undefined_flag_CXX=' -expect_unresolved \*'
11197 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 ${output_objdir}/so_locations -o $lib'
11198 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11199 echo "-hidden">> $lib.exp~
11200 $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 ${output_objdir}/so_locations -o $lib~
11203 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11204 hardcode_libdir_separator_CXX=:
11206 # Commands to make compiler produce verbose output that lists
11207 # what "hidden" libraries, object files and flags are used when
11208 # linking a shared library.
11210 # There doesn't appear to be a way to prevent this compiler from
11211 # explicitly linking system object files so we need to strip them
11212 # from the output so that they don't get included in the library
11214 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'
11217 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11218 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11219 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}${output_objdir}/so_locations -o $lib'
11221 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11222 hardcode_libdir_separator_CXX=:
11224 # Commands to make compiler produce verbose output that lists
11225 # what "hidden" libraries, object files and flags are used when
11226 # linking a shared library.
11227 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11230 # FIXME: insert proper C++ library support
11237 # FIXME: insert proper C++ library support
11241 archive_cmds_need_lc_CXX=no
11242 case $cc_basename in
11244 # FIXME: insert proper C++ library support
11248 # FIXME: insert proper C++ library support
11254 case $cc_basename in
11257 # FIXME: insert proper C++ library support
11262 # FIXME: insert proper C++ library support
11266 # FIXME: insert proper C++ library support
11272 case $cc_basename in
11274 # Sun C++ 4.2, 5.x and Centerline C++
11275 no_undefined_flag_CXX=' -zdefs'
11276 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11277 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11278 $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'
11280 hardcode_libdir_flag_spec_CXX='-R$libdir'
11281 hardcode_shlibpath_var_CXX=no
11283 solaris2.[0-5] | solaris2.[0-5].*) ;;
11285 # The C++ compiler is used as linker so we must use $wl
11286 # flag to pass the commands to the underlying system
11287 # linker. We must also pass each convience library through
11288 # to the system linker between allextract/defaultextract.
11289 # The C++ compiler will combine linker options so we
11290 # cannot just pass the convience library names through
11292 # Supported since Solaris 2.6 (maybe 2.5.1?)
11293 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11296 link_all_deplibs_CXX=yes
11298 # Commands to make compiler produce verbose output that lists
11299 # what "hidden" libraries, object files and flags are used when
11300 # linking a shared library.
11302 # There doesn't appear to be a way to prevent this compiler from
11303 # explicitly linking system object files so we need to strip them
11304 # from the output so that they don't get included in the library
11306 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'
11308 # Archives containing C++ object files must be created using
11309 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11310 # necessary to make sure instantiated templates are included
11312 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11315 # Green Hills C++ Compiler
11316 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11318 # The C++ compiler must be used to create the archive.
11319 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11322 # GNU C++ compiler with Solaris linker
11323 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11324 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11325 if $CC --version | grep -v '^2\.7' > /dev/null; then
11326 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11327 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11328 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11330 # Commands to make compiler produce verbose output that lists
11331 # what "hidden" libraries, object files and flags are used when
11332 # linking a shared library.
11333 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11335 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11337 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11338 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11339 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11341 # Commands to make compiler produce verbose output that lists
11342 # what "hidden" libraries, object files and flags are used when
11343 # linking a shared library.
11344 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11347 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11352 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11353 archive_cmds_need_lc_CXX=no
11356 case $cc_basename in
11358 # NonStop-UX NCC 3.20
11359 # FIXME: insert proper C++ library support
11363 # FIXME: insert proper C++ library support
11369 # FIXME: insert proper C++ library support
11373 # FIXME: insert proper C++ library support
11377 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11378 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11379 test "$ld_shlibs_CXX" = no && can_build_shared=no
11385 ## There is no encapsulation within the following macros, do not change
11386 ## the running order or otherwise move them around unless you know exactly
11387 ## what you are doing...
11389 cat > conftest.$ac_ext <<EOF
11393 Foo (void) { a = 0; }
11399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11400 (eval $ac_compile) 2>&5
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); }; then
11404 # Parse the compiler output and extract the necessary
11405 # objects, libraries and library flags.
11407 # Sentinel used to keep track of whether or not we are before
11408 # the conftest object file.
11409 pre_test_object_deps_done=no
11411 # The `*' in the case matches for architectures that use `case' in
11412 # $output_verbose_cmd can trigger glob expansion during the loop
11413 # eval without this substitution.
11414 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11416 for p in `eval $output_verbose_link_cmd`; do
11420 # Some compilers place space between "-{L,R}" and the path.
11421 # Remove the space.
11422 if test $p = "-L" \
11423 || test $p = "-R"; then
11430 if test "$pre_test_object_deps_done" = no; then
11433 # Internal compiler library paths should come after those
11434 # provided the user. The postdeps already come after the
11435 # user supplied libs so there is no need to process them.
11436 if test -z "$compiler_lib_search_path_CXX"; then
11437 compiler_lib_search_path_CXX="${prev}${p}"
11439 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11442 # The "-l" case would never come before the object being
11443 # linked, so don't bother handling this case.
11446 if test -z "$postdeps_CXX"; then
11447 postdeps_CXX="${prev}${p}"
11449 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11455 # This assumes that the test object file only shows up
11456 # once in the compiler output.
11457 if test "$p" = "conftest.$objext"; then
11458 pre_test_object_deps_done=yes
11462 if test "$pre_test_object_deps_done" = no; then
11463 if test -z "$predep_objects_CXX"; then
11464 predep_objects_CXX="$p"
11466 predep_objects_CXX="$predep_objects_CXX $p"
11469 if test -z "$postdep_objects_CXX"; then
11470 postdep_objects_CXX="$p"
11472 postdep_objects_CXX="$postdep_objects_CXX $p"
11477 *) ;; # Ignore the rest.
11485 echo "libtool.m4: error: problem compiling CXX test program"
11488 $rm -f confest.$objext
11490 case " $postdeps_CXX " in
11491 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11494 lt_prog_compiler_wl_CXX=
11495 lt_prog_compiler_pic_CXX=
11496 lt_prog_compiler_static_CXX=
11498 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11499 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11501 # C++ specific cases for pic, static, wl, etc.
11502 if test "$GXX" = yes; then
11503 lt_prog_compiler_wl_CXX='-Wl,'
11504 lt_prog_compiler_static_CXX='-static'
11508 # All AIX code is PIC.
11509 if test "$host_cpu" = ia64; then
11510 # AIX 5 now supports IA64 processor
11511 lt_prog_compiler_static_CXX='-Bstatic'
11515 # FIXME: we need at least 68020 code to build shared libraries, but
11516 # adding the `-m68020' flag to GCC prevents building anything better,
11518 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11520 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11521 # PIC is the default for these OSes.
11523 mingw* | os2* | pw32*)
11524 # This hack is so that the source file can tell whether it is being
11525 # built for inclusion in a dll (and should export symbols for example).
11526 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11528 darwin* | rhapsody*)
11529 # PIC is the default on this platform
11530 # Common symbols not allowed in MH_DYLIB files
11531 lt_prog_compiler_pic_CXX='-fno-common'
11534 # DJGPP does not support shared libraries at all
11535 lt_prog_compiler_pic_CXX=
11538 if test -d /usr/nec; then
11539 lt_prog_compiler_pic_CXX=-Kconform_pic
11543 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11544 # not for PA HP-UX.
11545 case "$host_cpu" in
11549 lt_prog_compiler_pic_CXX='-fPIC'
11554 lt_prog_compiler_pic_CXX='-fPIC'
11560 # All AIX code is PIC.
11561 if test "$host_cpu" = ia64; then
11562 # AIX 5 now supports IA64 processor
11563 lt_prog_compiler_static_CXX='-Bstatic'
11565 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11569 case $cc_basename in
11571 # Green Hills C++ Compiler
11572 # _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"
11577 # PIC is the default on this platform
11578 # Common symbols not allowed in MH_DYLIB files
11579 case $cc_basename in
11581 lt_prog_compiler_pic_CXX='-qnocommon'
11582 lt_prog_compiler_wl_CXX='-Wl,'
11587 case $cc_basename in
11589 lt_prog_compiler_pic_CXX='-KPIC'
11592 # Green Hills C++ Compiler
11593 lt_prog_compiler_pic_CXX='-pic'
11599 freebsd* | kfreebsd*-gnu | dragonfly*)
11600 # FreeBSD uses GNU C++
11602 hpux9* | hpux10* | hpux11*)
11603 case $cc_basename in
11605 lt_prog_compiler_wl_CXX='-Wl,'
11606 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11607 if test "$host_cpu" != ia64; then
11608 lt_prog_compiler_pic_CXX='+Z'
11612 lt_prog_compiler_wl_CXX='-Wl,'
11613 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11614 case "$host_cpu" in
11619 lt_prog_compiler_pic_CXX='+Z'
11627 irix5* | irix6* | nonstopux*)
11628 case $cc_basename in
11630 lt_prog_compiler_wl_CXX='-Wl,'
11631 lt_prog_compiler_static_CXX='-non_shared'
11632 # CC pic flag -KPIC is the default.
11639 case $cc_basename in
11642 lt_prog_compiler_wl_CXX='--backend -Wl,'
11643 lt_prog_compiler_pic_CXX='-fPIC'
11647 lt_prog_compiler_wl_CXX='-Wl,'
11648 lt_prog_compiler_pic_CXX='-KPIC'
11649 lt_prog_compiler_static_CXX='-static'
11652 # Portland Group C++ compiler.
11653 lt_prog_compiler_wl_CXX='-Wl,'
11654 lt_prog_compiler_pic_CXX='-fpic'
11655 lt_prog_compiler_static_CXX='-static'
11659 # Make sure the PIC flag is empty. It appears that all Alpha
11660 # Linux and Compaq Tru64 Unix objects are PIC.
11661 lt_prog_compiler_pic_CXX=
11662 lt_prog_compiler_static_CXX='-non_shared'
11673 case $cc_basename in
11675 lt_prog_compiler_pic_CXX='-W c,exportall'
11683 osf3* | osf4* | osf5*)
11684 case $cc_basename in
11686 lt_prog_compiler_wl_CXX='--backend -Wl,'
11689 # Rational C++ 2.4.1
11690 lt_prog_compiler_pic_CXX='-pic'
11693 # Digital/Compaq C++
11694 lt_prog_compiler_wl_CXX='-Wl,'
11695 # Make sure the PIC flag is empty. It appears that all Alpha
11696 # Linux and Compaq Tru64 Unix objects are PIC.
11697 lt_prog_compiler_pic_CXX=
11698 lt_prog_compiler_static_CXX='-non_shared'
11707 case $cc_basename in
11709 lt_prog_compiler_pic_CXX='-fPIC'
11716 case $cc_basename in
11718 # Sun C++ 4.2, 5.x and Centerline C++
11719 lt_prog_compiler_pic_CXX='-KPIC'
11720 lt_prog_compiler_static_CXX='-Bstatic'
11721 lt_prog_compiler_wl_CXX='-Qoption ld '
11724 # Green Hills C++ Compiler
11725 lt_prog_compiler_pic_CXX='-PIC'
11732 case $cc_basename in
11735 lt_prog_compiler_pic_CXX='-pic'
11736 lt_prog_compiler_static_CXX='-Bstatic'
11740 lt_prog_compiler_pic_CXX='-pic'
11747 case $cc_basename in
11749 # NonStop-UX NCC 3.20
11750 lt_prog_compiler_pic_CXX='-KPIC'
11761 lt_prog_compiler_can_build_shared_CXX=no
11766 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11767 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11770 # Check to make sure the PIC flag actually works.
11772 if test -n "$lt_prog_compiler_pic_CXX"; then
11774 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11775 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11776 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11777 echo $ECHO_N "(cached) $ECHO_C" >&6
11779 lt_prog_compiler_pic_works_CXX=no
11780 ac_outfile=conftest.$ac_objext
11781 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11782 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11783 # Insert the option either (1) after the last *FLAGS variable, or
11784 # (2) before a word containing "conftest.", or (3) at the end.
11785 # Note that $ac_compile itself does not contain backslashes and begins
11786 # with a dollar sign (not a hyphen), so the echo should work correctly.
11787 # The option is referenced via a variable to avoid confusing sed.
11788 lt_compile=`echo "$ac_compile" | $SED \
11789 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11790 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11791 -e 's:$: $lt_compiler_flag:'`
11792 (eval echo "\"\$as_me:11792: $lt_compile\"" >&5)
11793 (eval "$lt_compile" 2>conftest.err)
11795 cat conftest.err >&5
11796 echo "$as_me:11796: \$? = $ac_status" >&5
11797 if (exit $ac_status) && test -s "$ac_outfile"; then
11798 # The compiler can only warn and ignore the option if not recognized
11799 # So say no if there are warnings other than the usual output.
11800 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11801 $SED '/^$/d' conftest.err >conftest.er2
11802 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11803 lt_prog_compiler_pic_works_CXX=yes
11809 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11810 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11812 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11813 case $lt_prog_compiler_pic_CXX in
11815 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11818 lt_prog_compiler_pic_CXX=
11819 lt_prog_compiler_can_build_shared_CXX=no
11824 # For platforms which do not support PIC, -DPIC is meaningless:
11826 lt_prog_compiler_pic_CXX=
11829 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11833 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11834 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11835 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11836 echo $ECHO_N "(cached) $ECHO_C" >&6
11838 lt_cv_prog_compiler_c_o_CXX=no
11839 $rm -r conftest 2>/dev/null
11843 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11845 lt_compiler_flag="-o out/conftest2.$ac_objext"
11846 # Insert the option either (1) after the last *FLAGS variable, or
11847 # (2) before a word containing "conftest.", or (3) at the end.
11848 # Note that $ac_compile itself does not contain backslashes and begins
11849 # with a dollar sign (not a hyphen), so the echo should work correctly.
11850 lt_compile=`echo "$ac_compile" | $SED \
11851 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11852 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11853 -e 's:$: $lt_compiler_flag:'`
11854 (eval echo "\"\$as_me:11854: $lt_compile\"" >&5)
11855 (eval "$lt_compile" 2>out/conftest.err)
11857 cat out/conftest.err >&5
11858 echo "$as_me:11858: \$? = $ac_status" >&5
11859 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11861 # The compiler can only warn and ignore the option if not recognized
11862 # So say no if there are warnings
11863 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11864 $SED '/^$/d' out/conftest.err >out/conftest.er2
11865 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11866 lt_cv_prog_compiler_c_o_CXX=yes
11871 # SGI C++ compiler will create directory out/ii_files/ for
11872 # template instantiation
11873 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11874 $rm out/* && rmdir out
11880 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11881 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11884 hard_links="nottested"
11885 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11886 # do not overwrite the value of need_locks provided by the user
11887 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11888 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11891 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11893 ln conftest.a conftest.b 2>&5 || hard_links=no
11894 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11895 echo "$as_me:$LINENO: result: $hard_links" >&5
11896 echo "${ECHO_T}$hard_links" >&6
11897 if test "$hard_links" = no; then
11898 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11899 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11906 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11907 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11909 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11912 # If we're using GNU nm, then we don't want the "-C" option.
11913 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11914 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11915 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'
11917 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'
11921 export_symbols_cmds_CXX="$ltdll_cmds"
11924 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11927 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11931 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11932 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11933 test "$ld_shlibs_CXX" = no && can_build_shared=no
11935 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11936 if test "$GCC" = yes; then
11937 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11941 # Do we need to explicitly link libc?
11943 case "x$archive_cmds_need_lc_CXX" in
11945 # Assume -lc should be added
11946 archive_cmds_need_lc_CXX=yes
11948 if test "$enable_shared" = yes && test "$GCC" = yes; then
11949 case $archive_cmds_CXX in
11951 # FIXME: we may have to deal with multi-command sequences.
11954 # Test whether the compiler implicitly links with -lc since on some
11955 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11956 # to ld, don't add -lc before -lgcc.
11957 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11958 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11960 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11963 (eval $ac_compile) 2>&5
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); } 2>conftest.err; then
11969 libobjs=conftest.$ac_objext
11971 wl=$lt_prog_compiler_wl_CXX
11977 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11978 allow_undefined_flag_CXX=
11979 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11980 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); }
11985 archive_cmds_need_lc_CXX=no
11987 archive_cmds_need_lc_CXX=yes
11989 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11991 cat conftest.err 1>&5
11994 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11995 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12002 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12003 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12004 library_names_spec=
12005 libname_spec='lib$name'
12009 postuninstall_cmds=
12013 shlibpath_overrides_runpath=unknown
12015 dynamic_linker="$host_os ld.so"
12016 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12017 if test "$GCC" = yes; then
12018 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12019 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12020 # if the path contains ";" then we assume it to be the separator
12021 # otherwise default to the standard path separator (i.e. ":") - it is
12022 # assumed that no part of a normal pathname contains ";" but that should
12023 # okay in the real world where ";" in dirpaths is itself problematic.
12024 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12026 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12029 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12031 need_lib_prefix=unknown
12032 hardcode_into_libs=no
12034 # when you set need_version to no, make sure it does not cause -set_version
12035 # flags to be left without arguments
12036 need_version=unknown
12041 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12042 shlibpath_var=LIBPATH
12044 # AIX 3 has no versioning support, so we append a major version to the name.
12045 soname_spec='${libname}${release}${shared_ext}$major'
12052 hardcode_into_libs=yes
12053 if test "$host_cpu" = ia64; then
12054 # AIX 5 supports IA64
12055 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12056 shlibpath_var=LD_LIBRARY_PATH
12058 # With GCC up to 2.95.x, collect2 would create an import file
12059 # for dependence libraries. The import file would start with
12060 # the line `#! .'. This would cause the generated library to
12061 # depend on `.', always an invalid library. This was fixed in
12062 # development snapshots of GCC prior to 3.0.
12064 aix4 | aix4.[01] | aix4.[01].*)
12065 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12067 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12070 can_build_shared=no
12074 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12075 # soname into executable. Probably we can add versioning support to
12076 # collect2, so additional links can be useful in future.
12077 if test "$aix_use_runtimelinking" = yes; then
12078 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12079 # instead of lib<name>.a to let people know that these are not
12080 # typical AIX shared libraries.
12081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12083 # We preserve .a as extension for shared libraries through AIX4.2
12084 # and later when we are not doing run time linking.
12085 library_names_spec='${libname}${release}.a $libname.a'
12086 soname_spec='${libname}${release}${shared_ext}$major'
12088 shlibpath_var=LIBPATH
12093 library_names_spec='$libname.ixlibrary $libname.a'
12094 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12095 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'
12099 library_names_spec='${libname}${shared_ext}'
12100 dynamic_linker="$host_os ld.so"
12101 shlibpath_var=LIBRARY_PATH
12107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12108 soname_spec='${libname}${release}${shared_ext}$major'
12109 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12110 shlibpath_var=LD_LIBRARY_PATH
12111 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12112 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12113 # the default ld.so.conf also contains /usr/contrib/lib and
12114 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12115 # libtool to hard-code these into programs
12118 cygwin* | mingw* | pw32*)
12119 version_type=windows
12124 case $GCC,$host_os in
12125 yes,cygwin* | yes,mingw* | yes,pw32*)
12126 library_names_spec='$libname.dll.a'
12127 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12128 postinstall_cmds='base_file=`basename \${file}`~
12129 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12130 dldir=$destdir/`dirname \$dlpath`~
12131 test -d \$dldir || mkdir -p \$dldir~
12132 $install_prog $dir/$dlname \$dldir/$dlname'
12133 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12134 dlpath=$dir/\$dldll~
12136 shlibpath_overrides_runpath=yes
12140 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12141 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12142 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12145 # MinGW DLLs use traditional 'lib' prefix
12146 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12147 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12148 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12149 # It is most probably a Windows format PATH printed by
12150 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12151 # path with ; separators, and with drive letters. We can handle the
12152 # drive letters (cygwin fileutils understands them), so leave them,
12153 # especially as we might pass files found there to a mingw objdump,
12154 # which wouldn't understand a cygwinified path. Ahh.
12155 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12157 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12161 # pw32 DLLs use 'pw' prefix rather than 'lib'
12162 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12168 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12171 dynamic_linker='Win32 ld.exe'
12172 # FIXME: first we should search . and the directory the executable is in
12176 darwin* | rhapsody*)
12177 dynamic_linker="$host_os dyld"
12178 version_type=darwin
12181 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12182 soname_spec='${libname}${release}${major}$shared_ext'
12183 shlibpath_overrides_runpath=yes
12184 shlibpath_var=DYLD_LIBRARY_PATH
12185 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12186 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12187 if test "$GCC" = yes; then
12188 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"`
12190 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12192 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12200 soname_spec='${libname}${release}${shared_ext}$major'
12201 shlibpath_var=LD_LIBRARY_PATH
12212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12213 soname_spec='${libname}${release}${shared_ext}$major'
12214 shlibpath_var=LD_LIBRARY_PATH
12215 shlibpath_overrides_runpath=no
12216 hardcode_into_libs=yes
12217 dynamic_linker='GNU ld.so'
12220 freebsd* | dragonfly*)
12221 # DragonFly does not have aout. When/if they implement a new
12222 # versioning mechanism, adjust this.
12223 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12224 version_type=freebsd-$objformat
12225 case $version_type in
12227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12232 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12236 shlibpath_var=LD_LIBRARY_PATH
12239 shlibpath_overrides_runpath=yes
12241 freebsd3.[01]* | freebsdelf3.[01]*)
12242 shlibpath_overrides_runpath=yes
12243 hardcode_into_libs=yes
12246 shlibpath_overrides_runpath=no
12247 hardcode_into_libs=yes
12256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12257 soname_spec='${libname}${release}${shared_ext}$major'
12258 shlibpath_var=LD_LIBRARY_PATH
12259 hardcode_into_libs=yes
12262 hpux9* | hpux10* | hpux11*)
12263 # Give a soname corresponding to the major version so that dld.sl refuses to
12264 # link against other versions.
12268 case "$host_cpu" in
12271 hardcode_into_libs=yes
12272 dynamic_linker="$host_os dld.so"
12273 shlibpath_var=LD_LIBRARY_PATH
12274 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12276 soname_spec='${libname}${release}${shared_ext}$major'
12277 if test "X$HPUX_IA64_MODE" = X32; then
12278 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12280 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12282 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12286 hardcode_into_libs=yes
12287 dynamic_linker="$host_os dld.sl"
12288 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12289 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12291 soname_spec='${libname}${release}${shared_ext}$major'
12292 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12293 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12297 dynamic_linker="$host_os dld.sl"
12298 shlibpath_var=SHLIB_PATH
12299 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12301 soname_spec='${libname}${release}${shared_ext}$major'
12304 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12305 postinstall_cmds='chmod 555 $lib'
12308 irix5* | irix6* | nonstopux*)
12310 nonstopux*) version_type=nonstopux ;;
12312 if test "$lt_cv_prog_gnu_ld" = yes; then
12320 soname_spec='${libname}${release}${shared_ext}$major'
12321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12323 irix5* | nonstopux*)
12324 libsuff= shlibsuff=
12327 case $LD in # libtool.m4 will add one of these switches to LD
12328 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12329 libsuff= shlibsuff= libmagic=32-bit;;
12330 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12331 libsuff=32 shlibsuff=N32 libmagic=N32;;
12332 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12333 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12334 *) libsuff= shlibsuff= libmagic=never-match;;
12338 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12339 shlibpath_overrides_runpath=no
12340 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12341 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12342 hardcode_into_libs=yes
12345 # No shared lib support for Linux oldld, aout, or coff.
12346 linux*oldld* | linux*aout* | linux*coff*)
12350 # This must be Linux ELF.
12355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12356 soname_spec='${libname}${release}${shared_ext}$major'
12357 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12358 shlibpath_var=LD_LIBRARY_PATH
12359 shlibpath_overrides_runpath=no
12360 # This implies no fast_install, which is unacceptable.
12361 # Some rework will be needed to allow for fast_install
12362 # before this can be enabled.
12363 hardcode_into_libs=yes
12365 # find out which ABI we are using
12367 case "$host_cpu" in
12368 x86_64*|s390x*|powerpc64*)
12369 echo '#line 12369 "configure"' > conftest.$ac_ext
12370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12371 (eval $ac_compile) 2>&5
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); }; then
12375 case `/usr/bin/file conftest.$ac_objext` in
12378 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12386 # Append ld.so.conf contents to the search path
12387 if test -f /etc/ld.so.conf; then
12388 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12389 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12392 # We used to test for /lib/ld.so.1 and disable shared libraries on
12393 # powerpc, because MkLinux only supported shared libraries with the
12394 # GNU dynamic linker. Since this was broken with cross compilers,
12395 # most powerpc-linux boxes support dynamic linking these days and
12396 # people can always --disable-shared, the test was removed, and we
12397 # assume the GNU/Linux dynamic linker is in use.
12398 dynamic_linker='GNU/Linux ld.so'
12405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12406 soname_spec='${libname}${release}${shared_ext}$major'
12407 shlibpath_var=LD_LIBRARY_PATH
12408 shlibpath_overrides_runpath=no
12409 hardcode_into_libs=yes
12410 dynamic_linker='GNU ld.so'
12417 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12419 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12420 dynamic_linker='NetBSD (a.out) ld.so'
12422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12423 soname_spec='${libname}${release}${shared_ext}$major'
12424 dynamic_linker='NetBSD ld.elf_so'
12426 shlibpath_var=LD_LIBRARY_PATH
12427 shlibpath_overrides_runpath=yes
12428 hardcode_into_libs=yes
12433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12434 shlibpath_var=LD_LIBRARY_PATH
12435 shlibpath_overrides_runpath=yes
12442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12443 soname_spec='${libname}${release}${shared_ext}$major'
12444 shlibpath_var=LD_LIBRARY_PATH
12445 shlibpath_overrides_runpath=yes
12452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12453 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12454 shlibpath_var=LD_LIBRARY_PATH
12455 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12457 openbsd2.[89] | openbsd2.[89].*)
12458 shlibpath_overrides_runpath=no
12461 shlibpath_overrides_runpath=yes
12465 shlibpath_overrides_runpath=yes
12470 libname_spec='$name'
12473 library_names_spec='$libname${shared_ext} $libname.a'
12474 dynamic_linker='OS/2 ld.exe'
12475 shlibpath_var=LIBPATH
12478 osf3* | osf4* | osf5*)
12482 soname_spec='${libname}${release}${shared_ext}$major'
12483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12484 shlibpath_var=LD_LIBRARY_PATH
12485 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12486 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12491 soname_spec='${libname}${release}${shared_ext}$major'
12492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12493 shlibpath_var=LD_LIBRARY_PATH
12500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12501 soname_spec='${libname}${release}${shared_ext}$major'
12502 shlibpath_var=LD_LIBRARY_PATH
12503 shlibpath_overrides_runpath=yes
12504 hardcode_into_libs=yes
12505 # ldd complains unless libraries are executable
12506 postinstall_cmds='chmod +x $lib'
12511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12512 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12513 shlibpath_var=LD_LIBRARY_PATH
12514 shlibpath_overrides_runpath=yes
12515 if test "$with_gnu_ld" = yes; then
12521 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12524 soname_spec='${libname}${release}${shared_ext}$major'
12525 shlibpath_var=LD_LIBRARY_PATH
12526 case $host_vendor in
12528 shlibpath_overrides_runpath=no
12530 export_dynamic_flag_spec='${wl}-Blargedynsym'
12531 runpath_var=LD_RUN_PATH
12539 shlibpath_overrides_runpath=no
12540 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12546 if test -d /usr/nec ;then
12548 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12549 soname_spec='$libname${shared_ext}.$major'
12550 shlibpath_var=LD_LIBRARY_PATH
12556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12557 soname_spec='${libname}${release}${shared_ext}$major'
12558 shlibpath_var=LD_LIBRARY_PATH
12565 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12566 echo "${ECHO_T}$dynamic_linker" >&6
12567 test "$dynamic_linker" = no && can_build_shared=no
12569 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12570 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12571 hardcode_action_CXX=
12572 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12573 test -n "$runpath_var_CXX" || \
12574 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12576 # We can hardcode non-existant directories.
12577 if test "$hardcode_direct_CXX" != no &&
12578 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12579 # have to relink, otherwise we might link with an installed library
12580 # when we should be linking with a yet-to-be-installed one
12581 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12582 test "$hardcode_minus_L_CXX" != no; then
12583 # Linking always hardcodes the temporary library directory.
12584 hardcode_action_CXX=relink
12586 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12587 hardcode_action_CXX=immediate
12590 # We cannot hardcode anything, or else we can only hardcode existing
12592 hardcode_action_CXX=unsupported
12594 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12595 echo "${ECHO_T}$hardcode_action_CXX" >&6
12597 if test "$hardcode_action_CXX" = relink; then
12598 # Fast installation is not supported
12599 enable_fast_install=no
12600 elif test "$shlibpath_overrides_runpath" = yes ||
12601 test "$enable_shared" = no; then
12602 # Fast installation is not necessary
12603 enable_fast_install=needless
12608 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12609 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12610 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12611 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12612 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12613 echo "$as_me:$LINENO: result: yes" >&5
12614 echo "${ECHO_T}yes" >&6
12616 # FIXME - insert some real tests, host_os isn't really good enough
12619 if test -n "$STRIP" ; then
12620 striplib="$STRIP -x"
12621 echo "$as_me:$LINENO: result: yes" >&5
12622 echo "${ECHO_T}yes" >&6
12624 echo "$as_me:$LINENO: result: no" >&5
12625 echo "${ECHO_T}no" >&6
12629 echo "$as_me:$LINENO: result: no" >&5
12630 echo "${ECHO_T}no" >&6
12635 if test "x$enable_dlopen" != xyes; then
12636 enable_dlopen=unknown
12637 enable_dlopen_self=unknown
12638 enable_dlopen_self_static=unknown
12645 lt_cv_dlopen="load_add_on"
12647 lt_cv_dlopen_self=yes
12651 lt_cv_dlopen="LoadLibrary"
12656 lt_cv_dlopen="dlopen"
12661 # if libdl is installed we need to link against it
12662 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12663 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12664 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12665 echo $ECHO_N "(cached) $ECHO_C" >&6
12667 ac_check_lib_save_LIBS=$LIBS
12669 cat >conftest.$ac_ext <<_ACEOF
12672 cat confdefs.h >>conftest.$ac_ext
12673 cat >>conftest.$ac_ext <<_ACEOF
12674 /* end confdefs.h. */
12676 /* Override any gcc2 internal prototype to avoid an error. */
12680 /* We use char because int might match the return type of a gcc2
12681 builtin and then its argument prototype would still apply. */
12691 rm -f conftest.$ac_objext conftest$ac_exeext
12692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12693 (eval $ac_link) 2>conftest.er1
12695 grep -v '^ *+' conftest.er1 >conftest.err
12697 cat conftest.err >&5
12698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699 (exit $ac_status); } &&
12700 { ac_try='test -z "$ac_cxx_werror_flag"
12701 || test ! -s conftest.err'
12702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12703 (eval $ac_try) 2>&5
12705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706 (exit $ac_status); }; } &&
12707 { ac_try='test -s conftest$ac_exeext'
12708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12709 (eval $ac_try) 2>&5
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); }; }; then
12713 ac_cv_lib_dl_dlopen=yes
12715 echo "$as_me: failed program was:" >&5
12716 sed 's/^/| /' conftest.$ac_ext >&5
12718 ac_cv_lib_dl_dlopen=no
12720 rm -f conftest.err conftest.$ac_objext \
12721 conftest$ac_exeext conftest.$ac_ext
12722 LIBS=$ac_check_lib_save_LIBS
12724 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12725 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12726 if test $ac_cv_lib_dl_dlopen = yes; then
12727 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12730 lt_cv_dlopen="dyld"
12732 lt_cv_dlopen_self=yes
12739 echo "$as_me:$LINENO: checking for shl_load" >&5
12740 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12741 if test "${ac_cv_func_shl_load+set}" = set; then
12742 echo $ECHO_N "(cached) $ECHO_C" >&6
12744 cat >conftest.$ac_ext <<_ACEOF
12747 cat confdefs.h >>conftest.$ac_ext
12748 cat >>conftest.$ac_ext <<_ACEOF
12749 /* end confdefs.h. */
12750 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12752 #define shl_load innocuous_shl_load
12754 /* System header to define __stub macros and hopefully few prototypes,
12755 which can conflict with char shl_load (); below.
12756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12757 <limits.h> exists even on freestanding compilers. */
12760 # include <limits.h>
12762 # include <assert.h>
12767 /* Override any gcc2 internal prototype to avoid an error. */
12772 /* We use char because int might match the return type of a gcc2
12773 builtin and then its argument prototype would still apply. */
12775 /* The GNU C library defines this for functions which it implements
12776 to always fail with ENOSYS. Some functions are actually named
12777 something starting with __ and the normal name is an alias. */
12778 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12781 char (*f) () = shl_load;
12790 return f != shl_load;
12795 rm -f conftest.$ac_objext conftest$ac_exeext
12796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12797 (eval $ac_link) 2>conftest.er1
12799 grep -v '^ *+' conftest.er1 >conftest.err
12801 cat conftest.err >&5
12802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803 (exit $ac_status); } &&
12804 { ac_try='test -z "$ac_cxx_werror_flag"
12805 || test ! -s conftest.err'
12806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12807 (eval $ac_try) 2>&5
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); }; } &&
12811 { ac_try='test -s conftest$ac_exeext'
12812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12813 (eval $ac_try) 2>&5
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); }; }; then
12817 ac_cv_func_shl_load=yes
12819 echo "$as_me: failed program was:" >&5
12820 sed 's/^/| /' conftest.$ac_ext >&5
12822 ac_cv_func_shl_load=no
12824 rm -f conftest.err conftest.$ac_objext \
12825 conftest$ac_exeext conftest.$ac_ext
12827 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12828 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12829 if test $ac_cv_func_shl_load = yes; then
12830 lt_cv_dlopen="shl_load"
12832 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12833 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12834 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12835 echo $ECHO_N "(cached) $ECHO_C" >&6
12837 ac_check_lib_save_LIBS=$LIBS
12839 cat >conftest.$ac_ext <<_ACEOF
12842 cat confdefs.h >>conftest.$ac_ext
12843 cat >>conftest.$ac_ext <<_ACEOF
12844 /* end confdefs.h. */
12846 /* Override any gcc2 internal prototype to avoid an error. */
12850 /* We use char because int might match the return type of a gcc2
12851 builtin and then its argument prototype would still apply. */
12861 rm -f conftest.$ac_objext conftest$ac_exeext
12862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12863 (eval $ac_link) 2>conftest.er1
12865 grep -v '^ *+' conftest.er1 >conftest.err
12867 cat conftest.err >&5
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); } &&
12870 { ac_try='test -z "$ac_cxx_werror_flag"
12871 || test ! -s conftest.err'
12872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12873 (eval $ac_try) 2>&5
12875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876 (exit $ac_status); }; } &&
12877 { ac_try='test -s conftest$ac_exeext'
12878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12879 (eval $ac_try) 2>&5
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); }; }; then
12883 ac_cv_lib_dld_shl_load=yes
12885 echo "$as_me: failed program was:" >&5
12886 sed 's/^/| /' conftest.$ac_ext >&5
12888 ac_cv_lib_dld_shl_load=no
12890 rm -f conftest.err conftest.$ac_objext \
12891 conftest$ac_exeext conftest.$ac_ext
12892 LIBS=$ac_check_lib_save_LIBS
12894 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12895 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12896 if test $ac_cv_lib_dld_shl_load = yes; then
12897 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12899 echo "$as_me:$LINENO: checking for dlopen" >&5
12900 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12901 if test "${ac_cv_func_dlopen+set}" = set; then
12902 echo $ECHO_N "(cached) $ECHO_C" >&6
12904 cat >conftest.$ac_ext <<_ACEOF
12907 cat confdefs.h >>conftest.$ac_ext
12908 cat >>conftest.$ac_ext <<_ACEOF
12909 /* end confdefs.h. */
12910 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12912 #define dlopen innocuous_dlopen
12914 /* System header to define __stub macros and hopefully few prototypes,
12915 which can conflict with char dlopen (); below.
12916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12917 <limits.h> exists even on freestanding compilers. */
12920 # include <limits.h>
12922 # include <assert.h>
12927 /* Override any gcc2 internal prototype to avoid an error. */
12932 /* We use char because int might match the return type of a gcc2
12933 builtin and then its argument prototype would still apply. */
12935 /* The GNU C library defines this for functions which it implements
12936 to always fail with ENOSYS. Some functions are actually named
12937 something starting with __ and the normal name is an alias. */
12938 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12941 char (*f) () = dlopen;
12950 return f != dlopen;
12955 rm -f conftest.$ac_objext conftest$ac_exeext
12956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12957 (eval $ac_link) 2>conftest.er1
12959 grep -v '^ *+' conftest.er1 >conftest.err
12961 cat conftest.err >&5
12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); } &&
12964 { ac_try='test -z "$ac_cxx_werror_flag"
12965 || test ! -s conftest.err'
12966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12967 (eval $ac_try) 2>&5
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); }; } &&
12971 { ac_try='test -s conftest$ac_exeext'
12972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12973 (eval $ac_try) 2>&5
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); }; }; then
12977 ac_cv_func_dlopen=yes
12979 echo "$as_me: failed program was:" >&5
12980 sed 's/^/| /' conftest.$ac_ext >&5
12982 ac_cv_func_dlopen=no
12984 rm -f conftest.err conftest.$ac_objext \
12985 conftest$ac_exeext conftest.$ac_ext
12987 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12988 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12989 if test $ac_cv_func_dlopen = yes; then
12990 lt_cv_dlopen="dlopen"
12992 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12993 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12994 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12995 echo $ECHO_N "(cached) $ECHO_C" >&6
12997 ac_check_lib_save_LIBS=$LIBS
12999 cat >conftest.$ac_ext <<_ACEOF
13002 cat confdefs.h >>conftest.$ac_ext
13003 cat >>conftest.$ac_ext <<_ACEOF
13004 /* end confdefs.h. */
13006 /* Override any gcc2 internal prototype to avoid an error. */
13010 /* We use char because int might match the return type of a gcc2
13011 builtin and then its argument prototype would still apply. */
13021 rm -f conftest.$ac_objext conftest$ac_exeext
13022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13023 (eval $ac_link) 2>conftest.er1
13025 grep -v '^ *+' conftest.er1 >conftest.err
13027 cat conftest.err >&5
13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); } &&
13030 { ac_try='test -z "$ac_cxx_werror_flag"
13031 || test ! -s conftest.err'
13032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13033 (eval $ac_try) 2>&5
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); }; } &&
13037 { ac_try='test -s conftest$ac_exeext'
13038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13039 (eval $ac_try) 2>&5
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); }; }; then
13043 ac_cv_lib_dl_dlopen=yes
13045 echo "$as_me: failed program was:" >&5
13046 sed 's/^/| /' conftest.$ac_ext >&5
13048 ac_cv_lib_dl_dlopen=no
13050 rm -f conftest.err conftest.$ac_objext \
13051 conftest$ac_exeext conftest.$ac_ext
13052 LIBS=$ac_check_lib_save_LIBS
13054 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13055 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13056 if test $ac_cv_lib_dl_dlopen = yes; then
13057 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13059 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13060 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13061 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13062 echo $ECHO_N "(cached) $ECHO_C" >&6
13064 ac_check_lib_save_LIBS=$LIBS
13065 LIBS="-lsvld $LIBS"
13066 cat >conftest.$ac_ext <<_ACEOF
13069 cat confdefs.h >>conftest.$ac_ext
13070 cat >>conftest.$ac_ext <<_ACEOF
13071 /* end confdefs.h. */
13073 /* Override any gcc2 internal prototype to avoid an error. */
13077 /* We use char because int might match the return type of a gcc2
13078 builtin and then its argument prototype would still apply. */
13088 rm -f conftest.$ac_objext conftest$ac_exeext
13089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13090 (eval $ac_link) 2>conftest.er1
13092 grep -v '^ *+' conftest.er1 >conftest.err
13094 cat conftest.err >&5
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); } &&
13097 { ac_try='test -z "$ac_cxx_werror_flag"
13098 || test ! -s conftest.err'
13099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13100 (eval $ac_try) 2>&5
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); }; } &&
13104 { ac_try='test -s conftest$ac_exeext'
13105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13106 (eval $ac_try) 2>&5
13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); }; }; then
13110 ac_cv_lib_svld_dlopen=yes
13112 echo "$as_me: failed program was:" >&5
13113 sed 's/^/| /' conftest.$ac_ext >&5
13115 ac_cv_lib_svld_dlopen=no
13117 rm -f conftest.err conftest.$ac_objext \
13118 conftest$ac_exeext conftest.$ac_ext
13119 LIBS=$ac_check_lib_save_LIBS
13121 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13122 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13123 if test $ac_cv_lib_svld_dlopen = yes; then
13124 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13126 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13127 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13128 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13129 echo $ECHO_N "(cached) $ECHO_C" >&6
13131 ac_check_lib_save_LIBS=$LIBS
13133 cat >conftest.$ac_ext <<_ACEOF
13136 cat confdefs.h >>conftest.$ac_ext
13137 cat >>conftest.$ac_ext <<_ACEOF
13138 /* end confdefs.h. */
13140 /* Override any gcc2 internal prototype to avoid an error. */
13144 /* We use char because int might match the return type of a gcc2
13145 builtin and then its argument prototype would still apply. */
13155 rm -f conftest.$ac_objext conftest$ac_exeext
13156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13157 (eval $ac_link) 2>conftest.er1
13159 grep -v '^ *+' conftest.er1 >conftest.err
13161 cat conftest.err >&5
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); } &&
13164 { ac_try='test -z "$ac_cxx_werror_flag"
13165 || test ! -s conftest.err'
13166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13167 (eval $ac_try) 2>&5
13169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); }; } &&
13171 { ac_try='test -s conftest$ac_exeext'
13172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13173 (eval $ac_try) 2>&5
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); }; }; then
13177 ac_cv_lib_dld_dld_link=yes
13179 echo "$as_me: failed program was:" >&5
13180 sed 's/^/| /' conftest.$ac_ext >&5
13182 ac_cv_lib_dld_dld_link=no
13184 rm -f conftest.err conftest.$ac_objext \
13185 conftest$ac_exeext conftest.$ac_ext
13186 LIBS=$ac_check_lib_save_LIBS
13188 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13189 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13190 if test $ac_cv_lib_dld_dld_link = yes; then
13191 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13212 if test "x$lt_cv_dlopen" != xno; then
13218 case $lt_cv_dlopen in
13220 save_CPPFLAGS="$CPPFLAGS"
13221 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13223 save_LDFLAGS="$LDFLAGS"
13224 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13227 LIBS="$lt_cv_dlopen_libs $LIBS"
13229 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13230 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13231 if test "${lt_cv_dlopen_self+set}" = set; then
13232 echo $ECHO_N "(cached) $ECHO_C" >&6
13234 if test "$cross_compiling" = yes; then :
13235 lt_cv_dlopen_self=cross
13237 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13238 lt_status=$lt_dlunknown
13239 cat > conftest.$ac_ext <<EOF
13240 #line 13240 "configure"
13241 #include "confdefs.h"
13250 # define LT_DLGLOBAL RTLD_GLOBAL
13253 # define LT_DLGLOBAL DL_GLOBAL
13255 # define LT_DLGLOBAL 0
13259 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13260 find out it does not work in some platform. */
13261 #ifndef LT_DLLAZY_OR_NOW
13263 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13266 # define LT_DLLAZY_OR_NOW DL_LAZY
13269 # define LT_DLLAZY_OR_NOW RTLD_NOW
13272 # define LT_DLLAZY_OR_NOW DL_NOW
13274 # define LT_DLLAZY_OR_NOW 0
13282 extern "C" void exit (int);
13285 void fnord() { int i=42;}
13288 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13289 int status = $lt_dlunknown;
13293 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13294 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13295 /* dlclose (self); */
13301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13302 (eval $ac_link) 2>&5
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13306 (./conftest; exit; ) 2>/dev/null
13308 case x$lt_status in
13309 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13310 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13311 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13314 # compilation failed
13315 lt_cv_dlopen_self=no
13322 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13323 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13325 if test "x$lt_cv_dlopen_self" = xyes; then
13326 LDFLAGS="$LDFLAGS $link_static_flag"
13327 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13328 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13329 if test "${lt_cv_dlopen_self_static+set}" = set; then
13330 echo $ECHO_N "(cached) $ECHO_C" >&6
13332 if test "$cross_compiling" = yes; then :
13333 lt_cv_dlopen_self_static=cross
13335 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13336 lt_status=$lt_dlunknown
13337 cat > conftest.$ac_ext <<EOF
13338 #line 13338 "configure"
13339 #include "confdefs.h"
13348 # define LT_DLGLOBAL RTLD_GLOBAL
13351 # define LT_DLGLOBAL DL_GLOBAL
13353 # define LT_DLGLOBAL 0
13357 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13358 find out it does not work in some platform. */
13359 #ifndef LT_DLLAZY_OR_NOW
13361 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13364 # define LT_DLLAZY_OR_NOW DL_LAZY
13367 # define LT_DLLAZY_OR_NOW RTLD_NOW
13370 # define LT_DLLAZY_OR_NOW DL_NOW
13372 # define LT_DLLAZY_OR_NOW 0
13380 extern "C" void exit (int);
13383 void fnord() { int i=42;}
13386 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13387 int status = $lt_dlunknown;
13391 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13392 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13393 /* dlclose (self); */
13399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13400 (eval $ac_link) 2>&5
13402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13404 (./conftest; exit; ) 2>/dev/null
13406 case x$lt_status in
13407 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13408 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13409 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13412 # compilation failed
13413 lt_cv_dlopen_self_static=no
13420 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13421 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13424 CPPFLAGS="$save_CPPFLAGS"
13425 LDFLAGS="$save_LDFLAGS"
13430 case $lt_cv_dlopen_self in
13431 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13432 *) enable_dlopen_self=unknown ;;
13435 case $lt_cv_dlopen_self_static in
13436 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13437 *) enable_dlopen_self_static=unknown ;;
13442 # The else clause should only fire when bootstrapping the
13443 # libtool distribution, otherwise you forgot to ship ltmain.sh
13444 # with your package, and you will get complaints that there are
13445 # no rules to generate ltmain.sh.
13446 if test -f "$ltmain"; then
13447 # See if we are running on zsh, and set the options which allow our commands through
13448 # without removal of \ escapes.
13449 if test -n "${ZSH_VERSION+set}" ; then
13450 setopt NO_GLOB_SUBST
13452 # Now quote all the things that may contain metacharacters while being
13453 # careful not to overquote the AC_SUBSTed values. We take copies of the
13454 # variables and quote the copies for generation of the libtool script.
13455 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13457 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13458 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13459 deplibs_check_method reload_flag reload_cmds need_locks \
13460 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13461 lt_cv_sys_global_symbol_to_c_name_address \
13462 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13463 old_postinstall_cmds old_postuninstall_cmds \
13467 lt_prog_compiler_wl_CXX \
13468 lt_prog_compiler_pic_CXX \
13469 lt_prog_compiler_static_CXX \
13470 lt_prog_compiler_no_builtin_flag_CXX \
13471 export_dynamic_flag_spec_CXX \
13472 thread_safe_flag_spec_CXX \
13473 whole_archive_flag_spec_CXX \
13474 enable_shared_with_static_runtimes_CXX \
13475 old_archive_cmds_CXX \
13476 old_archive_from_new_cmds_CXX \
13477 predep_objects_CXX \
13478 postdep_objects_CXX \
13481 compiler_lib_search_path_CXX \
13483 archive_expsym_cmds_CXX \
13484 postinstall_cmds_CXX \
13485 postuninstall_cmds_CXX \
13486 old_archive_from_expsyms_cmds_CXX \
13487 allow_undefined_flag_CXX \
13488 no_undefined_flag_CXX \
13489 export_symbols_cmds_CXX \
13490 hardcode_libdir_flag_spec_CXX \
13491 hardcode_libdir_flag_spec_ld_CXX \
13492 hardcode_libdir_separator_CXX \
13493 hardcode_automatic_CXX \
13495 module_expsym_cmds_CXX \
13496 lt_cv_prog_compiler_c_o_CXX \
13497 exclude_expsyms_CXX \
13498 include_expsyms_CXX; do
13501 old_archive_cmds_CXX | \
13502 old_archive_from_new_cmds_CXX | \
13503 archive_cmds_CXX | \
13504 archive_expsym_cmds_CXX | \
13505 module_cmds_CXX | \
13506 module_expsym_cmds_CXX | \
13507 old_archive_from_expsyms_cmds_CXX | \
13508 export_symbols_cmds_CXX | \
13509 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13510 postinstall_cmds | postuninstall_cmds | \
13511 old_postinstall_cmds | old_postuninstall_cmds | \
13512 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13513 # Double-quote double-evaled strings.
13514 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13517 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13523 *'\$0 --fallback-echo"')
13524 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13530 cat <<__EOF__ >> "$cfgfile"
13531 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13533 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13535 # Shell to use when invoking shell scripts.
13538 # Whether or not to build shared libraries.
13539 build_libtool_libs=$enable_shared
13541 # Whether or not to build static libraries.
13542 build_old_libs=$enable_static
13544 # Whether or not to add -lc for building shared libraries.
13545 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13547 # Whether or not to disallow shared libs when runtime libs are static
13548 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13550 # Whether or not to optimize for fast installation.
13551 fast_install=$enable_fast_install
13554 host_alias=$host_alias
13558 # The build system.
13559 build_alias=$build_alias
13563 # An echo program that does not interpret backslashes.
13568 AR_FLAGS=$lt_AR_FLAGS
13573 # A language-specific compiler.
13574 CC=$lt_compiler_CXX
13576 # Is the compiler the GNU C compiler?
13582 # The linker used to build libraries.
13585 # Whether we need hard or soft links.
13588 # A BSD-compatible nm program.
13591 # A symbol stripping program
13594 # Used to examine libraries when file_magic_cmd begins "file"
13595 MAGIC_CMD=$MAGIC_CMD
13597 # Used on cygwin: DLL creation program.
13600 # Used on cygwin: object dumper.
13603 # Used on cygwin: assembler.
13606 # The name of the directory that contains temporary libtool files.
13609 # How to create reloadable object files.
13610 reload_flag=$lt_reload_flag
13611 reload_cmds=$lt_reload_cmds
13613 # How to pass a linker flag through the compiler.
13614 wl=$lt_lt_prog_compiler_wl_CXX
13616 # Object file suffix (normally "o").
13617 objext="$ac_objext"
13619 # Old archive suffix (normally "a").
13622 # Shared library suffix (normally ".so").
13623 shrext_cmds='$shrext_cmds'
13625 # Executable file suffix (normally "").
13628 # Additional compiler flags for building library objects.
13629 pic_flag=$lt_lt_prog_compiler_pic_CXX
13632 # What is the maximum length of a command?
13633 max_cmd_len=$lt_cv_sys_max_cmd_len
13635 # Does compiler simultaneously support -c and -o options?
13636 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13638 # Must we lock files when doing compilation?
13639 need_locks=$lt_need_locks
13641 # Do we need the lib prefix for modules?
13642 need_lib_prefix=$need_lib_prefix
13644 # Do we need a version for libraries?
13645 need_version=$need_version
13647 # Whether dlopen is supported.
13648 dlopen_support=$enable_dlopen
13650 # Whether dlopen of programs is supported.
13651 dlopen_self=$enable_dlopen_self
13653 # Whether dlopen of statically linked programs is supported.
13654 dlopen_self_static=$enable_dlopen_self_static
13656 # Compiler flag to prevent dynamic linking.
13657 link_static_flag=$lt_lt_prog_compiler_static_CXX
13659 # Compiler flag to turn off builtin functions.
13660 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13662 # Compiler flag to allow reflexive dlopens.
13663 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13665 # Compiler flag to generate shared objects directly from archives.
13666 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13668 # Compiler flag to generate thread-safe objects.
13669 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13671 # Library versioning type.
13672 version_type=$version_type
13674 # Format of library name prefix.
13675 libname_spec=$lt_libname_spec
13677 # List of archive names. First name is the real one, the rest are links.
13678 # The last name is the one that the linker finds with -lNAME.
13679 library_names_spec=$lt_library_names_spec
13681 # The coded name of the library, if different from the real name.
13682 soname_spec=$lt_soname_spec
13684 # Commands used to build and install an old-style archive.
13686 old_archive_cmds=$lt_old_archive_cmds_CXX
13687 old_postinstall_cmds=$lt_old_postinstall_cmds
13688 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13690 # Create an old-style archive from a shared archive.
13691 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13693 # Create a temporary old-style archive to link instead of a shared archive.
13694 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13696 # Commands used to build and install a shared archive.
13697 archive_cmds=$lt_archive_cmds_CXX
13698 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13699 postinstall_cmds=$lt_postinstall_cmds
13700 postuninstall_cmds=$lt_postuninstall_cmds
13702 # Commands used to build a loadable module (assumed same as above if empty)
13703 module_cmds=$lt_module_cmds_CXX
13704 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13706 # Commands to strip libraries.
13707 old_striplib=$lt_old_striplib
13708 striplib=$lt_striplib
13710 # Dependencies to place before the objects being linked to create a
13712 predep_objects=$lt_predep_objects_CXX
13714 # Dependencies to place after the objects being linked to create a
13716 postdep_objects=$lt_postdep_objects_CXX
13718 # Dependencies to place before the objects being linked to create a
13720 predeps=$lt_predeps_CXX
13722 # Dependencies to place after the objects being linked to create a
13724 postdeps=$lt_postdeps_CXX
13726 # The library search path used internally by the compiler when linking
13727 # a shared library.
13728 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13730 # Method to check whether dependent libraries are shared objects.
13731 deplibs_check_method=$lt_deplibs_check_method
13733 # Command to use when deplibs_check_method == file_magic.
13734 file_magic_cmd=$lt_file_magic_cmd
13736 # Flag that allows shared libraries with undefined symbols to be built.
13737 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13739 # Flag that forces no undefined symbols.
13740 no_undefined_flag=$lt_no_undefined_flag_CXX
13742 # Commands used to finish a libtool library installation in a directory.
13743 finish_cmds=$lt_finish_cmds
13745 # Same as above, but a single script fragment to be evaled but not shown.
13746 finish_eval=$lt_finish_eval
13748 # Take the output of nm and produce a listing of raw symbols and C names.
13749 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13751 # Transform the output of nm in a proper C declaration
13752 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13754 # Transform the output of nm in a C name address pair
13755 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13757 # This is the shared library runtime path variable.
13758 runpath_var=$runpath_var
13760 # This is the shared library path variable.
13761 shlibpath_var=$shlibpath_var
13763 # Is shlibpath searched before the hard-coded library search path?
13764 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13766 # How to hardcode a shared library path into an executable.
13767 hardcode_action=$hardcode_action_CXX
13769 # Whether we should hardcode library paths into libraries.
13770 hardcode_into_libs=$hardcode_into_libs
13772 # Flag to hardcode \$libdir into a binary during linking.
13773 # This must work even if \$libdir does not exist.
13774 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13776 # If ld is used when linking, flag to hardcode \$libdir into
13777 # a binary during linking. This must work even if \$libdir does
13779 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13781 # Whether we need a single -rpath flag with a separated argument.
13782 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13784 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13785 # resulting binary.
13786 hardcode_direct=$hardcode_direct_CXX
13788 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13789 # resulting binary.
13790 hardcode_minus_L=$hardcode_minus_L_CXX
13792 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13793 # the resulting binary.
13794 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13796 # Set to yes if building a shared library automatically hardcodes DIR into the library
13797 # and all subsequent libraries and executables linked against it.
13798 hardcode_automatic=$hardcode_automatic_CXX
13800 # Variables whose values should be saved in libtool wrapper scripts and
13801 # restored at relink time.
13802 variables_saved_for_relink="$variables_saved_for_relink"
13804 # Whether libtool must link a program against all its dependency libraries.
13805 link_all_deplibs=$link_all_deplibs_CXX
13807 # Compile-time system search path for libraries
13808 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13810 # Run-time system search path for libraries
13811 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13813 # Fix the shell variable \$srcfile for the compiler.
13814 fix_srcfile_path="$fix_srcfile_path_CXX"
13816 # Set to yes if exported symbols are required.
13817 always_export_symbols=$always_export_symbols_CXX
13819 # The commands to list exported symbols.
13820 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13822 # The commands to extract the exported symbol list from a shared archive.
13823 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13825 # Symbols that should not be listed in the preloaded symbols.
13826 exclude_expsyms=$lt_exclude_expsyms_CXX
13828 # Symbols that must always be exported.
13829 include_expsyms=$lt_include_expsyms_CXX
13831 # ### END LIBTOOL TAG CONFIG: $tagname
13837 # If there is no Makefile yet, we rely on a make rule to execute
13838 # `config.status --recheck' to rerun these tests and create the
13839 # libtool script then.
13840 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13841 if test -f "$ltmain_in"; then
13842 test -f Makefile && make "$ltmain"
13848 ac_cpp='$CPP $CPPFLAGS'
13849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13857 with_gnu_ldcxx=$with_gnu_ld
13858 with_gnu_ld=$lt_save_with_gnu_ld
13859 lt_cv_path_LDCXX=$lt_cv_path_LD
13860 lt_cv_path_LD=$lt_save_path_LD
13861 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13862 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13870 if test -n "$F77" && test "X$F77" != "Xno"; then
13873 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13874 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13875 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13878 archive_cmds_need_lc_F77=no
13879 allow_undefined_flag_F77=
13880 always_export_symbols_F77=no
13881 archive_expsym_cmds_F77=
13882 export_dynamic_flag_spec_F77=
13883 hardcode_direct_F77=no
13884 hardcode_libdir_flag_spec_F77=
13885 hardcode_libdir_flag_spec_ld_F77=
13886 hardcode_libdir_separator_F77=
13887 hardcode_minus_L_F77=no
13888 hardcode_automatic_F77=no
13890 module_expsym_cmds_F77=
13891 link_all_deplibs_F77=unknown
13892 old_archive_cmds_F77=$old_archive_cmds
13893 no_undefined_flag_F77=
13894 whole_archive_flag_spec_F77=
13895 enable_shared_with_static_runtimes_F77=no
13897 # Source file extension for f77 test sources.
13900 # Object file extension for compiled f77 test sources.
13904 # Code to be used in simple compile tests
13905 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13907 # Code to be used in simple link tests
13908 lt_simple_link_test_code=" program t\n end\n"
13910 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13912 # If no C compiler was specified, use CC.
13915 # Allow CC to be a program name with arguments.
13919 # save warnings/boilerplate of simple test code
13920 ac_outfile=conftest.$ac_objext
13921 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13922 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13923 _lt_compiler_boilerplate=`cat conftest.err`
13926 ac_outfile=conftest.$ac_objext
13927 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13928 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13929 _lt_linker_boilerplate=`cat conftest.err`
13933 # Allow CC to be a program name with arguments.
13938 for cc_temp in $compiler""; do
13940 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13941 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13946 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13949 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13950 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13951 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13952 echo "${ECHO_T}$can_build_shared" >&6
13954 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13955 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13956 test "$can_build_shared" = "no" && enable_shared=no
13958 # On AIX, shared libraries and static libraries use the same namespace, and
13959 # are all built from PIC.
13962 test "$enable_shared" = yes && enable_static=no
13963 if test -n "$RANLIB"; then
13964 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13965 postinstall_cmds='$RANLIB $lib'
13969 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13970 test "$enable_shared" = yes && enable_static=no
13974 echo "$as_me:$LINENO: result: $enable_shared" >&5
13975 echo "${ECHO_T}$enable_shared" >&6
13977 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13978 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13979 # Make sure either enable_shared or enable_static is yes.
13980 test "$enable_shared" = yes || enable_static=yes
13981 echo "$as_me:$LINENO: result: $enable_static" >&5
13982 echo "${ECHO_T}$enable_static" >&6
13984 test "$ld_shlibs_F77" = no && can_build_shared=no
13989 lt_prog_compiler_wl_F77=
13990 lt_prog_compiler_pic_F77=
13991 lt_prog_compiler_static_F77=
13993 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13994 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13996 if test "$GCC" = yes; then
13997 lt_prog_compiler_wl_F77='-Wl,'
13998 lt_prog_compiler_static_F77='-static'
14002 # All AIX code is PIC.
14003 if test "$host_cpu" = ia64; then
14004 # AIX 5 now supports IA64 processor
14005 lt_prog_compiler_static_F77='-Bstatic'
14010 # FIXME: we need at least 68020 code to build shared libraries, but
14011 # adding the `-m68020' flag to GCC prevents building anything better,
14013 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14016 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14017 # PIC is the default for these OSes.
14020 mingw* | pw32* | os2*)
14021 # This hack is so that the source file can tell whether it is being
14022 # built for inclusion in a dll (and should export symbols for example).
14023 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14026 darwin* | rhapsody*)
14027 # PIC is the default on this platform
14028 # Common symbols not allowed in MH_DYLIB files
14029 lt_prog_compiler_pic_F77='-fno-common'
14033 # Just because we use GCC doesn't mean we suddenly get shared libraries
14034 # on systems that don't support them.
14035 lt_prog_compiler_can_build_shared_F77=no
14040 if test -d /usr/nec; then
14041 lt_prog_compiler_pic_F77=-Kconform_pic
14046 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14047 # not for PA HP-UX.
14048 case "$host_cpu" in
14053 lt_prog_compiler_pic_F77='-fPIC'
14059 lt_prog_compiler_pic_F77='-fPIC'
14063 # PORTME Check for flag to pass linker flags through the system compiler.
14066 lt_prog_compiler_wl_F77='-Wl,'
14067 if test "$host_cpu" = ia64; then
14068 # AIX 5 now supports IA64 processor
14069 lt_prog_compiler_static_F77='-Bstatic'
14071 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14075 # PIC is the default on this platform
14076 # Common symbols not allowed in MH_DYLIB files
14077 case $cc_basename in
14079 lt_prog_compiler_pic_F77='-qnocommon'
14080 lt_prog_compiler_wl_F77='-Wl,'
14085 mingw* | pw32* | os2*)
14086 # This hack is so that the source file can tell whether it is being
14087 # built for inclusion in a dll (and should export symbols for example).
14088 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14091 hpux9* | hpux10* | hpux11*)
14092 lt_prog_compiler_wl_F77='-Wl,'
14093 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14094 # not for PA HP-UX.
14095 case "$host_cpu" in
14100 lt_prog_compiler_pic_F77='+Z'
14103 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14104 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14107 irix5* | irix6* | nonstopux*)
14108 lt_prog_compiler_wl_F77='-Wl,'
14109 # PIC (with -KPIC) is the default.
14110 lt_prog_compiler_static_F77='-non_shared'
14114 lt_prog_compiler_pic_F77='-KPIC'
14115 lt_prog_compiler_static_F77='-Bstatic'
14119 case $cc_basename in
14121 lt_prog_compiler_wl_F77='-Wl,'
14122 lt_prog_compiler_pic_F77='-KPIC'
14123 lt_prog_compiler_static_F77='-static'
14125 pgcc* | pgf77* | pgf90*)
14126 # Portland Group compilers (*not* the Pentium gcc compiler,
14127 # which looks to be a dead project)
14128 lt_prog_compiler_wl_F77='-Wl,'
14129 lt_prog_compiler_pic_F77='-fpic'
14130 lt_prog_compiler_static_F77='-static'
14133 lt_prog_compiler_wl_F77='-Wl,'
14134 # All Alpha code is PIC.
14135 lt_prog_compiler_static_F77='-non_shared'
14140 osf3* | osf4* | osf5*)
14141 lt_prog_compiler_wl_F77='-Wl,'
14142 # All OSF/1 code is PIC.
14143 lt_prog_compiler_static_F77='-non_shared'
14147 lt_prog_compiler_pic_F77='-Kpic'
14148 lt_prog_compiler_static_F77='-dn'
14152 lt_prog_compiler_pic_F77='-KPIC'
14153 lt_prog_compiler_static_F77='-Bstatic'
14154 case $cc_basename in
14155 f77* | f90* | f95*)
14156 lt_prog_compiler_wl_F77='-Qoption ld ';;
14158 lt_prog_compiler_wl_F77='-Wl,';;
14163 lt_prog_compiler_wl_F77='-Qoption ld '
14164 lt_prog_compiler_pic_F77='-PIC'
14165 lt_prog_compiler_static_F77='-Bstatic'
14168 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14169 lt_prog_compiler_wl_F77='-Wl,'
14170 lt_prog_compiler_pic_F77='-KPIC'
14171 lt_prog_compiler_static_F77='-Bstatic'
14175 if test -d /usr/nec ;then
14176 lt_prog_compiler_pic_F77='-Kconform_pic'
14177 lt_prog_compiler_static_F77='-Bstatic'
14182 lt_prog_compiler_wl_F77='-Wl,'
14183 lt_prog_compiler_can_build_shared_F77=no
14187 lt_prog_compiler_pic_F77='-pic'
14188 lt_prog_compiler_static_F77='-Bstatic'
14192 lt_prog_compiler_can_build_shared_F77=no
14197 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14198 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14201 # Check to make sure the PIC flag actually works.
14203 if test -n "$lt_prog_compiler_pic_F77"; then
14205 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14206 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14207 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14208 echo $ECHO_N "(cached) $ECHO_C" >&6
14210 lt_prog_compiler_pic_works_F77=no
14211 ac_outfile=conftest.$ac_objext
14212 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14213 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14214 # Insert the option either (1) after the last *FLAGS variable, or
14215 # (2) before a word containing "conftest.", or (3) at the end.
14216 # Note that $ac_compile itself does not contain backslashes and begins
14217 # with a dollar sign (not a hyphen), so the echo should work correctly.
14218 # The option is referenced via a variable to avoid confusing sed.
14219 lt_compile=`echo "$ac_compile" | $SED \
14220 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14221 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14222 -e 's:$: $lt_compiler_flag:'`
14223 (eval echo "\"\$as_me:14223: $lt_compile\"" >&5)
14224 (eval "$lt_compile" 2>conftest.err)
14226 cat conftest.err >&5
14227 echo "$as_me:14227: \$? = $ac_status" >&5
14228 if (exit $ac_status) && test -s "$ac_outfile"; then
14229 # The compiler can only warn and ignore the option if not recognized
14230 # So say no if there are warnings other than the usual output.
14231 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
14232 $SED '/^$/d' conftest.err >conftest.er2
14233 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
14234 lt_prog_compiler_pic_works_F77=yes
14240 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14241 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14243 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14244 case $lt_prog_compiler_pic_F77 in
14246 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14249 lt_prog_compiler_pic_F77=
14250 lt_prog_compiler_can_build_shared_F77=no
14255 # For platforms which do not support PIC, -DPIC is meaningless:
14257 lt_prog_compiler_pic_F77=
14260 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14264 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14265 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14266 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14267 echo $ECHO_N "(cached) $ECHO_C" >&6
14269 lt_cv_prog_compiler_c_o_F77=no
14270 $rm -r conftest 2>/dev/null
14274 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14276 lt_compiler_flag="-o out/conftest2.$ac_objext"
14277 # Insert the option either (1) after the last *FLAGS variable, or
14278 # (2) before a word containing "conftest.", or (3) at the end.
14279 # Note that $ac_compile itself does not contain backslashes and begins
14280 # with a dollar sign (not a hyphen), so the echo should work correctly.
14281 lt_compile=`echo "$ac_compile" | $SED \
14282 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14283 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14284 -e 's:$: $lt_compiler_flag:'`
14285 (eval echo "\"\$as_me:14285: $lt_compile\"" >&5)
14286 (eval "$lt_compile" 2>out/conftest.err)
14288 cat out/conftest.err >&5
14289 echo "$as_me:14289: \$? = $ac_status" >&5
14290 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14292 # The compiler can only warn and ignore the option if not recognized
14293 # So say no if there are warnings
14294 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
14295 $SED '/^$/d' out/conftest.err >out/conftest.er2
14296 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14297 lt_cv_prog_compiler_c_o_F77=yes
14302 # SGI C++ compiler will create directory out/ii_files/ for
14303 # template instantiation
14304 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14305 $rm out/* && rmdir out
14311 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14312 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14315 hard_links="nottested"
14316 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14317 # do not overwrite the value of need_locks provided by the user
14318 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14319 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14322 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14324 ln conftest.a conftest.b 2>&5 || hard_links=no
14325 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14326 echo "$as_me:$LINENO: result: $hard_links" >&5
14327 echo "${ECHO_T}$hard_links" >&6
14328 if test "$hard_links" = no; then
14329 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14330 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14337 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14338 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14341 allow_undefined_flag_F77=
14342 enable_shared_with_static_runtimes_F77=no
14344 archive_expsym_cmds_F77=
14345 old_archive_From_new_cmds_F77=
14346 old_archive_from_expsyms_cmds_F77=
14347 export_dynamic_flag_spec_F77=
14348 whole_archive_flag_spec_F77=
14349 thread_safe_flag_spec_F77=
14350 hardcode_libdir_flag_spec_F77=
14351 hardcode_libdir_flag_spec_ld_F77=
14352 hardcode_libdir_separator_F77=
14353 hardcode_direct_F77=no
14354 hardcode_minus_L_F77=no
14355 hardcode_shlibpath_var_F77=unsupported
14356 link_all_deplibs_F77=unknown
14357 hardcode_automatic_F77=no
14359 module_expsym_cmds_F77=
14360 always_export_symbols_F77=no
14361 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14362 # include_expsyms should be a list of space-separated symbols to be *always*
14363 # included in the symbol list
14364 include_expsyms_F77=
14365 # exclude_expsyms can be an extended regexp of symbols to exclude
14366 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14367 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14368 # as well as any symbol that contains `d'.
14369 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14370 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14371 # platforms (ab)use it in PIC code, but their linkers get confused if
14372 # the symbol is explicitly referenced. Since portable code cannot
14373 # rely on this symbol name, it's probably fine to never include it in
14374 # preloaded symbol tables.
14375 extract_expsyms_cmds=
14376 # Just being paranoid about ensuring that cc_basename is set.
14377 for cc_temp in $compiler""; do
14379 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14380 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14385 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14388 cygwin* | mingw* | pw32*)
14389 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14390 # When not using gcc, we currently assume that we are using
14391 # Microsoft Visual C++.
14392 if test "$GCC" != yes; then
14402 if test "$with_gnu_ld" = yes; then
14403 # If archive_cmds runs LD, not CC, wlarc should be empty
14406 # Set some defaults for GNU ld with shared library support. These
14407 # are reset later if shared libraries are not supported. Putting them
14408 # here allows them to be overridden if necessary.
14409 runpath_var=LD_RUN_PATH
14410 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14411 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14412 # ancient GNU ld didn't support --whole-archive et. al.
14413 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14414 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14416 whole_archive_flag_spec_F77=
14418 supports_anon_versioning=no
14419 case `$LD -v 2>/dev/null` in
14420 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14421 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14422 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14423 *\ 2.11.*) ;; # other 2.11 versions
14424 *) supports_anon_versioning=yes ;;
14427 # See if GNU ld supports shared libraries.
14429 aix3* | aix4* | aix5*)
14430 # On AIX/PPC, the GNU linker is very broken
14431 if test "$host_cpu" != ia64; then
14435 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14436 *** to be unable to reliably create shared libraries on AIX.
14437 *** Therefore, libtool is disabling shared libraries support. If you
14438 *** really care for shared libraries, you may want to modify your PATH
14439 *** so that a non-GNU linker is found, and then restart.
14446 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)'
14447 hardcode_libdir_flag_spec_F77='-L$libdir'
14448 hardcode_minus_L_F77=yes
14450 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14451 # that the semantics of dynamic libraries on AmigaOS, at least up
14452 # to version 4, is to share data among multiple programs linked
14453 # with the same dynamic library. Since this doesn't match the
14454 # behavior of shared libraries on other platforms, we can't use
14460 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14461 allow_undefined_flag_F77=unsupported
14462 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14463 # support --undefined. This deserves some investigation. FIXME
14464 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14470 cygwin* | mingw* | pw32*)
14471 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14472 # as there is no search path for DLLs.
14473 hardcode_libdir_flag_spec_F77='-L$libdir'
14474 allow_undefined_flag_F77=unsupported
14475 always_export_symbols_F77=no
14476 enable_shared_with_static_runtimes_F77=yes
14477 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14479 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14480 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14481 # If the export-symbols file already is a .def file (1st line
14482 # is EXPORTS), use it as is; otherwise, prepend...
14483 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14484 cp $export_symbols $output_objdir/$soname.def;
14486 echo EXPORTS > $output_objdir/$soname.def;
14487 cat $export_symbols >> $output_objdir/$soname.def;
14489 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14496 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14498 case $cc_basename,$host_cpu in
14499 pgcc*) # Portland Group C compiler
14500 whole_archive_flag_spec_F77=
14502 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
14503 whole_archive_flag_spec_F77=
14504 tmp_addflag=' -fpic -Mnomain' ;;
14505 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14506 tmp_addflag=' -i_dynamic' ;;
14507 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14508 tmp_addflag=' -i_dynamic -nofor_main' ;;
14509 ifc* | ifort*) # Intel Fortran compiler
14510 tmp_addflag=' -nofor_main' ;;
14512 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14514 if test $supports_anon_versioning = yes; then
14515 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14516 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14517 $echo "local: *; };" >> $output_objdir/$libname.ver~
14518 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14526 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14527 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14530 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14531 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14536 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14540 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14541 *** create shared libraries on Solaris systems. Therefore, libtool
14542 *** is disabling shared libraries support. We urge you to upgrade GNU
14543 *** binutils to release 2.9.1 or newer. Another option is to modify
14544 *** your PATH or compiler configuration so that the native linker is
14545 *** used, and then restart.
14548 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14549 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14550 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14557 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14559 hardcode_direct_F77=yes
14560 hardcode_shlibpath_var_F77=no
14564 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14565 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14566 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14573 if test "$ld_shlibs_F77" = no; then
14575 hardcode_libdir_flag_spec_F77=
14576 export_dynamic_flag_spec_F77=
14577 whole_archive_flag_spec_F77=
14580 # PORTME fill in a description of your system's linker (not GNU ld)
14583 allow_undefined_flag_F77=unsupported
14584 always_export_symbols_F77=yes
14585 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'
14586 # Note: this linker hardcodes the directories in LIBPATH if there
14587 # are no directories specified by -L.
14588 hardcode_minus_L_F77=yes
14589 if test "$GCC" = yes && test -z "$link_static_flag"; then
14590 # Neither direct hardcoding nor static linking is supported with a
14592 hardcode_direct_F77=unsupported
14597 if test "$host_cpu" = ia64; then
14598 # On IA64, the linker does run time linking by default, so we don't
14599 # have to do anything special.
14600 aix_use_runtimelinking=no
14601 exp_sym_flag='-Bexport'
14604 # If we're using GNU nm, then we don't want the "-C" option.
14605 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14606 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14607 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'
14609 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'
14611 aix_use_runtimelinking=no
14613 # Test if we are trying to use run time linking or normal
14614 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14615 # need to do runtime linking.
14616 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14617 for ld_flag in $LDFLAGS; do
14618 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14619 aix_use_runtimelinking=yes
14625 exp_sym_flag='-bexport'
14626 no_entry_flag='-bnoentry'
14629 # When large executables or shared objects are built, AIX ld can
14630 # have problems creating the table of contents. If linking a library
14631 # or program results in "error TOC overflow" add -mminimal-toc to
14632 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14633 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14635 archive_cmds_F77=''
14636 hardcode_direct_F77=yes
14637 hardcode_libdir_separator_F77=':'
14638 link_all_deplibs_F77=yes
14640 if test "$GCC" = yes; then
14641 case $host_os in aix4.[012]|aix4.[012].*)
14642 # We only want to do this on AIX 4.2 and lower, the check
14643 # below for broken collect2 doesn't work under 4.3+
14644 collect2name=`${CC} -print-prog-name=collect2`
14645 if test -f "$collect2name" && \
14646 strings "$collect2name" | grep resolve_lib_name >/dev/null
14648 # We have reworked collect2
14649 hardcode_direct_F77=yes
14651 # We have old collect2
14652 hardcode_direct_F77=unsupported
14653 # It fails to find uninstalled libraries when the uninstalled
14654 # path is not listed in the libpath. Setting hardcode_minus_L
14655 # to unsupported forces relinking
14656 hardcode_minus_L_F77=yes
14657 hardcode_libdir_flag_spec_F77='-L$libdir'
14658 hardcode_libdir_separator_F77=
14661 shared_flag='-shared'
14662 if test "$aix_use_runtimelinking" = yes; then
14663 shared_flag="$shared_flag "'${wl}-G'
14667 if test "$host_cpu" = ia64; then
14668 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14669 # chokes on -Wl,-G. The following line is correct:
14672 if test "$aix_use_runtimelinking" = yes; then
14673 shared_flag='${wl}-G'
14675 shared_flag='${wl}-bM:SRE'
14680 # It seems that -bexpall does not export symbols beginning with
14681 # underscore (_), so it is better to generate a list of symbols to export.
14682 always_export_symbols_F77=yes
14683 if test "$aix_use_runtimelinking" = yes; then
14684 # Warning - without using the other runtime loading flags (-brtl),
14685 # -berok will link without error, but may produce a broken library.
14686 allow_undefined_flag_F77='-berok'
14687 # Determine the default libpath from the value encoded in an empty executable.
14688 cat >conftest.$ac_ext <<_ACEOF
14693 rm -f conftest.$ac_objext conftest$ac_exeext
14694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14695 (eval $ac_link) 2>conftest.er1
14697 grep -v '^ *+' conftest.er1 >conftest.err
14699 cat conftest.err >&5
14700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701 (exit $ac_status); } &&
14702 { ac_try='test -z "$ac_f77_werror_flag"
14703 || test ! -s conftest.err'
14704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14705 (eval $ac_try) 2>&5
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); }; } &&
14709 { ac_try='test -s conftest$ac_exeext'
14710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14711 (eval $ac_try) 2>&5
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); }; }; then
14716 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14718 # Check for a 64-bit object if we didn't find anything.
14719 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; }
14722 echo "$as_me: failed program was:" >&5
14723 sed 's/^/| /' conftest.$ac_ext >&5
14726 rm -f conftest.err conftest.$ac_objext \
14727 conftest$ac_exeext conftest.$ac_ext
14728 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14730 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14731 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"
14733 if test "$host_cpu" = ia64; then
14734 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14735 allow_undefined_flag_F77="-z nodefs"
14736 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"
14738 # Determine the default libpath from the value encoded in an empty executable.
14739 cat >conftest.$ac_ext <<_ACEOF
14744 rm -f conftest.$ac_objext conftest$ac_exeext
14745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14746 (eval $ac_link) 2>conftest.er1
14748 grep -v '^ *+' conftest.er1 >conftest.err
14750 cat conftest.err >&5
14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752 (exit $ac_status); } &&
14753 { ac_try='test -z "$ac_f77_werror_flag"
14754 || test ! -s conftest.err'
14755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14756 (eval $ac_try) 2>&5
14758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759 (exit $ac_status); }; } &&
14760 { ac_try='test -s conftest$ac_exeext'
14761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14762 (eval $ac_try) 2>&5
14764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765 (exit $ac_status); }; }; then
14767 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14769 # Check for a 64-bit object if we didn't find anything.
14770 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; }
14773 echo "$as_me: failed program was:" >&5
14774 sed 's/^/| /' conftest.$ac_ext >&5
14777 rm -f conftest.err conftest.$ac_objext \
14778 conftest$ac_exeext conftest.$ac_ext
14779 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14781 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14782 # Warning - without using the other run time loading flags,
14783 # -berok will link without error, but may produce a broken library.
14784 no_undefined_flag_F77=' ${wl}-bernotok'
14785 allow_undefined_flag_F77=' ${wl}-berok'
14786 # -bexpall does not export symbols beginning with underscore (_)
14787 always_export_symbols_F77=yes
14788 # Exported symbols can be pulled into shared objects from archives
14789 whole_archive_flag_spec_F77=' '
14790 archive_cmds_need_lc_F77=yes
14791 # This is similar to how AIX traditionally builds it's shared libraries.
14792 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'
14798 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)'
14799 hardcode_libdir_flag_spec_F77='-L$libdir'
14800 hardcode_minus_L_F77=yes
14801 # see comment about different semantics on the GNU ld section
14806 export_dynamic_flag_spec_F77=-rdynamic
14809 cygwin* | mingw* | pw32*)
14810 # When not using gcc, we currently assume that we are using
14811 # Microsoft Visual C++.
14812 # hardcode_libdir_flag_spec is actually meaningless, as there is
14813 # no search path for DLLs.
14814 hardcode_libdir_flag_spec_F77=' '
14815 allow_undefined_flag_F77=unsupported
14816 # Tell ltmain to make .lib files, not .a files.
14818 # Tell ltmain to make .dll files, not .so files.
14820 # FIXME: Setting linknames here is a bad hack.
14821 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14822 # The linker will automatically build a .lib file if we build a DLL.
14823 old_archive_From_new_cmds_F77='true'
14824 # FIXME: Should let the user specify the lib program.
14825 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14826 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14827 enable_shared_with_static_runtimes_F77=yes
14830 darwin* | rhapsody*)
14832 rhapsody* | darwin1.[012])
14833 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14836 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14837 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14839 case ${MACOSX_DEPLOYMENT_TARGET} in
14841 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14844 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14850 archive_cmds_need_lc_F77=no
14851 hardcode_direct_F77=no
14852 hardcode_automatic_F77=yes
14853 hardcode_shlibpath_var_F77=unsupported
14854 whole_archive_flag_spec_F77=''
14855 link_all_deplibs_F77=yes
14856 if test "$GCC" = yes ; then
14857 output_verbose_link_cmd='echo'
14858 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14859 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14860 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14861 archive_expsym_cmds_F77='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}'
14862 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14864 case $cc_basename in
14866 output_verbose_link_cmd='echo'
14867 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14868 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14869 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14870 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14871 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14881 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14882 hardcode_libdir_flag_spec_F77='-L$libdir'
14883 hardcode_shlibpath_var_F77=no
14890 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14891 # support. Future versions do this automatically, but an explicit c++rt0.o
14892 # does not break anything, and helps significantly (at the cost of a little
14895 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14896 hardcode_libdir_flag_spec_F77='-R$libdir'
14897 hardcode_direct_F77=yes
14898 hardcode_shlibpath_var_F77=no
14901 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14903 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14904 hardcode_direct_F77=yes
14905 hardcode_minus_L_F77=yes
14906 hardcode_shlibpath_var_F77=no
14909 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14910 freebsd* | kfreebsd*-gnu | dragonfly*)
14911 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14912 hardcode_libdir_flag_spec_F77='-R$libdir'
14913 hardcode_direct_F77=yes
14914 hardcode_shlibpath_var_F77=no
14918 if test "$GCC" = yes; then
14919 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'
14921 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'
14923 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14924 hardcode_libdir_separator_F77=:
14925 hardcode_direct_F77=yes
14927 # hardcode_minus_L: Not really in the search PATH,
14928 # but as the default location of the library.
14929 hardcode_minus_L_F77=yes
14930 export_dynamic_flag_spec_F77='${wl}-E'
14934 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14935 case "$host_cpu" in
14937 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14940 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14944 case "$host_cpu" in
14946 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14949 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14953 if test "$with_gnu_ld" = no; then
14954 case "$host_cpu" in
14956 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14957 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14958 hardcode_libdir_separator_F77=:
14959 hardcode_direct_F77=no
14960 hardcode_shlibpath_var_F77=no
14963 hardcode_libdir_flag_spec_F77='-L$libdir'
14964 hardcode_direct_F77=no
14965 hardcode_shlibpath_var_F77=no
14967 # hardcode_minus_L: Not really in the search PATH,
14968 # but as the default location of the library.
14969 hardcode_minus_L_F77=yes
14972 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14973 hardcode_libdir_separator_F77=:
14974 hardcode_direct_F77=yes
14975 export_dynamic_flag_spec_F77='${wl}-E'
14977 # hardcode_minus_L: Not really in the search PATH,
14978 # but as the default location of the library.
14979 hardcode_minus_L_F77=yes
14985 irix5* | irix6* | nonstopux*)
14986 if test "$GCC" = yes; then
14987 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'
14989 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'
14990 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14992 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14993 hardcode_libdir_separator_F77=:
14994 link_all_deplibs_F77=yes
14998 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14999 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15001 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15003 hardcode_libdir_flag_spec_F77='-R$libdir'
15004 hardcode_direct_F77=yes
15005 hardcode_shlibpath_var_F77=no
15009 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15010 hardcode_direct_F77=yes
15011 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15012 hardcode_libdir_separator_F77=:
15013 hardcode_shlibpath_var_F77=no
15017 hardcode_direct_F77=yes
15018 hardcode_shlibpath_var_F77=no
15019 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15020 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15021 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15022 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15023 export_dynamic_flag_spec_F77='${wl}-E'
15026 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15027 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15028 hardcode_libdir_flag_spec_F77='-R$libdir'
15031 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15032 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15039 hardcode_libdir_flag_spec_F77='-L$libdir'
15040 hardcode_minus_L_F77=yes
15041 allow_undefined_flag_F77=unsupported
15042 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'
15043 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15047 if test "$GCC" = yes; then
15048 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15049 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'
15051 allow_undefined_flag_F77=' -expect_unresolved \*'
15052 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'
15054 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15055 hardcode_libdir_separator_F77=:
15058 osf4* | osf5*) # as osf3* with the addition of -msym flag
15059 if test "$GCC" = yes; then
15060 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15061 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'
15062 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15064 allow_undefined_flag_F77=' -expect_unresolved \*'
15065 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'
15066 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~
15067 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15069 # Both c and cxx compiler support -rpath directly
15070 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15072 hardcode_libdir_separator_F77=:
15076 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15077 hardcode_shlibpath_var_F77=no
15078 export_dynamic_flag_spec_F77='${wl}-Bexport'
15079 runpath_var=LD_RUN_PATH
15080 hardcode_runpath_var=yes
15084 no_undefined_flag_F77=' -z text'
15085 if test "$GCC" = yes; then
15087 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15088 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15089 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15092 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15093 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15094 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15096 hardcode_libdir_flag_spec_F77='-R$libdir'
15097 hardcode_shlibpath_var_F77=no
15099 solaris2.[0-5] | solaris2.[0-5].*) ;;
15101 # The compiler driver will combine linker options so we
15102 # cannot just pass the convience library names through
15103 # without $wl, iff we do not link with $LD.
15104 # Luckily, gcc supports the same syntax we need for Sun Studio.
15105 # Supported since Solaris 2.6 (maybe 2.5.1?)
15108 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15110 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15113 link_all_deplibs_F77=yes
15117 if test "x$host_vendor" = xsequent; then
15118 # Use $CC to link under sequent, because it throws in some extra .o
15119 # files that make .init and .fini sections work.
15120 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15122 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15124 hardcode_libdir_flag_spec_F77='-L$libdir'
15125 hardcode_direct_F77=yes
15126 hardcode_minus_L_F77=yes
15127 hardcode_shlibpath_var_F77=no
15131 case $host_vendor in
15133 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15134 hardcode_direct_F77=yes # is this really true???
15137 ## LD is ld it makes a PLAMLIB
15138 ## CC just makes a GrossModule.
15139 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15140 reload_cmds_F77='$CC -r -o $output$reload_objs'
15141 hardcode_direct_F77=no
15144 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15145 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15148 runpath_var='LD_RUN_PATH'
15149 hardcode_shlibpath_var_F77=no
15153 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15154 hardcode_shlibpath_var_F77=no
15155 export_dynamic_flag_spec_F77='-Bexport'
15159 if test -d /usr/nec; then
15160 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15161 hardcode_shlibpath_var_F77=no
15162 runpath_var=LD_RUN_PATH
15163 hardcode_runpath_var=yes
15169 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15170 hardcode_direct_F77=yes
15171 hardcode_minus_L_F77=no
15172 hardcode_shlibpath_var_F77=no
15173 hardcode_runpath_var=yes
15174 runpath_var=LD_RUN_PATH
15177 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15178 no_undefined_flag_F77='${wl}-z ${wl}text'
15179 if test "$GCC" = yes; then
15180 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15182 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15184 runpath_var='LD_RUN_PATH'
15185 hardcode_shlibpath_var_F77=no
15189 no_undefined_flag_F77=' -z text'
15190 # $CC -shared without GNU ld will not create a library from C++
15191 # object files and a static libstdc++, better avoid it by now
15192 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15193 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15194 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15195 hardcode_libdir_flag_spec_F77=
15196 hardcode_shlibpath_var_F77=no
15197 runpath_var='LD_RUN_PATH'
15201 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15202 hardcode_libdir_flag_spec_F77='-L$libdir'
15203 hardcode_shlibpath_var_F77=no
15212 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15213 echo "${ECHO_T}$ld_shlibs_F77" >&6
15214 test "$ld_shlibs_F77" = no && can_build_shared=no
15216 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15217 if test "$GCC" = yes; then
15218 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15222 # Do we need to explicitly link libc?
15224 case "x$archive_cmds_need_lc_F77" in
15226 # Assume -lc should be added
15227 archive_cmds_need_lc_F77=yes
15229 if test "$enable_shared" = yes && test "$GCC" = yes; then
15230 case $archive_cmds_F77 in
15232 # FIXME: we may have to deal with multi-command sequences.
15235 # Test whether the compiler implicitly links with -lc since on some
15236 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15237 # to ld, don't add -lc before -lgcc.
15238 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15239 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15241 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15244 (eval $ac_compile) 2>&5
15246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247 (exit $ac_status); } 2>conftest.err; then
15250 libobjs=conftest.$ac_objext
15252 wl=$lt_prog_compiler_wl_F77
15258 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15259 allow_undefined_flag_F77=
15260 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15261 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264 (exit $ac_status); }
15266 archive_cmds_need_lc_F77=no
15268 archive_cmds_need_lc_F77=yes
15270 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15272 cat conftest.err 1>&5
15275 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15276 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15283 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15284 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15285 library_names_spec=
15286 libname_spec='lib$name'
15290 postuninstall_cmds=
15294 shlibpath_overrides_runpath=unknown
15296 dynamic_linker="$host_os ld.so"
15297 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15298 if test "$GCC" = yes; then
15299 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15300 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15301 # if the path contains ";" then we assume it to be the separator
15302 # otherwise default to the standard path separator (i.e. ":") - it is
15303 # assumed that no part of a normal pathname contains ";" but that should
15304 # okay in the real world where ";" in dirpaths is itself problematic.
15305 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15307 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15310 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15312 need_lib_prefix=unknown
15313 hardcode_into_libs=no
15315 # when you set need_version to no, make sure it does not cause -set_version
15316 # flags to be left without arguments
15317 need_version=unknown
15322 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15323 shlibpath_var=LIBPATH
15325 # AIX 3 has no versioning support, so we append a major version to the name.
15326 soname_spec='${libname}${release}${shared_ext}$major'
15333 hardcode_into_libs=yes
15334 if test "$host_cpu" = ia64; then
15335 # AIX 5 supports IA64
15336 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15337 shlibpath_var=LD_LIBRARY_PATH
15339 # With GCC up to 2.95.x, collect2 would create an import file
15340 # for dependence libraries. The import file would start with
15341 # the line `#! .'. This would cause the generated library to
15342 # depend on `.', always an invalid library. This was fixed in
15343 # development snapshots of GCC prior to 3.0.
15345 aix4 | aix4.[01] | aix4.[01].*)
15346 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15348 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15351 can_build_shared=no
15355 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15356 # soname into executable. Probably we can add versioning support to
15357 # collect2, so additional links can be useful in future.
15358 if test "$aix_use_runtimelinking" = yes; then
15359 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15360 # instead of lib<name>.a to let people know that these are not
15361 # typical AIX shared libraries.
15362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15364 # We preserve .a as extension for shared libraries through AIX4.2
15365 # and later when we are not doing run time linking.
15366 library_names_spec='${libname}${release}.a $libname.a'
15367 soname_spec='${libname}${release}${shared_ext}$major'
15369 shlibpath_var=LIBPATH
15374 library_names_spec='$libname.ixlibrary $libname.a'
15375 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15376 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'
15380 library_names_spec='${libname}${shared_ext}'
15381 dynamic_linker="$host_os ld.so"
15382 shlibpath_var=LIBRARY_PATH
15388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15389 soname_spec='${libname}${release}${shared_ext}$major'
15390 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15391 shlibpath_var=LD_LIBRARY_PATH
15392 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15393 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15394 # the default ld.so.conf also contains /usr/contrib/lib and
15395 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15396 # libtool to hard-code these into programs
15399 cygwin* | mingw* | pw32*)
15400 version_type=windows
15405 case $GCC,$host_os in
15406 yes,cygwin* | yes,mingw* | yes,pw32*)
15407 library_names_spec='$libname.dll.a'
15408 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15409 postinstall_cmds='base_file=`basename \${file}`~
15410 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15411 dldir=$destdir/`dirname \$dlpath`~
15412 test -d \$dldir || mkdir -p \$dldir~
15413 $install_prog $dir/$dlname \$dldir/$dlname'
15414 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15415 dlpath=$dir/\$dldll~
15417 shlibpath_overrides_runpath=yes
15421 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15422 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15423 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15426 # MinGW DLLs use traditional 'lib' prefix
15427 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15428 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15429 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15430 # It is most probably a Windows format PATH printed by
15431 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15432 # path with ; separators, and with drive letters. We can handle the
15433 # drive letters (cygwin fileutils understands them), so leave them,
15434 # especially as we might pass files found there to a mingw objdump,
15435 # which wouldn't understand a cygwinified path. Ahh.
15436 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15438 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15442 # pw32 DLLs use 'pw' prefix rather than 'lib'
15443 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15449 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15452 dynamic_linker='Win32 ld.exe'
15453 # FIXME: first we should search . and the directory the executable is in
15457 darwin* | rhapsody*)
15458 dynamic_linker="$host_os dyld"
15459 version_type=darwin
15462 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15463 soname_spec='${libname}${release}${major}$shared_ext'
15464 shlibpath_overrides_runpath=yes
15465 shlibpath_var=DYLD_LIBRARY_PATH
15466 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15467 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15468 if test "$GCC" = yes; then
15469 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"`
15471 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15473 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15481 soname_spec='${libname}${release}${shared_ext}$major'
15482 shlibpath_var=LD_LIBRARY_PATH
15493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15494 soname_spec='${libname}${release}${shared_ext}$major'
15495 shlibpath_var=LD_LIBRARY_PATH
15496 shlibpath_overrides_runpath=no
15497 hardcode_into_libs=yes
15498 dynamic_linker='GNU ld.so'
15501 freebsd* | dragonfly*)
15502 # DragonFly does not have aout. When/if they implement a new
15503 # versioning mechanism, adjust this.
15504 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15505 version_type=freebsd-$objformat
15506 case $version_type in
15508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15513 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15517 shlibpath_var=LD_LIBRARY_PATH
15520 shlibpath_overrides_runpath=yes
15522 freebsd3.[01]* | freebsdelf3.[01]*)
15523 shlibpath_overrides_runpath=yes
15524 hardcode_into_libs=yes
15527 shlibpath_overrides_runpath=no
15528 hardcode_into_libs=yes
15537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15538 soname_spec='${libname}${release}${shared_ext}$major'
15539 shlibpath_var=LD_LIBRARY_PATH
15540 hardcode_into_libs=yes
15543 hpux9* | hpux10* | hpux11*)
15544 # Give a soname corresponding to the major version so that dld.sl refuses to
15545 # link against other versions.
15549 case "$host_cpu" in
15552 hardcode_into_libs=yes
15553 dynamic_linker="$host_os dld.so"
15554 shlibpath_var=LD_LIBRARY_PATH
15555 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15557 soname_spec='${libname}${release}${shared_ext}$major'
15558 if test "X$HPUX_IA64_MODE" = X32; then
15559 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15561 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15563 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15567 hardcode_into_libs=yes
15568 dynamic_linker="$host_os dld.sl"
15569 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15570 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15572 soname_spec='${libname}${release}${shared_ext}$major'
15573 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15574 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15578 dynamic_linker="$host_os dld.sl"
15579 shlibpath_var=SHLIB_PATH
15580 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15582 soname_spec='${libname}${release}${shared_ext}$major'
15585 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15586 postinstall_cmds='chmod 555 $lib'
15589 irix5* | irix6* | nonstopux*)
15591 nonstopux*) version_type=nonstopux ;;
15593 if test "$lt_cv_prog_gnu_ld" = yes; then
15601 soname_spec='${libname}${release}${shared_ext}$major'
15602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15604 irix5* | nonstopux*)
15605 libsuff= shlibsuff=
15608 case $LD in # libtool.m4 will add one of these switches to LD
15609 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15610 libsuff= shlibsuff= libmagic=32-bit;;
15611 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15612 libsuff=32 shlibsuff=N32 libmagic=N32;;
15613 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15614 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15615 *) libsuff= shlibsuff= libmagic=never-match;;
15619 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15620 shlibpath_overrides_runpath=no
15621 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15622 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15623 hardcode_into_libs=yes
15626 # No shared lib support for Linux oldld, aout, or coff.
15627 linux*oldld* | linux*aout* | linux*coff*)
15631 # This must be Linux ELF.
15636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15637 soname_spec='${libname}${release}${shared_ext}$major'
15638 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15639 shlibpath_var=LD_LIBRARY_PATH
15640 shlibpath_overrides_runpath=no
15641 # This implies no fast_install, which is unacceptable.
15642 # Some rework will be needed to allow for fast_install
15643 # before this can be enabled.
15644 hardcode_into_libs=yes
15646 # find out which ABI we are using
15648 case "$host_cpu" in
15649 x86_64*|s390x*|powerpc64*)
15650 echo '#line 15650 "configure"' > conftest.$ac_ext
15651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15652 (eval $ac_compile) 2>&5
15654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655 (exit $ac_status); }; then
15656 case `/usr/bin/file conftest.$ac_objext` in
15659 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15667 # Append ld.so.conf contents to the search path
15668 if test -f /etc/ld.so.conf; then
15669 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15670 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15673 # We used to test for /lib/ld.so.1 and disable shared libraries on
15674 # powerpc, because MkLinux only supported shared libraries with the
15675 # GNU dynamic linker. Since this was broken with cross compilers,
15676 # most powerpc-linux boxes support dynamic linking these days and
15677 # people can always --disable-shared, the test was removed, and we
15678 # assume the GNU/Linux dynamic linker is in use.
15679 dynamic_linker='GNU/Linux ld.so'
15686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15687 soname_spec='${libname}${release}${shared_ext}$major'
15688 shlibpath_var=LD_LIBRARY_PATH
15689 shlibpath_overrides_runpath=no
15690 hardcode_into_libs=yes
15691 dynamic_linker='GNU ld.so'
15698 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15700 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15701 dynamic_linker='NetBSD (a.out) ld.so'
15703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15704 soname_spec='${libname}${release}${shared_ext}$major'
15705 dynamic_linker='NetBSD ld.elf_so'
15707 shlibpath_var=LD_LIBRARY_PATH
15708 shlibpath_overrides_runpath=yes
15709 hardcode_into_libs=yes
15714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15715 shlibpath_var=LD_LIBRARY_PATH
15716 shlibpath_overrides_runpath=yes
15723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15724 soname_spec='${libname}${release}${shared_ext}$major'
15725 shlibpath_var=LD_LIBRARY_PATH
15726 shlibpath_overrides_runpath=yes
15733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15734 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15735 shlibpath_var=LD_LIBRARY_PATH
15736 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15738 openbsd2.[89] | openbsd2.[89].*)
15739 shlibpath_overrides_runpath=no
15742 shlibpath_overrides_runpath=yes
15746 shlibpath_overrides_runpath=yes
15751 libname_spec='$name'
15754 library_names_spec='$libname${shared_ext} $libname.a'
15755 dynamic_linker='OS/2 ld.exe'
15756 shlibpath_var=LIBPATH
15759 osf3* | osf4* | osf5*)
15763 soname_spec='${libname}${release}${shared_ext}$major'
15764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15765 shlibpath_var=LD_LIBRARY_PATH
15766 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15767 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15772 soname_spec='${libname}${release}${shared_ext}$major'
15773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15774 shlibpath_var=LD_LIBRARY_PATH
15781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15782 soname_spec='${libname}${release}${shared_ext}$major'
15783 shlibpath_var=LD_LIBRARY_PATH
15784 shlibpath_overrides_runpath=yes
15785 hardcode_into_libs=yes
15786 # ldd complains unless libraries are executable
15787 postinstall_cmds='chmod +x $lib'
15792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15793 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15794 shlibpath_var=LD_LIBRARY_PATH
15795 shlibpath_overrides_runpath=yes
15796 if test "$with_gnu_ld" = yes; then
15802 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15805 soname_spec='${libname}${release}${shared_ext}$major'
15806 shlibpath_var=LD_LIBRARY_PATH
15807 case $host_vendor in
15809 shlibpath_overrides_runpath=no
15811 export_dynamic_flag_spec='${wl}-Blargedynsym'
15812 runpath_var=LD_RUN_PATH
15820 shlibpath_overrides_runpath=no
15821 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15827 if test -d /usr/nec ;then
15829 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15830 soname_spec='$libname${shared_ext}.$major'
15831 shlibpath_var=LD_LIBRARY_PATH
15837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15838 soname_spec='${libname}${release}${shared_ext}$major'
15839 shlibpath_var=LD_LIBRARY_PATH
15846 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15847 echo "${ECHO_T}$dynamic_linker" >&6
15848 test "$dynamic_linker" = no && can_build_shared=no
15850 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15851 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15852 hardcode_action_F77=
15853 if test -n "$hardcode_libdir_flag_spec_F77" || \
15854 test -n "$runpath_var_F77" || \
15855 test "X$hardcode_automatic_F77" = "Xyes" ; then
15857 # We can hardcode non-existant directories.
15858 if test "$hardcode_direct_F77" != no &&
15859 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15860 # have to relink, otherwise we might link with an installed library
15861 # when we should be linking with a yet-to-be-installed one
15862 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15863 test "$hardcode_minus_L_F77" != no; then
15864 # Linking always hardcodes the temporary library directory.
15865 hardcode_action_F77=relink
15867 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15868 hardcode_action_F77=immediate
15871 # We cannot hardcode anything, or else we can only hardcode existing
15873 hardcode_action_F77=unsupported
15875 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15876 echo "${ECHO_T}$hardcode_action_F77" >&6
15878 if test "$hardcode_action_F77" = relink; then
15879 # Fast installation is not supported
15880 enable_fast_install=no
15881 elif test "$shlibpath_overrides_runpath" = yes ||
15882 test "$enable_shared" = no; then
15883 # Fast installation is not necessary
15884 enable_fast_install=needless
15889 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15890 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15891 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15892 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15893 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15894 echo "$as_me:$LINENO: result: yes" >&5
15895 echo "${ECHO_T}yes" >&6
15897 # FIXME - insert some real tests, host_os isn't really good enough
15900 if test -n "$STRIP" ; then
15901 striplib="$STRIP -x"
15902 echo "$as_me:$LINENO: result: yes" >&5
15903 echo "${ECHO_T}yes" >&6
15905 echo "$as_me:$LINENO: result: no" >&5
15906 echo "${ECHO_T}no" >&6
15910 echo "$as_me:$LINENO: result: no" >&5
15911 echo "${ECHO_T}no" >&6
15918 # The else clause should only fire when bootstrapping the
15919 # libtool distribution, otherwise you forgot to ship ltmain.sh
15920 # with your package, and you will get complaints that there are
15921 # no rules to generate ltmain.sh.
15922 if test -f "$ltmain"; then
15923 # See if we are running on zsh, and set the options which allow our commands through
15924 # without removal of \ escapes.
15925 if test -n "${ZSH_VERSION+set}" ; then
15926 setopt NO_GLOB_SUBST
15928 # Now quote all the things that may contain metacharacters while being
15929 # careful not to overquote the AC_SUBSTed values. We take copies of the
15930 # variables and quote the copies for generation of the libtool script.
15931 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15933 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15934 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15935 deplibs_check_method reload_flag reload_cmds need_locks \
15936 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15937 lt_cv_sys_global_symbol_to_c_name_address \
15938 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15939 old_postinstall_cmds old_postuninstall_cmds \
15943 lt_prog_compiler_wl_F77 \
15944 lt_prog_compiler_pic_F77 \
15945 lt_prog_compiler_static_F77 \
15946 lt_prog_compiler_no_builtin_flag_F77 \
15947 export_dynamic_flag_spec_F77 \
15948 thread_safe_flag_spec_F77 \
15949 whole_archive_flag_spec_F77 \
15950 enable_shared_with_static_runtimes_F77 \
15951 old_archive_cmds_F77 \
15952 old_archive_from_new_cmds_F77 \
15953 predep_objects_F77 \
15954 postdep_objects_F77 \
15957 compiler_lib_search_path_F77 \
15959 archive_expsym_cmds_F77 \
15960 postinstall_cmds_F77 \
15961 postuninstall_cmds_F77 \
15962 old_archive_from_expsyms_cmds_F77 \
15963 allow_undefined_flag_F77 \
15964 no_undefined_flag_F77 \
15965 export_symbols_cmds_F77 \
15966 hardcode_libdir_flag_spec_F77 \
15967 hardcode_libdir_flag_spec_ld_F77 \
15968 hardcode_libdir_separator_F77 \
15969 hardcode_automatic_F77 \
15971 module_expsym_cmds_F77 \
15972 lt_cv_prog_compiler_c_o_F77 \
15973 exclude_expsyms_F77 \
15974 include_expsyms_F77; do
15977 old_archive_cmds_F77 | \
15978 old_archive_from_new_cmds_F77 | \
15979 archive_cmds_F77 | \
15980 archive_expsym_cmds_F77 | \
15981 module_cmds_F77 | \
15982 module_expsym_cmds_F77 | \
15983 old_archive_from_expsyms_cmds_F77 | \
15984 export_symbols_cmds_F77 | \
15985 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15986 postinstall_cmds | postuninstall_cmds | \
15987 old_postinstall_cmds | old_postuninstall_cmds | \
15988 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15989 # Double-quote double-evaled strings.
15990 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15993 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15999 *'\$0 --fallback-echo"')
16000 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16006 cat <<__EOF__ >> "$cfgfile"
16007 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16009 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16011 # Shell to use when invoking shell scripts.
16014 # Whether or not to build shared libraries.
16015 build_libtool_libs=$enable_shared
16017 # Whether or not to build static libraries.
16018 build_old_libs=$enable_static
16020 # Whether or not to add -lc for building shared libraries.
16021 build_libtool_need_lc=$archive_cmds_need_lc_F77
16023 # Whether or not to disallow shared libs when runtime libs are static
16024 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16026 # Whether or not to optimize for fast installation.
16027 fast_install=$enable_fast_install
16030 host_alias=$host_alias
16034 # The build system.
16035 build_alias=$build_alias
16039 # An echo program that does not interpret backslashes.
16044 AR_FLAGS=$lt_AR_FLAGS
16049 # A language-specific compiler.
16050 CC=$lt_compiler_F77
16052 # Is the compiler the GNU C compiler?
16058 # The linker used to build libraries.
16061 # Whether we need hard or soft links.
16064 # A BSD-compatible nm program.
16067 # A symbol stripping program
16070 # Used to examine libraries when file_magic_cmd begins "file"
16071 MAGIC_CMD=$MAGIC_CMD
16073 # Used on cygwin: DLL creation program.
16076 # Used on cygwin: object dumper.
16079 # Used on cygwin: assembler.
16082 # The name of the directory that contains temporary libtool files.
16085 # How to create reloadable object files.
16086 reload_flag=$lt_reload_flag
16087 reload_cmds=$lt_reload_cmds
16089 # How to pass a linker flag through the compiler.
16090 wl=$lt_lt_prog_compiler_wl_F77
16092 # Object file suffix (normally "o").
16093 objext="$ac_objext"
16095 # Old archive suffix (normally "a").
16098 # Shared library suffix (normally ".so").
16099 shrext_cmds='$shrext_cmds'
16101 # Executable file suffix (normally "").
16104 # Additional compiler flags for building library objects.
16105 pic_flag=$lt_lt_prog_compiler_pic_F77
16108 # What is the maximum length of a command?
16109 max_cmd_len=$lt_cv_sys_max_cmd_len
16111 # Does compiler simultaneously support -c and -o options?
16112 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16114 # Must we lock files when doing compilation?
16115 need_locks=$lt_need_locks
16117 # Do we need the lib prefix for modules?
16118 need_lib_prefix=$need_lib_prefix
16120 # Do we need a version for libraries?
16121 need_version=$need_version
16123 # Whether dlopen is supported.
16124 dlopen_support=$enable_dlopen
16126 # Whether dlopen of programs is supported.
16127 dlopen_self=$enable_dlopen_self
16129 # Whether dlopen of statically linked programs is supported.
16130 dlopen_self_static=$enable_dlopen_self_static
16132 # Compiler flag to prevent dynamic linking.
16133 link_static_flag=$lt_lt_prog_compiler_static_F77
16135 # Compiler flag to turn off builtin functions.
16136 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16138 # Compiler flag to allow reflexive dlopens.
16139 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16141 # Compiler flag to generate shared objects directly from archives.
16142 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16144 # Compiler flag to generate thread-safe objects.
16145 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16147 # Library versioning type.
16148 version_type=$version_type
16150 # Format of library name prefix.
16151 libname_spec=$lt_libname_spec
16153 # List of archive names. First name is the real one, the rest are links.
16154 # The last name is the one that the linker finds with -lNAME.
16155 library_names_spec=$lt_library_names_spec
16157 # The coded name of the library, if different from the real name.
16158 soname_spec=$lt_soname_spec
16160 # Commands used to build and install an old-style archive.
16162 old_archive_cmds=$lt_old_archive_cmds_F77
16163 old_postinstall_cmds=$lt_old_postinstall_cmds
16164 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16166 # Create an old-style archive from a shared archive.
16167 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16169 # Create a temporary old-style archive to link instead of a shared archive.
16170 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16172 # Commands used to build and install a shared archive.
16173 archive_cmds=$lt_archive_cmds_F77
16174 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16175 postinstall_cmds=$lt_postinstall_cmds
16176 postuninstall_cmds=$lt_postuninstall_cmds
16178 # Commands used to build a loadable module (assumed same as above if empty)
16179 module_cmds=$lt_module_cmds_F77
16180 module_expsym_cmds=$lt_module_expsym_cmds_F77
16182 # Commands to strip libraries.
16183 old_striplib=$lt_old_striplib
16184 striplib=$lt_striplib
16186 # Dependencies to place before the objects being linked to create a
16188 predep_objects=$lt_predep_objects_F77
16190 # Dependencies to place after the objects being linked to create a
16192 postdep_objects=$lt_postdep_objects_F77
16194 # Dependencies to place before the objects being linked to create a
16196 predeps=$lt_predeps_F77
16198 # Dependencies to place after the objects being linked to create a
16200 postdeps=$lt_postdeps_F77
16202 # The library search path used internally by the compiler when linking
16203 # a shared library.
16204 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16206 # Method to check whether dependent libraries are shared objects.
16207 deplibs_check_method=$lt_deplibs_check_method
16209 # Command to use when deplibs_check_method == file_magic.
16210 file_magic_cmd=$lt_file_magic_cmd
16212 # Flag that allows shared libraries with undefined symbols to be built.
16213 allow_undefined_flag=$lt_allow_undefined_flag_F77
16215 # Flag that forces no undefined symbols.
16216 no_undefined_flag=$lt_no_undefined_flag_F77
16218 # Commands used to finish a libtool library installation in a directory.
16219 finish_cmds=$lt_finish_cmds
16221 # Same as above, but a single script fragment to be evaled but not shown.
16222 finish_eval=$lt_finish_eval
16224 # Take the output of nm and produce a listing of raw symbols and C names.
16225 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16227 # Transform the output of nm in a proper C declaration
16228 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16230 # Transform the output of nm in a C name address pair
16231 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16233 # This is the shared library runtime path variable.
16234 runpath_var=$runpath_var
16236 # This is the shared library path variable.
16237 shlibpath_var=$shlibpath_var
16239 # Is shlibpath searched before the hard-coded library search path?
16240 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16242 # How to hardcode a shared library path into an executable.
16243 hardcode_action=$hardcode_action_F77
16245 # Whether we should hardcode library paths into libraries.
16246 hardcode_into_libs=$hardcode_into_libs
16248 # Flag to hardcode \$libdir into a binary during linking.
16249 # This must work even if \$libdir does not exist.
16250 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16252 # If ld is used when linking, flag to hardcode \$libdir into
16253 # a binary during linking. This must work even if \$libdir does
16255 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16257 # Whether we need a single -rpath flag with a separated argument.
16258 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16260 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16261 # resulting binary.
16262 hardcode_direct=$hardcode_direct_F77
16264 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16265 # resulting binary.
16266 hardcode_minus_L=$hardcode_minus_L_F77
16268 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16269 # the resulting binary.
16270 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16272 # Set to yes if building a shared library automatically hardcodes DIR into the library
16273 # and all subsequent libraries and executables linked against it.
16274 hardcode_automatic=$hardcode_automatic_F77
16276 # Variables whose values should be saved in libtool wrapper scripts and
16277 # restored at relink time.
16278 variables_saved_for_relink="$variables_saved_for_relink"
16280 # Whether libtool must link a program against all its dependency libraries.
16281 link_all_deplibs=$link_all_deplibs_F77
16283 # Compile-time system search path for libraries
16284 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16286 # Run-time system search path for libraries
16287 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16289 # Fix the shell variable \$srcfile for the compiler.
16290 fix_srcfile_path="$fix_srcfile_path_F77"
16292 # Set to yes if exported symbols are required.
16293 always_export_symbols=$always_export_symbols_F77
16295 # The commands to list exported symbols.
16296 export_symbols_cmds=$lt_export_symbols_cmds_F77
16298 # The commands to extract the exported symbol list from a shared archive.
16299 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16301 # Symbols that should not be listed in the preloaded symbols.
16302 exclude_expsyms=$lt_exclude_expsyms_F77
16304 # Symbols that must always be exported.
16305 include_expsyms=$lt_include_expsyms_F77
16307 # ### END LIBTOOL TAG CONFIG: $tagname
16313 # If there is no Makefile yet, we rely on a make rule to execute
16314 # `config.status --recheck' to rerun these tests and create the
16315 # libtool script then.
16316 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16317 if test -f "$ltmain_in"; then
16318 test -f Makefile && make "$ltmain"
16324 ac_cpp='$CPP $CPPFLAGS'
16325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16337 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16341 # Source file extension for Java test sources.
16344 # Object file extension for compiled Java test sources.
16348 # Code to be used in simple compile tests
16349 lt_simple_compile_test_code="class foo {}\n"
16351 # Code to be used in simple link tests
16352 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16354 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16356 # If no C compiler was specified, use CC.
16359 # Allow CC to be a program name with arguments.
16363 # save warnings/boilerplate of simple test code
16364 ac_outfile=conftest.$ac_objext
16365 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16366 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16367 _lt_compiler_boilerplate=`cat conftest.err`
16370 ac_outfile=conftest.$ac_objext
16371 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16372 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16373 _lt_linker_boilerplate=`cat conftest.err`
16377 # Allow CC to be a program name with arguments.
16382 for cc_temp in $compiler""; do
16384 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16385 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16390 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16393 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16394 archive_cmds_need_lc_GCJ=no
16396 old_archive_cmds_GCJ=$old_archive_cmds
16399 ## There is no encapsulation within the following macros, do not change
16400 ## the running order or otherwise move them around unless you know exactly
16401 ## what you are doing...
16403 lt_prog_compiler_no_builtin_flag_GCJ=
16405 if test "$GCC" = yes; then
16406 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16409 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16410 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16411 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16412 echo $ECHO_N "(cached) $ECHO_C" >&6
16414 lt_cv_prog_compiler_rtti_exceptions=no
16415 ac_outfile=conftest.$ac_objext
16416 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16417 lt_compiler_flag="-fno-rtti -fno-exceptions"
16418 # Insert the option either (1) after the last *FLAGS variable, or
16419 # (2) before a word containing "conftest.", or (3) at the end.
16420 # Note that $ac_compile itself does not contain backslashes and begins
16421 # with a dollar sign (not a hyphen), so the echo should work correctly.
16422 # The option is referenced via a variable to avoid confusing sed.
16423 lt_compile=`echo "$ac_compile" | $SED \
16424 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16425 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16426 -e 's:$: $lt_compiler_flag:'`
16427 (eval echo "\"\$as_me:16427: $lt_compile\"" >&5)
16428 (eval "$lt_compile" 2>conftest.err)
16430 cat conftest.err >&5
16431 echo "$as_me:16431: \$? = $ac_status" >&5
16432 if (exit $ac_status) && test -s "$ac_outfile"; then
16433 # The compiler can only warn and ignore the option if not recognized
16434 # So say no if there are warnings other than the usual output.
16435 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16436 $SED '/^$/d' conftest.err >conftest.er2
16437 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16438 lt_cv_prog_compiler_rtti_exceptions=yes
16444 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16445 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16447 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16448 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16455 lt_prog_compiler_wl_GCJ=
16456 lt_prog_compiler_pic_GCJ=
16457 lt_prog_compiler_static_GCJ=
16459 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16460 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16462 if test "$GCC" = yes; then
16463 lt_prog_compiler_wl_GCJ='-Wl,'
16464 lt_prog_compiler_static_GCJ='-static'
16468 # All AIX code is PIC.
16469 if test "$host_cpu" = ia64; then
16470 # AIX 5 now supports IA64 processor
16471 lt_prog_compiler_static_GCJ='-Bstatic'
16476 # FIXME: we need at least 68020 code to build shared libraries, but
16477 # adding the `-m68020' flag to GCC prevents building anything better,
16479 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16482 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16483 # PIC is the default for these OSes.
16486 mingw* | pw32* | os2*)
16487 # This hack is so that the source file can tell whether it is being
16488 # built for inclusion in a dll (and should export symbols for example).
16489 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16492 darwin* | rhapsody*)
16493 # PIC is the default on this platform
16494 # Common symbols not allowed in MH_DYLIB files
16495 lt_prog_compiler_pic_GCJ='-fno-common'
16499 # Just because we use GCC doesn't mean we suddenly get shared libraries
16500 # on systems that don't support them.
16501 lt_prog_compiler_can_build_shared_GCJ=no
16506 if test -d /usr/nec; then
16507 lt_prog_compiler_pic_GCJ=-Kconform_pic
16512 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16513 # not for PA HP-UX.
16514 case "$host_cpu" in
16519 lt_prog_compiler_pic_GCJ='-fPIC'
16525 lt_prog_compiler_pic_GCJ='-fPIC'
16529 # PORTME Check for flag to pass linker flags through the system compiler.
16532 lt_prog_compiler_wl_GCJ='-Wl,'
16533 if test "$host_cpu" = ia64; then
16534 # AIX 5 now supports IA64 processor
16535 lt_prog_compiler_static_GCJ='-Bstatic'
16537 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16541 # PIC is the default on this platform
16542 # Common symbols not allowed in MH_DYLIB files
16543 case $cc_basename in
16545 lt_prog_compiler_pic_GCJ='-qnocommon'
16546 lt_prog_compiler_wl_GCJ='-Wl,'
16551 mingw* | pw32* | os2*)
16552 # This hack is so that the source file can tell whether it is being
16553 # built for inclusion in a dll (and should export symbols for example).
16554 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16557 hpux9* | hpux10* | hpux11*)
16558 lt_prog_compiler_wl_GCJ='-Wl,'
16559 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16560 # not for PA HP-UX.
16561 case "$host_cpu" in
16566 lt_prog_compiler_pic_GCJ='+Z'
16569 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16570 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16573 irix5* | irix6* | nonstopux*)
16574 lt_prog_compiler_wl_GCJ='-Wl,'
16575 # PIC (with -KPIC) is the default.
16576 lt_prog_compiler_static_GCJ='-non_shared'
16580 lt_prog_compiler_pic_GCJ='-KPIC'
16581 lt_prog_compiler_static_GCJ='-Bstatic'
16585 case $cc_basename in
16587 lt_prog_compiler_wl_GCJ='-Wl,'
16588 lt_prog_compiler_pic_GCJ='-KPIC'
16589 lt_prog_compiler_static_GCJ='-static'
16591 pgcc* | pgf77* | pgf90*)
16592 # Portland Group compilers (*not* the Pentium gcc compiler,
16593 # which looks to be a dead project)
16594 lt_prog_compiler_wl_GCJ='-Wl,'
16595 lt_prog_compiler_pic_GCJ='-fpic'
16596 lt_prog_compiler_static_GCJ='-static'
16599 lt_prog_compiler_wl_GCJ='-Wl,'
16600 # All Alpha code is PIC.
16601 lt_prog_compiler_static_GCJ='-non_shared'
16606 osf3* | osf4* | osf5*)
16607 lt_prog_compiler_wl_GCJ='-Wl,'
16608 # All OSF/1 code is PIC.
16609 lt_prog_compiler_static_GCJ='-non_shared'
16613 lt_prog_compiler_pic_GCJ='-Kpic'
16614 lt_prog_compiler_static_GCJ='-dn'
16618 lt_prog_compiler_pic_GCJ='-KPIC'
16619 lt_prog_compiler_static_GCJ='-Bstatic'
16620 case $cc_basename in
16621 f77* | f90* | f95*)
16622 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16624 lt_prog_compiler_wl_GCJ='-Wl,';;
16629 lt_prog_compiler_wl_GCJ='-Qoption ld '
16630 lt_prog_compiler_pic_GCJ='-PIC'
16631 lt_prog_compiler_static_GCJ='-Bstatic'
16634 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16635 lt_prog_compiler_wl_GCJ='-Wl,'
16636 lt_prog_compiler_pic_GCJ='-KPIC'
16637 lt_prog_compiler_static_GCJ='-Bstatic'
16641 if test -d /usr/nec ;then
16642 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16643 lt_prog_compiler_static_GCJ='-Bstatic'
16648 lt_prog_compiler_wl_GCJ='-Wl,'
16649 lt_prog_compiler_can_build_shared_GCJ=no
16653 lt_prog_compiler_pic_GCJ='-pic'
16654 lt_prog_compiler_static_GCJ='-Bstatic'
16658 lt_prog_compiler_can_build_shared_GCJ=no
16663 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16664 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16667 # Check to make sure the PIC flag actually works.
16669 if test -n "$lt_prog_compiler_pic_GCJ"; then
16671 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16672 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16673 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16674 echo $ECHO_N "(cached) $ECHO_C" >&6
16676 lt_prog_compiler_pic_works_GCJ=no
16677 ac_outfile=conftest.$ac_objext
16678 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16679 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16680 # Insert the option either (1) after the last *FLAGS variable, or
16681 # (2) before a word containing "conftest.", or (3) at the end.
16682 # Note that $ac_compile itself does not contain backslashes and begins
16683 # with a dollar sign (not a hyphen), so the echo should work correctly.
16684 # The option is referenced via a variable to avoid confusing sed.
16685 lt_compile=`echo "$ac_compile" | $SED \
16686 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16687 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16688 -e 's:$: $lt_compiler_flag:'`
16689 (eval echo "\"\$as_me:16689: $lt_compile\"" >&5)
16690 (eval "$lt_compile" 2>conftest.err)
16692 cat conftest.err >&5
16693 echo "$as_me:16693: \$? = $ac_status" >&5
16694 if (exit $ac_status) && test -s "$ac_outfile"; then
16695 # The compiler can only warn and ignore the option if not recognized
16696 # So say no if there are warnings other than the usual output.
16697 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16698 $SED '/^$/d' conftest.err >conftest.er2
16699 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16700 lt_prog_compiler_pic_works_GCJ=yes
16706 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16707 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16709 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16710 case $lt_prog_compiler_pic_GCJ in
16712 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16715 lt_prog_compiler_pic_GCJ=
16716 lt_prog_compiler_can_build_shared_GCJ=no
16721 # For platforms which do not support PIC, -DPIC is meaningless:
16723 lt_prog_compiler_pic_GCJ=
16726 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16730 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16731 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16732 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16733 echo $ECHO_N "(cached) $ECHO_C" >&6
16735 lt_cv_prog_compiler_c_o_GCJ=no
16736 $rm -r conftest 2>/dev/null
16740 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16742 lt_compiler_flag="-o out/conftest2.$ac_objext"
16743 # Insert the option either (1) after the last *FLAGS variable, or
16744 # (2) before a word containing "conftest.", or (3) at the end.
16745 # Note that $ac_compile itself does not contain backslashes and begins
16746 # with a dollar sign (not a hyphen), so the echo should work correctly.
16747 lt_compile=`echo "$ac_compile" | $SED \
16748 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16749 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16750 -e 's:$: $lt_compiler_flag:'`
16751 (eval echo "\"\$as_me:16751: $lt_compile\"" >&5)
16752 (eval "$lt_compile" 2>out/conftest.err)
16754 cat out/conftest.err >&5
16755 echo "$as_me:16755: \$? = $ac_status" >&5
16756 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16758 # The compiler can only warn and ignore the option if not recognized
16759 # So say no if there are warnings
16760 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16761 $SED '/^$/d' out/conftest.err >out/conftest.er2
16762 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16763 lt_cv_prog_compiler_c_o_GCJ=yes
16768 # SGI C++ compiler will create directory out/ii_files/ for
16769 # template instantiation
16770 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16771 $rm out/* && rmdir out
16777 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16778 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16781 hard_links="nottested"
16782 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16783 # do not overwrite the value of need_locks provided by the user
16784 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16785 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16788 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16790 ln conftest.a conftest.b 2>&5 || hard_links=no
16791 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16792 echo "$as_me:$LINENO: result: $hard_links" >&5
16793 echo "${ECHO_T}$hard_links" >&6
16794 if test "$hard_links" = no; then
16795 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16796 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16803 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16804 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16807 allow_undefined_flag_GCJ=
16808 enable_shared_with_static_runtimes_GCJ=no
16810 archive_expsym_cmds_GCJ=
16811 old_archive_From_new_cmds_GCJ=
16812 old_archive_from_expsyms_cmds_GCJ=
16813 export_dynamic_flag_spec_GCJ=
16814 whole_archive_flag_spec_GCJ=
16815 thread_safe_flag_spec_GCJ=
16816 hardcode_libdir_flag_spec_GCJ=
16817 hardcode_libdir_flag_spec_ld_GCJ=
16818 hardcode_libdir_separator_GCJ=
16819 hardcode_direct_GCJ=no
16820 hardcode_minus_L_GCJ=no
16821 hardcode_shlibpath_var_GCJ=unsupported
16822 link_all_deplibs_GCJ=unknown
16823 hardcode_automatic_GCJ=no
16825 module_expsym_cmds_GCJ=
16826 always_export_symbols_GCJ=no
16827 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16828 # include_expsyms should be a list of space-separated symbols to be *always*
16829 # included in the symbol list
16830 include_expsyms_GCJ=
16831 # exclude_expsyms can be an extended regexp of symbols to exclude
16832 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16833 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16834 # as well as any symbol that contains `d'.
16835 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16836 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16837 # platforms (ab)use it in PIC code, but their linkers get confused if
16838 # the symbol is explicitly referenced. Since portable code cannot
16839 # rely on this symbol name, it's probably fine to never include it in
16840 # preloaded symbol tables.
16841 extract_expsyms_cmds=
16842 # Just being paranoid about ensuring that cc_basename is set.
16843 for cc_temp in $compiler""; do
16845 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16846 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16851 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16854 cygwin* | mingw* | pw32*)
16855 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16856 # When not using gcc, we currently assume that we are using
16857 # Microsoft Visual C++.
16858 if test "$GCC" != yes; then
16868 if test "$with_gnu_ld" = yes; then
16869 # If archive_cmds runs LD, not CC, wlarc should be empty
16872 # Set some defaults for GNU ld with shared library support. These
16873 # are reset later if shared libraries are not supported. Putting them
16874 # here allows them to be overridden if necessary.
16875 runpath_var=LD_RUN_PATH
16876 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16877 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16878 # ancient GNU ld didn't support --whole-archive et. al.
16879 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16880 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16882 whole_archive_flag_spec_GCJ=
16884 supports_anon_versioning=no
16885 case `$LD -v 2>/dev/null` in
16886 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16887 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16888 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16889 *\ 2.11.*) ;; # other 2.11 versions
16890 *) supports_anon_versioning=yes ;;
16893 # See if GNU ld supports shared libraries.
16895 aix3* | aix4* | aix5*)
16896 # On AIX/PPC, the GNU linker is very broken
16897 if test "$host_cpu" != ia64; then
16901 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16902 *** to be unable to reliably create shared libraries on AIX.
16903 *** Therefore, libtool is disabling shared libraries support. If you
16904 *** really care for shared libraries, you may want to modify your PATH
16905 *** so that a non-GNU linker is found, and then restart.
16912 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)'
16913 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16914 hardcode_minus_L_GCJ=yes
16916 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16917 # that the semantics of dynamic libraries on AmigaOS, at least up
16918 # to version 4, is to share data among multiple programs linked
16919 # with the same dynamic library. Since this doesn't match the
16920 # behavior of shared libraries on other platforms, we can't use
16926 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16927 allow_undefined_flag_GCJ=unsupported
16928 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16929 # support --undefined. This deserves some investigation. FIXME
16930 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16936 cygwin* | mingw* | pw32*)
16937 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16938 # as there is no search path for DLLs.
16939 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16940 allow_undefined_flag_GCJ=unsupported
16941 always_export_symbols_GCJ=no
16942 enable_shared_with_static_runtimes_GCJ=yes
16943 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16945 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16946 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16947 # If the export-symbols file already is a .def file (1st line
16948 # is EXPORTS), use it as is; otherwise, prepend...
16949 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16950 cp $export_symbols $output_objdir/$soname.def;
16952 echo EXPORTS > $output_objdir/$soname.def;
16953 cat $export_symbols >> $output_objdir/$soname.def;
16955 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16962 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16964 case $cc_basename,$host_cpu in
16965 pgcc*) # Portland Group C compiler
16966 whole_archive_flag_spec_GCJ=
16968 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
16969 whole_archive_flag_spec_GCJ=
16970 tmp_addflag=' -fpic -Mnomain' ;;
16971 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16972 tmp_addflag=' -i_dynamic' ;;
16973 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16974 tmp_addflag=' -i_dynamic -nofor_main' ;;
16975 ifc* | ifort*) # Intel Fortran compiler
16976 tmp_addflag=' -nofor_main' ;;
16978 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16980 if test $supports_anon_versioning = yes; then
16981 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16982 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16983 $echo "local: *; };" >> $output_objdir/$libname.ver~
16984 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16992 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16993 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16996 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16997 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17002 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17006 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17007 *** create shared libraries on Solaris systems. Therefore, libtool
17008 *** is disabling shared libraries support. We urge you to upgrade GNU
17009 *** binutils to release 2.9.1 or newer. Another option is to modify
17010 *** your PATH or compiler configuration so that the native linker is
17011 *** used, and then restart.
17014 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17015 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17016 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17023 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17025 hardcode_direct_GCJ=yes
17026 hardcode_shlibpath_var_GCJ=no
17030 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17031 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17032 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17039 if test "$ld_shlibs_GCJ" = no; then
17041 hardcode_libdir_flag_spec_GCJ=
17042 export_dynamic_flag_spec_GCJ=
17043 whole_archive_flag_spec_GCJ=
17046 # PORTME fill in a description of your system's linker (not GNU ld)
17049 allow_undefined_flag_GCJ=unsupported
17050 always_export_symbols_GCJ=yes
17051 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'
17052 # Note: this linker hardcodes the directories in LIBPATH if there
17053 # are no directories specified by -L.
17054 hardcode_minus_L_GCJ=yes
17055 if test "$GCC" = yes && test -z "$link_static_flag"; then
17056 # Neither direct hardcoding nor static linking is supported with a
17058 hardcode_direct_GCJ=unsupported
17063 if test "$host_cpu" = ia64; then
17064 # On IA64, the linker does run time linking by default, so we don't
17065 # have to do anything special.
17066 aix_use_runtimelinking=no
17067 exp_sym_flag='-Bexport'
17070 # If we're using GNU nm, then we don't want the "-C" option.
17071 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17072 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17073 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'
17075 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'
17077 aix_use_runtimelinking=no
17079 # Test if we are trying to use run time linking or normal
17080 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17081 # need to do runtime linking.
17082 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17083 for ld_flag in $LDFLAGS; do
17084 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17085 aix_use_runtimelinking=yes
17091 exp_sym_flag='-bexport'
17092 no_entry_flag='-bnoentry'
17095 # When large executables or shared objects are built, AIX ld can
17096 # have problems creating the table of contents. If linking a library
17097 # or program results in "error TOC overflow" add -mminimal-toc to
17098 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17099 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17101 archive_cmds_GCJ=''
17102 hardcode_direct_GCJ=yes
17103 hardcode_libdir_separator_GCJ=':'
17104 link_all_deplibs_GCJ=yes
17106 if test "$GCC" = yes; then
17107 case $host_os in aix4.[012]|aix4.[012].*)
17108 # We only want to do this on AIX 4.2 and lower, the check
17109 # below for broken collect2 doesn't work under 4.3+
17110 collect2name=`${CC} -print-prog-name=collect2`
17111 if test -f "$collect2name" && \
17112 strings "$collect2name" | grep resolve_lib_name >/dev/null
17114 # We have reworked collect2
17115 hardcode_direct_GCJ=yes
17117 # We have old collect2
17118 hardcode_direct_GCJ=unsupported
17119 # It fails to find uninstalled libraries when the uninstalled
17120 # path is not listed in the libpath. Setting hardcode_minus_L
17121 # to unsupported forces relinking
17122 hardcode_minus_L_GCJ=yes
17123 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17124 hardcode_libdir_separator_GCJ=
17127 shared_flag='-shared'
17128 if test "$aix_use_runtimelinking" = yes; then
17129 shared_flag="$shared_flag "'${wl}-G'
17133 if test "$host_cpu" = ia64; then
17134 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17135 # chokes on -Wl,-G. The following line is correct:
17138 if test "$aix_use_runtimelinking" = yes; then
17139 shared_flag='${wl}-G'
17141 shared_flag='${wl}-bM:SRE'
17146 # It seems that -bexpall does not export symbols beginning with
17147 # underscore (_), so it is better to generate a list of symbols to export.
17148 always_export_symbols_GCJ=yes
17149 if test "$aix_use_runtimelinking" = yes; then
17150 # Warning - without using the other runtime loading flags (-brtl),
17151 # -berok will link without error, but may produce a broken library.
17152 allow_undefined_flag_GCJ='-berok'
17153 # Determine the default libpath from the value encoded in an empty executable.
17154 cat >conftest.$ac_ext <<_ACEOF
17157 cat confdefs.h >>conftest.$ac_ext
17158 cat >>conftest.$ac_ext <<_ACEOF
17159 /* end confdefs.h. */
17169 rm -f conftest.$ac_objext conftest$ac_exeext
17170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17171 (eval $ac_link) 2>conftest.er1
17173 grep -v '^ *+' conftest.er1 >conftest.err
17175 cat conftest.err >&5
17176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177 (exit $ac_status); } &&
17178 { ac_try='test -z "$ac_c_werror_flag"
17179 || test ! -s conftest.err'
17180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17181 (eval $ac_try) 2>&5
17183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184 (exit $ac_status); }; } &&
17185 { ac_try='test -s conftest$ac_exeext'
17186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17187 (eval $ac_try) 2>&5
17189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); }; }; then
17192 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17194 # Check for a 64-bit object if we didn't find anything.
17195 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; }
17198 echo "$as_me: failed program was:" >&5
17199 sed 's/^/| /' conftest.$ac_ext >&5
17202 rm -f conftest.err conftest.$ac_objext \
17203 conftest$ac_exeext conftest.$ac_ext
17204 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17206 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17207 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"
17209 if test "$host_cpu" = ia64; then
17210 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17211 allow_undefined_flag_GCJ="-z nodefs"
17212 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"
17214 # Determine the default libpath from the value encoded in an empty executable.
17215 cat >conftest.$ac_ext <<_ACEOF
17218 cat confdefs.h >>conftest.$ac_ext
17219 cat >>conftest.$ac_ext <<_ACEOF
17220 /* end confdefs.h. */
17230 rm -f conftest.$ac_objext conftest$ac_exeext
17231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17232 (eval $ac_link) 2>conftest.er1
17234 grep -v '^ *+' conftest.er1 >conftest.err
17236 cat conftest.err >&5
17237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238 (exit $ac_status); } &&
17239 { ac_try='test -z "$ac_c_werror_flag"
17240 || test ! -s conftest.err'
17241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17242 (eval $ac_try) 2>&5
17244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245 (exit $ac_status); }; } &&
17246 { ac_try='test -s conftest$ac_exeext'
17247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17248 (eval $ac_try) 2>&5
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); }; }; then
17253 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17255 # Check for a 64-bit object if we didn't find anything.
17256 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; }
17259 echo "$as_me: failed program was:" >&5
17260 sed 's/^/| /' conftest.$ac_ext >&5
17263 rm -f conftest.err conftest.$ac_objext \
17264 conftest$ac_exeext conftest.$ac_ext
17265 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17267 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17268 # Warning - without using the other run time loading flags,
17269 # -berok will link without error, but may produce a broken library.
17270 no_undefined_flag_GCJ=' ${wl}-bernotok'
17271 allow_undefined_flag_GCJ=' ${wl}-berok'
17272 # -bexpall does not export symbols beginning with underscore (_)
17273 always_export_symbols_GCJ=yes
17274 # Exported symbols can be pulled into shared objects from archives
17275 whole_archive_flag_spec_GCJ=' '
17276 archive_cmds_need_lc_GCJ=yes
17277 # This is similar to how AIX traditionally builds it's shared libraries.
17278 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'
17284 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)'
17285 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17286 hardcode_minus_L_GCJ=yes
17287 # see comment about different semantics on the GNU ld section
17292 export_dynamic_flag_spec_GCJ=-rdynamic
17295 cygwin* | mingw* | pw32*)
17296 # When not using gcc, we currently assume that we are using
17297 # Microsoft Visual C++.
17298 # hardcode_libdir_flag_spec is actually meaningless, as there is
17299 # no search path for DLLs.
17300 hardcode_libdir_flag_spec_GCJ=' '
17301 allow_undefined_flag_GCJ=unsupported
17302 # Tell ltmain to make .lib files, not .a files.
17304 # Tell ltmain to make .dll files, not .so files.
17306 # FIXME: Setting linknames here is a bad hack.
17307 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17308 # The linker will automatically build a .lib file if we build a DLL.
17309 old_archive_From_new_cmds_GCJ='true'
17310 # FIXME: Should let the user specify the lib program.
17311 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17312 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17313 enable_shared_with_static_runtimes_GCJ=yes
17316 darwin* | rhapsody*)
17318 rhapsody* | darwin1.[012])
17319 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17322 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17323 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17325 case ${MACOSX_DEPLOYMENT_TARGET} in
17327 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17330 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17336 archive_cmds_need_lc_GCJ=no
17337 hardcode_direct_GCJ=no
17338 hardcode_automatic_GCJ=yes
17339 hardcode_shlibpath_var_GCJ=unsupported
17340 whole_archive_flag_spec_GCJ=''
17341 link_all_deplibs_GCJ=yes
17342 if test "$GCC" = yes ; then
17343 output_verbose_link_cmd='echo'
17344 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17345 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17346 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17347 archive_expsym_cmds_GCJ='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}'
17348 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17350 case $cc_basename in
17352 output_verbose_link_cmd='echo'
17353 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17354 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17355 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17356 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17357 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17367 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17368 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17369 hardcode_shlibpath_var_GCJ=no
17376 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17377 # support. Future versions do this automatically, but an explicit c++rt0.o
17378 # does not break anything, and helps significantly (at the cost of a little
17381 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17382 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17383 hardcode_direct_GCJ=yes
17384 hardcode_shlibpath_var_GCJ=no
17387 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17389 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17390 hardcode_direct_GCJ=yes
17391 hardcode_minus_L_GCJ=yes
17392 hardcode_shlibpath_var_GCJ=no
17395 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17396 freebsd* | kfreebsd*-gnu | dragonfly*)
17397 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17398 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17399 hardcode_direct_GCJ=yes
17400 hardcode_shlibpath_var_GCJ=no
17404 if test "$GCC" = yes; then
17405 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'
17407 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'
17409 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17410 hardcode_libdir_separator_GCJ=:
17411 hardcode_direct_GCJ=yes
17413 # hardcode_minus_L: Not really in the search PATH,
17414 # but as the default location of the library.
17415 hardcode_minus_L_GCJ=yes
17416 export_dynamic_flag_spec_GCJ='${wl}-E'
17420 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17421 case "$host_cpu" in
17423 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17426 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17430 case "$host_cpu" in
17432 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17435 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17439 if test "$with_gnu_ld" = no; then
17440 case "$host_cpu" in
17442 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17443 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17444 hardcode_libdir_separator_GCJ=:
17445 hardcode_direct_GCJ=no
17446 hardcode_shlibpath_var_GCJ=no
17449 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17450 hardcode_direct_GCJ=no
17451 hardcode_shlibpath_var_GCJ=no
17453 # hardcode_minus_L: Not really in the search PATH,
17454 # but as the default location of the library.
17455 hardcode_minus_L_GCJ=yes
17458 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17459 hardcode_libdir_separator_GCJ=:
17460 hardcode_direct_GCJ=yes
17461 export_dynamic_flag_spec_GCJ='${wl}-E'
17463 # hardcode_minus_L: Not really in the search PATH,
17464 # but as the default location of the library.
17465 hardcode_minus_L_GCJ=yes
17471 irix5* | irix6* | nonstopux*)
17472 if test "$GCC" = yes; then
17473 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'
17475 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'
17476 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17478 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17479 hardcode_libdir_separator_GCJ=:
17480 link_all_deplibs_GCJ=yes
17484 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17485 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17487 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17489 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17490 hardcode_direct_GCJ=yes
17491 hardcode_shlibpath_var_GCJ=no
17495 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17496 hardcode_direct_GCJ=yes
17497 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17498 hardcode_libdir_separator_GCJ=:
17499 hardcode_shlibpath_var_GCJ=no
17503 hardcode_direct_GCJ=yes
17504 hardcode_shlibpath_var_GCJ=no
17505 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17506 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17507 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17508 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17509 export_dynamic_flag_spec_GCJ='${wl}-E'
17512 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17513 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17514 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17517 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17518 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17525 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17526 hardcode_minus_L_GCJ=yes
17527 allow_undefined_flag_GCJ=unsupported
17528 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'
17529 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17533 if test "$GCC" = yes; then
17534 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17535 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'
17537 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17538 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'
17540 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17541 hardcode_libdir_separator_GCJ=:
17544 osf4* | osf5*) # as osf3* with the addition of -msym flag
17545 if test "$GCC" = yes; then
17546 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17547 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'
17548 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17550 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17551 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'
17552 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~
17553 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17555 # Both c and cxx compiler support -rpath directly
17556 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17558 hardcode_libdir_separator_GCJ=:
17562 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17563 hardcode_shlibpath_var_GCJ=no
17564 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17565 runpath_var=LD_RUN_PATH
17566 hardcode_runpath_var=yes
17570 no_undefined_flag_GCJ=' -z text'
17571 if test "$GCC" = yes; then
17573 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17574 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17575 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17578 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17579 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17580 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17582 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17583 hardcode_shlibpath_var_GCJ=no
17585 solaris2.[0-5] | solaris2.[0-5].*) ;;
17587 # The compiler driver will combine linker options so we
17588 # cannot just pass the convience library names through
17589 # without $wl, iff we do not link with $LD.
17590 # Luckily, gcc supports the same syntax we need for Sun Studio.
17591 # Supported since Solaris 2.6 (maybe 2.5.1?)
17594 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17596 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17599 link_all_deplibs_GCJ=yes
17603 if test "x$host_vendor" = xsequent; then
17604 # Use $CC to link under sequent, because it throws in some extra .o
17605 # files that make .init and .fini sections work.
17606 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17608 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17610 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17611 hardcode_direct_GCJ=yes
17612 hardcode_minus_L_GCJ=yes
17613 hardcode_shlibpath_var_GCJ=no
17617 case $host_vendor in
17619 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17620 hardcode_direct_GCJ=yes # is this really true???
17623 ## LD is ld it makes a PLAMLIB
17624 ## CC just makes a GrossModule.
17625 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17626 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17627 hardcode_direct_GCJ=no
17630 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17631 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17634 runpath_var='LD_RUN_PATH'
17635 hardcode_shlibpath_var_GCJ=no
17639 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17640 hardcode_shlibpath_var_GCJ=no
17641 export_dynamic_flag_spec_GCJ='-Bexport'
17645 if test -d /usr/nec; then
17646 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17647 hardcode_shlibpath_var_GCJ=no
17648 runpath_var=LD_RUN_PATH
17649 hardcode_runpath_var=yes
17655 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17656 hardcode_direct_GCJ=yes
17657 hardcode_minus_L_GCJ=no
17658 hardcode_shlibpath_var_GCJ=no
17659 hardcode_runpath_var=yes
17660 runpath_var=LD_RUN_PATH
17663 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17664 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17665 if test "$GCC" = yes; then
17666 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17668 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17670 runpath_var='LD_RUN_PATH'
17671 hardcode_shlibpath_var_GCJ=no
17675 no_undefined_flag_GCJ=' -z text'
17676 # $CC -shared without GNU ld will not create a library from C++
17677 # object files and a static libstdc++, better avoid it by now
17678 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17679 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17680 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17681 hardcode_libdir_flag_spec_GCJ=
17682 hardcode_shlibpath_var_GCJ=no
17683 runpath_var='LD_RUN_PATH'
17687 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17688 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17689 hardcode_shlibpath_var_GCJ=no
17698 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17699 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17700 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17702 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17703 if test "$GCC" = yes; then
17704 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17708 # Do we need to explicitly link libc?
17710 case "x$archive_cmds_need_lc_GCJ" in
17712 # Assume -lc should be added
17713 archive_cmds_need_lc_GCJ=yes
17715 if test "$enable_shared" = yes && test "$GCC" = yes; then
17716 case $archive_cmds_GCJ in
17718 # FIXME: we may have to deal with multi-command sequences.
17721 # Test whether the compiler implicitly links with -lc since on some
17722 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17723 # to ld, don't add -lc before -lgcc.
17724 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17725 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17727 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17730 (eval $ac_compile) 2>&5
17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); } 2>conftest.err; then
17736 libobjs=conftest.$ac_objext
17738 wl=$lt_prog_compiler_wl_GCJ
17744 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17745 allow_undefined_flag_GCJ=
17746 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17747 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); }
17752 archive_cmds_need_lc_GCJ=no
17754 archive_cmds_need_lc_GCJ=yes
17756 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17758 cat conftest.err 1>&5
17761 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17762 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17769 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17770 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17771 library_names_spec=
17772 libname_spec='lib$name'
17776 postuninstall_cmds=
17780 shlibpath_overrides_runpath=unknown
17782 dynamic_linker="$host_os ld.so"
17783 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17784 if test "$GCC" = yes; then
17785 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17786 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17787 # if the path contains ";" then we assume it to be the separator
17788 # otherwise default to the standard path separator (i.e. ":") - it is
17789 # assumed that no part of a normal pathname contains ";" but that should
17790 # okay in the real world where ";" in dirpaths is itself problematic.
17791 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17793 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17796 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17798 need_lib_prefix=unknown
17799 hardcode_into_libs=no
17801 # when you set need_version to no, make sure it does not cause -set_version
17802 # flags to be left without arguments
17803 need_version=unknown
17808 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17809 shlibpath_var=LIBPATH
17811 # AIX 3 has no versioning support, so we append a major version to the name.
17812 soname_spec='${libname}${release}${shared_ext}$major'
17819 hardcode_into_libs=yes
17820 if test "$host_cpu" = ia64; then
17821 # AIX 5 supports IA64
17822 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17823 shlibpath_var=LD_LIBRARY_PATH
17825 # With GCC up to 2.95.x, collect2 would create an import file
17826 # for dependence libraries. The import file would start with
17827 # the line `#! .'. This would cause the generated library to
17828 # depend on `.', always an invalid library. This was fixed in
17829 # development snapshots of GCC prior to 3.0.
17831 aix4 | aix4.[01] | aix4.[01].*)
17832 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17834 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17837 can_build_shared=no
17841 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17842 # soname into executable. Probably we can add versioning support to
17843 # collect2, so additional links can be useful in future.
17844 if test "$aix_use_runtimelinking" = yes; then
17845 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17846 # instead of lib<name>.a to let people know that these are not
17847 # typical AIX shared libraries.
17848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17850 # We preserve .a as extension for shared libraries through AIX4.2
17851 # and later when we are not doing run time linking.
17852 library_names_spec='${libname}${release}.a $libname.a'
17853 soname_spec='${libname}${release}${shared_ext}$major'
17855 shlibpath_var=LIBPATH
17860 library_names_spec='$libname.ixlibrary $libname.a'
17861 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17862 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'
17866 library_names_spec='${libname}${shared_ext}'
17867 dynamic_linker="$host_os ld.so"
17868 shlibpath_var=LIBRARY_PATH
17874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17875 soname_spec='${libname}${release}${shared_ext}$major'
17876 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17877 shlibpath_var=LD_LIBRARY_PATH
17878 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17879 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17880 # the default ld.so.conf also contains /usr/contrib/lib and
17881 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17882 # libtool to hard-code these into programs
17885 cygwin* | mingw* | pw32*)
17886 version_type=windows
17891 case $GCC,$host_os in
17892 yes,cygwin* | yes,mingw* | yes,pw32*)
17893 library_names_spec='$libname.dll.a'
17894 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17895 postinstall_cmds='base_file=`basename \${file}`~
17896 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17897 dldir=$destdir/`dirname \$dlpath`~
17898 test -d \$dldir || mkdir -p \$dldir~
17899 $install_prog $dir/$dlname \$dldir/$dlname'
17900 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17901 dlpath=$dir/\$dldll~
17903 shlibpath_overrides_runpath=yes
17907 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17908 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17909 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17912 # MinGW DLLs use traditional 'lib' prefix
17913 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17914 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17915 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17916 # It is most probably a Windows format PATH printed by
17917 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17918 # path with ; separators, and with drive letters. We can handle the
17919 # drive letters (cygwin fileutils understands them), so leave them,
17920 # especially as we might pass files found there to a mingw objdump,
17921 # which wouldn't understand a cygwinified path. Ahh.
17922 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17924 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17928 # pw32 DLLs use 'pw' prefix rather than 'lib'
17929 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17935 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17938 dynamic_linker='Win32 ld.exe'
17939 # FIXME: first we should search . and the directory the executable is in
17943 darwin* | rhapsody*)
17944 dynamic_linker="$host_os dyld"
17945 version_type=darwin
17948 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17949 soname_spec='${libname}${release}${major}$shared_ext'
17950 shlibpath_overrides_runpath=yes
17951 shlibpath_var=DYLD_LIBRARY_PATH
17952 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17953 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17954 if test "$GCC" = yes; then
17955 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"`
17957 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17959 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17967 soname_spec='${libname}${release}${shared_ext}$major'
17968 shlibpath_var=LD_LIBRARY_PATH
17979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17980 soname_spec='${libname}${release}${shared_ext}$major'
17981 shlibpath_var=LD_LIBRARY_PATH
17982 shlibpath_overrides_runpath=no
17983 hardcode_into_libs=yes
17984 dynamic_linker='GNU ld.so'
17987 freebsd* | dragonfly*)
17988 # DragonFly does not have aout. When/if they implement a new
17989 # versioning mechanism, adjust this.
17990 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17991 version_type=freebsd-$objformat
17992 case $version_type in
17994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17999 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18003 shlibpath_var=LD_LIBRARY_PATH
18006 shlibpath_overrides_runpath=yes
18008 freebsd3.[01]* | freebsdelf3.[01]*)
18009 shlibpath_overrides_runpath=yes
18010 hardcode_into_libs=yes
18013 shlibpath_overrides_runpath=no
18014 hardcode_into_libs=yes
18023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18024 soname_spec='${libname}${release}${shared_ext}$major'
18025 shlibpath_var=LD_LIBRARY_PATH
18026 hardcode_into_libs=yes
18029 hpux9* | hpux10* | hpux11*)
18030 # Give a soname corresponding to the major version so that dld.sl refuses to
18031 # link against other versions.
18035 case "$host_cpu" in
18038 hardcode_into_libs=yes
18039 dynamic_linker="$host_os dld.so"
18040 shlibpath_var=LD_LIBRARY_PATH
18041 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18043 soname_spec='${libname}${release}${shared_ext}$major'
18044 if test "X$HPUX_IA64_MODE" = X32; then
18045 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18047 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18049 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18053 hardcode_into_libs=yes
18054 dynamic_linker="$host_os dld.sl"
18055 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18056 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18058 soname_spec='${libname}${release}${shared_ext}$major'
18059 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18060 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18064 dynamic_linker="$host_os dld.sl"
18065 shlibpath_var=SHLIB_PATH
18066 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18068 soname_spec='${libname}${release}${shared_ext}$major'
18071 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18072 postinstall_cmds='chmod 555 $lib'
18075 irix5* | irix6* | nonstopux*)
18077 nonstopux*) version_type=nonstopux ;;
18079 if test "$lt_cv_prog_gnu_ld" = yes; then
18087 soname_spec='${libname}${release}${shared_ext}$major'
18088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18090 irix5* | nonstopux*)
18091 libsuff= shlibsuff=
18094 case $LD in # libtool.m4 will add one of these switches to LD
18095 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18096 libsuff= shlibsuff= libmagic=32-bit;;
18097 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18098 libsuff=32 shlibsuff=N32 libmagic=N32;;
18099 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18100 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18101 *) libsuff= shlibsuff= libmagic=never-match;;
18105 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18106 shlibpath_overrides_runpath=no
18107 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18108 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18109 hardcode_into_libs=yes
18112 # No shared lib support for Linux oldld, aout, or coff.
18113 linux*oldld* | linux*aout* | linux*coff*)
18117 # This must be Linux ELF.
18122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18123 soname_spec='${libname}${release}${shared_ext}$major'
18124 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18125 shlibpath_var=LD_LIBRARY_PATH
18126 shlibpath_overrides_runpath=no
18127 # This implies no fast_install, which is unacceptable.
18128 # Some rework will be needed to allow for fast_install
18129 # before this can be enabled.
18130 hardcode_into_libs=yes
18132 # find out which ABI we are using
18134 case "$host_cpu" in
18135 x86_64*|s390x*|powerpc64*)
18136 echo '#line 18136 "configure"' > conftest.$ac_ext
18137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18138 (eval $ac_compile) 2>&5
18140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141 (exit $ac_status); }; then
18142 case `/usr/bin/file conftest.$ac_objext` in
18145 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18153 # Append ld.so.conf contents to the search path
18154 if test -f /etc/ld.so.conf; then
18155 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18156 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18159 # We used to test for /lib/ld.so.1 and disable shared libraries on
18160 # powerpc, because MkLinux only supported shared libraries with the
18161 # GNU dynamic linker. Since this was broken with cross compilers,
18162 # most powerpc-linux boxes support dynamic linking these days and
18163 # people can always --disable-shared, the test was removed, and we
18164 # assume the GNU/Linux dynamic linker is in use.
18165 dynamic_linker='GNU/Linux ld.so'
18172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18173 soname_spec='${libname}${release}${shared_ext}$major'
18174 shlibpath_var=LD_LIBRARY_PATH
18175 shlibpath_overrides_runpath=no
18176 hardcode_into_libs=yes
18177 dynamic_linker='GNU ld.so'
18184 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18186 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18187 dynamic_linker='NetBSD (a.out) ld.so'
18189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18190 soname_spec='${libname}${release}${shared_ext}$major'
18191 dynamic_linker='NetBSD ld.elf_so'
18193 shlibpath_var=LD_LIBRARY_PATH
18194 shlibpath_overrides_runpath=yes
18195 hardcode_into_libs=yes
18200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18201 shlibpath_var=LD_LIBRARY_PATH
18202 shlibpath_overrides_runpath=yes
18209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18210 soname_spec='${libname}${release}${shared_ext}$major'
18211 shlibpath_var=LD_LIBRARY_PATH
18212 shlibpath_overrides_runpath=yes
18219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18220 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18221 shlibpath_var=LD_LIBRARY_PATH
18222 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18224 openbsd2.[89] | openbsd2.[89].*)
18225 shlibpath_overrides_runpath=no
18228 shlibpath_overrides_runpath=yes
18232 shlibpath_overrides_runpath=yes
18237 libname_spec='$name'
18240 library_names_spec='$libname${shared_ext} $libname.a'
18241 dynamic_linker='OS/2 ld.exe'
18242 shlibpath_var=LIBPATH
18245 osf3* | osf4* | osf5*)
18249 soname_spec='${libname}${release}${shared_ext}$major'
18250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18251 shlibpath_var=LD_LIBRARY_PATH
18252 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18253 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18258 soname_spec='${libname}${release}${shared_ext}$major'
18259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18260 shlibpath_var=LD_LIBRARY_PATH
18267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18268 soname_spec='${libname}${release}${shared_ext}$major'
18269 shlibpath_var=LD_LIBRARY_PATH
18270 shlibpath_overrides_runpath=yes
18271 hardcode_into_libs=yes
18272 # ldd complains unless libraries are executable
18273 postinstall_cmds='chmod +x $lib'
18278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18279 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18280 shlibpath_var=LD_LIBRARY_PATH
18281 shlibpath_overrides_runpath=yes
18282 if test "$with_gnu_ld" = yes; then
18288 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18291 soname_spec='${libname}${release}${shared_ext}$major'
18292 shlibpath_var=LD_LIBRARY_PATH
18293 case $host_vendor in
18295 shlibpath_overrides_runpath=no
18297 export_dynamic_flag_spec='${wl}-Blargedynsym'
18298 runpath_var=LD_RUN_PATH
18306 shlibpath_overrides_runpath=no
18307 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18313 if test -d /usr/nec ;then
18315 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18316 soname_spec='$libname${shared_ext}.$major'
18317 shlibpath_var=LD_LIBRARY_PATH
18323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18324 soname_spec='${libname}${release}${shared_ext}$major'
18325 shlibpath_var=LD_LIBRARY_PATH
18332 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18333 echo "${ECHO_T}$dynamic_linker" >&6
18334 test "$dynamic_linker" = no && can_build_shared=no
18336 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18337 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18338 hardcode_action_GCJ=
18339 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18340 test -n "$runpath_var_GCJ" || \
18341 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18343 # We can hardcode non-existant directories.
18344 if test "$hardcode_direct_GCJ" != no &&
18345 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18346 # have to relink, otherwise we might link with an installed library
18347 # when we should be linking with a yet-to-be-installed one
18348 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18349 test "$hardcode_minus_L_GCJ" != no; then
18350 # Linking always hardcodes the temporary library directory.
18351 hardcode_action_GCJ=relink
18353 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18354 hardcode_action_GCJ=immediate
18357 # We cannot hardcode anything, or else we can only hardcode existing
18359 hardcode_action_GCJ=unsupported
18361 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18362 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18364 if test "$hardcode_action_GCJ" = relink; then
18365 # Fast installation is not supported
18366 enable_fast_install=no
18367 elif test "$shlibpath_overrides_runpath" = yes ||
18368 test "$enable_shared" = no; then
18369 # Fast installation is not necessary
18370 enable_fast_install=needless
18375 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18376 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18377 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18378 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18379 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18380 echo "$as_me:$LINENO: result: yes" >&5
18381 echo "${ECHO_T}yes" >&6
18383 # FIXME - insert some real tests, host_os isn't really good enough
18386 if test -n "$STRIP" ; then
18387 striplib="$STRIP -x"
18388 echo "$as_me:$LINENO: result: yes" >&5
18389 echo "${ECHO_T}yes" >&6
18391 echo "$as_me:$LINENO: result: no" >&5
18392 echo "${ECHO_T}no" >&6
18396 echo "$as_me:$LINENO: result: no" >&5
18397 echo "${ECHO_T}no" >&6
18402 if test "x$enable_dlopen" != xyes; then
18403 enable_dlopen=unknown
18404 enable_dlopen_self=unknown
18405 enable_dlopen_self_static=unknown
18412 lt_cv_dlopen="load_add_on"
18414 lt_cv_dlopen_self=yes
18418 lt_cv_dlopen="LoadLibrary"
18423 lt_cv_dlopen="dlopen"
18428 # if libdl is installed we need to link against it
18429 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18430 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18431 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18432 echo $ECHO_N "(cached) $ECHO_C" >&6
18434 ac_check_lib_save_LIBS=$LIBS
18436 cat >conftest.$ac_ext <<_ACEOF
18439 cat confdefs.h >>conftest.$ac_ext
18440 cat >>conftest.$ac_ext <<_ACEOF
18441 /* end confdefs.h. */
18443 /* Override any gcc2 internal prototype to avoid an error. */
18447 /* We use char because int might match the return type of a gcc2
18448 builtin and then its argument prototype would still apply. */
18458 rm -f conftest.$ac_objext conftest$ac_exeext
18459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18460 (eval $ac_link) 2>conftest.er1
18462 grep -v '^ *+' conftest.er1 >conftest.err
18464 cat conftest.err >&5
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); } &&
18467 { ac_try='test -z "$ac_c_werror_flag"
18468 || test ! -s conftest.err'
18469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18470 (eval $ac_try) 2>&5
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); }; } &&
18474 { ac_try='test -s conftest$ac_exeext'
18475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18476 (eval $ac_try) 2>&5
18478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479 (exit $ac_status); }; }; then
18480 ac_cv_lib_dl_dlopen=yes
18482 echo "$as_me: failed program was:" >&5
18483 sed 's/^/| /' conftest.$ac_ext >&5
18485 ac_cv_lib_dl_dlopen=no
18487 rm -f conftest.err conftest.$ac_objext \
18488 conftest$ac_exeext conftest.$ac_ext
18489 LIBS=$ac_check_lib_save_LIBS
18491 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18492 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18493 if test $ac_cv_lib_dl_dlopen = yes; then
18494 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18497 lt_cv_dlopen="dyld"
18499 lt_cv_dlopen_self=yes
18506 echo "$as_me:$LINENO: checking for shl_load" >&5
18507 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18508 if test "${ac_cv_func_shl_load+set}" = set; then
18509 echo $ECHO_N "(cached) $ECHO_C" >&6
18511 cat >conftest.$ac_ext <<_ACEOF
18514 cat confdefs.h >>conftest.$ac_ext
18515 cat >>conftest.$ac_ext <<_ACEOF
18516 /* end confdefs.h. */
18517 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18518 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18519 #define shl_load innocuous_shl_load
18521 /* System header to define __stub macros and hopefully few prototypes,
18522 which can conflict with char shl_load (); below.
18523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18524 <limits.h> exists even on freestanding compilers. */
18527 # include <limits.h>
18529 # include <assert.h>
18534 /* Override any gcc2 internal prototype to avoid an error. */
18539 /* We use char because int might match the return type of a gcc2
18540 builtin and then its argument prototype would still apply. */
18542 /* The GNU C library defines this for functions which it implements
18543 to always fail with ENOSYS. Some functions are actually named
18544 something starting with __ and the normal name is an alias. */
18545 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18548 char (*f) () = shl_load;
18557 return f != shl_load;
18562 rm -f conftest.$ac_objext conftest$ac_exeext
18563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18564 (eval $ac_link) 2>conftest.er1
18566 grep -v '^ *+' conftest.er1 >conftest.err
18568 cat conftest.err >&5
18569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570 (exit $ac_status); } &&
18571 { ac_try='test -z "$ac_c_werror_flag"
18572 || test ! -s conftest.err'
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); }; } &&
18578 { ac_try='test -s conftest$ac_exeext'
18579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18580 (eval $ac_try) 2>&5
18582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18583 (exit $ac_status); }; }; then
18584 ac_cv_func_shl_load=yes
18586 echo "$as_me: failed program was:" >&5
18587 sed 's/^/| /' conftest.$ac_ext >&5
18589 ac_cv_func_shl_load=no
18591 rm -f conftest.err conftest.$ac_objext \
18592 conftest$ac_exeext conftest.$ac_ext
18594 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18595 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18596 if test $ac_cv_func_shl_load = yes; then
18597 lt_cv_dlopen="shl_load"
18599 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18600 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18601 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18602 echo $ECHO_N "(cached) $ECHO_C" >&6
18604 ac_check_lib_save_LIBS=$LIBS
18606 cat >conftest.$ac_ext <<_ACEOF
18609 cat confdefs.h >>conftest.$ac_ext
18610 cat >>conftest.$ac_ext <<_ACEOF
18611 /* end confdefs.h. */
18613 /* Override any gcc2 internal prototype to avoid an error. */
18617 /* We use char because int might match the return type of a gcc2
18618 builtin and then its argument prototype would still apply. */
18628 rm -f conftest.$ac_objext conftest$ac_exeext
18629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18630 (eval $ac_link) 2>conftest.er1
18632 grep -v '^ *+' conftest.er1 >conftest.err
18634 cat conftest.err >&5
18635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636 (exit $ac_status); } &&
18637 { ac_try='test -z "$ac_c_werror_flag"
18638 || test ! -s conftest.err'
18639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18640 (eval $ac_try) 2>&5
18642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643 (exit $ac_status); }; } &&
18644 { ac_try='test -s conftest$ac_exeext'
18645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18646 (eval $ac_try) 2>&5
18648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649 (exit $ac_status); }; }; then
18650 ac_cv_lib_dld_shl_load=yes
18652 echo "$as_me: failed program was:" >&5
18653 sed 's/^/| /' conftest.$ac_ext >&5
18655 ac_cv_lib_dld_shl_load=no
18657 rm -f conftest.err conftest.$ac_objext \
18658 conftest$ac_exeext conftest.$ac_ext
18659 LIBS=$ac_check_lib_save_LIBS
18661 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18662 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18663 if test $ac_cv_lib_dld_shl_load = yes; then
18664 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18666 echo "$as_me:$LINENO: checking for dlopen" >&5
18667 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18668 if test "${ac_cv_func_dlopen+set}" = set; then
18669 echo $ECHO_N "(cached) $ECHO_C" >&6
18671 cat >conftest.$ac_ext <<_ACEOF
18674 cat confdefs.h >>conftest.$ac_ext
18675 cat >>conftest.$ac_ext <<_ACEOF
18676 /* end confdefs.h. */
18677 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18679 #define dlopen innocuous_dlopen
18681 /* System header to define __stub macros and hopefully few prototypes,
18682 which can conflict with char dlopen (); below.
18683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18684 <limits.h> exists even on freestanding compilers. */
18687 # include <limits.h>
18689 # include <assert.h>
18694 /* Override any gcc2 internal prototype to avoid an error. */
18699 /* We use char because int might match the return type of a gcc2
18700 builtin and then its argument prototype would still apply. */
18702 /* The GNU C library defines this for functions which it implements
18703 to always fail with ENOSYS. Some functions are actually named
18704 something starting with __ and the normal name is an alias. */
18705 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18708 char (*f) () = dlopen;
18717 return f != dlopen;
18722 rm -f conftest.$ac_objext conftest$ac_exeext
18723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18724 (eval $ac_link) 2>conftest.er1
18726 grep -v '^ *+' conftest.er1 >conftest.err
18728 cat conftest.err >&5
18729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730 (exit $ac_status); } &&
18731 { ac_try='test -z "$ac_c_werror_flag"
18732 || test ! -s conftest.err'
18733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18734 (eval $ac_try) 2>&5
18736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 (exit $ac_status); }; } &&
18738 { ac_try='test -s conftest$ac_exeext'
18739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18740 (eval $ac_try) 2>&5
18742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743 (exit $ac_status); }; }; then
18744 ac_cv_func_dlopen=yes
18746 echo "$as_me: failed program was:" >&5
18747 sed 's/^/| /' conftest.$ac_ext >&5
18749 ac_cv_func_dlopen=no
18751 rm -f conftest.err conftest.$ac_objext \
18752 conftest$ac_exeext conftest.$ac_ext
18754 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18755 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18756 if test $ac_cv_func_dlopen = yes; then
18757 lt_cv_dlopen="dlopen"
18759 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18760 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18761 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18762 echo $ECHO_N "(cached) $ECHO_C" >&6
18764 ac_check_lib_save_LIBS=$LIBS
18766 cat >conftest.$ac_ext <<_ACEOF
18769 cat confdefs.h >>conftest.$ac_ext
18770 cat >>conftest.$ac_ext <<_ACEOF
18771 /* end confdefs.h. */
18773 /* 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. */
18788 rm -f conftest.$ac_objext conftest$ac_exeext
18789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18790 (eval $ac_link) 2>conftest.er1
18792 grep -v '^ *+' conftest.er1 >conftest.err
18794 cat conftest.err >&5
18795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796 (exit $ac_status); } &&
18797 { ac_try='test -z "$ac_c_werror_flag"
18798 || test ! -s conftest.err'
18799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18800 (eval $ac_try) 2>&5
18802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803 (exit $ac_status); }; } &&
18804 { ac_try='test -s conftest$ac_exeext'
18805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18806 (eval $ac_try) 2>&5
18808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809 (exit $ac_status); }; }; then
18810 ac_cv_lib_dl_dlopen=yes
18812 echo "$as_me: failed program was:" >&5
18813 sed 's/^/| /' conftest.$ac_ext >&5
18815 ac_cv_lib_dl_dlopen=no
18817 rm -f conftest.err conftest.$ac_objext \
18818 conftest$ac_exeext conftest.$ac_ext
18819 LIBS=$ac_check_lib_save_LIBS
18821 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18822 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18823 if test $ac_cv_lib_dl_dlopen = yes; then
18824 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18826 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18827 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18828 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18829 echo $ECHO_N "(cached) $ECHO_C" >&6
18831 ac_check_lib_save_LIBS=$LIBS
18832 LIBS="-lsvld $LIBS"
18833 cat >conftest.$ac_ext <<_ACEOF
18836 cat confdefs.h >>conftest.$ac_ext
18837 cat >>conftest.$ac_ext <<_ACEOF
18838 /* end confdefs.h. */
18840 /* Override any gcc2 internal prototype to avoid an error. */
18844 /* We use char because int might match the return type of a gcc2
18845 builtin and then its argument prototype would still apply. */
18855 rm -f conftest.$ac_objext conftest$ac_exeext
18856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18857 (eval $ac_link) 2>conftest.er1
18859 grep -v '^ *+' conftest.er1 >conftest.err
18861 cat conftest.err >&5
18862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863 (exit $ac_status); } &&
18864 { ac_try='test -z "$ac_c_werror_flag"
18865 || test ! -s conftest.err'
18866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18867 (eval $ac_try) 2>&5
18869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870 (exit $ac_status); }; } &&
18871 { ac_try='test -s conftest$ac_exeext'
18872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18873 (eval $ac_try) 2>&5
18875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876 (exit $ac_status); }; }; then
18877 ac_cv_lib_svld_dlopen=yes
18879 echo "$as_me: failed program was:" >&5
18880 sed 's/^/| /' conftest.$ac_ext >&5
18882 ac_cv_lib_svld_dlopen=no
18884 rm -f conftest.err conftest.$ac_objext \
18885 conftest$ac_exeext conftest.$ac_ext
18886 LIBS=$ac_check_lib_save_LIBS
18888 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18889 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18890 if test $ac_cv_lib_svld_dlopen = yes; then
18891 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18893 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18894 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18895 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18896 echo $ECHO_N "(cached) $ECHO_C" >&6
18898 ac_check_lib_save_LIBS=$LIBS
18900 cat >conftest.$ac_ext <<_ACEOF
18903 cat confdefs.h >>conftest.$ac_ext
18904 cat >>conftest.$ac_ext <<_ACEOF
18905 /* end confdefs.h. */
18907 /* Override any gcc2 internal prototype to avoid an error. */
18911 /* We use char because int might match the return type of a gcc2
18912 builtin and then its argument prototype would still apply. */
18922 rm -f conftest.$ac_objext conftest$ac_exeext
18923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18924 (eval $ac_link) 2>conftest.er1
18926 grep -v '^ *+' conftest.er1 >conftest.err
18928 cat conftest.err >&5
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); } &&
18931 { ac_try='test -z "$ac_c_werror_flag"
18932 || test ! -s conftest.err'
18933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18934 (eval $ac_try) 2>&5
18936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937 (exit $ac_status); }; } &&
18938 { ac_try='test -s conftest$ac_exeext'
18939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18940 (eval $ac_try) 2>&5
18942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943 (exit $ac_status); }; }; then
18944 ac_cv_lib_dld_dld_link=yes
18946 echo "$as_me: failed program was:" >&5
18947 sed 's/^/| /' conftest.$ac_ext >&5
18949 ac_cv_lib_dld_dld_link=no
18951 rm -f conftest.err conftest.$ac_objext \
18952 conftest$ac_exeext conftest.$ac_ext
18953 LIBS=$ac_check_lib_save_LIBS
18955 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18956 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18957 if test $ac_cv_lib_dld_dld_link = yes; then
18958 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18979 if test "x$lt_cv_dlopen" != xno; then
18985 case $lt_cv_dlopen in
18987 save_CPPFLAGS="$CPPFLAGS"
18988 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18990 save_LDFLAGS="$LDFLAGS"
18991 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18994 LIBS="$lt_cv_dlopen_libs $LIBS"
18996 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18997 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18998 if test "${lt_cv_dlopen_self+set}" = set; then
18999 echo $ECHO_N "(cached) $ECHO_C" >&6
19001 if test "$cross_compiling" = yes; then :
19002 lt_cv_dlopen_self=cross
19004 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19005 lt_status=$lt_dlunknown
19006 cat > conftest.$ac_ext <<EOF
19007 #line 19007 "configure"
19008 #include "confdefs.h"
19017 # define LT_DLGLOBAL RTLD_GLOBAL
19020 # define LT_DLGLOBAL DL_GLOBAL
19022 # define LT_DLGLOBAL 0
19026 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19027 find out it does not work in some platform. */
19028 #ifndef LT_DLLAZY_OR_NOW
19030 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19033 # define LT_DLLAZY_OR_NOW DL_LAZY
19036 # define LT_DLLAZY_OR_NOW RTLD_NOW
19039 # define LT_DLLAZY_OR_NOW DL_NOW
19041 # define LT_DLLAZY_OR_NOW 0
19049 extern "C" void exit (int);
19052 void fnord() { int i=42;}
19055 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19056 int status = $lt_dlunknown;
19060 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19061 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19062 /* dlclose (self); */
19068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19069 (eval $ac_link) 2>&5
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19073 (./conftest; exit; ) 2>/dev/null
19075 case x$lt_status in
19076 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19077 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19078 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19081 # compilation failed
19082 lt_cv_dlopen_self=no
19089 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19090 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19092 if test "x$lt_cv_dlopen_self" = xyes; then
19093 LDFLAGS="$LDFLAGS $link_static_flag"
19094 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19095 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19096 if test "${lt_cv_dlopen_self_static+set}" = set; then
19097 echo $ECHO_N "(cached) $ECHO_C" >&6
19099 if test "$cross_compiling" = yes; then :
19100 lt_cv_dlopen_self_static=cross
19102 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19103 lt_status=$lt_dlunknown
19104 cat > conftest.$ac_ext <<EOF
19105 #line 19105 "configure"
19106 #include "confdefs.h"
19115 # define LT_DLGLOBAL RTLD_GLOBAL
19118 # define LT_DLGLOBAL DL_GLOBAL
19120 # define LT_DLGLOBAL 0
19124 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19125 find out it does not work in some platform. */
19126 #ifndef LT_DLLAZY_OR_NOW
19128 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19131 # define LT_DLLAZY_OR_NOW DL_LAZY
19134 # define LT_DLLAZY_OR_NOW RTLD_NOW
19137 # define LT_DLLAZY_OR_NOW DL_NOW
19139 # define LT_DLLAZY_OR_NOW 0
19147 extern "C" void exit (int);
19150 void fnord() { int i=42;}
19153 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19154 int status = $lt_dlunknown;
19158 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19159 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19160 /* dlclose (self); */
19166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19167 (eval $ac_link) 2>&5
19169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19170 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19171 (./conftest; exit; ) 2>/dev/null
19173 case x$lt_status in
19174 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19175 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19176 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19179 # compilation failed
19180 lt_cv_dlopen_self_static=no
19187 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19188 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19191 CPPFLAGS="$save_CPPFLAGS"
19192 LDFLAGS="$save_LDFLAGS"
19197 case $lt_cv_dlopen_self in
19198 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19199 *) enable_dlopen_self=unknown ;;
19202 case $lt_cv_dlopen_self_static in
19203 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19204 *) enable_dlopen_self_static=unknown ;;
19209 # The else clause should only fire when bootstrapping the
19210 # libtool distribution, otherwise you forgot to ship ltmain.sh
19211 # with your package, and you will get complaints that there are
19212 # no rules to generate ltmain.sh.
19213 if test -f "$ltmain"; then
19214 # See if we are running on zsh, and set the options which allow our commands through
19215 # without removal of \ escapes.
19216 if test -n "${ZSH_VERSION+set}" ; then
19217 setopt NO_GLOB_SUBST
19219 # Now quote all the things that may contain metacharacters while being
19220 # careful not to overquote the AC_SUBSTed values. We take copies of the
19221 # variables and quote the copies for generation of the libtool script.
19222 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19224 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19225 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19226 deplibs_check_method reload_flag reload_cmds need_locks \
19227 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19228 lt_cv_sys_global_symbol_to_c_name_address \
19229 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19230 old_postinstall_cmds old_postuninstall_cmds \
19234 lt_prog_compiler_wl_GCJ \
19235 lt_prog_compiler_pic_GCJ \
19236 lt_prog_compiler_static_GCJ \
19237 lt_prog_compiler_no_builtin_flag_GCJ \
19238 export_dynamic_flag_spec_GCJ \
19239 thread_safe_flag_spec_GCJ \
19240 whole_archive_flag_spec_GCJ \
19241 enable_shared_with_static_runtimes_GCJ \
19242 old_archive_cmds_GCJ \
19243 old_archive_from_new_cmds_GCJ \
19244 predep_objects_GCJ \
19245 postdep_objects_GCJ \
19248 compiler_lib_search_path_GCJ \
19250 archive_expsym_cmds_GCJ \
19251 postinstall_cmds_GCJ \
19252 postuninstall_cmds_GCJ \
19253 old_archive_from_expsyms_cmds_GCJ \
19254 allow_undefined_flag_GCJ \
19255 no_undefined_flag_GCJ \
19256 export_symbols_cmds_GCJ \
19257 hardcode_libdir_flag_spec_GCJ \
19258 hardcode_libdir_flag_spec_ld_GCJ \
19259 hardcode_libdir_separator_GCJ \
19260 hardcode_automatic_GCJ \
19262 module_expsym_cmds_GCJ \
19263 lt_cv_prog_compiler_c_o_GCJ \
19264 exclude_expsyms_GCJ \
19265 include_expsyms_GCJ; do
19268 old_archive_cmds_GCJ | \
19269 old_archive_from_new_cmds_GCJ | \
19270 archive_cmds_GCJ | \
19271 archive_expsym_cmds_GCJ | \
19272 module_cmds_GCJ | \
19273 module_expsym_cmds_GCJ | \
19274 old_archive_from_expsyms_cmds_GCJ | \
19275 export_symbols_cmds_GCJ | \
19276 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19277 postinstall_cmds | postuninstall_cmds | \
19278 old_postinstall_cmds | old_postuninstall_cmds | \
19279 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19280 # Double-quote double-evaled strings.
19281 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19284 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19290 *'\$0 --fallback-echo"')
19291 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19297 cat <<__EOF__ >> "$cfgfile"
19298 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19300 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19302 # Shell to use when invoking shell scripts.
19305 # Whether or not to build shared libraries.
19306 build_libtool_libs=$enable_shared
19308 # Whether or not to build static libraries.
19309 build_old_libs=$enable_static
19311 # Whether or not to add -lc for building shared libraries.
19312 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19314 # Whether or not to disallow shared libs when runtime libs are static
19315 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19317 # Whether or not to optimize for fast installation.
19318 fast_install=$enable_fast_install
19321 host_alias=$host_alias
19325 # The build system.
19326 build_alias=$build_alias
19330 # An echo program that does not interpret backslashes.
19335 AR_FLAGS=$lt_AR_FLAGS
19340 # A language-specific compiler.
19341 CC=$lt_compiler_GCJ
19343 # Is the compiler the GNU C compiler?
19349 # The linker used to build libraries.
19352 # Whether we need hard or soft links.
19355 # A BSD-compatible nm program.
19358 # A symbol stripping program
19361 # Used to examine libraries when file_magic_cmd begins "file"
19362 MAGIC_CMD=$MAGIC_CMD
19364 # Used on cygwin: DLL creation program.
19367 # Used on cygwin: object dumper.
19370 # Used on cygwin: assembler.
19373 # The name of the directory that contains temporary libtool files.
19376 # How to create reloadable object files.
19377 reload_flag=$lt_reload_flag
19378 reload_cmds=$lt_reload_cmds
19380 # How to pass a linker flag through the compiler.
19381 wl=$lt_lt_prog_compiler_wl_GCJ
19383 # Object file suffix (normally "o").
19384 objext="$ac_objext"
19386 # Old archive suffix (normally "a").
19389 # Shared library suffix (normally ".so").
19390 shrext_cmds='$shrext_cmds'
19392 # Executable file suffix (normally "").
19395 # Additional compiler flags for building library objects.
19396 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19399 # What is the maximum length of a command?
19400 max_cmd_len=$lt_cv_sys_max_cmd_len
19402 # Does compiler simultaneously support -c and -o options?
19403 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19405 # Must we lock files when doing compilation?
19406 need_locks=$lt_need_locks
19408 # Do we need the lib prefix for modules?
19409 need_lib_prefix=$need_lib_prefix
19411 # Do we need a version for libraries?
19412 need_version=$need_version
19414 # Whether dlopen is supported.
19415 dlopen_support=$enable_dlopen
19417 # Whether dlopen of programs is supported.
19418 dlopen_self=$enable_dlopen_self
19420 # Whether dlopen of statically linked programs is supported.
19421 dlopen_self_static=$enable_dlopen_self_static
19423 # Compiler flag to prevent dynamic linking.
19424 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19426 # Compiler flag to turn off builtin functions.
19427 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19429 # Compiler flag to allow reflexive dlopens.
19430 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19432 # Compiler flag to generate shared objects directly from archives.
19433 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19435 # Compiler flag to generate thread-safe objects.
19436 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19438 # Library versioning type.
19439 version_type=$version_type
19441 # Format of library name prefix.
19442 libname_spec=$lt_libname_spec
19444 # List of archive names. First name is the real one, the rest are links.
19445 # The last name is the one that the linker finds with -lNAME.
19446 library_names_spec=$lt_library_names_spec
19448 # The coded name of the library, if different from the real name.
19449 soname_spec=$lt_soname_spec
19451 # Commands used to build and install an old-style archive.
19453 old_archive_cmds=$lt_old_archive_cmds_GCJ
19454 old_postinstall_cmds=$lt_old_postinstall_cmds
19455 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19457 # Create an old-style archive from a shared archive.
19458 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19460 # Create a temporary old-style archive to link instead of a shared archive.
19461 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19463 # Commands used to build and install a shared archive.
19464 archive_cmds=$lt_archive_cmds_GCJ
19465 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19466 postinstall_cmds=$lt_postinstall_cmds
19467 postuninstall_cmds=$lt_postuninstall_cmds
19469 # Commands used to build a loadable module (assumed same as above if empty)
19470 module_cmds=$lt_module_cmds_GCJ
19471 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19473 # Commands to strip libraries.
19474 old_striplib=$lt_old_striplib
19475 striplib=$lt_striplib
19477 # Dependencies to place before the objects being linked to create a
19479 predep_objects=$lt_predep_objects_GCJ
19481 # Dependencies to place after the objects being linked to create a
19483 postdep_objects=$lt_postdep_objects_GCJ
19485 # Dependencies to place before the objects being linked to create a
19487 predeps=$lt_predeps_GCJ
19489 # Dependencies to place after the objects being linked to create a
19491 postdeps=$lt_postdeps_GCJ
19493 # The library search path used internally by the compiler when linking
19494 # a shared library.
19495 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19497 # Method to check whether dependent libraries are shared objects.
19498 deplibs_check_method=$lt_deplibs_check_method
19500 # Command to use when deplibs_check_method == file_magic.
19501 file_magic_cmd=$lt_file_magic_cmd
19503 # Flag that allows shared libraries with undefined symbols to be built.
19504 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19506 # Flag that forces no undefined symbols.
19507 no_undefined_flag=$lt_no_undefined_flag_GCJ
19509 # Commands used to finish a libtool library installation in a directory.
19510 finish_cmds=$lt_finish_cmds
19512 # Same as above, but a single script fragment to be evaled but not shown.
19513 finish_eval=$lt_finish_eval
19515 # Take the output of nm and produce a listing of raw symbols and C names.
19516 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19518 # Transform the output of nm in a proper C declaration
19519 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19521 # Transform the output of nm in a C name address pair
19522 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19524 # This is the shared library runtime path variable.
19525 runpath_var=$runpath_var
19527 # This is the shared library path variable.
19528 shlibpath_var=$shlibpath_var
19530 # Is shlibpath searched before the hard-coded library search path?
19531 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19533 # How to hardcode a shared library path into an executable.
19534 hardcode_action=$hardcode_action_GCJ
19536 # Whether we should hardcode library paths into libraries.
19537 hardcode_into_libs=$hardcode_into_libs
19539 # Flag to hardcode \$libdir into a binary during linking.
19540 # This must work even if \$libdir does not exist.
19541 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19543 # If ld is used when linking, flag to hardcode \$libdir into
19544 # a binary during linking. This must work even if \$libdir does
19546 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19548 # Whether we need a single -rpath flag with a separated argument.
19549 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19551 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19552 # resulting binary.
19553 hardcode_direct=$hardcode_direct_GCJ
19555 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19556 # resulting binary.
19557 hardcode_minus_L=$hardcode_minus_L_GCJ
19559 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19560 # the resulting binary.
19561 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19563 # Set to yes if building a shared library automatically hardcodes DIR into the library
19564 # and all subsequent libraries and executables linked against it.
19565 hardcode_automatic=$hardcode_automatic_GCJ
19567 # Variables whose values should be saved in libtool wrapper scripts and
19568 # restored at relink time.
19569 variables_saved_for_relink="$variables_saved_for_relink"
19571 # Whether libtool must link a program against all its dependency libraries.
19572 link_all_deplibs=$link_all_deplibs_GCJ
19574 # Compile-time system search path for libraries
19575 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19577 # Run-time system search path for libraries
19578 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19580 # Fix the shell variable \$srcfile for the compiler.
19581 fix_srcfile_path="$fix_srcfile_path_GCJ"
19583 # Set to yes if exported symbols are required.
19584 always_export_symbols=$always_export_symbols_GCJ
19586 # The commands to list exported symbols.
19587 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19589 # The commands to extract the exported symbol list from a shared archive.
19590 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19592 # Symbols that should not be listed in the preloaded symbols.
19593 exclude_expsyms=$lt_exclude_expsyms_GCJ
19595 # Symbols that must always be exported.
19596 include_expsyms=$lt_include_expsyms_GCJ
19598 # ### END LIBTOOL TAG CONFIG: $tagname
19604 # If there is no Makefile yet, we rely on a make rule to execute
19605 # `config.status --recheck' to rerun these tests and create the
19606 # libtool script then.
19607 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19608 if test -f "$ltmain_in"; then
19609 test -f Makefile && make "$ltmain"
19615 ac_cpp='$CPP $CPPFLAGS'
19616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19631 # Source file extension for RC test sources.
19634 # Object file extension for compiled RC test sources.
19638 # Code to be used in simple compile tests
19639 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19641 # Code to be used in simple link tests
19642 lt_simple_link_test_code="$lt_simple_compile_test_code"
19644 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19646 # If no C compiler was specified, use CC.
19649 # Allow CC to be a program name with arguments.
19653 # save warnings/boilerplate of simple test code
19654 ac_outfile=conftest.$ac_objext
19655 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19656 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19657 _lt_compiler_boilerplate=`cat conftest.err`
19660 ac_outfile=conftest.$ac_objext
19661 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19662 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19663 _lt_linker_boilerplate=`cat conftest.err`
19667 # Allow CC to be a program name with arguments.
19672 for cc_temp in $compiler""; do
19674 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19675 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19680 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19682 lt_cv_prog_compiler_c_o_RC=yes
19684 # The else clause should only fire when bootstrapping the
19685 # libtool distribution, otherwise you forgot to ship ltmain.sh
19686 # with your package, and you will get complaints that there are
19687 # no rules to generate ltmain.sh.
19688 if test -f "$ltmain"; then
19689 # See if we are running on zsh, and set the options which allow our commands through
19690 # without removal of \ escapes.
19691 if test -n "${ZSH_VERSION+set}" ; then
19692 setopt NO_GLOB_SUBST
19694 # Now quote all the things that may contain metacharacters while being
19695 # careful not to overquote the AC_SUBSTed values. We take copies of the
19696 # variables and quote the copies for generation of the libtool script.
19697 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19699 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19700 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19701 deplibs_check_method reload_flag reload_cmds need_locks \
19702 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19703 lt_cv_sys_global_symbol_to_c_name_address \
19704 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19705 old_postinstall_cmds old_postuninstall_cmds \
19709 lt_prog_compiler_wl_RC \
19710 lt_prog_compiler_pic_RC \
19711 lt_prog_compiler_static_RC \
19712 lt_prog_compiler_no_builtin_flag_RC \
19713 export_dynamic_flag_spec_RC \
19714 thread_safe_flag_spec_RC \
19715 whole_archive_flag_spec_RC \
19716 enable_shared_with_static_runtimes_RC \
19717 old_archive_cmds_RC \
19718 old_archive_from_new_cmds_RC \
19719 predep_objects_RC \
19720 postdep_objects_RC \
19723 compiler_lib_search_path_RC \
19725 archive_expsym_cmds_RC \
19726 postinstall_cmds_RC \
19727 postuninstall_cmds_RC \
19728 old_archive_from_expsyms_cmds_RC \
19729 allow_undefined_flag_RC \
19730 no_undefined_flag_RC \
19731 export_symbols_cmds_RC \
19732 hardcode_libdir_flag_spec_RC \
19733 hardcode_libdir_flag_spec_ld_RC \
19734 hardcode_libdir_separator_RC \
19735 hardcode_automatic_RC \
19737 module_expsym_cmds_RC \
19738 lt_cv_prog_compiler_c_o_RC \
19739 exclude_expsyms_RC \
19740 include_expsyms_RC; do
19743 old_archive_cmds_RC | \
19744 old_archive_from_new_cmds_RC | \
19745 archive_cmds_RC | \
19746 archive_expsym_cmds_RC | \
19748 module_expsym_cmds_RC | \
19749 old_archive_from_expsyms_cmds_RC | \
19750 export_symbols_cmds_RC | \
19751 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19752 postinstall_cmds | postuninstall_cmds | \
19753 old_postinstall_cmds | old_postuninstall_cmds | \
19754 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19755 # Double-quote double-evaled strings.
19756 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19759 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19765 *'\$0 --fallback-echo"')
19766 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19772 cat <<__EOF__ >> "$cfgfile"
19773 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19775 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19777 # Shell to use when invoking shell scripts.
19780 # Whether or not to build shared libraries.
19781 build_libtool_libs=$enable_shared
19783 # Whether or not to build static libraries.
19784 build_old_libs=$enable_static
19786 # Whether or not to add -lc for building shared libraries.
19787 build_libtool_need_lc=$archive_cmds_need_lc_RC
19789 # Whether or not to disallow shared libs when runtime libs are static
19790 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19792 # Whether or not to optimize for fast installation.
19793 fast_install=$enable_fast_install
19796 host_alias=$host_alias
19800 # The build system.
19801 build_alias=$build_alias
19805 # An echo program that does not interpret backslashes.
19810 AR_FLAGS=$lt_AR_FLAGS
19815 # A language-specific compiler.
19818 # Is the compiler the GNU C compiler?
19824 # The linker used to build libraries.
19827 # Whether we need hard or soft links.
19830 # A BSD-compatible nm program.
19833 # A symbol stripping program
19836 # Used to examine libraries when file_magic_cmd begins "file"
19837 MAGIC_CMD=$MAGIC_CMD
19839 # Used on cygwin: DLL creation program.
19842 # Used on cygwin: object dumper.
19845 # Used on cygwin: assembler.
19848 # The name of the directory that contains temporary libtool files.
19851 # How to create reloadable object files.
19852 reload_flag=$lt_reload_flag
19853 reload_cmds=$lt_reload_cmds
19855 # How to pass a linker flag through the compiler.
19856 wl=$lt_lt_prog_compiler_wl_RC
19858 # Object file suffix (normally "o").
19859 objext="$ac_objext"
19861 # Old archive suffix (normally "a").
19864 # Shared library suffix (normally ".so").
19865 shrext_cmds='$shrext_cmds'
19867 # Executable file suffix (normally "").
19870 # Additional compiler flags for building library objects.
19871 pic_flag=$lt_lt_prog_compiler_pic_RC
19874 # What is the maximum length of a command?
19875 max_cmd_len=$lt_cv_sys_max_cmd_len
19877 # Does compiler simultaneously support -c and -o options?
19878 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19880 # Must we lock files when doing compilation?
19881 need_locks=$lt_need_locks
19883 # Do we need the lib prefix for modules?
19884 need_lib_prefix=$need_lib_prefix
19886 # Do we need a version for libraries?
19887 need_version=$need_version
19889 # Whether dlopen is supported.
19890 dlopen_support=$enable_dlopen
19892 # Whether dlopen of programs is supported.
19893 dlopen_self=$enable_dlopen_self
19895 # Whether dlopen of statically linked programs is supported.
19896 dlopen_self_static=$enable_dlopen_self_static
19898 # Compiler flag to prevent dynamic linking.
19899 link_static_flag=$lt_lt_prog_compiler_static_RC
19901 # Compiler flag to turn off builtin functions.
19902 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19904 # Compiler flag to allow reflexive dlopens.
19905 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19907 # Compiler flag to generate shared objects directly from archives.
19908 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19910 # Compiler flag to generate thread-safe objects.
19911 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19913 # Library versioning type.
19914 version_type=$version_type
19916 # Format of library name prefix.
19917 libname_spec=$lt_libname_spec
19919 # List of archive names. First name is the real one, the rest are links.
19920 # The last name is the one that the linker finds with -lNAME.
19921 library_names_spec=$lt_library_names_spec
19923 # The coded name of the library, if different from the real name.
19924 soname_spec=$lt_soname_spec
19926 # Commands used to build and install an old-style archive.
19928 old_archive_cmds=$lt_old_archive_cmds_RC
19929 old_postinstall_cmds=$lt_old_postinstall_cmds
19930 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19932 # Create an old-style archive from a shared archive.
19933 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19935 # Create a temporary old-style archive to link instead of a shared archive.
19936 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19938 # Commands used to build and install a shared archive.
19939 archive_cmds=$lt_archive_cmds_RC
19940 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19941 postinstall_cmds=$lt_postinstall_cmds
19942 postuninstall_cmds=$lt_postuninstall_cmds
19944 # Commands used to build a loadable module (assumed same as above if empty)
19945 module_cmds=$lt_module_cmds_RC
19946 module_expsym_cmds=$lt_module_expsym_cmds_RC
19948 # Commands to strip libraries.
19949 old_striplib=$lt_old_striplib
19950 striplib=$lt_striplib
19952 # Dependencies to place before the objects being linked to create a
19954 predep_objects=$lt_predep_objects_RC
19956 # Dependencies to place after the objects being linked to create a
19958 postdep_objects=$lt_postdep_objects_RC
19960 # Dependencies to place before the objects being linked to create a
19962 predeps=$lt_predeps_RC
19964 # Dependencies to place after the objects being linked to create a
19966 postdeps=$lt_postdeps_RC
19968 # The library search path used internally by the compiler when linking
19969 # a shared library.
19970 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19972 # Method to check whether dependent libraries are shared objects.
19973 deplibs_check_method=$lt_deplibs_check_method
19975 # Command to use when deplibs_check_method == file_magic.
19976 file_magic_cmd=$lt_file_magic_cmd
19978 # Flag that allows shared libraries with undefined symbols to be built.
19979 allow_undefined_flag=$lt_allow_undefined_flag_RC
19981 # Flag that forces no undefined symbols.
19982 no_undefined_flag=$lt_no_undefined_flag_RC
19984 # Commands used to finish a libtool library installation in a directory.
19985 finish_cmds=$lt_finish_cmds
19987 # Same as above, but a single script fragment to be evaled but not shown.
19988 finish_eval=$lt_finish_eval
19990 # Take the output of nm and produce a listing of raw symbols and C names.
19991 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19993 # Transform the output of nm in a proper C declaration
19994 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19996 # Transform the output of nm in a C name address pair
19997 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19999 # This is the shared library runtime path variable.
20000 runpath_var=$runpath_var
20002 # This is the shared library path variable.
20003 shlibpath_var=$shlibpath_var
20005 # Is shlibpath searched before the hard-coded library search path?
20006 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20008 # How to hardcode a shared library path into an executable.
20009 hardcode_action=$hardcode_action_RC
20011 # Whether we should hardcode library paths into libraries.
20012 hardcode_into_libs=$hardcode_into_libs
20014 # Flag to hardcode \$libdir into a binary during linking.
20015 # This must work even if \$libdir does not exist.
20016 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20018 # If ld is used when linking, flag to hardcode \$libdir into
20019 # a binary during linking. This must work even if \$libdir does
20021 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20023 # Whether we need a single -rpath flag with a separated argument.
20024 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20026 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20027 # resulting binary.
20028 hardcode_direct=$hardcode_direct_RC
20030 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20031 # resulting binary.
20032 hardcode_minus_L=$hardcode_minus_L_RC
20034 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20035 # the resulting binary.
20036 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20038 # Set to yes if building a shared library automatically hardcodes DIR into the library
20039 # and all subsequent libraries and executables linked against it.
20040 hardcode_automatic=$hardcode_automatic_RC
20042 # Variables whose values should be saved in libtool wrapper scripts and
20043 # restored at relink time.
20044 variables_saved_for_relink="$variables_saved_for_relink"
20046 # Whether libtool must link a program against all its dependency libraries.
20047 link_all_deplibs=$link_all_deplibs_RC
20049 # Compile-time system search path for libraries
20050 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20052 # Run-time system search path for libraries
20053 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20055 # Fix the shell variable \$srcfile for the compiler.
20056 fix_srcfile_path="$fix_srcfile_path_RC"
20058 # Set to yes if exported symbols are required.
20059 always_export_symbols=$always_export_symbols_RC
20061 # The commands to list exported symbols.
20062 export_symbols_cmds=$lt_export_symbols_cmds_RC
20064 # The commands to extract the exported symbol list from a shared archive.
20065 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20067 # Symbols that should not be listed in the preloaded symbols.
20068 exclude_expsyms=$lt_exclude_expsyms_RC
20070 # Symbols that must always be exported.
20071 include_expsyms=$lt_include_expsyms_RC
20073 # ### END LIBTOOL TAG CONFIG: $tagname
20079 # If there is no Makefile yet, we rely on a make rule to execute
20080 # `config.status --recheck' to rerun these tests and create the
20081 # libtool script then.
20082 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20083 if test -f "$ltmain_in"; then
20084 test -f Makefile && make "$ltmain"
20090 ac_cpp='$CPP $CPPFLAGS'
20091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20100 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20101 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20102 { (exit 1); exit 1; }; }
20106 # Append the new tag name to the list of available tags.
20107 if test -n "$tagname" ; then
20108 available_tags="$available_tags $tagname"
20114 # Now substitute the updated list of available tags.
20115 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20116 mv "${ofile}T" "$ofile"
20120 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20121 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20122 { (exit 1); exit 1; }; }
20128 # This can be used to rebuild libtool when needed
20129 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20131 # Always use our own libtool.
20132 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20134 # Prevent multiple expansion
20162 ac_header_dirent=no
20163 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20164 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20165 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20166 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
20167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20168 echo $ECHO_N "(cached) $ECHO_C" >&6
20170 cat >conftest.$ac_ext <<_ACEOF
20173 cat confdefs.h >>conftest.$ac_ext
20174 cat >>conftest.$ac_ext <<_ACEOF
20175 /* end confdefs.h. */
20176 #include <sys/types.h>
20188 rm -f conftest.$ac_objext
20189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20190 (eval $ac_compile) 2>conftest.er1
20192 grep -v '^ *+' conftest.er1 >conftest.err
20194 cat conftest.err >&5
20195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196 (exit $ac_status); } &&
20197 { ac_try='test -z "$ac_c_werror_flag"
20198 || test ! -s conftest.err'
20199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20200 (eval $ac_try) 2>&5
20202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203 (exit $ac_status); }; } &&
20204 { ac_try='test -s conftest.$ac_objext'
20205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20206 (eval $ac_try) 2>&5
20208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209 (exit $ac_status); }; }; then
20210 eval "$as_ac_Header=yes"
20212 echo "$as_me: failed program was:" >&5
20213 sed 's/^/| /' conftest.$ac_ext >&5
20215 eval "$as_ac_Header=no"
20217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20222 cat >>confdefs.h <<_ACEOF
20223 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20226 ac_header_dirent=$ac_hdr; break
20230 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20231 if test $ac_header_dirent = dirent.h; then
20232 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20233 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20234 if test "${ac_cv_search_opendir+set}" = set; then
20235 echo $ECHO_N "(cached) $ECHO_C" >&6
20237 ac_func_search_save_LIBS=$LIBS
20238 ac_cv_search_opendir=no
20239 cat >conftest.$ac_ext <<_ACEOF
20242 cat confdefs.h >>conftest.$ac_ext
20243 cat >>conftest.$ac_ext <<_ACEOF
20244 /* end confdefs.h. */
20246 /* Override any gcc2 internal prototype to avoid an error. */
20250 /* We use char because int might match the return type of a gcc2
20251 builtin and then its argument prototype would still apply. */
20261 rm -f conftest.$ac_objext conftest$ac_exeext
20262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20263 (eval $ac_link) 2>conftest.er1
20265 grep -v '^ *+' conftest.er1 >conftest.err
20267 cat conftest.err >&5
20268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269 (exit $ac_status); } &&
20270 { ac_try='test -z "$ac_c_werror_flag"
20271 || test ! -s conftest.err'
20272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20273 (eval $ac_try) 2>&5
20275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276 (exit $ac_status); }; } &&
20277 { ac_try='test -s conftest$ac_exeext'
20278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20279 (eval $ac_try) 2>&5
20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282 (exit $ac_status); }; }; then
20283 ac_cv_search_opendir="none required"
20285 echo "$as_me: failed program was:" >&5
20286 sed 's/^/| /' conftest.$ac_ext >&5
20289 rm -f conftest.err conftest.$ac_objext \
20290 conftest$ac_exeext conftest.$ac_ext
20291 if test "$ac_cv_search_opendir" = no; then
20292 for ac_lib in dir; do
20293 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20294 cat >conftest.$ac_ext <<_ACEOF
20297 cat confdefs.h >>conftest.$ac_ext
20298 cat >>conftest.$ac_ext <<_ACEOF
20299 /* end confdefs.h. */
20301 /* Override any gcc2 internal prototype to avoid an error. */
20305 /* We use char because int might match the return type of a gcc2
20306 builtin and then its argument prototype would still apply. */
20316 rm -f conftest.$ac_objext conftest$ac_exeext
20317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20318 (eval $ac_link) 2>conftest.er1
20320 grep -v '^ *+' conftest.er1 >conftest.err
20322 cat conftest.err >&5
20323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324 (exit $ac_status); } &&
20325 { ac_try='test -z "$ac_c_werror_flag"
20326 || test ! -s conftest.err'
20327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20328 (eval $ac_try) 2>&5
20330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331 (exit $ac_status); }; } &&
20332 { ac_try='test -s conftest$ac_exeext'
20333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20334 (eval $ac_try) 2>&5
20336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337 (exit $ac_status); }; }; then
20338 ac_cv_search_opendir="-l$ac_lib"
20341 echo "$as_me: failed program was:" >&5
20342 sed 's/^/| /' conftest.$ac_ext >&5
20345 rm -f conftest.err conftest.$ac_objext \
20346 conftest$ac_exeext conftest.$ac_ext
20349 LIBS=$ac_func_search_save_LIBS
20351 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20352 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20353 if test "$ac_cv_search_opendir" != no; then
20354 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20359 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20360 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20361 if test "${ac_cv_search_opendir+set}" = set; then
20362 echo $ECHO_N "(cached) $ECHO_C" >&6
20364 ac_func_search_save_LIBS=$LIBS
20365 ac_cv_search_opendir=no
20366 cat >conftest.$ac_ext <<_ACEOF
20369 cat confdefs.h >>conftest.$ac_ext
20370 cat >>conftest.$ac_ext <<_ACEOF
20371 /* end confdefs.h. */
20373 /* Override any gcc2 internal prototype to avoid an error. */
20377 /* We use char because int might match the return type of a gcc2
20378 builtin and then its argument prototype would still apply. */
20388 rm -f conftest.$ac_objext conftest$ac_exeext
20389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20390 (eval $ac_link) 2>conftest.er1
20392 grep -v '^ *+' conftest.er1 >conftest.err
20394 cat conftest.err >&5
20395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396 (exit $ac_status); } &&
20397 { ac_try='test -z "$ac_c_werror_flag"
20398 || test ! -s conftest.err'
20399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20400 (eval $ac_try) 2>&5
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); }; } &&
20404 { ac_try='test -s conftest$ac_exeext'
20405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20406 (eval $ac_try) 2>&5
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); }; }; then
20410 ac_cv_search_opendir="none required"
20412 echo "$as_me: failed program was:" >&5
20413 sed 's/^/| /' conftest.$ac_ext >&5
20416 rm -f conftest.err conftest.$ac_objext \
20417 conftest$ac_exeext conftest.$ac_ext
20418 if test "$ac_cv_search_opendir" = no; then
20419 for ac_lib in x; do
20420 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20421 cat >conftest.$ac_ext <<_ACEOF
20424 cat confdefs.h >>conftest.$ac_ext
20425 cat >>conftest.$ac_ext <<_ACEOF
20426 /* end confdefs.h. */
20428 /* Override any gcc2 internal prototype to avoid an error. */
20432 /* We use char because int might match the return type of a gcc2
20433 builtin and then its argument prototype would still apply. */
20443 rm -f conftest.$ac_objext conftest$ac_exeext
20444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20445 (eval $ac_link) 2>conftest.er1
20447 grep -v '^ *+' conftest.er1 >conftest.err
20449 cat conftest.err >&5
20450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451 (exit $ac_status); } &&
20452 { ac_try='test -z "$ac_c_werror_flag"
20453 || test ! -s conftest.err'
20454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20455 (eval $ac_try) 2>&5
20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); }; } &&
20459 { ac_try='test -s conftest$ac_exeext'
20460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20461 (eval $ac_try) 2>&5
20463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464 (exit $ac_status); }; }; then
20465 ac_cv_search_opendir="-l$ac_lib"
20468 echo "$as_me: failed program was:" >&5
20469 sed 's/^/| /' conftest.$ac_ext >&5
20472 rm -f conftest.err conftest.$ac_objext \
20473 conftest$ac_exeext conftest.$ac_ext
20476 LIBS=$ac_func_search_save_LIBS
20478 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20479 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20480 if test "$ac_cv_search_opendir" != no; then
20481 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20487 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
20488 if test "${enable_ltdl_install+set}" = set; then
20489 enableval="$enable_ltdl_install"
20495 if test x"${enable_ltdl_install-no}" != xno; then
20497 INSTALL_LTDL_FALSE='#'
20499 INSTALL_LTDL_TRUE='#'
20500 INSTALL_LTDL_FALSE=
20505 if test x"${enable_ltdl_convenience-no}" != xno; then
20506 CONVENIENCE_LTDL_TRUE=
20507 CONVENIENCE_LTDL_FALSE='#'
20509 CONVENIENCE_LTDL_TRUE='#'
20510 CONVENIENCE_LTDL_FALSE=
20515 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
20516 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
20517 if test "${libltdl_cv_shlibext+set}" = set; then
20518 echo $ECHO_N "(cached) $ECHO_C" >&6
20521 ## GCJ LOCAL: gcj specific stuff. Please keep it.
20522 # Here in libltdl for libgcj we don't build modules for darwin.
20523 # So we say no. Then the extension gets .dylib which is the right
20524 # thing for shared libraries on darwin. Please keep me next time you
20534 eval libltdl_cv_shlibext=$shrext_cmds
20537 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
20538 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
20539 if test -n "$libltdl_cv_shlibext"; then
20541 cat >>confdefs.h <<_ACEOF
20542 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
20548 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
20549 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
20550 if test "${libltdl_cv_shlibpath_var+set}" = set; then
20551 echo $ECHO_N "(cached) $ECHO_C" >&6
20553 libltdl_cv_shlibpath_var="$shlibpath_var"
20555 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
20556 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
20557 if test -n "$libltdl_cv_shlibpath_var"; then
20559 cat >>confdefs.h <<_ACEOF
20560 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
20566 echo "$as_me:$LINENO: checking for the default library search path" >&5
20567 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
20568 if test "${libltdl_cv_sys_search_path+set}" = set; then
20569 echo $ECHO_N "(cached) $ECHO_C" >&6
20571 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
20573 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
20574 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
20575 if test -n "$libltdl_cv_sys_search_path"; then
20577 for dir in $libltdl_cv_sys_search_path; do
20578 if test -z "$sys_search_path"; then
20579 sys_search_path="$dir"
20581 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
20585 cat >>confdefs.h <<_ACEOF
20586 #define LTDL_SYSSEARCHPATH "$sys_search_path"
20591 echo "$as_me:$LINENO: checking for objdir" >&5
20592 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
20593 if test "${libltdl_cv_objdir+set}" = set; then
20594 echo $ECHO_N "(cached) $ECHO_C" >&6
20596 libltdl_cv_objdir="$objdir"
20597 if test -n "$objdir"; then
20600 rm -f .libs 2>/dev/null
20601 mkdir .libs 2>/dev/null
20602 if test -d .libs; then
20603 libltdl_cv_objdir=.libs
20605 # MS-DOS does not allow filenames that begin with a dot.
20606 libltdl_cv_objdir=_libs
20608 rmdir .libs 2>/dev/null
20612 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
20613 echo "${ECHO_T}$libltdl_cv_objdir" >&6
20615 cat >>confdefs.h <<_ACEOF
20616 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
20621 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
20622 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
20623 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
20624 echo $ECHO_N "(cached) $ECHO_C" >&6
20626 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20627 libltdl_cv_preloaded_symbols=yes
20629 libltdl_cv_preloaded_symbols=no
20633 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
20634 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
20635 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20637 cat >>confdefs.h <<\_ACEOF
20638 #define HAVE_PRELOADED_SYMBOLS 1
20646 ac_cpp='$CPP $CPPFLAGS'
20647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20652 echo "$as_me:$LINENO: checking for shl_load" >&5
20653 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20654 if test "${ac_cv_func_shl_load+set}" = set; then
20655 echo $ECHO_N "(cached) $ECHO_C" >&6
20657 cat >conftest.$ac_ext <<_ACEOF
20660 cat confdefs.h >>conftest.$ac_ext
20661 cat >>conftest.$ac_ext <<_ACEOF
20662 /* end confdefs.h. */
20663 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20665 #define shl_load innocuous_shl_load
20667 /* System header to define __stub macros and hopefully few prototypes,
20668 which can conflict with char shl_load (); below.
20669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20670 <limits.h> exists even on freestanding compilers. */
20673 # include <limits.h>
20675 # include <assert.h>
20680 /* Override any gcc2 internal prototype to avoid an error. */
20685 /* We use char because int might match the return type of a gcc2
20686 builtin and then its argument prototype would still apply. */
20688 /* The GNU C library defines this for functions which it implements
20689 to always fail with ENOSYS. Some functions are actually named
20690 something starting with __ and the normal name is an alias. */
20691 #if defined (__stub_shl_load) || defined (__stub___shl_load)
20694 char (*f) () = shl_load;
20703 return f != shl_load;
20708 rm -f conftest.$ac_objext conftest$ac_exeext
20709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20710 (eval $ac_link) 2>conftest.er1
20712 grep -v '^ *+' conftest.er1 >conftest.err
20714 cat conftest.err >&5
20715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716 (exit $ac_status); } &&
20717 { ac_try='test -z "$ac_c_werror_flag"
20718 || test ! -s conftest.err'
20719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20720 (eval $ac_try) 2>&5
20722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723 (exit $ac_status); }; } &&
20724 { ac_try='test -s conftest$ac_exeext'
20725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20726 (eval $ac_try) 2>&5
20728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); }; }; then
20730 ac_cv_func_shl_load=yes
20732 echo "$as_me: failed program was:" >&5
20733 sed 's/^/| /' conftest.$ac_ext >&5
20735 ac_cv_func_shl_load=no
20737 rm -f conftest.err conftest.$ac_objext \
20738 conftest$ac_exeext conftest.$ac_ext
20740 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20741 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20742 if test $ac_cv_func_shl_load = yes; then
20744 cat >>confdefs.h <<\_ACEOF
20745 #define HAVE_SHL_LOAD 1
20749 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20750 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20751 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20752 echo $ECHO_N "(cached) $ECHO_C" >&6
20754 ac_check_lib_save_LIBS=$LIBS
20756 cat >conftest.$ac_ext <<_ACEOF
20759 cat confdefs.h >>conftest.$ac_ext
20760 cat >>conftest.$ac_ext <<_ACEOF
20761 /* end confdefs.h. */
20763 /* Override any gcc2 internal prototype to avoid an error. */
20767 /* We use char because int might match the return type of a gcc2
20768 builtin and then its argument prototype would still apply. */
20778 rm -f conftest.$ac_objext conftest$ac_exeext
20779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20780 (eval $ac_link) 2>conftest.er1
20782 grep -v '^ *+' conftest.er1 >conftest.err
20784 cat conftest.err >&5
20785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786 (exit $ac_status); } &&
20787 { ac_try='test -z "$ac_c_werror_flag"
20788 || test ! -s conftest.err'
20789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20790 (eval $ac_try) 2>&5
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); }; } &&
20794 { ac_try='test -s conftest$ac_exeext'
20795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20796 (eval $ac_try) 2>&5
20798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799 (exit $ac_status); }; }; then
20800 ac_cv_lib_dld_shl_load=yes
20802 echo "$as_me: failed program was:" >&5
20803 sed 's/^/| /' conftest.$ac_ext >&5
20805 ac_cv_lib_dld_shl_load=no
20807 rm -f conftest.err conftest.$ac_objext \
20808 conftest$ac_exeext conftest.$ac_ext
20809 LIBS=$ac_check_lib_save_LIBS
20811 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20812 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20813 if test $ac_cv_lib_dld_shl_load = yes; then
20815 cat >>confdefs.h <<\_ACEOF
20816 #define HAVE_SHL_LOAD 1
20819 LIBADD_DL="$LIBADD_DL -ldld"
20821 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20822 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20823 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20824 echo $ECHO_N "(cached) $ECHO_C" >&6
20826 ac_check_lib_save_LIBS=$LIBS
20828 cat >conftest.$ac_ext <<_ACEOF
20831 cat confdefs.h >>conftest.$ac_ext
20832 cat >>conftest.$ac_ext <<_ACEOF
20833 /* end confdefs.h. */
20835 /* Override any gcc2 internal prototype to avoid an error. */
20839 /* We use char because int might match the return type of a gcc2
20840 builtin and then its argument prototype would still apply. */
20850 rm -f conftest.$ac_objext conftest$ac_exeext
20851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20852 (eval $ac_link) 2>conftest.er1
20854 grep -v '^ *+' conftest.er1 >conftest.err
20856 cat conftest.err >&5
20857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20858 (exit $ac_status); } &&
20859 { ac_try='test -z "$ac_c_werror_flag"
20860 || test ! -s conftest.err'
20861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20862 (eval $ac_try) 2>&5
20864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20865 (exit $ac_status); }; } &&
20866 { ac_try='test -s conftest$ac_exeext'
20867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20868 (eval $ac_try) 2>&5
20870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871 (exit $ac_status); }; }; then
20872 ac_cv_lib_dl_dlopen=yes
20874 echo "$as_me: failed program was:" >&5
20875 sed 's/^/| /' conftest.$ac_ext >&5
20877 ac_cv_lib_dl_dlopen=no
20879 rm -f conftest.err conftest.$ac_objext \
20880 conftest$ac_exeext conftest.$ac_ext
20881 LIBS=$ac_check_lib_save_LIBS
20883 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20884 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20885 if test $ac_cv_lib_dl_dlopen = yes; then
20887 cat >>confdefs.h <<\_ACEOF
20888 #define HAVE_LIBDL 1
20891 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
20893 cat >conftest.$ac_ext <<_ACEOF
20896 cat confdefs.h >>conftest.$ac_ext
20897 cat >>conftest.$ac_ext <<_ACEOF
20898 /* end confdefs.h. */
20900 # include <dlfcn.h>
20911 rm -f conftest.$ac_objext conftest$ac_exeext
20912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20913 (eval $ac_link) 2>conftest.er1
20915 grep -v '^ *+' conftest.er1 >conftest.err
20917 cat conftest.err >&5
20918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20919 (exit $ac_status); } &&
20920 { ac_try='test -z "$ac_c_werror_flag"
20921 || test ! -s conftest.err'
20922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20923 (eval $ac_try) 2>&5
20925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926 (exit $ac_status); }; } &&
20927 { ac_try='test -s conftest$ac_exeext'
20928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20929 (eval $ac_try) 2>&5
20931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932 (exit $ac_status); }; }; then
20934 cat >>confdefs.h <<\_ACEOF
20935 #define HAVE_LIBDL 1
20937 libltdl_cv_func_dlopen="yes"
20939 echo "$as_me: failed program was:" >&5
20940 sed 's/^/| /' conftest.$ac_ext >&5
20942 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20943 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20944 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20945 echo $ECHO_N "(cached) $ECHO_C" >&6
20947 ac_check_lib_save_LIBS=$LIBS
20948 LIBS="-lsvld $LIBS"
20949 cat >conftest.$ac_ext <<_ACEOF
20952 cat confdefs.h >>conftest.$ac_ext
20953 cat >>conftest.$ac_ext <<_ACEOF
20954 /* end confdefs.h. */
20956 /* Override any gcc2 internal prototype to avoid an error. */
20960 /* We use char because int might match the return type of a gcc2
20961 builtin and then its argument prototype would still apply. */
20971 rm -f conftest.$ac_objext conftest$ac_exeext
20972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20973 (eval $ac_link) 2>conftest.er1
20975 grep -v '^ *+' conftest.er1 >conftest.err
20977 cat conftest.err >&5
20978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979 (exit $ac_status); } &&
20980 { ac_try='test -z "$ac_c_werror_flag"
20981 || test ! -s conftest.err'
20982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20983 (eval $ac_try) 2>&5
20985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986 (exit $ac_status); }; } &&
20987 { ac_try='test -s conftest$ac_exeext'
20988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20989 (eval $ac_try) 2>&5
20991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992 (exit $ac_status); }; }; then
20993 ac_cv_lib_svld_dlopen=yes
20995 echo "$as_me: failed program was:" >&5
20996 sed 's/^/| /' conftest.$ac_ext >&5
20998 ac_cv_lib_svld_dlopen=no
21000 rm -f conftest.err conftest.$ac_objext \
21001 conftest$ac_exeext conftest.$ac_ext
21002 LIBS=$ac_check_lib_save_LIBS
21004 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
21005 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
21006 if test $ac_cv_lib_svld_dlopen = yes; then
21008 cat >>confdefs.h <<\_ACEOF
21009 #define HAVE_LIBDL 1
21012 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
21014 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
21015 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
21016 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
21017 echo $ECHO_N "(cached) $ECHO_C" >&6
21019 ac_check_lib_save_LIBS=$LIBS
21021 cat >conftest.$ac_ext <<_ACEOF
21024 cat confdefs.h >>conftest.$ac_ext
21025 cat >>conftest.$ac_ext <<_ACEOF
21026 /* end confdefs.h. */
21028 /* Override any gcc2 internal prototype to avoid an error. */
21032 /* We use char because int might match the return type of a gcc2
21033 builtin and then its argument prototype would still apply. */
21043 rm -f conftest.$ac_objext conftest$ac_exeext
21044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21045 (eval $ac_link) 2>conftest.er1
21047 grep -v '^ *+' conftest.er1 >conftest.err
21049 cat conftest.err >&5
21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051 (exit $ac_status); } &&
21052 { ac_try='test -z "$ac_c_werror_flag"
21053 || test ! -s conftest.err'
21054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21055 (eval $ac_try) 2>&5
21057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058 (exit $ac_status); }; } &&
21059 { ac_try='test -s conftest$ac_exeext'
21060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21061 (eval $ac_try) 2>&5
21063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064 (exit $ac_status); }; }; then
21065 ac_cv_lib_dld_dld_link=yes
21067 echo "$as_me: failed program was:" >&5
21068 sed 's/^/| /' conftest.$ac_ext >&5
21070 ac_cv_lib_dld_dld_link=no
21072 rm -f conftest.err conftest.$ac_objext \
21073 conftest$ac_exeext conftest.$ac_ext
21074 LIBS=$ac_check_lib_save_LIBS
21076 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
21077 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
21078 if test $ac_cv_lib_dld_dld_link = yes; then
21080 cat >>confdefs.h <<\_ACEOF
21084 LIBADD_DL="$LIBADD_DL -ldld"
21086 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
21087 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
21088 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
21089 echo $ECHO_N "(cached) $ECHO_C" >&6
21091 cat >conftest.$ac_ext <<_ACEOF
21094 cat confdefs.h >>conftest.$ac_ext
21095 cat >>conftest.$ac_ext <<_ACEOF
21096 /* end confdefs.h. */
21097 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
21098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21099 #define _dyld_func_lookup innocuous__dyld_func_lookup
21101 /* System header to define __stub macros and hopefully few prototypes,
21102 which can conflict with char _dyld_func_lookup (); below.
21103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21104 <limits.h> exists even on freestanding compilers. */
21107 # include <limits.h>
21109 # include <assert.h>
21112 #undef _dyld_func_lookup
21114 /* Override any gcc2 internal prototype to avoid an error. */
21119 /* We use char because int might match the return type of a gcc2
21120 builtin and then its argument prototype would still apply. */
21121 char _dyld_func_lookup ();
21122 /* The GNU C library defines this for functions which it implements
21123 to always fail with ENOSYS. Some functions are actually named
21124 something starting with __ and the normal name is an alias. */
21125 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
21128 char (*f) () = _dyld_func_lookup;
21137 return f != _dyld_func_lookup;
21142 rm -f conftest.$ac_objext conftest$ac_exeext
21143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21144 (eval $ac_link) 2>conftest.er1
21146 grep -v '^ *+' conftest.er1 >conftest.err
21148 cat conftest.err >&5
21149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21150 (exit $ac_status); } &&
21151 { ac_try='test -z "$ac_c_werror_flag"
21152 || test ! -s conftest.err'
21153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21154 (eval $ac_try) 2>&5
21156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157 (exit $ac_status); }; } &&
21158 { ac_try='test -s conftest$ac_exeext'
21159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21160 (eval $ac_try) 2>&5
21162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163 (exit $ac_status); }; }; then
21164 ac_cv_func__dyld_func_lookup=yes
21166 echo "$as_me: failed program was:" >&5
21167 sed 's/^/| /' conftest.$ac_ext >&5
21169 ac_cv_func__dyld_func_lookup=no
21171 rm -f conftest.err conftest.$ac_objext \
21172 conftest$ac_exeext conftest.$ac_ext
21174 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
21175 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
21176 if test $ac_cv_func__dyld_func_lookup = yes; then
21178 cat >>confdefs.h <<\_ACEOF
21179 #define HAVE_DYLD 1
21192 rm -f conftest.err conftest.$ac_objext \
21193 conftest$ac_exeext conftest.$ac_ext
21204 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
21206 lt_save_LIBS="$LIBS"
21207 LIBS="$LIBS $LIBADD_DL"
21209 for ac_func in dlerror
21211 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21212 echo "$as_me:$LINENO: checking for $ac_func" >&5
21213 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21214 if eval "test \"\${$as_ac_var+set}\" = set"; then
21215 echo $ECHO_N "(cached) $ECHO_C" >&6
21217 cat >conftest.$ac_ext <<_ACEOF
21220 cat confdefs.h >>conftest.$ac_ext
21221 cat >>conftest.$ac_ext <<_ACEOF
21222 /* end confdefs.h. */
21223 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21224 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21225 #define $ac_func innocuous_$ac_func
21227 /* System header to define __stub macros and hopefully few prototypes,
21228 which can conflict with char $ac_func (); below.
21229 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21230 <limits.h> exists even on freestanding compilers. */
21233 # include <limits.h>
21235 # include <assert.h>
21240 /* Override any gcc2 internal prototype to avoid an error. */
21245 /* We use char because int might match the return type of a gcc2
21246 builtin and then its argument prototype would still apply. */
21248 /* The GNU C library defines this for functions which it implements
21249 to always fail with ENOSYS. Some functions are actually named
21250 something starting with __ and the normal name is an alias. */
21251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21254 char (*f) () = $ac_func;
21263 return f != $ac_func;
21268 rm -f conftest.$ac_objext conftest$ac_exeext
21269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21270 (eval $ac_link) 2>conftest.er1
21272 grep -v '^ *+' conftest.er1 >conftest.err
21274 cat conftest.err >&5
21275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276 (exit $ac_status); } &&
21277 { ac_try='test -z "$ac_c_werror_flag"
21278 || test ! -s conftest.err'
21279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21280 (eval $ac_try) 2>&5
21282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21283 (exit $ac_status); }; } &&
21284 { ac_try='test -s conftest$ac_exeext'
21285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21286 (eval $ac_try) 2>&5
21288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21289 (exit $ac_status); }; }; then
21290 eval "$as_ac_var=yes"
21292 echo "$as_me: failed program was:" >&5
21293 sed 's/^/| /' conftest.$ac_ext >&5
21295 eval "$as_ac_var=no"
21297 rm -f conftest.err conftest.$ac_objext \
21298 conftest$ac_exeext conftest.$ac_ext
21300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21301 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21302 if test `eval echo '${'$as_ac_var'}'` = yes; then
21303 cat >>confdefs.h <<_ACEOF
21304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21310 LIBS="$lt_save_LIBS"
21313 ac_cpp='$CPP $CPPFLAGS'
21314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21320 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
21321 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
21322 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
21323 echo $ECHO_N "(cached) $ECHO_C" >&6
21325 ac_cv_sys_symbol_underscore=no
21326 cat > conftest.$ac_ext <<EOF
21327 void nm_test_func(){}
21328 int main(){nm_test_func;return 0;}
21330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21331 (eval $ac_compile) 2>&5
21333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334 (exit $ac_status); }; then
21335 # Now try to grab the symbols.
21336 ac_nlist=conftest.nm
21337 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
21338 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
21340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341 (exit $ac_status); } && test -s "$ac_nlist"; then
21342 # See whether the symbols have a leading underscore.
21343 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
21344 ac_cv_sys_symbol_underscore=yes
21346 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
21349 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
21353 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
21356 echo "configure: failed program was:" >&5
21362 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
21363 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
21366 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
21367 if test x"$libltdl_cv_func_dlopen" = xyes ||
21368 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
21369 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
21370 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
21371 if test "${libltdl_cv_need_uscore+set}" = set; then
21372 echo $ECHO_N "(cached) $ECHO_C" >&6
21374 libltdl_cv_need_uscore=unknown
21376 LIBS="$LIBS $LIBADD_DL"
21377 if test "$cross_compiling" = yes; then :
21378 libltdl_cv_need_uscore=cross
21380 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21381 lt_status=$lt_dlunknown
21382 cat > conftest.$ac_ext <<EOF
21383 #line 21383 "configure"
21384 #include "confdefs.h"
21393 # define LT_DLGLOBAL RTLD_GLOBAL
21396 # define LT_DLGLOBAL DL_GLOBAL
21398 # define LT_DLGLOBAL 0
21402 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21403 find out it does not work in some platform. */
21404 #ifndef LT_DLLAZY_OR_NOW
21406 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21409 # define LT_DLLAZY_OR_NOW DL_LAZY
21412 # define LT_DLLAZY_OR_NOW RTLD_NOW
21415 # define LT_DLLAZY_OR_NOW DL_NOW
21417 # define LT_DLLAZY_OR_NOW 0
21425 extern "C" void exit (int);
21428 void fnord() { int i=42;}
21431 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21432 int status = $lt_dlunknown;
21436 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21437 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21438 /* dlclose (self); */
21444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21445 (eval $ac_link) 2>&5
21447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21449 (./conftest; exit; ) 2>/dev/null
21451 case x$lt_status in
21452 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
21453 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
21454 x$lt_unknown|x*) ;;
21457 # compilation failed
21466 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
21467 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
21471 if test x"$libltdl_cv_need_uscore" = xyes; then
21473 cat >>confdefs.h <<\_ACEOF
21474 #define NEED_USCORE 1
21480 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
21481 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
21482 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
21483 echo $ECHO_N "(cached) $ECHO_C" >&6
21485 # PORTME does your system automatically load deplibs for dlopen?
21486 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
21487 # For now, we just catch OSes we know something about -- in the
21488 # future, we'll try test this programmatically.
21489 libltdl_cv_sys_dlopen_deplibs=unknown
21491 aix3*|aix4.1.*|aix4.2.*)
21492 # Unknown whether this is true for these versions of AIX, but
21493 # we want this `case' here to explicitly catch those versions.
21494 libltdl_cv_sys_dlopen_deplibs=unknown
21497 libltdl_cv_sys_dlopen_deplibs=yes
21500 # Assuming the user has installed a libdl from somewhere, this is true
21501 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
21502 libltdl_cv_sys_dlopen_deplibs=yes
21504 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
21505 # GNU and its variants, using gnu ld.so (Glibc)
21506 libltdl_cv_sys_dlopen_deplibs=yes
21509 libltdl_cv_sys_dlopen_deplibs=yes
21511 irix[12345]*|irix6.[01]*)
21512 # Catch all versions of IRIX before 6.2, and indicate that we don't
21513 # know how it worked for any of those versions.
21514 libltdl_cv_sys_dlopen_deplibs=unknown
21517 # The case above catches anything before 6.2, and it's known that
21518 # at 6.2 and later dlopen does load deplibs.
21519 libltdl_cv_sys_dlopen_deplibs=yes
21522 libltdl_cv_sys_dlopen_deplibs=yes
21525 libltdl_cv_sys_dlopen_deplibs=yes
21528 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
21529 # it did *not* use an RPATH in a shared library to find objects the
21530 # library depends on, so we explictly say `no'.
21531 libltdl_cv_sys_dlopen_deplibs=no
21533 osf5.0|osf5.0a|osf5.1)
21534 # dlopen *does* load deplibs and with the right loader patch applied
21535 # it even uses RPATH in a shared library to search for shared objects
21536 # that the library depends on, but there's no easy way to know if that
21537 # patch is installed. Since this is the case, all we can really
21538 # say is unknown -- it depends on the patch being installed. If
21539 # it is, this changes to `yes'. Without it, it would be `no'.
21540 libltdl_cv_sys_dlopen_deplibs=unknown
21543 # the two cases above should catch all versions of osf <= 5.1. Read
21544 # the comments above for what we know about them.
21545 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
21546 # is used to find them so we can finally say `yes'.
21547 libltdl_cv_sys_dlopen_deplibs=yes
21550 libltdl_cv_sys_dlopen_deplibs=yes
21555 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
21556 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
21557 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
21559 cat >>confdefs.h <<\_ACEOF
21560 #define LTDL_DLOPEN_DEPLIBS 1
21566 for ac_header in argz.h
21568 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21570 echo "$as_me:$LINENO: checking for $ac_header" >&5
21571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21573 echo $ECHO_N "(cached) $ECHO_C" >&6
21575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21578 # Is the header compilable?
21579 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21581 cat >conftest.$ac_ext <<_ACEOF
21584 cat confdefs.h >>conftest.$ac_ext
21585 cat >>conftest.$ac_ext <<_ACEOF
21586 /* end confdefs.h. */
21587 $ac_includes_default
21588 #include <$ac_header>
21590 rm -f conftest.$ac_objext
21591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21592 (eval $ac_compile) 2>conftest.er1
21594 grep -v '^ *+' conftest.er1 >conftest.err
21596 cat conftest.err >&5
21597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598 (exit $ac_status); } &&
21599 { ac_try='test -z "$ac_c_werror_flag"
21600 || test ! -s conftest.err'
21601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21602 (eval $ac_try) 2>&5
21604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605 (exit $ac_status); }; } &&
21606 { ac_try='test -s conftest.$ac_objext'
21607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21608 (eval $ac_try) 2>&5
21610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611 (exit $ac_status); }; }; then
21612 ac_header_compiler=yes
21614 echo "$as_me: failed program was:" >&5
21615 sed 's/^/| /' conftest.$ac_ext >&5
21617 ac_header_compiler=no
21619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21620 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21621 echo "${ECHO_T}$ac_header_compiler" >&6
21623 # Is the header present?
21624 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21625 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21626 cat >conftest.$ac_ext <<_ACEOF
21629 cat confdefs.h >>conftest.$ac_ext
21630 cat >>conftest.$ac_ext <<_ACEOF
21631 /* end confdefs.h. */
21632 #include <$ac_header>
21634 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21635 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21637 grep -v '^ *+' conftest.er1 >conftest.err
21639 cat conftest.err >&5
21640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641 (exit $ac_status); } >/dev/null; then
21642 if test -s conftest.err; then
21643 ac_cpp_err=$ac_c_preproc_warn_flag
21644 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21651 if test -z "$ac_cpp_err"; then
21652 ac_header_preproc=yes
21654 echo "$as_me: failed program was:" >&5
21655 sed 's/^/| /' conftest.$ac_ext >&5
21657 ac_header_preproc=no
21659 rm -f conftest.err conftest.$ac_ext
21660 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21661 echo "${ECHO_T}$ac_header_preproc" >&6
21663 # So? What about this header?
21664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21666 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21667 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21669 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21670 ac_header_preproc=yes
21673 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21674 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21675 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21676 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21677 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21678 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21679 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21680 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21682 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21683 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21684 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21687 ## ---------------------------------- ##
21688 ## Report this to bug-libtool@gnu.org ##
21689 ## ---------------------------------- ##
21692 sed "s/^/$as_me: WARNING: /" >&2
21695 echo "$as_me:$LINENO: checking for $ac_header" >&5
21696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21698 echo $ECHO_N "(cached) $ECHO_C" >&6
21700 eval "$as_ac_Header=\$ac_header_preproc"
21702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21703 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21707 cat >>confdefs.h <<_ACEOF
21708 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21716 echo "$as_me:$LINENO: checking for error_t" >&5
21717 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
21718 if test "${ac_cv_type_error_t+set}" = set; then
21719 echo $ECHO_N "(cached) $ECHO_C" >&6
21721 cat >conftest.$ac_ext <<_ACEOF
21724 cat confdefs.h >>conftest.$ac_ext
21725 cat >>conftest.$ac_ext <<_ACEOF
21726 /* end confdefs.h. */
21736 if (sizeof (error_t))
21742 rm -f conftest.$ac_objext
21743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21744 (eval $ac_compile) 2>conftest.er1
21746 grep -v '^ *+' conftest.er1 >conftest.err
21748 cat conftest.err >&5
21749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750 (exit $ac_status); } &&
21751 { ac_try='test -z "$ac_c_werror_flag"
21752 || test ! -s conftest.err'
21753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21754 (eval $ac_try) 2>&5
21756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757 (exit $ac_status); }; } &&
21758 { ac_try='test -s conftest.$ac_objext'
21759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21760 (eval $ac_try) 2>&5
21762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763 (exit $ac_status); }; }; then
21764 ac_cv_type_error_t=yes
21766 echo "$as_me: failed program was:" >&5
21767 sed 's/^/| /' conftest.$ac_ext >&5
21769 ac_cv_type_error_t=no
21771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21773 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
21774 echo "${ECHO_T}$ac_cv_type_error_t" >&6
21775 if test $ac_cv_type_error_t = yes; then
21777 cat >>confdefs.h <<_ACEOF
21778 #define HAVE_ERROR_T 1
21784 cat >>confdefs.h <<\_ACEOF
21785 #define error_t int
21796 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
21798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21799 echo "$as_me:$LINENO: checking for $ac_func" >&5
21800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21801 if eval "test \"\${$as_ac_var+set}\" = set"; then
21802 echo $ECHO_N "(cached) $ECHO_C" >&6
21804 cat >conftest.$ac_ext <<_ACEOF
21807 cat confdefs.h >>conftest.$ac_ext
21808 cat >>conftest.$ac_ext <<_ACEOF
21809 /* end confdefs.h. */
21810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21812 #define $ac_func innocuous_$ac_func
21814 /* System header to define __stub macros and hopefully few prototypes,
21815 which can conflict with char $ac_func (); below.
21816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21817 <limits.h> exists even on freestanding compilers. */
21820 # include <limits.h>
21822 # include <assert.h>
21827 /* Override any gcc2 internal prototype to avoid an error. */
21832 /* We use char because int might match the return type of a gcc2
21833 builtin and then its argument prototype would still apply. */
21835 /* The GNU C library defines this for functions which it implements
21836 to always fail with ENOSYS. Some functions are actually named
21837 something starting with __ and the normal name is an alias. */
21838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21841 char (*f) () = $ac_func;
21850 return f != $ac_func;
21855 rm -f conftest.$ac_objext conftest$ac_exeext
21856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21857 (eval $ac_link) 2>conftest.er1
21859 grep -v '^ *+' conftest.er1 >conftest.err
21861 cat conftest.err >&5
21862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21863 (exit $ac_status); } &&
21864 { ac_try='test -z "$ac_c_werror_flag"
21865 || test ! -s conftest.err'
21866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21867 (eval $ac_try) 2>&5
21869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870 (exit $ac_status); }; } &&
21871 { ac_try='test -s conftest$ac_exeext'
21872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21873 (eval $ac_try) 2>&5
21875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876 (exit $ac_status); }; }; then
21877 eval "$as_ac_var=yes"
21879 echo "$as_me: failed program was:" >&5
21880 sed 's/^/| /' conftest.$ac_ext >&5
21882 eval "$as_ac_var=no"
21884 rm -f conftest.err conftest.$ac_objext \
21885 conftest$ac_exeext conftest.$ac_ext
21887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21888 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21889 if test `eval echo '${'$as_ac_var'}'` = yes; then
21890 cat >>confdefs.h <<_ACEOF
21891 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21924 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
21927 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21929 echo "$as_me:$LINENO: checking for $ac_header" >&5
21930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21932 echo $ECHO_N "(cached) $ECHO_C" >&6
21934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21937 # Is the header compilable?
21938 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21939 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21940 cat >conftest.$ac_ext <<_ACEOF
21943 cat confdefs.h >>conftest.$ac_ext
21944 cat >>conftest.$ac_ext <<_ACEOF
21945 /* end confdefs.h. */
21946 $ac_includes_default
21947 #include <$ac_header>
21949 rm -f conftest.$ac_objext
21950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21951 (eval $ac_compile) 2>conftest.er1
21953 grep -v '^ *+' conftest.er1 >conftest.err
21955 cat conftest.err >&5
21956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21957 (exit $ac_status); } &&
21958 { ac_try='test -z "$ac_c_werror_flag"
21959 || test ! -s conftest.err'
21960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21961 (eval $ac_try) 2>&5
21963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964 (exit $ac_status); }; } &&
21965 { ac_try='test -s conftest.$ac_objext'
21966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21967 (eval $ac_try) 2>&5
21969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970 (exit $ac_status); }; }; then
21971 ac_header_compiler=yes
21973 echo "$as_me: failed program was:" >&5
21974 sed 's/^/| /' conftest.$ac_ext >&5
21976 ac_header_compiler=no
21978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21979 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21980 echo "${ECHO_T}$ac_header_compiler" >&6
21982 # Is the header present?
21983 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21984 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21985 cat >conftest.$ac_ext <<_ACEOF
21988 cat confdefs.h >>conftest.$ac_ext
21989 cat >>conftest.$ac_ext <<_ACEOF
21990 /* end confdefs.h. */
21991 #include <$ac_header>
21993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21996 grep -v '^ *+' conftest.er1 >conftest.err
21998 cat conftest.err >&5
21999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000 (exit $ac_status); } >/dev/null; then
22001 if test -s conftest.err; then
22002 ac_cpp_err=$ac_c_preproc_warn_flag
22003 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22010 if test -z "$ac_cpp_err"; then
22011 ac_header_preproc=yes
22013 echo "$as_me: failed program was:" >&5
22014 sed 's/^/| /' conftest.$ac_ext >&5
22016 ac_header_preproc=no
22018 rm -f conftest.err conftest.$ac_ext
22019 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22020 echo "${ECHO_T}$ac_header_preproc" >&6
22022 # So? What about this header?
22023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22025 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22026 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22028 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22029 ac_header_preproc=yes
22032 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22033 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22034 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22035 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22036 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22037 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22038 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22039 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22041 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22042 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22043 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22046 ## ---------------------------------- ##
22047 ## Report this to bug-libtool@gnu.org ##
22048 ## ---------------------------------- ##
22051 sed "s/^/$as_me: WARNING: /" >&2
22054 echo "$as_me:$LINENO: checking for $ac_header" >&5
22055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22057 echo $ECHO_N "(cached) $ECHO_C" >&6
22059 eval "$as_ac_Header=\$ac_header_preproc"
22061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22066 cat >>confdefs.h <<_ACEOF
22067 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22078 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
22080 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22082 echo "$as_me:$LINENO: checking for $ac_header" >&5
22083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22085 echo $ECHO_N "(cached) $ECHO_C" >&6
22087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22090 # Is the header compilable?
22091 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22092 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22093 cat >conftest.$ac_ext <<_ACEOF
22096 cat confdefs.h >>conftest.$ac_ext
22097 cat >>conftest.$ac_ext <<_ACEOF
22098 /* end confdefs.h. */
22099 $ac_includes_default
22100 #include <$ac_header>
22102 rm -f conftest.$ac_objext
22103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22104 (eval $ac_compile) 2>conftest.er1
22106 grep -v '^ *+' conftest.er1 >conftest.err
22108 cat conftest.err >&5
22109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22110 (exit $ac_status); } &&
22111 { ac_try='test -z "$ac_c_werror_flag"
22112 || test ! -s conftest.err'
22113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22114 (eval $ac_try) 2>&5
22116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117 (exit $ac_status); }; } &&
22118 { ac_try='test -s conftest.$ac_objext'
22119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22120 (eval $ac_try) 2>&5
22122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22123 (exit $ac_status); }; }; then
22124 ac_header_compiler=yes
22126 echo "$as_me: failed program was:" >&5
22127 sed 's/^/| /' conftest.$ac_ext >&5
22129 ac_header_compiler=no
22131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22132 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22133 echo "${ECHO_T}$ac_header_compiler" >&6
22135 # Is the header present?
22136 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22137 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22138 cat >conftest.$ac_ext <<_ACEOF
22141 cat confdefs.h >>conftest.$ac_ext
22142 cat >>conftest.$ac_ext <<_ACEOF
22143 /* end confdefs.h. */
22144 #include <$ac_header>
22146 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22147 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22149 grep -v '^ *+' conftest.er1 >conftest.err
22151 cat conftest.err >&5
22152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22153 (exit $ac_status); } >/dev/null; then
22154 if test -s conftest.err; then
22155 ac_cpp_err=$ac_c_preproc_warn_flag
22156 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22163 if test -z "$ac_cpp_err"; then
22164 ac_header_preproc=yes
22166 echo "$as_me: failed program was:" >&5
22167 sed 's/^/| /' conftest.$ac_ext >&5
22169 ac_header_preproc=no
22171 rm -f conftest.err conftest.$ac_ext
22172 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22173 echo "${ECHO_T}$ac_header_preproc" >&6
22175 # So? What about this header?
22176 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22178 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22179 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22181 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22182 ac_header_preproc=yes
22185 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22186 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22187 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22188 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22189 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22190 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22191 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22192 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22195 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22196 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22199 ## ---------------------------------- ##
22200 ## Report this to bug-libtool@gnu.org ##
22201 ## ---------------------------------- ##
22204 sed "s/^/$as_me: WARNING: /" >&2
22207 echo "$as_me:$LINENO: checking for $ac_header" >&5
22208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22210 echo $ECHO_N "(cached) $ECHO_C" >&6
22212 eval "$as_ac_Header=\$ac_header_preproc"
22214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22215 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22218 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22219 cat >>confdefs.h <<_ACEOF
22220 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22229 for ac_header in string.h strings.h
22231 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22233 echo "$as_me:$LINENO: checking for $ac_header" >&5
22234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22236 echo $ECHO_N "(cached) $ECHO_C" >&6
22238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22239 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22241 # Is the header compilable?
22242 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22243 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22244 cat >conftest.$ac_ext <<_ACEOF
22247 cat confdefs.h >>conftest.$ac_ext
22248 cat >>conftest.$ac_ext <<_ACEOF
22249 /* end confdefs.h. */
22250 $ac_includes_default
22251 #include <$ac_header>
22253 rm -f conftest.$ac_objext
22254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22255 (eval $ac_compile) 2>conftest.er1
22257 grep -v '^ *+' conftest.er1 >conftest.err
22259 cat conftest.err >&5
22260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261 (exit $ac_status); } &&
22262 { ac_try='test -z "$ac_c_werror_flag"
22263 || test ! -s conftest.err'
22264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22265 (eval $ac_try) 2>&5
22267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268 (exit $ac_status); }; } &&
22269 { ac_try='test -s conftest.$ac_objext'
22270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22271 (eval $ac_try) 2>&5
22273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22274 (exit $ac_status); }; }; then
22275 ac_header_compiler=yes
22277 echo "$as_me: failed program was:" >&5
22278 sed 's/^/| /' conftest.$ac_ext >&5
22280 ac_header_compiler=no
22282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22283 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22284 echo "${ECHO_T}$ac_header_compiler" >&6
22286 # Is the header present?
22287 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22288 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22289 cat >conftest.$ac_ext <<_ACEOF
22292 cat confdefs.h >>conftest.$ac_ext
22293 cat >>conftest.$ac_ext <<_ACEOF
22294 /* end confdefs.h. */
22295 #include <$ac_header>
22297 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22298 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22300 grep -v '^ *+' conftest.er1 >conftest.err
22302 cat conftest.err >&5
22303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22304 (exit $ac_status); } >/dev/null; then
22305 if test -s conftest.err; then
22306 ac_cpp_err=$ac_c_preproc_warn_flag
22307 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22314 if test -z "$ac_cpp_err"; then
22315 ac_header_preproc=yes
22317 echo "$as_me: failed program was:" >&5
22318 sed 's/^/| /' conftest.$ac_ext >&5
22320 ac_header_preproc=no
22322 rm -f conftest.err conftest.$ac_ext
22323 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22324 echo "${ECHO_T}$ac_header_preproc" >&6
22326 # So? What about this header?
22327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22329 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22330 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22332 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22333 ac_header_preproc=yes
22336 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22337 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22338 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22339 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22340 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22341 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22342 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22343 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22345 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22346 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22347 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22350 ## ---------------------------------- ##
22351 ## Report this to bug-libtool@gnu.org ##
22352 ## ---------------------------------- ##
22355 sed "s/^/$as_me: WARNING: /" >&2
22358 echo "$as_me:$LINENO: checking for $ac_header" >&5
22359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22361 echo $ECHO_N "(cached) $ECHO_C" >&6
22363 eval "$as_ac_Header=\$ac_header_preproc"
22365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22366 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22370 cat >>confdefs.h <<_ACEOF
22371 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22381 for ac_func in strchr index
22383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22384 echo "$as_me:$LINENO: checking for $ac_func" >&5
22385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22386 if eval "test \"\${$as_ac_var+set}\" = set"; then
22387 echo $ECHO_N "(cached) $ECHO_C" >&6
22389 cat >conftest.$ac_ext <<_ACEOF
22392 cat confdefs.h >>conftest.$ac_ext
22393 cat >>conftest.$ac_ext <<_ACEOF
22394 /* end confdefs.h. */
22395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22397 #define $ac_func innocuous_$ac_func
22399 /* System header to define __stub macros and hopefully few prototypes,
22400 which can conflict with char $ac_func (); below.
22401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22402 <limits.h> exists even on freestanding compilers. */
22405 # include <limits.h>
22407 # include <assert.h>
22412 /* Override any gcc2 internal prototype to avoid an error. */
22417 /* We use char because int might match the return type of a gcc2
22418 builtin and then its argument prototype would still apply. */
22420 /* The GNU C library defines this for functions which it implements
22421 to always fail with ENOSYS. Some functions are actually named
22422 something starting with __ and the normal name is an alias. */
22423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22426 char (*f) () = $ac_func;
22435 return f != $ac_func;
22440 rm -f conftest.$ac_objext conftest$ac_exeext
22441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22442 (eval $ac_link) 2>conftest.er1
22444 grep -v '^ *+' conftest.er1 >conftest.err
22446 cat conftest.err >&5
22447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22448 (exit $ac_status); } &&
22449 { ac_try='test -z "$ac_c_werror_flag"
22450 || test ! -s conftest.err'
22451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22452 (eval $ac_try) 2>&5
22454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455 (exit $ac_status); }; } &&
22456 { ac_try='test -s conftest$ac_exeext'
22457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22458 (eval $ac_try) 2>&5
22460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461 (exit $ac_status); }; }; then
22462 eval "$as_ac_var=yes"
22464 echo "$as_me: failed program was:" >&5
22465 sed 's/^/| /' conftest.$ac_ext >&5
22467 eval "$as_ac_var=no"
22469 rm -f conftest.err conftest.$ac_objext \
22470 conftest$ac_exeext conftest.$ac_ext
22472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22473 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22474 if test `eval echo '${'$as_ac_var'}'` = yes; then
22475 cat >>confdefs.h <<_ACEOF
22476 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22484 for ac_func in strrchr rindex
22486 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22487 echo "$as_me:$LINENO: checking for $ac_func" >&5
22488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22489 if eval "test \"\${$as_ac_var+set}\" = set"; then
22490 echo $ECHO_N "(cached) $ECHO_C" >&6
22492 cat >conftest.$ac_ext <<_ACEOF
22495 cat confdefs.h >>conftest.$ac_ext
22496 cat >>conftest.$ac_ext <<_ACEOF
22497 /* end confdefs.h. */
22498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22500 #define $ac_func innocuous_$ac_func
22502 /* System header to define __stub macros and hopefully few prototypes,
22503 which can conflict with char $ac_func (); below.
22504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22505 <limits.h> exists even on freestanding compilers. */
22508 # include <limits.h>
22510 # include <assert.h>
22515 /* Override any gcc2 internal prototype to avoid an error. */
22520 /* We use char because int might match the return type of a gcc2
22521 builtin and then its argument prototype would still apply. */
22523 /* The GNU C library defines this for functions which it implements
22524 to always fail with ENOSYS. Some functions are actually named
22525 something starting with __ and the normal name is an alias. */
22526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22529 char (*f) () = $ac_func;
22538 return f != $ac_func;
22543 rm -f conftest.$ac_objext conftest$ac_exeext
22544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22545 (eval $ac_link) 2>conftest.er1
22547 grep -v '^ *+' conftest.er1 >conftest.err
22549 cat conftest.err >&5
22550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551 (exit $ac_status); } &&
22552 { ac_try='test -z "$ac_c_werror_flag"
22553 || test ! -s conftest.err'
22554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22555 (eval $ac_try) 2>&5
22557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22558 (exit $ac_status); }; } &&
22559 { ac_try='test -s conftest$ac_exeext'
22560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22561 (eval $ac_try) 2>&5
22563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22564 (exit $ac_status); }; }; then
22565 eval "$as_ac_var=yes"
22567 echo "$as_me: failed program was:" >&5
22568 sed 's/^/| /' conftest.$ac_ext >&5
22570 eval "$as_ac_var=no"
22572 rm -f conftest.err conftest.$ac_objext \
22573 conftest$ac_exeext conftest.$ac_ext
22575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22576 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22577 if test `eval echo '${'$as_ac_var'}'` = yes; then
22578 cat >>confdefs.h <<_ACEOF
22579 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22587 for ac_func in memcpy bcopy
22589 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22590 echo "$as_me:$LINENO: checking for $ac_func" >&5
22591 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22592 if eval "test \"\${$as_ac_var+set}\" = set"; then
22593 echo $ECHO_N "(cached) $ECHO_C" >&6
22595 cat >conftest.$ac_ext <<_ACEOF
22598 cat confdefs.h >>conftest.$ac_ext
22599 cat >>conftest.$ac_ext <<_ACEOF
22600 /* end confdefs.h. */
22601 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22603 #define $ac_func innocuous_$ac_func
22605 /* System header to define __stub macros and hopefully few prototypes,
22606 which can conflict with char $ac_func (); below.
22607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22608 <limits.h> exists even on freestanding compilers. */
22611 # include <limits.h>
22613 # include <assert.h>
22618 /* Override any gcc2 internal prototype to avoid an error. */
22623 /* We use char because int might match the return type of a gcc2
22624 builtin and then its argument prototype would still apply. */
22626 /* The GNU C library defines this for functions which it implements
22627 to always fail with ENOSYS. Some functions are actually named
22628 something starting with __ and the normal name is an alias. */
22629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22632 char (*f) () = $ac_func;
22641 return f != $ac_func;
22646 rm -f conftest.$ac_objext conftest$ac_exeext
22647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22648 (eval $ac_link) 2>conftest.er1
22650 grep -v '^ *+' conftest.er1 >conftest.err
22652 cat conftest.err >&5
22653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22654 (exit $ac_status); } &&
22655 { ac_try='test -z "$ac_c_werror_flag"
22656 || test ! -s conftest.err'
22657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22658 (eval $ac_try) 2>&5
22660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22661 (exit $ac_status); }; } &&
22662 { ac_try='test -s conftest$ac_exeext'
22663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22664 (eval $ac_try) 2>&5
22666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22667 (exit $ac_status); }; }; then
22668 eval "$as_ac_var=yes"
22670 echo "$as_me: failed program was:" >&5
22671 sed 's/^/| /' conftest.$ac_ext >&5
22673 eval "$as_ac_var=no"
22675 rm -f conftest.err conftest.$ac_objext \
22676 conftest$ac_exeext conftest.$ac_ext
22678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22679 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22680 if test `eval echo '${'$as_ac_var'}'` = yes; then
22681 cat >>confdefs.h <<_ACEOF
22682 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22690 for ac_func in memmove strcmp
22692 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22693 echo "$as_me:$LINENO: checking for $ac_func" >&5
22694 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22695 if eval "test \"\${$as_ac_var+set}\" = set"; then
22696 echo $ECHO_N "(cached) $ECHO_C" >&6
22698 cat >conftest.$ac_ext <<_ACEOF
22701 cat confdefs.h >>conftest.$ac_ext
22702 cat >>conftest.$ac_ext <<_ACEOF
22703 /* end confdefs.h. */
22704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22706 #define $ac_func innocuous_$ac_func
22708 /* System header to define __stub macros and hopefully few prototypes,
22709 which can conflict with char $ac_func (); below.
22710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22711 <limits.h> exists even on freestanding compilers. */
22714 # include <limits.h>
22716 # include <assert.h>
22721 /* Override any gcc2 internal prototype to avoid an error. */
22726 /* We use char because int might match the return type of a gcc2
22727 builtin and then its argument prototype would still apply. */
22729 /* The GNU C library defines this for functions which it implements
22730 to always fail with ENOSYS. Some functions are actually named
22731 something starting with __ and the normal name is an alias. */
22732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22735 char (*f) () = $ac_func;
22744 return f != $ac_func;
22749 rm -f conftest.$ac_objext conftest$ac_exeext
22750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22751 (eval $ac_link) 2>conftest.er1
22753 grep -v '^ *+' conftest.er1 >conftest.err
22755 cat conftest.err >&5
22756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22757 (exit $ac_status); } &&
22758 { ac_try='test -z "$ac_c_werror_flag"
22759 || test ! -s conftest.err'
22760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22761 (eval $ac_try) 2>&5
22763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22764 (exit $ac_status); }; } &&
22765 { ac_try='test -s conftest$ac_exeext'
22766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22767 (eval $ac_try) 2>&5
22769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22770 (exit $ac_status); }; }; then
22771 eval "$as_ac_var=yes"
22773 echo "$as_me: failed program was:" >&5
22774 sed 's/^/| /' conftest.$ac_ext >&5
22776 eval "$as_ac_var=no"
22778 rm -f conftest.err conftest.$ac_objext \
22779 conftest$ac_exeext conftest.$ac_ext
22781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22782 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22783 if test `eval echo '${'$as_ac_var'}'` = yes; then
22784 cat >>confdefs.h <<_ACEOF
22785 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22794 for ac_func in closedir opendir readdir
22796 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22797 echo "$as_me:$LINENO: checking for $ac_func" >&5
22798 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22799 if eval "test \"\${$as_ac_var+set}\" = set"; then
22800 echo $ECHO_N "(cached) $ECHO_C" >&6
22802 cat >conftest.$ac_ext <<_ACEOF
22805 cat confdefs.h >>conftest.$ac_ext
22806 cat >>conftest.$ac_ext <<_ACEOF
22807 /* end confdefs.h. */
22808 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22810 #define $ac_func innocuous_$ac_func
22812 /* System header to define __stub macros and hopefully few prototypes,
22813 which can conflict with char $ac_func (); below.
22814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22815 <limits.h> exists even on freestanding compilers. */
22818 # include <limits.h>
22820 # include <assert.h>
22825 /* Override any gcc2 internal prototype to avoid an error. */
22830 /* We use char because int might match the return type of a gcc2
22831 builtin and then its argument prototype would still apply. */
22833 /* The GNU C library defines this for functions which it implements
22834 to always fail with ENOSYS. Some functions are actually named
22835 something starting with __ and the normal name is an alias. */
22836 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22839 char (*f) () = $ac_func;
22848 return f != $ac_func;
22853 rm -f conftest.$ac_objext conftest$ac_exeext
22854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22855 (eval $ac_link) 2>conftest.er1
22857 grep -v '^ *+' conftest.er1 >conftest.err
22859 cat conftest.err >&5
22860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22861 (exit $ac_status); } &&
22862 { ac_try='test -z "$ac_c_werror_flag"
22863 || test ! -s conftest.err'
22864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22865 (eval $ac_try) 2>&5
22867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22868 (exit $ac_status); }; } &&
22869 { ac_try='test -s conftest$ac_exeext'
22870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22871 (eval $ac_try) 2>&5
22873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22874 (exit $ac_status); }; }; then
22875 eval "$as_ac_var=yes"
22877 echo "$as_me: failed program was:" >&5
22878 sed 's/^/| /' conftest.$ac_ext >&5
22880 eval "$as_ac_var=no"
22882 rm -f conftest.err conftest.$ac_objext \
22883 conftest$ac_exeext conftest.$ac_ext
22885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22886 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22887 if test `eval echo '${'$as_ac_var'}'` = yes; then
22888 cat >>confdefs.h <<_ACEOF
22889 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22901 ac_config_files="$ac_config_files Makefile"
22903 cat >confcache <<\_ACEOF
22904 # This file is a shell script that caches the results of configure
22905 # tests run on this system so they can be shared between configure
22906 # scripts and configure runs, see configure's option --config-cache.
22907 # It is not useful on other systems. If it contains results you don't
22908 # want to keep, you may remove or edit it.
22910 # config.status only pays attention to the cache file if you give it
22911 # the --recheck option to rerun configure.
22913 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22914 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22915 # following values.
22919 # The following way of writing the cache mishandles newlines in values,
22920 # but we know of no workaround that is simple, portable, and efficient.
22921 # So, don't put newlines in cache variables' values.
22922 # Ultrix sh set writes to stderr and can't be redirected directly,
22923 # and sets the high bit in the cache file unless we assign to the vars.
22926 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22928 # `set' does not quote correctly, so add quotes (double-quote
22929 # substitution turns \\\\ into \\, and sed turns \\ into \).
22932 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22935 # `set' quotes correctly as required by POSIX, so do not add quotes.
22937 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22944 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22946 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22948 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22949 if test -w $cache_file; then
22950 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22951 cat confcache >$cache_file
22953 echo "not updating unwritable cache $cache_file"
22958 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22959 # Let make expand exec_prefix.
22960 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22962 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22963 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22964 # trailing colons and then remove the whole line if VPATH becomes empty
22965 # (actually we leave an empty line to preserve line numbers).
22966 if test "x$srcdir" = x.; then
22967 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22968 s/:*\$(srcdir):*/:/;
22969 s/:*\${srcdir}:*/:/;
22971 s/^\([^=]*=[ ]*\):*/\1/;
22977 DEFS=-DHAVE_CONFIG_H
22981 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22982 # 1. Remove the extension, and $U if already installed.
22983 ac_i=`echo "$ac_i" |
22984 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22986 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22987 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22989 LIBOBJS=$ac_libobjs
22991 LTLIBOBJS=$ac_ltlibobjs
22994 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22995 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22996 Usually this means the macro was only invoked conditionally." >&5
22997 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22998 Usually this means the macro was only invoked conditionally." >&2;}
22999 { (exit 1); exit 1; }; }
23001 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23002 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23003 Usually this means the macro was only invoked conditionally." >&5
23004 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23005 Usually this means the macro was only invoked conditionally." >&2;}
23006 { (exit 1); exit 1; }; }
23008 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23009 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23010 Usually this means the macro was only invoked conditionally." >&5
23011 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23012 Usually this means the macro was only invoked conditionally." >&2;}
23013 { (exit 1); exit 1; }; }
23015 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23016 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23017 Usually this means the macro was only invoked conditionally." >&5
23018 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23019 Usually this means the macro was only invoked conditionally." >&2;}
23020 { (exit 1); exit 1; }; }
23022 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
23023 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
23024 Usually this means the macro was only invoked conditionally." >&5
23025 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
23026 Usually this means the macro was only invoked conditionally." >&2;}
23027 { (exit 1); exit 1; }; }
23029 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
23030 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
23031 Usually this means the macro was only invoked conditionally." >&5
23032 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
23033 Usually this means the macro was only invoked conditionally." >&2;}
23034 { (exit 1); exit 1; }; }
23037 : ${CONFIG_STATUS=./config.status}
23038 ac_clean_files_save=$ac_clean_files
23039 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23040 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23041 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23042 cat >$CONFIG_STATUS <<_ACEOF
23044 # Generated by $as_me.
23045 # Run this file to recreate the current configuration.
23046 # Compiler output produced by configure, useful for debugging
23047 # configure, is in config.log if it exists.
23050 ac_cs_recheck=false
23052 SHELL=\${CONFIG_SHELL-$SHELL}
23055 cat >>$CONFIG_STATUS <<\_ACEOF
23056 ## --------------------- ##
23057 ## M4sh Initialization. ##
23058 ## --------------------- ##
23060 # Be Bourne compatible
23061 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23064 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23065 # is contrary to our usage. Disable this feature.
23066 alias -g '${1+"$@"}'='"$@"'
23067 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23070 DUALCASE=1; export DUALCASE # for MKS sh
23072 # Support unset when possible.
23073 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23080 # Work around bugs in pre-3.0 UWIN ksh.
23081 $as_unset ENV MAIL MAILPATH
23088 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23089 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23090 LC_TELEPHONE LC_TIME
23092 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23093 eval $as_var=C; export $as_var
23099 # Required to use basename.
23100 if expr a : '\(a\)' >/dev/null 2>&1; then
23106 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23107 as_basename=basename
23113 # Name of the executable.
23114 as_me=`$as_basename "$0" ||
23115 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23116 X"$0" : 'X\(//\)$' \| \
23117 X"$0" : 'X\(/\)$' \| \
23118 . : '\(.\)' 2>/dev/null ||
23120 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23121 /^X\/\(\/\/\)$/{ s//\1/; q; }
23122 /^X\/\(\/\).*/{ s//\1/; q; }
23126 # PATH needs CR, and LINENO needs CR and PATH.
23127 # Avoid depending upon Character Ranges.
23128 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23129 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23130 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23131 as_cr_digits='0123456789'
23132 as_cr_alnum=$as_cr_Letters$as_cr_digits
23134 # The user is always right.
23135 if test "${PATH_SEPARATOR+set}" != set; then
23136 echo "#! /bin/sh" >conf$$.sh
23137 echo "exit 0" >>conf$$.sh
23139 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23148 as_lineno_1=$LINENO
23149 as_lineno_2=$LINENO
23150 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23151 test "x$as_lineno_1" != "x$as_lineno_2" &&
23152 test "x$as_lineno_3" = "x$as_lineno_2" || {
23153 # Find who we are. Look in the path if we contain no path at all
23156 *[\\/]* ) as_myself=$0 ;;
23157 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23158 for as_dir in $PATH
23161 test -z "$as_dir" && as_dir=.
23162 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23167 # We did not find ourselves, most probably we were run as `sh COMMAND'
23168 # in which case we are not to be found in the path.
23169 if test "x$as_myself" = x; then
23172 if test ! -f "$as_myself"; then
23173 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23174 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23175 { (exit 1); exit 1; }; }
23177 case $CONFIG_SHELL in
23179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23180 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23183 test -z "$as_dir" && as_dir=.
23184 for as_base in sh bash ksh sh5; do
23187 if ("$as_dir/$as_base" -c '
23188 as_lineno_1=$LINENO
23189 as_lineno_2=$LINENO
23190 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23191 test "x$as_lineno_1" != "x$as_lineno_2" &&
23192 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23193 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23194 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23195 CONFIG_SHELL=$as_dir/$as_base
23196 export CONFIG_SHELL
23197 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23205 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23206 # uniformly replaced by the line number. The first 'sed' inserts a
23207 # line-number line before each line; the second 'sed' does the real
23208 # work. The second script uses 'N' to pair each line-number line
23209 # with the numbered line, and appends trailing '-' during
23210 # substitution so that $LINENO is not a special case at line end.
23211 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23212 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23213 sed '=' <$as_myself |
23218 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23221 s,^['$as_cr_digits']*\n,,
23222 ' >$as_me.lineno &&
23223 chmod +x $as_me.lineno ||
23224 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23225 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23226 { (exit 1); exit 1; }; }
23228 # Don't try to exec as it changes $[0], causing all sort of problems
23229 # (the dirname of $[0] is not the place where we might find the
23230 # original and so on. Autoconf is especially sensible to this).
23232 # Exit status is that of the last command.
23237 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23238 *c*,-n*) ECHO_N= ECHO_C='
23240 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23241 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23244 if expr a : '\(a\)' >/dev/null 2>&1; then
23250 rm -f conf$$ conf$$.exe conf$$.file
23252 if ln -s conf$$.file conf$$ 2>/dev/null; then
23253 # We could just check for DJGPP; but this test a) works b) is more generic
23254 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23255 if test -f conf$$.exe; then
23256 # Don't use ln at all; we don't have any links
23261 elif ln conf$$.file conf$$ 2>/dev/null; then
23266 rm -f conf$$ conf$$.exe conf$$.file
23268 if mkdir -p . 2>/dev/null; then
23271 test -d ./-p && rmdir ./-p
23275 as_executable_p="test -f"
23277 # Sed expression to map a string onto a valid CPP name.
23278 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23280 # Sed expression to map a string onto a valid variable name.
23281 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23285 # We need space, tab and new line, in precisely that order.
23295 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23296 # report actual input values of CONFIG_FILES etc. instead of their
23297 # values after options handling. Logging --version etc. is OK.
23301 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23302 ## Running $as_me. ##
23307 This file was extended by libltdl $as_me 1.2, which was
23308 generated by GNU Autoconf 2.59. Invocation command line was
23310 CONFIG_FILES = $CONFIG_FILES
23311 CONFIG_HEADERS = $CONFIG_HEADERS
23312 CONFIG_LINKS = $CONFIG_LINKS
23313 CONFIG_COMMANDS = $CONFIG_COMMANDS
23317 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23321 # Files that config.status was made for.
23322 if test -n "$ac_config_files"; then
23323 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23326 if test -n "$ac_config_headers"; then
23327 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23330 if test -n "$ac_config_links"; then
23331 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23334 if test -n "$ac_config_commands"; then
23335 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23338 cat >>$CONFIG_STATUS <<\_ACEOF
23341 \`$as_me' instantiates files from templates according to the
23342 current configuration.
23344 Usage: $0 [OPTIONS] [FILE]...
23346 -h, --help print this help, then exit
23347 -V, --version print version number, then exit
23348 -q, --quiet do not print progress messages
23349 -d, --debug don't remove temporary files
23350 --recheck update $as_me by reconfiguring in the same conditions
23351 --file=FILE[:TEMPLATE]
23352 instantiate the configuration file FILE
23353 --header=FILE[:TEMPLATE]
23354 instantiate the configuration header FILE
23356 Configuration files:
23359 Configuration headers:
23362 Configuration commands:
23365 Report bugs to <bug-autoconf@gnu.org>."
23368 cat >>$CONFIG_STATUS <<_ACEOF
23370 libltdl config.status 1.2
23371 configured by $0, generated by GNU Autoconf 2.59,
23372 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23374 Copyright (C) 2003 Free Software Foundation, Inc.
23375 This config.status script is free software; the Free Software Foundation
23376 gives unlimited permission to copy, distribute and modify it."
23381 cat >>$CONFIG_STATUS <<\_ACEOF
23382 # If no file are specified by the user, then we need to provide default
23383 # value. By we need to know if files were specified by the user.
23389 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23390 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23398 *) # This is not an option, so the user has probably given explicit
23401 ac_need_defaults=false;;
23405 # Handling of the options.
23407 cat >>$CONFIG_STATUS <<\_ACEOF
23408 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23410 --version | --vers* | -V )
23411 echo "$ac_cs_version"; exit 0 ;;
23413 # Conflict between --help and --header
23414 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23415 Try \`$0 --help' for more information." >&5
23416 echo "$as_me: error: ambiguous option: $1
23417 Try \`$0 --help' for more information." >&2;}
23418 { (exit 1); exit 1; }; };;
23419 --help | --hel | -h )
23420 echo "$ac_cs_usage"; exit 0 ;;
23421 --debug | --d* | -d )
23423 --file | --fil | --fi | --f )
23425 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23426 ac_need_defaults=false;;
23427 --header | --heade | --head | --hea )
23429 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23430 ac_need_defaults=false;;
23431 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23432 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23435 # This is an error.
23436 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23437 Try \`$0 --help' for more information." >&5
23438 echo "$as_me: error: unrecognized option: $1
23439 Try \`$0 --help' for more information." >&2;}
23440 { (exit 1); exit 1; }; } ;;
23442 *) ac_config_targets="$ac_config_targets $1" ;;
23448 ac_configure_extra_args=
23450 if $ac_cs_silent; then
23452 ac_configure_extra_args="$ac_configure_extra_args --silent"
23456 cat >>$CONFIG_STATUS <<_ACEOF
23457 if \$ac_cs_recheck; then
23458 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23459 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23464 cat >>$CONFIG_STATUS <<_ACEOF
23466 # INIT-COMMANDS section.
23473 with_multisubdir="$with_multisubdir"
23474 with_multisrctop="$with_multisrctop"
23475 with_target_subdir="$with_target_subdir"
23476 ac_configure_args="${multilib_arg} ${ac_configure_args}"
23477 multi_basedir="$multi_basedir"
23478 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
23480 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23486 cat >>$CONFIG_STATUS <<\_ACEOF
23487 for ac_config_target in $ac_config_targets
23489 case "$ac_config_target" in
23490 # Handling of arguments.
23491 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23492 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
23493 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23494 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
23495 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23496 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23497 { (exit 1); exit 1; }; };;
23501 # If the user did not use the arguments to specify the items to instantiate,
23502 # then the envvar interface is used. Set only those that are not.
23503 # We use the long form for the default assignment because of an extremely
23504 # bizarre bug on SunOS 4.1.3.
23505 if $ac_need_defaults; then
23506 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23507 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23508 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23511 # Have a temporary directory for convenience. Make it in the build tree
23512 # simply because there is no reason to put it here, and in addition,
23513 # creating and moving files from /tmp can sometimes cause problems.
23514 # Create a temporary directory, and hook for its removal unless debugging.
23517 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23518 trap '{ (exit 1); exit 1; }' 1 2 13 15
23521 # Create a (secure) tmp directory for tmp files.
23524 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23525 test -n "$tmp" && test -d "$tmp"
23528 tmp=./confstat$$-$RANDOM
23529 (umask 077 && mkdir $tmp)
23532 echo "$me: cannot create a temporary directory in ." >&2
23533 { (exit 1); exit 1; }
23538 cat >>$CONFIG_STATUS <<_ACEOF
23541 # CONFIG_FILES section.
23544 # No need to generate the scripts if there are no CONFIG_FILES.
23545 # This happens for instance when ./config.status config.h
23546 if test -n "\$CONFIG_FILES"; then
23547 # Protect against being on the right side of a sed subst in config.status.
23548 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23549 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23550 s,@SHELL@,$SHELL,;t t
23551 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23552 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23553 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23554 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23555 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23556 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23557 s,@exec_prefix@,$exec_prefix,;t t
23558 s,@prefix@,$prefix,;t t
23559 s,@program_transform_name@,$program_transform_name,;t t
23560 s,@bindir@,$bindir,;t t
23561 s,@sbindir@,$sbindir,;t t
23562 s,@libexecdir@,$libexecdir,;t t
23563 s,@datadir@,$datadir,;t t
23564 s,@sysconfdir@,$sysconfdir,;t t
23565 s,@sharedstatedir@,$sharedstatedir,;t t
23566 s,@localstatedir@,$localstatedir,;t t
23567 s,@libdir@,$libdir,;t t
23568 s,@includedir@,$includedir,;t t
23569 s,@oldincludedir@,$oldincludedir,;t t
23570 s,@infodir@,$infodir,;t t
23571 s,@mandir@,$mandir,;t t
23572 s,@build_alias@,$build_alias,;t t
23573 s,@host_alias@,$host_alias,;t t
23574 s,@target_alias@,$target_alias,;t t
23575 s,@DEFS@,$DEFS,;t t
23576 s,@ECHO_C@,$ECHO_C,;t t
23577 s,@ECHO_N@,$ECHO_N,;t t
23578 s,@ECHO_T@,$ECHO_T,;t t
23579 s,@LIBS@,$LIBS,;t t
23580 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23581 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23582 s,@MAINT@,$MAINT,;t t
23583 s,@multi_basedir@,$multi_basedir,;t t
23584 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23585 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23586 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23587 s,@CYGPATH_W@,$CYGPATH_W,;t t
23588 s,@PACKAGE@,$PACKAGE,;t t
23589 s,@VERSION@,$VERSION,;t t
23590 s,@ACLOCAL@,$ACLOCAL,;t t
23591 s,@AUTOCONF@,$AUTOCONF,;t t
23592 s,@AUTOMAKE@,$AUTOMAKE,;t t
23593 s,@AUTOHEADER@,$AUTOHEADER,;t t
23594 s,@MAKEINFO@,$MAKEINFO,;t t
23595 s,@install_sh@,$install_sh,;t t
23596 s,@STRIP@,$STRIP,;t t
23597 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23598 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23599 s,@mkdir_p@,$mkdir_p,;t t
23601 s,@SET_MAKE@,$SET_MAKE,;t t
23602 s,@am__leading_dot@,$am__leading_dot,;t t
23603 s,@AMTAR@,$AMTAR,;t t
23604 s,@am__tar@,$am__tar,;t t
23605 s,@am__untar@,$am__untar,;t t
23607 s,@CFLAGS@,$CFLAGS,;t t
23608 s,@LDFLAGS@,$LDFLAGS,;t t
23609 s,@CPPFLAGS@,$CPPFLAGS,;t t
23610 s,@ac_ct_CC@,$ac_ct_CC,;t t
23611 s,@EXEEXT@,$EXEEXT,;t t
23612 s,@OBJEXT@,$OBJEXT,;t t
23613 s,@DEPDIR@,$DEPDIR,;t t
23614 s,@am__include@,$am__include,;t t
23615 s,@am__quote@,$am__quote,;t t
23616 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23617 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23618 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23619 s,@CCDEPMODE@,$CCDEPMODE,;t t
23620 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23621 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
23622 s,@build@,$build,;t t
23623 s,@build_cpu@,$build_cpu,;t t
23624 s,@build_vendor@,$build_vendor,;t t
23625 s,@build_os@,$build_os,;t t
23626 s,@host@,$host,;t t
23627 s,@host_cpu@,$host_cpu,;t t
23628 s,@host_vendor@,$host_vendor,;t t
23629 s,@host_os@,$host_os,;t t
23630 s,@EGREP@,$EGREP,;t t
23631 s,@LN_S@,$LN_S,;t t
23632 s,@ECHO@,$ECHO,;t t
23634 s,@ac_ct_AR@,$ac_ct_AR,;t t
23635 s,@RANLIB@,$RANLIB,;t t
23636 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23637 s,@DLLTOOL@,$DLLTOOL,;t t
23638 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
23640 s,@ac_ct_AS@,$ac_ct_AS,;t t
23641 s,@OBJDUMP@,$OBJDUMP,;t t
23642 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
23645 s,@CXXFLAGS@,$CXXFLAGS,;t t
23646 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23647 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
23648 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
23649 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
23650 s,@CXXCPP@,$CXXCPP,;t t
23652 s,@FFLAGS@,$FFLAGS,;t t
23653 s,@ac_ct_F77@,$ac_ct_F77,;t t
23654 s,@LIBTOOL@,$LIBTOOL,;t t
23655 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
23656 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
23657 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
23658 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
23659 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
23660 s,@LIBADD_DL@,$LIBADD_DL,;t t
23661 s,@LIBOBJS@,$LIBOBJS,;t t
23662 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23667 cat >>$CONFIG_STATUS <<\_ACEOF
23668 # Split the substitutions into bite-sized pieces for seds with
23669 # small command number limits, like on Digital OSF/1 and HP-UX.
23670 ac_max_sed_lines=48
23671 ac_sed_frag=1 # Number of current file.
23672 ac_beg=1 # First line for current file.
23673 ac_end=$ac_max_sed_lines # Line after last line for current file.
23676 while $ac_more_lines; do
23677 if test $ac_beg -gt 1; then
23678 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23680 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23682 if test ! -s $tmp/subs.frag; then
23683 ac_more_lines=false
23685 # The purpose of the label and of the branching condition is to
23686 # speed up the sed processing (if there are no `@' at all, there
23687 # is no need to browse any of the substitutions).
23688 # These are the two extra sed commands mentioned above.
23690 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23691 if test -z "$ac_sed_cmds"; then
23692 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23694 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23696 ac_sed_frag=`expr $ac_sed_frag + 1`
23698 ac_end=`expr $ac_end + $ac_max_sed_lines`
23701 if test -z "$ac_sed_cmds"; then
23704 fi # test -n "$CONFIG_FILES"
23707 cat >>$CONFIG_STATUS <<\_ACEOF
23708 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23709 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23711 - | *:- | *:-:* ) # input from stdin
23713 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23714 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23715 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23716 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23717 * ) ac_file_in=$ac_file.in ;;
23720 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23721 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23722 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23723 X"$ac_file" : 'X\(//\)[^/]' \| \
23724 X"$ac_file" : 'X\(//\)$' \| \
23725 X"$ac_file" : 'X\(/\)' \| \
23726 . : '\(.\)' 2>/dev/null ||
23728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23729 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23730 /^X\(\/\/\)$/{ s//\1/; q; }
23731 /^X\(\/\).*/{ s//\1/; q; }
23733 { if $as_mkdir_p; then
23738 while test ! -d "$as_dir"; do
23739 as_dirs="$as_dir $as_dirs"
23740 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23741 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23742 X"$as_dir" : 'X\(//\)[^/]' \| \
23743 X"$as_dir" : 'X\(//\)$' \| \
23744 X"$as_dir" : 'X\(/\)' \| \
23745 . : '\(.\)' 2>/dev/null ||
23747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23748 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23749 /^X\(\/\/\)$/{ s//\1/; q; }
23750 /^X\(\/\).*/{ s//\1/; q; }
23753 test ! -n "$as_dirs" || mkdir $as_dirs
23754 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23755 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23756 { (exit 1); exit 1; }; }; }
23760 if test "$ac_dir" != .; then
23761 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23762 # A "../" for each directory in $ac_dir_suffix.
23763 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23765 ac_dir_suffix= ac_top_builddir=
23769 .) # No --srcdir option. We are building in place.
23771 if test -z "$ac_top_builddir"; then
23774 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23776 [\\/]* | ?:[\\/]* ) # Absolute path.
23777 ac_srcdir=$srcdir$ac_dir_suffix;
23778 ac_top_srcdir=$srcdir ;;
23779 *) # Relative path.
23780 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23781 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23784 # Do not use `cd foo && pwd` to compute absolute paths, because
23785 # the directories may not exist.
23787 .) ac_abs_builddir="$ac_dir";;
23790 .) ac_abs_builddir=`pwd`;;
23791 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23792 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23795 case $ac_abs_builddir in
23796 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23798 case ${ac_top_builddir}. in
23799 .) ac_abs_top_builddir=$ac_abs_builddir;;
23800 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23801 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23804 case $ac_abs_builddir in
23805 .) ac_abs_srcdir=$ac_srcdir;;
23808 .) ac_abs_srcdir=$ac_abs_builddir;;
23809 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23810 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23813 case $ac_abs_builddir in
23814 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23816 case $ac_top_srcdir in
23817 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23818 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23819 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23825 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23826 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23829 if test x"$ac_file" != x-; then
23830 { echo "$as_me:$LINENO: creating $ac_file" >&5
23831 echo "$as_me: creating $ac_file" >&6;}
23834 # Let's still pretend it is `configure' which instantiates (i.e., don't
23835 # use $as_me), people would be surprised to read:
23836 # /* config.h. Generated by config.status. */
23837 if test x"$ac_file" = x-; then
23840 configure_input="$ac_file. "
23842 configure_input=$configure_input"Generated from `echo $ac_file_in |
23843 sed 's,.*/,,'` by configure."
23845 # First look for the input files in the build tree, otherwise in the
23847 ac_file_inputs=`IFS=:
23848 for f in $ac_file_in; do
23850 -) echo $tmp/stdin ;;
23852 # Absolute (can't be DOS-style, as IFS=:)
23853 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23854 echo "$as_me: error: cannot find input file: $f" >&2;}
23855 { (exit 1); exit 1; }; }
23858 if test -f "$f"; then
23861 elif test -f "$srcdir/$f"; then
23866 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23867 echo "$as_me: error: cannot find input file: $f" >&2;}
23868 { (exit 1); exit 1; }; }
23871 done` || { (exit 1); exit 1; }
23873 cat >>$CONFIG_STATUS <<_ACEOF
23877 cat >>$CONFIG_STATUS <<\_ACEOF
23879 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23880 s,@configure_input@,$configure_input,;t t
23881 s,@srcdir@,$ac_srcdir,;t t
23882 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23883 s,@top_srcdir@,$ac_top_srcdir,;t t
23884 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23885 s,@builddir@,$ac_builddir,;t t
23886 s,@abs_builddir@,$ac_abs_builddir,;t t
23887 s,@top_builddir@,$ac_top_builddir,;t t
23888 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23889 s,@INSTALL@,$ac_INSTALL,;t t
23890 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23892 if test x"$ac_file" != x-; then
23893 mv $tmp/out $ac_file
23901 cat >>$CONFIG_STATUS <<\_ACEOF
23904 # CONFIG_HEADER section.
23907 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23908 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23910 # ac_d sets the value in "#define NAME VALUE" lines.
23911 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23912 ac_dB='[ ].*$,\1#\2'
23915 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23916 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23917 ac_uB='$,\1#\2define\3'
23921 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23922 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23924 - | *:- | *:-:* ) # input from stdin
23926 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23927 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23928 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23929 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23930 * ) ac_file_in=$ac_file.in ;;
23933 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23934 echo "$as_me: creating $ac_file" >&6;}
23936 # First look for the input files in the build tree, otherwise in the
23938 ac_file_inputs=`IFS=:
23939 for f in $ac_file_in; do
23941 -) echo $tmp/stdin ;;
23943 # Absolute (can't be DOS-style, as IFS=:)
23944 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23945 echo "$as_me: error: cannot find input file: $f" >&2;}
23946 { (exit 1); exit 1; }; }
23947 # Do quote $f, to prevent DOS paths from being IFS'd.
23950 if test -f "$f"; then
23953 elif test -f "$srcdir/$f"; then
23958 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23959 echo "$as_me: error: cannot find input file: $f" >&2;}
23960 { (exit 1); exit 1; }; }
23963 done` || { (exit 1); exit 1; }
23964 # Remove the trailing spaces.
23965 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23969 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23970 # `conftest.undefs', that substitutes the proper values into
23971 # config.h.in to produce config.h. The first handles `#define'
23972 # templates, and the second `#undef' templates.
23973 # And first: Protect against being on the right side of a sed subst in
23974 # config.status. Protect against being in an unquoted here document
23975 # in config.status.
23976 rm -f conftest.defines conftest.undefs
23977 # Using a here document instead of a string reduces the quoting nightmare.
23978 # Putting comments in sed scripts is not portable.
23980 # `end' is used to avoid that the second main sed command (meant for
23981 # 0-ary CPP macros) applies to n-ary macro definitions.
23982 # See the Autoconf documentation for `clear'.
23983 cat >confdef2sed.sed <<\_ACEOF
23988 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23990 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23993 # If some macros were called several times there might be several times
23994 # the same #defines, which is useless. Nevertheless, we may not want to
23995 # sort them, since we want the *last* AC-DEFINE to be honored.
23996 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23997 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23998 rm -f confdef2sed.sed
24000 # This sed command replaces #undef with comments. This is necessary, for
24001 # example, in the case of _POSIX_SOURCE, which is predefined and required
24002 # on some systems where configure will not decide to define it.
24003 cat >>conftest.undefs <<\_ACEOF
24004 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24007 # Break up conftest.defines because some shells have a limit on the size
24008 # of here documents, and old seds have small limits too (100 cmds).
24009 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24010 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24011 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24012 echo ' :' >>$CONFIG_STATUS
24013 rm -f conftest.tail
24014 while grep . conftest.defines >/dev/null
24016 # Write a limited-size here document to $tmp/defines.sed.
24017 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24018 # Speed up: don't consider the non `#define' lines.
24019 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24020 # Work around the forget-to-reset-the-flag bug.
24021 echo 't clr' >>$CONFIG_STATUS
24022 echo ': clr' >>$CONFIG_STATUS
24023 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24025 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24027 mv $tmp/out $tmp/in
24029 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24030 rm -f conftest.defines
24031 mv conftest.tail conftest.defines
24033 rm -f conftest.defines
24034 echo ' fi # grep' >>$CONFIG_STATUS
24035 echo >>$CONFIG_STATUS
24037 # Break up conftest.undefs because some shells have a limit on the size
24038 # of here documents, and old seds have small limits too (100 cmds).
24039 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24040 rm -f conftest.tail
24041 while grep . conftest.undefs >/dev/null
24043 # Write a limited-size here document to $tmp/undefs.sed.
24044 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24045 # Speed up: don't consider the non `#undef'
24046 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24047 # Work around the forget-to-reset-the-flag bug.
24048 echo 't clr' >>$CONFIG_STATUS
24049 echo ': clr' >>$CONFIG_STATUS
24050 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24052 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24054 mv $tmp/out $tmp/in
24056 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24057 rm -f conftest.undefs
24058 mv conftest.tail conftest.undefs
24060 rm -f conftest.undefs
24062 cat >>$CONFIG_STATUS <<\_ACEOF
24063 # Let's still pretend it is `configure' which instantiates (i.e., don't
24064 # use $as_me), people would be surprised to read:
24065 # /* config.h. Generated by config.status. */
24066 if test x"$ac_file" = x-; then
24067 echo "/* Generated by configure. */" >$tmp/config.h
24069 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24071 cat $tmp/in >>$tmp/config.h
24073 if test x"$ac_file" != x-; then
24074 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24075 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24076 echo "$as_me: $ac_file is unchanged" >&6;}
24078 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24079 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24080 X"$ac_file" : 'X\(//\)[^/]' \| \
24081 X"$ac_file" : 'X\(//\)$' \| \
24082 X"$ac_file" : 'X\(/\)' \| \
24083 . : '\(.\)' 2>/dev/null ||
24085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24086 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24087 /^X\(\/\/\)$/{ s//\1/; q; }
24088 /^X\(\/\).*/{ s//\1/; q; }
24090 { if $as_mkdir_p; then
24095 while test ! -d "$as_dir"; do
24096 as_dirs="$as_dir $as_dirs"
24097 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24098 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24099 X"$as_dir" : 'X\(//\)[^/]' \| \
24100 X"$as_dir" : 'X\(//\)$' \| \
24101 X"$as_dir" : 'X\(/\)' \| \
24102 . : '\(.\)' 2>/dev/null ||
24104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24105 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24106 /^X\(\/\/\)$/{ s//\1/; q; }
24107 /^X\(\/\).*/{ s//\1/; q; }
24110 test ! -n "$as_dirs" || mkdir $as_dirs
24111 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24112 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24113 { (exit 1); exit 1; }; }; }
24116 mv $tmp/config.h $ac_file
24120 rm -f $tmp/config.h
24122 # Compute $ac_file's index in $config_headers.
24124 for _am_header in $config_headers :; do
24125 case $_am_header in
24126 $ac_file | $ac_file:* )
24129 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24132 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
24133 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24134 X$ac_file : 'X\(//\)[^/]' \| \
24135 X$ac_file : 'X\(//\)$' \| \
24136 X$ac_file : 'X\(/\)' \| \
24137 . : '\(.\)' 2>/dev/null ||
24139 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24140 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24141 /^X\(\/\/\)$/{ s//\1/; q; }
24142 /^X\(\/\).*/{ s//\1/; q; }
24143 s/.*/./; q'`/stamp-h$_am_stamp_count
24146 cat >>$CONFIG_STATUS <<\_ACEOF
24149 # CONFIG_COMMANDS section.
24151 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24152 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24153 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24154 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24155 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24156 X"$ac_dest" : 'X\(//\)[^/]' \| \
24157 X"$ac_dest" : 'X\(//\)$' \| \
24158 X"$ac_dest" : 'X\(/\)' \| \
24159 . : '\(.\)' 2>/dev/null ||
24161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24162 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24163 /^X\(\/\/\)$/{ s//\1/; q; }
24164 /^X\(\/\).*/{ s//\1/; q; }
24166 { if $as_mkdir_p; then
24171 while test ! -d "$as_dir"; do
24172 as_dirs="$as_dir $as_dirs"
24173 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24174 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24175 X"$as_dir" : 'X\(//\)[^/]' \| \
24176 X"$as_dir" : 'X\(//\)$' \| \
24177 X"$as_dir" : 'X\(/\)' \| \
24178 . : '\(.\)' 2>/dev/null ||
24180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24181 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24182 /^X\(\/\/\)$/{ s//\1/; q; }
24183 /^X\(\/\).*/{ s//\1/; q; }
24186 test ! -n "$as_dirs" || mkdir $as_dirs
24187 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24188 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24189 { (exit 1); exit 1; }; }; }
24193 if test "$ac_dir" != .; then
24194 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24195 # A "../" for each directory in $ac_dir_suffix.
24196 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24198 ac_dir_suffix= ac_top_builddir=
24202 .) # No --srcdir option. We are building in place.
24204 if test -z "$ac_top_builddir"; then
24207 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24209 [\\/]* | ?:[\\/]* ) # Absolute path.
24210 ac_srcdir=$srcdir$ac_dir_suffix;
24211 ac_top_srcdir=$srcdir ;;
24212 *) # Relative path.
24213 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24214 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24217 # Do not use `cd foo && pwd` to compute absolute paths, because
24218 # the directories may not exist.
24220 .) ac_abs_builddir="$ac_dir";;
24223 .) ac_abs_builddir=`pwd`;;
24224 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24225 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24228 case $ac_abs_builddir in
24229 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24231 case ${ac_top_builddir}. in
24232 .) ac_abs_top_builddir=$ac_abs_builddir;;
24233 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24234 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24237 case $ac_abs_builddir in
24238 .) ac_abs_srcdir=$ac_srcdir;;
24241 .) ac_abs_srcdir=$ac_abs_builddir;;
24242 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24243 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24246 case $ac_abs_builddir in
24247 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24249 case $ac_top_srcdir in
24250 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24251 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24252 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24257 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24258 echo "$as_me: executing $ac_dest commands" >&6;}
24261 # Only add multilib support code if we just rebuilt the top-level
24263 case " $CONFIG_FILES " in
24265 ac_file=Makefile . ${multi_basedir}/config-ml.in
24268 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24269 # Strip MF so we end up with the name of the file.
24270 mf=`echo "$mf" | sed -e 's/:.*$//'`
24271 # Check whether this is an Automake generated Makefile or not.
24272 # We used to match only the files named `Makefile.in', but
24273 # some people rename them; so instead we look at the file content.
24274 # Grep'ing the first line is not enough: some people post-process
24275 # each Makefile.in and add a new line on top of each file to say so.
24276 # So let's grep whole file.
24277 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24278 dirpart=`(dirname "$mf") 2>/dev/null ||
24279 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24280 X"$mf" : 'X\(//\)[^/]' \| \
24281 X"$mf" : 'X\(//\)$' \| \
24282 X"$mf" : 'X\(/\)' \| \
24283 . : '\(.\)' 2>/dev/null ||
24285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24286 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24287 /^X\(\/\/\)$/{ s//\1/; q; }
24288 /^X\(\/\).*/{ s//\1/; q; }
24293 # Extract the definition of DEPDIR, am__include, and am__quote
24294 # from the Makefile without running `make'.
24295 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24296 test -z "$DEPDIR" && continue
24297 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24298 test -z "am__include" && continue
24299 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24300 # When using ansi2knr, U may be empty or an underscore; expand it
24301 U=`sed -n 's/^U = //p' < "$mf"`
24302 # Find all dependency output files, they are included files with
24303 # $(DEPDIR) in their names. We invoke sed twice because it is the
24304 # simplest approach to changing $(DEPDIR) to its actual value in the
24306 for file in `sed -n "
24307 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24308 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24309 # Make sure the directory exists.
24310 test -f "$dirpart/$file" && continue
24311 fdir=`(dirname "$file") 2>/dev/null ||
24312 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24313 X"$file" : 'X\(//\)[^/]' \| \
24314 X"$file" : 'X\(//\)$' \| \
24315 X"$file" : 'X\(/\)' \| \
24316 . : '\(.\)' 2>/dev/null ||
24318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24319 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24320 /^X\(\/\/\)$/{ s//\1/; q; }
24321 /^X\(\/\).*/{ s//\1/; q; }
24323 { if $as_mkdir_p; then
24324 mkdir -p $dirpart/$fdir
24326 as_dir=$dirpart/$fdir
24328 while test ! -d "$as_dir"; do
24329 as_dirs="$as_dir $as_dirs"
24330 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24331 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24332 X"$as_dir" : 'X\(//\)[^/]' \| \
24333 X"$as_dir" : 'X\(//\)$' \| \
24334 X"$as_dir" : 'X\(/\)' \| \
24335 . : '\(.\)' 2>/dev/null ||
24337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24338 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24339 /^X\(\/\/\)$/{ s//\1/; q; }
24340 /^X\(\/\).*/{ s//\1/; q; }
24343 test ! -n "$as_dirs" || mkdir $as_dirs
24344 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
24345 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
24346 { (exit 1); exit 1; }; }; }
24348 # echo "creating $dirpart/$file"
24349 echo '# dummy' > "$dirpart/$file"
24357 cat >>$CONFIG_STATUS <<\_ACEOF
24359 { (exit 0); exit 0; }
24361 chmod +x $CONFIG_STATUS
24362 ac_clean_files=$ac_clean_files_save
24365 # configure is writing to config.log, and then calls config.status.
24366 # config.status does its own redirection, appending to config.log.
24367 # Unfortunately, on DOS this fails, as config.log is still kept open
24368 # by configure, so config.status won't be able to write to it; its
24369 # output is simply discarded. So we exec the FD to /dev/null,
24370 # effectively closing config.log, so it can be properly (re)opened and
24371 # appended to by config.status. When coming back to configure, we
24372 # need to make the FD available again.
24373 if test "$no_create" != yes; then
24375 ac_config_status_args=
24376 test "$silent" = yes &&
24377 ac_config_status_args="$ac_config_status_args --quiet"
24379 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24381 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24382 # would make configure fail if this is the last instruction.
24383 $ac_cs_success || { (exit 1); exit 1; }