2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289 echo_test_string="`eval $cmd`" &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
306 # So, first we look for a working echo in the user's PATH.
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
359 # maybe with a smaller string...
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 # Oops. We lost completely, so just stick with echo.
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 tagnames=${tagnames+${tagnames},}CXX
396 tagnames=${tagnames+${tagnames},}F77
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
414 SHELL=${CONFIG_SHELL-/bin/sh}
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
421 # Identity of this package.
428 ac_unique_file="examples/main.cpp"
429 # Factoring default headers for most tests.
430 ac_includes_default="\
433 # include <sys/types.h>
436 # include <sys/stat.h>
447 # if !STDC_HEADERS && HAVE_MEMORY_H
453 # include <strings.h>
456 # include <inttypes.h>
466 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS LTLIBOBJS'
469 # Initialize some variables set by options.
471 ac_init_version=false
472 # The variables have the same names as the options, with
473 # dashes changed to underlines.
481 program_transform_name=s,x,x,
489 # Installation directory options.
490 # These are left unexpanded so users can "make install exec_prefix=/foo"
491 # and all the variables that are supposed to be based on exec_prefix
492 # by default will actually change.
493 # Use braces instead of parens because sh, perl, etc. also accept them.
494 bindir='${exec_prefix}/bin'
495 sbindir='${exec_prefix}/sbin'
496 libexecdir='${exec_prefix}/libexec'
497 datadir='${prefix}/share'
498 sysconfdir='${prefix}/etc'
499 sharedstatedir='${prefix}/com'
500 localstatedir='${prefix}/var'
501 libdir='${exec_prefix}/lib'
502 includedir='${prefix}/include'
503 oldincludedir='/usr/include'
504 infodir='${prefix}/info'
505 mandir='${prefix}/man'
510 # If the previous option needs an argument, assign it.
511 if test -n "$ac_prev"; then
512 eval "$ac_prev=\$ac_option"
517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519 # Accept the important Cygnus configure options, so we can diagnose typos.
523 -bindir | --bindir | --bindi | --bind | --bin | --bi)
525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528 -build | --build | --buil | --bui | --bu)
529 ac_prev=build_alias ;;
530 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531 build_alias=$ac_optarg ;;
533 -cache-file | --cache-file | --cache-fil | --cache-fi \
534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535 ac_prev=cache_file ;;
536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538 cache_file=$ac_optarg ;;
541 cache_file=config.cache ;;
543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547 datadir=$ac_optarg ;;
549 -disable-* | --disable-*)
550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554 { (exit 1); exit 1; }; }
555 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556 eval "enable_$ac_feature=no" ;;
558 -enable-* | --enable-*)
559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560 # Reject names that are not valid shell variable names.
561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563 { (exit 1); exit 1; }; }
564 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569 eval "enable_$ac_feature='$ac_optarg'" ;;
571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573 | --exec | --exe | --ex)
574 ac_prev=exec_prefix ;;
575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577 | --exec=* | --exe=* | --ex=*)
578 exec_prefix=$ac_optarg ;;
580 -gas | --gas | --ga | --g)
581 # Obsolete; use --with-gas.
584 -help | --help | --hel | --he | -h)
586 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587 ac_init_help=recursive ;;
588 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589 ac_init_help=short ;;
591 -host | --host | --hos | --ho)
592 ac_prev=host_alias ;;
593 -host=* | --host=* | --hos=* | --ho=*)
594 host_alias=$ac_optarg ;;
596 -includedir | --includedir | --includedi | --included | --include \
597 | --includ | --inclu | --incl | --inc)
598 ac_prev=includedir ;;
599 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600 | --includ=* | --inclu=* | --incl=* | --inc=*)
601 includedir=$ac_optarg ;;
603 -infodir | --infodir | --infodi | --infod | --info | --inf)
605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606 infodir=$ac_optarg ;;
608 -libdir | --libdir | --libdi | --libd)
610 -libdir=* | --libdir=* | --libdi=* | --libd=*)
613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614 | --libexe | --libex | --libe)
615 ac_prev=libexecdir ;;
616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617 | --libexe=* | --libex=* | --libe=*)
618 libexecdir=$ac_optarg ;;
620 -localstatedir | --localstatedir | --localstatedi | --localstated \
621 | --localstate | --localstat | --localsta | --localst \
622 | --locals | --local | --loca | --loc | --lo)
623 ac_prev=localstatedir ;;
624 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627 localstatedir=$ac_optarg ;;
629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635 # Obsolete; use --without-fp.
638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639 | --no-cr | --no-c | -n)
642 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648 | --oldin | --oldi | --old | --ol | --o)
649 ac_prev=oldincludedir ;;
650 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653 oldincludedir=$ac_optarg ;;
655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660 -program-prefix | --program-prefix | --program-prefi | --program-pref \
661 | --program-pre | --program-pr | --program-p)
662 ac_prev=program_prefix ;;
663 -program-prefix=* | --program-prefix=* | --program-prefi=* \
664 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665 program_prefix=$ac_optarg ;;
667 -program-suffix | --program-suffix | --program-suffi | --program-suff \
668 | --program-suf | --program-su | --program-s)
669 ac_prev=program_suffix ;;
670 -program-suffix=* | --program-suffix=* | --program-suffi=* \
671 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672 program_suffix=$ac_optarg ;;
674 -program-transform-name | --program-transform-name \
675 | --program-transform-nam | --program-transform-na \
676 | --program-transform-n | --program-transform- \
677 | --program-transform | --program-transfor \
678 | --program-transfo | --program-transf \
679 | --program-trans | --program-tran \
680 | --progr-tra | --program-tr | --program-t)
681 ac_prev=program_transform_name ;;
682 -program-transform-name=* | --program-transform-name=* \
683 | --program-transform-nam=* | --program-transform-na=* \
684 | --program-transform-n=* | --program-transform-=* \
685 | --program-transform=* | --program-transfor=* \
686 | --program-transfo=* | --program-transf=* \
687 | --program-trans=* | --program-tran=* \
688 | --progr-tra=* | --program-tr=* | --program-t=*)
689 program_transform_name=$ac_optarg ;;
691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692 | -silent | --silent | --silen | --sile | --sil)
695 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699 sbindir=$ac_optarg ;;
701 -sharedstatedir | --sharedstatedir | --sharedstatedi \
702 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703 | --sharedst | --shareds | --shared | --share | --shar \
705 ac_prev=sharedstatedir ;;
706 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710 sharedstatedir=$ac_optarg ;;
712 -site | --site | --sit)
714 -site=* | --site=* | --sit=*)
717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723 | --syscon | --sysco | --sysc | --sys | --sy)
724 ac_prev=sysconfdir ;;
725 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727 sysconfdir=$ac_optarg ;;
729 -target | --target | --targe | --targ | --tar | --ta | --t)
730 ac_prev=target_alias ;;
731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732 target_alias=$ac_optarg ;;
734 -v | -verbose | --verbose | --verbos | --verbo | --verb)
737 -version | --version | --versio | --versi | --vers | -V)
741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742 # Reject names that are not valid shell variable names.
743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744 { echo "$as_me: error: invalid package name: $ac_package" >&2
745 { (exit 1); exit 1; }; }
746 ac_package=`echo $ac_package| sed 's/-/_/g'`
748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751 eval "with_$ac_package='$ac_optarg'" ;;
753 -without-* | --without-*)
754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package | sed 's/-/_/g'`
760 eval "with_$ac_package=no" ;;
763 # Obsolete; use --with-x.
766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767 | --x-incl | --x-inc | --x-in | --x-i)
768 ac_prev=x_includes ;;
769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771 x_includes=$ac_optarg ;;
773 -x-libraries | --x-libraries | --x-librarie | --x-librari \
774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775 ac_prev=x_libraries ;;
776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778 x_libraries=$ac_optarg ;;
780 -*) { echo "$as_me: error: unrecognized option: $ac_option
781 Try \`$0 --help' for more information." >&2
782 { (exit 1); exit 1; }; }
786 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787 # Reject names that are not valid shell variable names.
788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790 { (exit 1); exit 1; }; }
791 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792 eval "$ac_envvar='$ac_optarg'"
796 # FIXME: should be removed in autoconf 3.0.
797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
806 if test -n "$ac_prev"; then
807 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808 { echo "$as_me: error: missing argument to $ac_option" >&2
809 { (exit 1); exit 1; }; }
812 # Be sure to have absolute paths.
813 for ac_var in exec_prefix prefix
815 eval ac_val=$`echo $ac_var`
817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819 { (exit 1); exit 1; }; };;
823 # Be sure to have absolute paths.
824 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825 localstatedir libdir includedir oldincludedir infodir mandir
827 eval ac_val=$`echo $ac_var`
829 [\\/$]* | ?:[\\/]* ) ;;
830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831 { (exit 1); exit 1; }; };;
835 # There might be people who depend on the old broken behavior: `$host'
836 # used to hold the argument of --host etc.
837 # FIXME: To remove some day.
842 # FIXME: To remove some day.
843 if test "x$host_alias" != x; then
844 if test "x$build_alias" = x; then
845 cross_compiling=maybe
846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847 If a cross compiler is detected then cross compile mode will be used." >&2
848 elif test "x$build_alias" != "x$host_alias"; then
854 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856 test "$silent" = yes && exec 6>/dev/null
859 # Find the source files, if location was not specified.
860 if test -z "$srcdir"; then
861 ac_srcdir_defaulted=yes
862 # Try the directory containing this script, then its parent.
863 ac_confdir=`(dirname "$0") 2>/dev/null ||
864 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865 X"$0" : 'X\(//\)[^/]' \| \
866 X"$0" : 'X\(//\)$' \| \
867 X"$0" : 'X\(/\)' \| \
868 . : '\(.\)' 2>/dev/null ||
870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872 /^X\(\/\/\)$/{ s//\1/; q; }
873 /^X\(\/\).*/{ s//\1/; q; }
876 if test ! -r $srcdir/$ac_unique_file; then
880 ac_srcdir_defaulted=no
882 if test ! -r $srcdir/$ac_unique_file; then
883 if test "$ac_srcdir_defaulted" = yes; then
884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885 { (exit 1); exit 1; }; }
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888 { (exit 1); exit 1; }; }
891 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893 { (exit 1); exit 1; }; }
894 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895 ac_env_build_alias_set=${build_alias+set}
896 ac_env_build_alias_value=$build_alias
897 ac_cv_env_build_alias_set=${build_alias+set}
898 ac_cv_env_build_alias_value=$build_alias
899 ac_env_host_alias_set=${host_alias+set}
900 ac_env_host_alias_value=$host_alias
901 ac_cv_env_host_alias_set=${host_alias+set}
902 ac_cv_env_host_alias_value=$host_alias
903 ac_env_target_alias_set=${target_alias+set}
904 ac_env_target_alias_value=$target_alias
905 ac_cv_env_target_alias_set=${target_alias+set}
906 ac_cv_env_target_alias_value=$target_alias
907 ac_env_CXX_set=${CXX+set}
908 ac_env_CXX_value=$CXX
909 ac_cv_env_CXX_set=${CXX+set}
910 ac_cv_env_CXX_value=$CXX
911 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
912 ac_env_CXXFLAGS_value=$CXXFLAGS
913 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
914 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
915 ac_env_LDFLAGS_set=${LDFLAGS+set}
916 ac_env_LDFLAGS_value=$LDFLAGS
917 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_cv_env_LDFLAGS_value=$LDFLAGS
919 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920 ac_env_CPPFLAGS_value=$CPPFLAGS
921 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923 ac_env_CC_set=${CC+set}
925 ac_cv_env_CC_set=${CC+set}
926 ac_cv_env_CC_value=$CC
927 ac_env_CFLAGS_set=${CFLAGS+set}
928 ac_env_CFLAGS_value=$CFLAGS
929 ac_cv_env_CFLAGS_set=${CFLAGS+set}
930 ac_cv_env_CFLAGS_value=$CFLAGS
931 ac_env_CPP_set=${CPP+set}
932 ac_env_CPP_value=$CPP
933 ac_cv_env_CPP_set=${CPP+set}
934 ac_cv_env_CPP_value=$CPP
935 ac_env_CXXCPP_set=${CXXCPP+set}
936 ac_env_CXXCPP_value=$CXXCPP
937 ac_cv_env_CXXCPP_set=${CXXCPP+set}
938 ac_cv_env_CXXCPP_value=$CXXCPP
939 ac_env_F77_set=${F77+set}
940 ac_env_F77_value=$F77
941 ac_cv_env_F77_set=${F77+set}
942 ac_cv_env_F77_value=$F77
943 ac_env_FFLAGS_set=${FFLAGS+set}
944 ac_env_FFLAGS_value=$FFLAGS
945 ac_cv_env_FFLAGS_set=${FFLAGS+set}
946 ac_cv_env_FFLAGS_value=$FFLAGS
949 # Report the --help message.
951 if test "$ac_init_help" = "long"; then
952 # Omit some internal or obsolete options to make the list less imposing.
953 # This message is too long to be a string in the A/UX 3.1 sh.
955 \`configure' configures this package to adapt to many kinds of systems.
957 Usage: $0 [OPTION]... [VAR=VALUE]...
959 To assign environment variables (e.g., CC, CFLAGS...), specify them as
960 VAR=VALUE. See below for descriptions of some of the useful variables.
962 Defaults for the options are specified in brackets.
965 -h, --help display this help and exit
966 --help=short display options specific to this package
967 --help=recursive display the short help of all the included packages
968 -V, --version display version information and exit
969 -q, --quiet, --silent do not print \`checking...' messages
970 --cache-file=FILE cache test results in FILE [disabled]
971 -C, --config-cache alias for \`--cache-file=config.cache'
972 -n, --no-create do not create output files
973 --srcdir=DIR find the sources in DIR [configure dir or \`..']
978 Installation directories:
979 --prefix=PREFIX install architecture-independent files in PREFIX
981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
984 By default, \`make install' will install all the files in
985 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
986 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987 for instance \`--prefix=\$HOME'.
989 For better control, use the options below.
991 Fine tuning of the installation directories:
992 --bindir=DIR user executables [EPREFIX/bin]
993 --sbindir=DIR system admin executables [EPREFIX/sbin]
994 --libexecdir=DIR program executables [EPREFIX/libexec]
995 --datadir=DIR read-only architecture-independent data [PREFIX/share]
996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
998 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
999 --libdir=DIR object code libraries [EPREFIX/lib]
1000 --includedir=DIR C header files [PREFIX/include]
1001 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1002 --infodir=DIR info documentation [PREFIX/info]
1003 --mandir=DIR man documentation [PREFIX/man]
1009 --program-prefix=PREFIX prepend PREFIX to installed program names
1010 --program-suffix=SUFFIX append SUFFIX to installed program names
1011 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1014 --build=BUILD configure for building on BUILD [guessed]
1015 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1019 if test -n "$ac_init_help"; then
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1026 --disable-dependency-tracking speeds up one-time build
1027 --enable-dependency-tracking do not reject slow dependency extractors
1028 --enable-shared[=PKGS]
1029 build shared libraries [default=yes]
1030 --enable-static[=PKGS]
1031 build static libraries [default=yes]
1032 --enable-fast-install[=PKGS]
1033 optimize for fast installation [default=yes]
1034 --disable-libtool-lock avoid locking (might break parallel builds)
1038 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1039 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1040 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1041 --with-pic try to use only PIC/non-PIC objects [default=use
1044 include additional configurations [automatic]
1045 --with-libldap=DIR Path to the libldap library /usr/local/lib
1046 --with-ldap-includes=DIR Path to the libldap include files /usr/local/include
1048 Some influential environment variables:
1049 CXX C++ compiler command
1050 CXXFLAGS C++ compiler flags
1051 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1052 nonstandard directory <lib dir>
1053 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1054 headers in a nonstandard directory <include dir>
1055 CC C compiler command
1056 CFLAGS C compiler flags
1058 CXXCPP C++ preprocessor
1059 F77 Fortran 77 compiler command
1060 FFLAGS Fortran 77 compiler flags
1062 Use these variables to override the choices made by `configure' or to help
1063 it to find libraries and programs with nonstandard names/locations.
1068 if test "$ac_init_help" = "recursive"; then
1069 # If there are subdirs, report their specific --help.
1071 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1072 test -d $ac_dir || continue
1075 if test "$ac_dir" != .; then
1076 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1077 # A "../" for each directory in $ac_dir_suffix.
1078 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1080 ac_dir_suffix= ac_top_builddir=
1084 .) # No --srcdir option. We are building in place.
1086 if test -z "$ac_top_builddir"; then
1089 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1091 [\\/]* | ?:[\\/]* ) # Absolute path.
1092 ac_srcdir=$srcdir$ac_dir_suffix;
1093 ac_top_srcdir=$srcdir ;;
1095 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1096 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1099 # Do not use `cd foo && pwd` to compute absolute paths, because
1100 # the directories may not exist.
1102 .) ac_abs_builddir="$ac_dir";;
1105 .) ac_abs_builddir=`pwd`;;
1106 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1107 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1110 case $ac_abs_builddir in
1111 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1113 case ${ac_top_builddir}. in
1114 .) ac_abs_top_builddir=$ac_abs_builddir;;
1115 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1116 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1119 case $ac_abs_builddir in
1120 .) ac_abs_srcdir=$ac_srcdir;;
1123 .) ac_abs_srcdir=$ac_abs_builddir;;
1124 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1125 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1128 case $ac_abs_builddir in
1129 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1131 case $ac_top_srcdir in
1132 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1133 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1134 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1139 # Check for guested configure; otherwise get Cygnus style configure.
1140 if test -f $ac_srcdir/configure.gnu; then
1142 $SHELL $ac_srcdir/configure.gnu --help=recursive
1143 elif test -f $ac_srcdir/configure; then
1145 $SHELL $ac_srcdir/configure --help=recursive
1146 elif test -f $ac_srcdir/configure.ac ||
1147 test -f $ac_srcdir/configure.in; then
1149 $ac_configure --help
1151 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1157 test -n "$ac_init_help" && exit 0
1158 if $ac_init_version; then
1161 Copyright (C) 2003 Free Software Foundation, Inc.
1162 This configure script is free software; the Free Software Foundation
1163 gives unlimited permission to copy, distribute and modify it.
1169 This file contains any messages produced by compilers while
1170 running configure, to aid debugging if configure makes a mistake.
1172 It was created by $as_me, which was
1173 generated by GNU Autoconf 2.59. Invocation command line was
1184 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1185 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1186 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1187 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1188 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1190 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1191 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1193 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1194 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1195 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1196 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1197 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1198 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1199 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1207 test -z "$as_dir" && as_dir=.
1208 echo "PATH: $as_dir"
1223 # Keep a trace of the command line.
1224 # Strip out --no-create and --no-recursion so they do not pile up.
1225 # Strip out --silent because we don't want to record it for future runs.
1226 # Also quote any args containing shell meta-characters.
1227 # Make two passes to allow for proper duplicate-argument suppression.
1232 ac_must_keep_next=false
1238 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1239 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1240 | -silent | --silent | --silen | --sile | --sil)
1242 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1243 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1246 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1248 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1249 if test $ac_must_keep_next = true; then
1250 ac_must_keep_next=false # Got value, back to normal.
1253 *=* | --config-cache | -C | -disable-* | --disable-* \
1254 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1255 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1256 | -with-* | --with-* | -without-* | --without-* | --x)
1257 case "$ac_configure_args0 " in
1258 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1261 -* ) ac_must_keep_next=true ;;
1264 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1265 # Get rid of the leading space.
1271 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1272 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1274 # When interrupted or exit'd, cleanup temporary files, and complete
1275 # config.log. We remove comments because anyway the quotes in there
1276 # would cause problems or look ugly.
1277 # WARNING: Be sure not to use single quotes in there, as some shells,
1278 # such as our DU 5.0 friend, will then `close' the trap.
1279 trap 'exit_status=$?
1280 # Save into config.log some information that might help in debugging.
1285 ## ---------------- ##
1286 ## Cache variables. ##
1287 ## ---------------- ##
1290 # The following way of writing the cache mishandles newlines in values,
1293 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1296 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1297 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1301 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1308 ## ----------------- ##
1309 ## Output variables. ##
1310 ## ----------------- ##
1313 for ac_var in $ac_subst_vars
1315 eval ac_val=$`echo $ac_var`
1316 echo "$ac_var='"'"'$ac_val'"'"'"
1320 if test -n "$ac_subst_files"; then
1327 for ac_var in $ac_subst_files
1329 eval ac_val=$`echo $ac_var`
1330 echo "$ac_var='"'"'$ac_val'"'"'"
1335 if test -s confdefs.h; then
1342 sed "/^$/d" confdefs.h | sort
1345 test "$ac_signal" != 0 &&
1346 echo "$as_me: caught signal $ac_signal"
1347 echo "$as_me: exit $exit_status"
1349 rm -f core *.core &&
1350 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1353 for ac_signal in 1 2 13 15; do
1354 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1358 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1359 rm -rf conftest* confdefs.h
1360 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1363 # Predefined preprocessor variables.
1365 cat >>confdefs.h <<_ACEOF
1366 #define PACKAGE_NAME "$PACKAGE_NAME"
1370 cat >>confdefs.h <<_ACEOF
1371 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1375 cat >>confdefs.h <<_ACEOF
1376 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1380 cat >>confdefs.h <<_ACEOF
1381 #define PACKAGE_STRING "$PACKAGE_STRING"
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1390 # Let the site file select an alternate cache file if it wants to.
1391 # Prefer explicitly selected file to automatically selected ones.
1392 if test -z "$CONFIG_SITE"; then
1393 if test "x$prefix" != xNONE; then
1394 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1396 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1399 for ac_site_file in $CONFIG_SITE; do
1400 if test -r "$ac_site_file"; then
1401 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1402 echo "$as_me: loading site script $ac_site_file" >&6;}
1403 sed 's/^/| /' "$ac_site_file" >&5
1408 if test -r "$cache_file"; then
1409 # Some versions of bash will fail to source /dev/null (special
1410 # files actually), so we avoid doing that.
1411 if test -f "$cache_file"; then
1412 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1413 echo "$as_me: loading cache $cache_file" >&6;}
1415 [\\/]* | ?:[\\/]* ) . $cache_file;;
1416 *) . ./$cache_file;;
1420 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1421 echo "$as_me: creating cache $cache_file" >&6;}
1425 # Check that the precious variables saved in the cache have kept the same
1427 ac_cache_corrupted=false
1428 for ac_var in `(set) 2>&1 |
1429 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1430 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1431 eval ac_new_set=\$ac_env_${ac_var}_set
1432 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1433 eval ac_new_val="\$ac_env_${ac_var}_value"
1434 case $ac_old_set,$ac_new_set in
1436 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1437 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1438 ac_cache_corrupted=: ;;
1440 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1441 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1442 ac_cache_corrupted=: ;;
1445 if test "x$ac_old_val" != "x$ac_new_val"; then
1446 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1447 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1448 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1449 echo "$as_me: former value: $ac_old_val" >&2;}
1450 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1451 echo "$as_me: current value: $ac_new_val" >&2;}
1452 ac_cache_corrupted=:
1455 # Pass precious variables to config.status.
1456 if test "$ac_new_set" = set; then
1458 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1459 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1460 *) ac_arg=$ac_var=$ac_new_val ;;
1462 case " $ac_configure_args " in
1463 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1464 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1468 if $ac_cache_corrupted; then
1469 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1470 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1471 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1472 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1473 { (exit 1); exit 1; }; }
1477 ac_cpp='$CPP $CPPFLAGS'
1478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1500 am__api_version="1.9"
1502 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1503 if test -f $ac_dir/install-sh; then
1505 ac_install_sh="$ac_aux_dir/install-sh -c"
1507 elif test -f $ac_dir/install.sh; then
1509 ac_install_sh="$ac_aux_dir/install.sh -c"
1511 elif test -f $ac_dir/shtool; then
1513 ac_install_sh="$ac_aux_dir/shtool install -c"
1517 if test -z "$ac_aux_dir"; then
1518 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1519 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1520 { (exit 1); exit 1; }; }
1522 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1523 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1524 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1526 # Find a good install program. We prefer a C program (faster),
1527 # so one script is as good as another. But avoid the broken or
1528 # incompatible versions:
1529 # SysV /etc/install, /usr/sbin/install
1530 # SunOS /usr/etc/install
1531 # IRIX /sbin/install
1533 # AmigaOS /C/install, which installs bootblocks on floppy discs
1534 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1535 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1536 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1537 # OS/2's system install, which has a completely different semantic
1538 # ./install, which can be erroneously created by make from ./install.sh.
1539 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1540 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1541 if test -z "$INSTALL"; then
1542 if test "${ac_cv_path_install+set}" = set; then
1543 echo $ECHO_N "(cached) $ECHO_C" >&6
1545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1549 test -z "$as_dir" && as_dir=.
1550 # Account for people who put trailing slashes in PATH elements.
1552 ./ | .// | /cC/* | \
1553 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1554 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1557 # OSF1 and SCO ODT 3.0 have their own names for install.
1558 # Don't use installbsd from OSF since it installs stuff as root
1560 for ac_prog in ginstall scoinst install; do
1561 for ac_exec_ext in '' $ac_executable_extensions; do
1562 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1563 if test $ac_prog = install &&
1564 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1565 # AIX install. It has an incompatible calling convention.
1567 elif test $ac_prog = install &&
1568 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1569 # program-specific install script used by HP pwplus--don't use.
1572 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1584 if test "${ac_cv_path_install+set}" = set; then
1585 INSTALL=$ac_cv_path_install
1587 # As a last resort, use the slow shell script. We don't cache a
1588 # path for INSTALL within a source directory, because that will
1589 # break other packages using the cache if that directory is
1590 # removed, or if the path is relative.
1591 INSTALL=$ac_install_sh
1594 echo "$as_me:$LINENO: result: $INSTALL" >&5
1595 echo "${ECHO_T}$INSTALL" >&6
1597 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1598 # It thinks the first close brace ends the variable substitution.
1599 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1601 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1603 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1605 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1606 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1609 echo timestamp > conftest.file
1610 # Do `set' in a subshell so we don't clobber the current shell's
1611 # arguments. Must try -L first in case configure is actually a
1612 # symlink; some systems play weird games with the mod time of symlinks
1613 # (eg FreeBSD returns the mod time of the symlink's containing
1616 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1617 if test "$*" = "X"; then
1619 set X `ls -t $srcdir/configure conftest.file`
1622 if test "$*" != "X $srcdir/configure conftest.file" \
1623 && test "$*" != "X conftest.file $srcdir/configure"; then
1625 # If neither matched, then we have a broken ls. This can happen
1626 # if, for instance, CONFIG_SHELL is bash and it inherits a
1627 # broken ls alias from the environment. This has actually
1628 # happened. Such a system could not be considered "sane".
1629 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1630 alias in your environment" >&5
1631 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1632 alias in your environment" >&2;}
1633 { (exit 1); exit 1; }; }
1636 test "$2" = conftest.file
1642 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1643 Check your system clock" >&5
1644 echo "$as_me: error: newly created file is older than distributed files!
1645 Check your system clock" >&2;}
1646 { (exit 1); exit 1; }; }
1648 echo "$as_me:$LINENO: result: yes" >&5
1649 echo "${ECHO_T}yes" >&6
1650 test "$program_prefix" != NONE &&
1651 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1652 # Use a double $ so make ignores it.
1653 test "$program_suffix" != NONE &&
1654 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1655 # Double any \ or $. echo might interpret backslashes.
1656 # By default was `s,x,x', remove it if useless.
1657 cat <<\_ACEOF >conftest.sed
1658 s/[\\$]/&&/g;s/;s,x,x,$//
1660 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1663 # expand $ac_aux_dir to an absolute path
1664 am_aux_dir=`cd $ac_aux_dir && pwd`
1666 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1667 # Use eval to expand $SHELL
1668 if eval "$MISSING --run true"; then
1669 am_missing_run="$MISSING --run "
1672 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1673 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1676 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1677 # We used to keeping the `.' as first argument, in order to
1678 # allow $(mkdir_p) to be used without argument. As in
1679 # $(mkdir_p) $(somedir)
1680 # where $(somedir) is conditionally defined. However this is wrong
1682 # 1. if the package is installed by a user who cannot write `.'
1683 # make install will fail,
1684 # 2. the above comment should most certainly read
1685 # $(mkdir_p) $(DESTDIR)$(somedir)
1686 # so it does not work when $(somedir) is undefined and
1687 # $(DESTDIR) is not.
1688 # To support the latter case, we have to write
1689 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1690 # so the `.' trick is pointless.
1691 mkdir_p='mkdir -p --'
1693 # On NextStep and OpenStep, the `mkdir' command does not
1694 # recognize any option. It will interpret all options as
1695 # directories to create, and then abort because `.' already
1697 for d in ./-p ./--version;
1699 test -d $d && rmdir $d
1701 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1702 if test -f "$ac_aux_dir/mkinstalldirs"; then
1703 mkdir_p='$(mkinstalldirs)'
1705 mkdir_p='$(install_sh) -d'
1709 for ac_prog in gawk mawk nawk awk
1711 # Extract the first word of "$ac_prog", so it can be a program name with args.
1712 set dummy $ac_prog; ac_word=$2
1713 echo "$as_me:$LINENO: checking for $ac_word" >&5
1714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1715 if test "${ac_cv_prog_AWK+set}" = set; then
1716 echo $ECHO_N "(cached) $ECHO_C" >&6
1718 if test -n "$AWK"; then
1719 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1725 test -z "$as_dir" && as_dir=.
1726 for ac_exec_ext in '' $ac_executable_extensions; do
1727 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1728 ac_cv_prog_AWK="$ac_prog"
1729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1738 if test -n "$AWK"; then
1739 echo "$as_me:$LINENO: result: $AWK" >&5
1740 echo "${ECHO_T}$AWK" >&6
1742 echo "$as_me:$LINENO: result: no" >&5
1743 echo "${ECHO_T}no" >&6
1746 test -n "$AWK" && break
1749 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1750 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1751 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1752 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1753 echo $ECHO_N "(cached) $ECHO_C" >&6
1755 cat >conftest.make <<\_ACEOF
1757 @echo 'ac_maketemp="$(MAKE)"'
1759 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1760 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1761 if test -n "$ac_maketemp"; then
1762 eval ac_cv_prog_make_${ac_make}_set=yes
1764 eval ac_cv_prog_make_${ac_make}_set=no
1768 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1769 echo "$as_me:$LINENO: result: yes" >&5
1770 echo "${ECHO_T}yes" >&6
1773 echo "$as_me:$LINENO: result: no" >&5
1774 echo "${ECHO_T}no" >&6
1775 SET_MAKE="MAKE=${MAKE-make}"
1778 rm -rf .tst 2>/dev/null
1779 mkdir .tst 2>/dev/null
1780 if test -d .tst; then
1785 rmdir .tst 2>/dev/null
1787 # test to see if srcdir already configured
1788 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1789 test -f $srcdir/config.status; then
1790 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1791 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1792 { (exit 1); exit 1; }; }
1795 # test whether we have cygpath
1796 if test -z "$CYGPATH_W"; then
1797 if (cygpath --version) >/dev/null 2>/dev/null; then
1798 CYGPATH_W='cygpath -w'
1805 # Define the identity of the package.
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE "$PACKAGE"
1815 cat >>confdefs.h <<_ACEOF
1816 #define VERSION "$VERSION"
1819 # Some tools Automake needs.
1821 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1824 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1827 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1830 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1833 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1835 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1837 # Installed binaries are usually stripped using `strip' when the user
1838 # run `make install-strip'. However `strip' might not be the right
1839 # tool to use in cross-compilation environments, therefore Automake
1840 # will honor the `STRIP' environment variable to overrule this program.
1841 if test "$cross_compiling" != no; then
1842 if test -n "$ac_tool_prefix"; then
1843 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1844 set dummy ${ac_tool_prefix}strip; ac_word=$2
1845 echo "$as_me:$LINENO: checking for $ac_word" >&5
1846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1847 if test "${ac_cv_prog_STRIP+set}" = set; then
1848 echo $ECHO_N "(cached) $ECHO_C" >&6
1850 if test -n "$STRIP"; then
1851 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1857 test -z "$as_dir" && as_dir=.
1858 for ac_exec_ext in '' $ac_executable_extensions; do
1859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1860 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1869 STRIP=$ac_cv_prog_STRIP
1870 if test -n "$STRIP"; then
1871 echo "$as_me:$LINENO: result: $STRIP" >&5
1872 echo "${ECHO_T}$STRIP" >&6
1874 echo "$as_me:$LINENO: result: no" >&5
1875 echo "${ECHO_T}no" >&6
1879 if test -z "$ac_cv_prog_STRIP"; then
1881 # Extract the first word of "strip", so it can be a program name with args.
1882 set dummy strip; ac_word=$2
1883 echo "$as_me:$LINENO: checking for $ac_word" >&5
1884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1885 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1886 echo $ECHO_N "(cached) $ECHO_C" >&6
1888 if test -n "$ac_ct_STRIP"; then
1889 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895 test -z "$as_dir" && as_dir=.
1896 for ac_exec_ext in '' $ac_executable_extensions; do
1897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1898 ac_cv_prog_ac_ct_STRIP="strip"
1899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1905 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1908 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1909 if test -n "$ac_ct_STRIP"; then
1910 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1911 echo "${ECHO_T}$ac_ct_STRIP" >&6
1913 echo "$as_me:$LINENO: result: no" >&5
1914 echo "${ECHO_T}no" >&6
1919 STRIP="$ac_cv_prog_STRIP"
1923 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1925 # We need awk for the "check" target. The system "awk" is bad on
1927 # Always define AMTAR for backward compatibility.
1929 AMTAR=${AMTAR-"${am_missing_run}tar"}
1931 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1937 ac_config_headers="$ac_config_headers src/config.h"
1941 # Find a good install program. We prefer a C program (faster),
1942 # so one script is as good as another. But avoid the broken or
1943 # incompatible versions:
1944 # SysV /etc/install, /usr/sbin/install
1945 # SunOS /usr/etc/install
1946 # IRIX /sbin/install
1948 # AmigaOS /C/install, which installs bootblocks on floppy discs
1949 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1950 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1951 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1952 # OS/2's system install, which has a completely different semantic
1953 # ./install, which can be erroneously created by make from ./install.sh.
1954 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1955 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1956 if test -z "$INSTALL"; then
1957 if test "${ac_cv_path_install+set}" = set; then
1958 echo $ECHO_N "(cached) $ECHO_C" >&6
1960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964 test -z "$as_dir" && as_dir=.
1965 # Account for people who put trailing slashes in PATH elements.
1967 ./ | .// | /cC/* | \
1968 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1969 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1972 # OSF1 and SCO ODT 3.0 have their own names for install.
1973 # Don't use installbsd from OSF since it installs stuff as root
1975 for ac_prog in ginstall scoinst install; do
1976 for ac_exec_ext in '' $ac_executable_extensions; do
1977 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1978 if test $ac_prog = install &&
1979 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1980 # AIX install. It has an incompatible calling convention.
1982 elif test $ac_prog = install &&
1983 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1984 # program-specific install script used by HP pwplus--don't use.
1987 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1999 if test "${ac_cv_path_install+set}" = set; then
2000 INSTALL=$ac_cv_path_install
2002 # As a last resort, use the slow shell script. We don't cache a
2003 # path for INSTALL within a source directory, because that will
2004 # break other packages using the cache if that directory is
2005 # removed, or if the path is relative.
2006 INSTALL=$ac_install_sh
2009 echo "$as_me:$LINENO: result: $INSTALL" >&5
2010 echo "${ECHO_T}$INSTALL" >&6
2012 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2013 # It thinks the first close brace ends the variable substitution.
2014 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2016 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2018 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2021 ac_cpp='$CXXCPP $CPPFLAGS'
2022 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2023 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2024 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2025 if test -n "$ac_tool_prefix"; then
2026 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2028 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2029 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2030 echo "$as_me:$LINENO: checking for $ac_word" >&5
2031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2032 if test "${ac_cv_prog_CXX+set}" = set; then
2033 echo $ECHO_N "(cached) $ECHO_C" >&6
2035 if test -n "$CXX"; then
2036 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042 test -z "$as_dir" && as_dir=.
2043 for ac_exec_ext in '' $ac_executable_extensions; do
2044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2045 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2055 if test -n "$CXX"; then
2056 echo "$as_me:$LINENO: result: $CXX" >&5
2057 echo "${ECHO_T}$CXX" >&6
2059 echo "$as_me:$LINENO: result: no" >&5
2060 echo "${ECHO_T}no" >&6
2063 test -n "$CXX" && break
2066 if test -z "$CXX"; then
2068 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2070 # Extract the first word of "$ac_prog", so it can be a program name with args.
2071 set dummy $ac_prog; ac_word=$2
2072 echo "$as_me:$LINENO: checking for $ac_word" >&5
2073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2074 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2075 echo $ECHO_N "(cached) $ECHO_C" >&6
2077 if test -n "$ac_ct_CXX"; then
2078 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2084 test -z "$as_dir" && as_dir=.
2085 for ac_exec_ext in '' $ac_executable_extensions; do
2086 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2087 ac_cv_prog_ac_ct_CXX="$ac_prog"
2088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2096 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2097 if test -n "$ac_ct_CXX"; then
2098 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2099 echo "${ECHO_T}$ac_ct_CXX" >&6
2101 echo "$as_me:$LINENO: result: no" >&5
2102 echo "${ECHO_T}no" >&6
2105 test -n "$ac_ct_CXX" && break
2107 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2113 # Provide some information about the compiler.
2114 echo "$as_me:$LINENO:" \
2115 "checking for C++ compiler version" >&5
2116 ac_compiler=`set X $ac_compile; echo $2`
2117 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2118 (eval $ac_compiler --version </dev/null >&5) 2>&5
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); }
2122 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2123 (eval $ac_compiler -v </dev/null >&5) 2>&5
2125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126 (exit $ac_status); }
2127 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2128 (eval $ac_compiler -V </dev/null >&5) 2>&5
2130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131 (exit $ac_status); }
2133 cat >conftest.$ac_ext <<_ACEOF
2136 cat confdefs.h >>conftest.$ac_ext
2137 cat >>conftest.$ac_ext <<_ACEOF
2138 /* end confdefs.h. */
2148 ac_clean_files_save=$ac_clean_files
2149 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2150 # Try to create an executable without -o first, disregard a.out.
2151 # It will help us diagnose broken compilers, and finding out an intuition
2153 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2154 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2155 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2156 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2157 (eval $ac_link_default) 2>&5
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }; then
2161 # Find the output, starting from the most likely. This scheme is
2162 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2165 # Be careful to initialize this variable, since it used to be cached.
2166 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2168 # b.out is created by i960 compilers.
2169 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2171 test -f "$ac_file" || continue
2173 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2176 # This is the source file.
2179 # We found the default executable, but exeext='' is most
2183 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2184 # FIXME: I believe we export ac_cv_exeext for Libtool,
2185 # but it would be cool to find out if it's true. Does anybody
2186 # maintain Libtool? --akim.
2194 echo "$as_me: failed program was:" >&5
2195 sed 's/^/| /' conftest.$ac_ext >&5
2197 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2198 See \`config.log' for more details." >&5
2199 echo "$as_me: error: C++ compiler cannot create executables
2200 See \`config.log' for more details." >&2;}
2201 { (exit 77); exit 77; }; }
2204 ac_exeext=$ac_cv_exeext
2205 echo "$as_me:$LINENO: result: $ac_file" >&5
2206 echo "${ECHO_T}$ac_file" >&6
2208 # Check the compiler produces executables we can run. If not, either
2209 # the compiler is broken, or we cross compile.
2210 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2211 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2212 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2213 # If not cross compiling, check that we can run a simple program.
2214 if test "$cross_compiling" != yes; then
2215 if { ac_try='./$ac_file'
2216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; }; then
2223 if test "$cross_compiling" = maybe; then
2226 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2227 If you meant to cross compile, use \`--host'.
2228 See \`config.log' for more details." >&5
2229 echo "$as_me: error: cannot run C++ compiled programs.
2230 If you meant to cross compile, use \`--host'.
2231 See \`config.log' for more details." >&2;}
2232 { (exit 1); exit 1; }; }
2236 echo "$as_me:$LINENO: result: yes" >&5
2237 echo "${ECHO_T}yes" >&6
2239 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2240 ac_clean_files=$ac_clean_files_save
2241 # Check the compiler produces executables we can run. If not, either
2242 # the compiler is broken, or we cross compile.
2243 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2244 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2245 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2246 echo "${ECHO_T}$cross_compiling" >&6
2248 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2249 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2251 (eval $ac_link) 2>&5
2253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254 (exit $ac_status); }; then
2255 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2256 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2257 # work properly (i.e., refer to `conftest.exe'), while it won't with
2259 for ac_file in conftest.exe conftest conftest.*; do
2260 test -f "$ac_file" || continue
2262 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2263 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2270 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2271 See \`config.log' for more details." >&5
2272 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2273 See \`config.log' for more details." >&2;}
2274 { (exit 1); exit 1; }; }
2277 rm -f conftest$ac_cv_exeext
2278 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2279 echo "${ECHO_T}$ac_cv_exeext" >&6
2281 rm -f conftest.$ac_ext
2282 EXEEXT=$ac_cv_exeext
2284 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2285 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2286 if test "${ac_cv_objext+set}" = set; then
2287 echo $ECHO_N "(cached) $ECHO_C" >&6
2289 cat >conftest.$ac_ext <<_ACEOF
2292 cat confdefs.h >>conftest.$ac_ext
2293 cat >>conftest.$ac_ext <<_ACEOF
2294 /* end confdefs.h. */
2304 rm -f conftest.o conftest.obj
2305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2306 (eval $ac_compile) 2>&5
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }; then
2310 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2313 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2318 echo "$as_me: failed program was:" >&5
2319 sed 's/^/| /' conftest.$ac_ext >&5
2321 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2322 See \`config.log' for more details." >&5
2323 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2324 See \`config.log' for more details." >&2;}
2325 { (exit 1); exit 1; }; }
2328 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2330 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2331 echo "${ECHO_T}$ac_cv_objext" >&6
2332 OBJEXT=$ac_cv_objext
2334 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2335 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2336 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2337 echo $ECHO_N "(cached) $ECHO_C" >&6
2339 cat >conftest.$ac_ext <<_ACEOF
2342 cat confdefs.h >>conftest.$ac_ext
2343 cat >>conftest.$ac_ext <<_ACEOF
2344 /* end confdefs.h. */
2357 rm -f conftest.$ac_objext
2358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2359 (eval $ac_compile) 2>conftest.er1
2361 grep -v '^ *+' conftest.er1 >conftest.err
2363 cat conftest.err >&5
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); } &&
2366 { ac_try='test -z "$ac_cxx_werror_flag"
2367 || test ! -s conftest.err'
2368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }; } &&
2373 { ac_try='test -s conftest.$ac_objext'
2374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); }; }; then
2381 echo "$as_me: failed program was:" >&5
2382 sed 's/^/| /' conftest.$ac_ext >&5
2386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2387 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2390 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2391 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2392 GXX=`test $ac_compiler_gnu = yes && echo yes`
2393 ac_test_CXXFLAGS=${CXXFLAGS+set}
2394 ac_save_CXXFLAGS=$CXXFLAGS
2396 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2397 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2398 if test "${ac_cv_prog_cxx_g+set}" = set; then
2399 echo $ECHO_N "(cached) $ECHO_C" >&6
2401 cat >conftest.$ac_ext <<_ACEOF
2404 cat confdefs.h >>conftest.$ac_ext
2405 cat >>conftest.$ac_ext <<_ACEOF
2406 /* end confdefs.h. */
2416 rm -f conftest.$ac_objext
2417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2418 (eval $ac_compile) 2>conftest.er1
2420 grep -v '^ *+' conftest.er1 >conftest.err
2422 cat conftest.err >&5
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); } &&
2425 { ac_try='test -z "$ac_cxx_werror_flag"
2426 || test ! -s conftest.err'
2427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431 (exit $ac_status); }; } &&
2432 { ac_try='test -s conftest.$ac_objext'
2433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); }; }; then
2438 ac_cv_prog_cxx_g=yes
2440 echo "$as_me: failed program was:" >&5
2441 sed 's/^/| /' conftest.$ac_ext >&5
2445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2447 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2448 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2449 if test "$ac_test_CXXFLAGS" = set; then
2450 CXXFLAGS=$ac_save_CXXFLAGS
2451 elif test $ac_cv_prog_cxx_g = yes; then
2452 if test "$GXX" = yes; then
2458 if test "$GXX" = yes; then
2464 for ac_declaration in \
2466 'extern "C" void std::exit (int) throw (); using std::exit;' \
2467 'extern "C" void std::exit (int); using std::exit;' \
2468 'extern "C" void exit (int) throw ();' \
2469 'extern "C" void exit (int);' \
2472 cat >conftest.$ac_ext <<_ACEOF
2475 cat confdefs.h >>conftest.$ac_ext
2476 cat >>conftest.$ac_ext <<_ACEOF
2477 /* end confdefs.h. */
2488 rm -f conftest.$ac_objext
2489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2490 (eval $ac_compile) 2>conftest.er1
2492 grep -v '^ *+' conftest.er1 >conftest.err
2494 cat conftest.err >&5
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); } &&
2497 { ac_try='test -z "$ac_cxx_werror_flag"
2498 || test ! -s conftest.err'
2499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); }; } &&
2504 { ac_try='test -s conftest.$ac_objext'
2505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); }; }; then
2512 echo "$as_me: failed program was:" >&5
2513 sed 's/^/| /' conftest.$ac_ext >&5
2517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2518 cat >conftest.$ac_ext <<_ACEOF
2521 cat confdefs.h >>conftest.$ac_ext
2522 cat >>conftest.$ac_ext <<_ACEOF
2523 /* end confdefs.h. */
2533 rm -f conftest.$ac_objext
2534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2535 (eval $ac_compile) 2>conftest.er1
2537 grep -v '^ *+' conftest.er1 >conftest.err
2539 cat conftest.err >&5
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); } &&
2542 { ac_try='test -z "$ac_cxx_werror_flag"
2543 || test ! -s conftest.err'
2544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; } &&
2549 { ac_try='test -s conftest.$ac_objext'
2550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }; }; then
2557 echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2564 if test -n "$ac_declaration"; then
2565 echo '#ifdef __cplusplus' >>confdefs.h
2566 echo $ac_declaration >>confdefs.h
2567 echo '#endif' >>confdefs.h
2571 ac_cpp='$CPP $CPPFLAGS'
2572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2575 DEPDIR="${am__leading_dot}deps"
2577 ac_config_commands="$ac_config_commands depfiles"
2580 am_make=${MAKE-make}
2581 cat > confinc << 'END'
2586 # If we don't find an include directive, just comment out the code.
2587 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2588 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2592 # First try GNU make style include.
2593 echo "include confinc" > confmf
2594 # We grep out `Entering directory' and `Leaving directory'
2595 # messages which can occur if `w' ends up in MAKEFLAGS.
2596 # In particular we don't look at `^make:' because GNU make might
2597 # be invoked under some other name (usually "gmake"), in which
2598 # case it prints its new name instead of `make'.
2599 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2604 # Now try BSD make style include.
2605 if test "$am__include" = "#"; then
2606 echo '.include "confinc"' > confmf
2607 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2608 am__include=.include
2615 echo "$as_me:$LINENO: result: $_am_result" >&5
2616 echo "${ECHO_T}$_am_result" >&6
2617 rm -f confinc confmf
2619 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2620 if test "${enable_dependency_tracking+set}" = set; then
2621 enableval="$enable_dependency_tracking"
2624 if test "x$enable_dependency_tracking" != xno; then
2625 am_depcomp="$ac_aux_dir/depcomp"
2630 if test "x$enable_dependency_tracking" != xno; then
2641 depcc="$CXX" am_compiler_list=
2643 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2644 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2645 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2646 echo $ECHO_N "(cached) $ECHO_C" >&6
2648 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2649 # We make a subdir and do the tests there. Otherwise we can end up
2650 # making bogus files that we don't know about and never remove. For
2651 # instance it was reported that on HP-UX the gcc test will end up
2652 # making a dummy file named `D' -- because `-MD' means `put the output
2655 # Copy depcomp to subdir because otherwise we won't find it if we're
2656 # using a relative directory.
2657 cp "$am_depcomp" conftest.dir
2659 # We will build objects and dependencies in a subdirectory because
2660 # it helps to detect inapplicable dependency modes. For instance
2661 # both Tru64's cc and ICC support -MD to output dependencies as a
2662 # side effect of compilation, but ICC will put the dependencies in
2663 # the current directory while Tru64 will put them in the object
2667 am_cv_CXX_dependencies_compiler_type=none
2668 if test "$am_compiler_list" = ""; then
2669 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2671 for depmode in $am_compiler_list; do
2672 # Setup a source with many dependencies, because some compilers
2673 # like to wrap large dependency lists on column 80 (with \), and
2674 # we should not choose a depcomp mode which is confused by this.
2676 # We need to recreate these files for each test, as the compiler may
2677 # overwrite some of them when testing with obscure command lines.
2678 # This happens at least with the AIX C compiler.
2680 for i in 1 2 3 4 5 6; do
2681 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2682 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2683 # Solaris 8's {/usr,}/bin/sh.
2684 touch sub/conftst$i.h
2686 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2690 # after this tag, mechanisms are not by side-effect, so they'll
2691 # only be used when explicitly requested
2692 if test "x$enable_dependency_tracking" = xyes; then
2700 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2701 # mode. It turns out that the SunPro C++ compiler does not properly
2702 # handle `-M -o', and we need to detect this.
2703 if depmode=$depmode \
2704 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2705 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2706 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2707 >/dev/null 2>conftest.err &&
2708 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2709 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2710 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2711 # icc doesn't choke on unknown options, it will just issue warnings
2712 # or remarks (even with -Werror). So we grep stderr for any message
2713 # that says an option was ignored or not supported.
2714 # When given -MP, icc 7.0 and 7.1 complain thusly:
2715 # icc: Command line warning: ignoring option '-M'; no argument required
2716 # The diagnosis changed in icc 8.0:
2717 # icc: Command line remark: option '-MP' not supported
2718 if (grep 'ignoring option' conftest.err ||
2719 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2720 am_cv_CXX_dependencies_compiler_type=$depmode
2729 am_cv_CXX_dependencies_compiler_type=none
2733 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2734 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2735 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2740 test "x$enable_dependency_tracking" != xno \
2741 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2742 am__fastdepCXX_TRUE=
2743 am__fastdepCXX_FALSE='#'
2745 am__fastdepCXX_TRUE='#'
2746 am__fastdepCXX_FALSE=
2750 # Check whether --enable-shared or --disable-shared was given.
2751 if test "${enable_shared+set}" = set; then
2752 enableval="$enable_shared"
2753 p=${PACKAGE-default}
2755 yes) enable_shared=yes ;;
2756 no) enable_shared=no ;;
2759 # Look at the argument we got. We use all the common list separators.
2760 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2761 for pkg in $enableval; do
2763 if test "X$pkg" = "X$p"; then
2774 # Check whether --enable-static or --disable-static was given.
2775 if test "${enable_static+set}" = set; then
2776 enableval="$enable_static"
2777 p=${PACKAGE-default}
2779 yes) enable_static=yes ;;
2780 no) enable_static=no ;;
2783 # Look at the argument we got. We use all the common list separators.
2784 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2785 for pkg in $enableval; do
2787 if test "X$pkg" = "X$p"; then
2798 # Check whether --enable-fast-install or --disable-fast-install was given.
2799 if test "${enable_fast_install+set}" = set; then
2800 enableval="$enable_fast_install"
2801 p=${PACKAGE-default}
2803 yes) enable_fast_install=yes ;;
2804 no) enable_fast_install=no ;;
2806 enable_fast_install=no
2807 # Look at the argument we got. We use all the common list separators.
2808 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2809 for pkg in $enableval; do
2811 if test "X$pkg" = "X$p"; then
2812 enable_fast_install=yes
2819 enable_fast_install=yes
2822 # Make sure we can run config.sub.
2823 $ac_config_sub sun4 >/dev/null 2>&1 ||
2824 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2825 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2826 { (exit 1); exit 1; }; }
2828 echo "$as_me:$LINENO: checking build system type" >&5
2829 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2830 if test "${ac_cv_build+set}" = set; then
2831 echo $ECHO_N "(cached) $ECHO_C" >&6
2833 ac_cv_build_alias=$build_alias
2834 test -z "$ac_cv_build_alias" &&
2835 ac_cv_build_alias=`$ac_config_guess`
2836 test -z "$ac_cv_build_alias" &&
2837 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2838 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2839 { (exit 1); exit 1; }; }
2840 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2841 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2842 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2843 { (exit 1); exit 1; }; }
2846 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2847 echo "${ECHO_T}$ac_cv_build" >&6
2849 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2850 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2851 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2854 echo "$as_me:$LINENO: checking host system type" >&5
2855 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2856 if test "${ac_cv_host+set}" = set; then
2857 echo $ECHO_N "(cached) $ECHO_C" >&6
2859 ac_cv_host_alias=$host_alias
2860 test -z "$ac_cv_host_alias" &&
2861 ac_cv_host_alias=$ac_cv_build_alias
2862 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2863 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2864 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2865 { (exit 1); exit 1; }; }
2868 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2869 echo "${ECHO_T}$ac_cv_host" >&6
2871 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2872 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2873 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2877 ac_cpp='$CPP $CPPFLAGS'
2878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2881 if test -n "$ac_tool_prefix"; then
2882 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2883 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2884 echo "$as_me:$LINENO: checking for $ac_word" >&5
2885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2886 if test "${ac_cv_prog_CC+set}" = set; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
2889 if test -n "$CC"; then
2890 ac_cv_prog_CC="$CC" # Let the user override the test.
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 test -z "$as_dir" && as_dir=.
2897 for ac_exec_ext in '' $ac_executable_extensions; do
2898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2899 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2909 if test -n "$CC"; then
2910 echo "$as_me:$LINENO: result: $CC" >&5
2911 echo "${ECHO_T}$CC" >&6
2913 echo "$as_me:$LINENO: result: no" >&5
2914 echo "${ECHO_T}no" >&6
2918 if test -z "$ac_cv_prog_CC"; then
2920 # Extract the first word of "gcc", so it can be a program name with args.
2921 set dummy gcc; ac_word=$2
2922 echo "$as_me:$LINENO: checking for $ac_word" >&5
2923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2924 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2925 echo $ECHO_N "(cached) $ECHO_C" >&6
2927 if test -n "$ac_ct_CC"; then
2928 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934 test -z "$as_dir" && as_dir=.
2935 for ac_exec_ext in '' $ac_executable_extensions; do
2936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2937 ac_cv_prog_ac_ct_CC="gcc"
2938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2946 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2947 if test -n "$ac_ct_CC"; then
2948 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2949 echo "${ECHO_T}$ac_ct_CC" >&6
2951 echo "$as_me:$LINENO: result: no" >&5
2952 echo "${ECHO_T}no" >&6
2960 if test -z "$CC"; then
2961 if test -n "$ac_tool_prefix"; then
2962 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2963 set dummy ${ac_tool_prefix}cc; ac_word=$2
2964 echo "$as_me:$LINENO: checking for $ac_word" >&5
2965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2966 if test "${ac_cv_prog_CC+set}" = set; then
2967 echo $ECHO_N "(cached) $ECHO_C" >&6
2969 if test -n "$CC"; then
2970 ac_cv_prog_CC="$CC" # Let the user override the test.
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976 test -z "$as_dir" && as_dir=.
2977 for ac_exec_ext in '' $ac_executable_extensions; do
2978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2979 ac_cv_prog_CC="${ac_tool_prefix}cc"
2980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2989 if test -n "$CC"; then
2990 echo "$as_me:$LINENO: result: $CC" >&5
2991 echo "${ECHO_T}$CC" >&6
2993 echo "$as_me:$LINENO: result: no" >&5
2994 echo "${ECHO_T}no" >&6
2998 if test -z "$ac_cv_prog_CC"; then
3000 # Extract the first word of "cc", so it can be a program name with args.
3001 set dummy cc; ac_word=$2
3002 echo "$as_me:$LINENO: checking for $ac_word" >&5
3003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3004 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3005 echo $ECHO_N "(cached) $ECHO_C" >&6
3007 if test -n "$ac_ct_CC"; then
3008 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014 test -z "$as_dir" && as_dir=.
3015 for ac_exec_ext in '' $ac_executable_extensions; do
3016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3017 ac_cv_prog_ac_ct_CC="cc"
3018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3026 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3027 if test -n "$ac_ct_CC"; then
3028 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3029 echo "${ECHO_T}$ac_ct_CC" >&6
3031 echo "$as_me:$LINENO: result: no" >&5
3032 echo "${ECHO_T}no" >&6
3041 if test -z "$CC"; then
3042 # Extract the first word of "cc", so it can be a program name with args.
3043 set dummy cc; ac_word=$2
3044 echo "$as_me:$LINENO: checking for $ac_word" >&5
3045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3046 if test "${ac_cv_prog_CC+set}" = set; then
3047 echo $ECHO_N "(cached) $ECHO_C" >&6
3049 if test -n "$CC"; then
3050 ac_cv_prog_CC="$CC" # Let the user override the test.
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057 test -z "$as_dir" && as_dir=.
3058 for ac_exec_ext in '' $ac_executable_extensions; do
3059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3060 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3061 ac_prog_rejected=yes
3065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3071 if test $ac_prog_rejected = yes; then
3072 # We found a bogon in the path, so make sure we never use it.
3073 set dummy $ac_cv_prog_CC
3075 if test $# != 0; then
3076 # We chose a different compiler from the bogus one.
3077 # However, it has the same basename, so the bogon will be chosen
3078 # first if we set CC to just the basename; use the full file name.
3080 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3086 if test -n "$CC"; then
3087 echo "$as_me:$LINENO: result: $CC" >&5
3088 echo "${ECHO_T}$CC" >&6
3090 echo "$as_me:$LINENO: result: no" >&5
3091 echo "${ECHO_T}no" >&6
3095 if test -z "$CC"; then
3096 if test -n "$ac_tool_prefix"; then
3099 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3100 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3101 echo "$as_me:$LINENO: checking for $ac_word" >&5
3102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3103 if test "${ac_cv_prog_CC+set}" = set; then
3104 echo $ECHO_N "(cached) $ECHO_C" >&6
3106 if test -n "$CC"; then
3107 ac_cv_prog_CC="$CC" # Let the user override the test.
3109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113 test -z "$as_dir" && as_dir=.
3114 for ac_exec_ext in '' $ac_executable_extensions; do
3115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3116 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3126 if test -n "$CC"; then
3127 echo "$as_me:$LINENO: result: $CC" >&5
3128 echo "${ECHO_T}$CC" >&6
3130 echo "$as_me:$LINENO: result: no" >&5
3131 echo "${ECHO_T}no" >&6
3134 test -n "$CC" && break
3137 if test -z "$CC"; then
3141 # Extract the first word of "$ac_prog", so it can be a program name with args.
3142 set dummy $ac_prog; ac_word=$2
3143 echo "$as_me:$LINENO: checking for $ac_word" >&5
3144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3145 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3146 echo $ECHO_N "(cached) $ECHO_C" >&6
3148 if test -n "$ac_ct_CC"; then
3149 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155 test -z "$as_dir" && as_dir=.
3156 for ac_exec_ext in '' $ac_executable_extensions; do
3157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3158 ac_cv_prog_ac_ct_CC="$ac_prog"
3159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3167 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3168 if test -n "$ac_ct_CC"; then
3169 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3170 echo "${ECHO_T}$ac_ct_CC" >&6
3172 echo "$as_me:$LINENO: result: no" >&5
3173 echo "${ECHO_T}no" >&6
3176 test -n "$ac_ct_CC" && break
3185 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3186 See \`config.log' for more details." >&5
3187 echo "$as_me: error: no acceptable C compiler found in \$PATH
3188 See \`config.log' for more details." >&2;}
3189 { (exit 1); exit 1; }; }
3191 # Provide some information about the compiler.
3192 echo "$as_me:$LINENO:" \
3193 "checking for C compiler version" >&5
3194 ac_compiler=`set X $ac_compile; echo $2`
3195 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3196 (eval $ac_compiler --version </dev/null >&5) 2>&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); }
3200 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3201 (eval $ac_compiler -v </dev/null >&5) 2>&5
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); }
3205 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3206 (eval $ac_compiler -V </dev/null >&5) 2>&5
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); }
3211 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3212 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3213 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3214 echo $ECHO_N "(cached) $ECHO_C" >&6
3216 cat >conftest.$ac_ext <<_ACEOF
3219 cat confdefs.h >>conftest.$ac_ext
3220 cat >>conftest.$ac_ext <<_ACEOF
3221 /* end confdefs.h. */
3234 rm -f conftest.$ac_objext
3235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3236 (eval $ac_compile) 2>conftest.er1
3238 grep -v '^ *+' conftest.er1 >conftest.err
3240 cat conftest.err >&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); } &&
3243 { ac_try='test -z "$ac_c_werror_flag"
3244 || test ! -s conftest.err'
3245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); }; } &&
3250 { ac_try='test -s conftest.$ac_objext'
3251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); }; }; then
3258 echo "$as_me: failed program was:" >&5
3259 sed 's/^/| /' conftest.$ac_ext >&5
3263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3264 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3267 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3268 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3269 GCC=`test $ac_compiler_gnu = yes && echo yes`
3270 ac_test_CFLAGS=${CFLAGS+set}
3271 ac_save_CFLAGS=$CFLAGS
3273 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3274 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3275 if test "${ac_cv_prog_cc_g+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3278 cat >conftest.$ac_ext <<_ACEOF
3281 cat confdefs.h >>conftest.$ac_ext
3282 cat >>conftest.$ac_ext <<_ACEOF
3283 /* end confdefs.h. */
3293 rm -f conftest.$ac_objext
3294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3295 (eval $ac_compile) 2>conftest.er1
3297 grep -v '^ *+' conftest.er1 >conftest.err
3299 cat conftest.err >&5
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); } &&
3302 { ac_try='test -z "$ac_c_werror_flag"
3303 || test ! -s conftest.err'
3304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); }; } &&
3309 { ac_try='test -s conftest.$ac_objext'
3310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); }; }; then
3317 echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3324 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3325 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3326 if test "$ac_test_CFLAGS" = set; then
3327 CFLAGS=$ac_save_CFLAGS
3328 elif test $ac_cv_prog_cc_g = yes; then
3329 if test "$GCC" = yes; then
3335 if test "$GCC" = yes; then
3341 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3342 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3343 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3344 echo $ECHO_N "(cached) $ECHO_C" >&6
3346 ac_cv_prog_cc_stdc=no
3348 cat >conftest.$ac_ext <<_ACEOF
3351 cat confdefs.h >>conftest.$ac_ext
3352 cat >>conftest.$ac_ext <<_ACEOF
3353 /* end confdefs.h. */
3356 #include <sys/types.h>
3357 #include <sys/stat.h>
3358 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3359 struct buf { int x; };
3360 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3361 static char *e (p, i)
3367 static char *f (char * (*g) (char **, int), char **p, ...)
3372 s = g (p, va_arg (v,int));
3377 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3378 function prototypes and stuff, but not '\xHH' hex character constants.
3379 These don't provoke an error unfortunately, instead are silently treated
3380 as 'x'. The following induces an error, until -std1 is added to get
3381 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3382 array size at least. It's necessary to write '\x00'==0 to get something
3383 that's true only with -std1. */
3384 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3386 int test (int i, double x);
3387 struct s1 {int (*f) (int a);};
3388 struct s2 {int (*f) (double a);};
3389 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3395 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3400 # Don't try gcc -ansi; that turns off useful extensions and
3401 # breaks some systems' header files.
3402 # AIX -qlanglvl=ansi
3403 # Ultrix and OSF/1 -std1
3404 # HP-UX 10.20 and later -Ae
3405 # HP-UX older versions -Aa -D_HPUX_SOURCE
3406 # SVR4 -Xc -D__EXTENSIONS__
3407 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3409 CC="$ac_save_CC $ac_arg"
3410 rm -f conftest.$ac_objext
3411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3412 (eval $ac_compile) 2>conftest.er1
3414 grep -v '^ *+' conftest.er1 >conftest.err
3416 cat conftest.err >&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); } &&
3419 { ac_try='test -z "$ac_c_werror_flag"
3420 || test ! -s conftest.err'
3421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); }; } &&
3426 { ac_try='test -s conftest.$ac_objext'
3427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); }; }; then
3432 ac_cv_prog_cc_stdc=$ac_arg
3435 echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3439 rm -f conftest.err conftest.$ac_objext
3441 rm -f conftest.$ac_ext conftest.$ac_objext
3446 case "x$ac_cv_prog_cc_stdc" in
3448 echo "$as_me:$LINENO: result: none needed" >&5
3449 echo "${ECHO_T}none needed" >&6 ;;
3451 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3452 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3453 CC="$CC $ac_cv_prog_cc_stdc" ;;
3456 # Some people use a C++ compiler to compile C. Since we use `exit',
3457 # in C++ we need to declare it. In case someone uses the same compiler
3458 # for both compiling C and C++ we need to have the C++ compiler decide
3459 # the declaration of exit, since it's the most demanding environment.
3460 cat >conftest.$ac_ext <<_ACEOF
3465 rm -f conftest.$ac_objext
3466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3467 (eval $ac_compile) 2>conftest.er1
3469 grep -v '^ *+' conftest.er1 >conftest.err
3471 cat conftest.err >&5
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); } &&
3474 { ac_try='test -z "$ac_c_werror_flag"
3475 || test ! -s conftest.err'
3476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); }; } &&
3481 { ac_try='test -s conftest.$ac_objext'
3482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); }; }; then
3487 for ac_declaration in \
3489 'extern "C" void std::exit (int) throw (); using std::exit;' \
3490 'extern "C" void std::exit (int); using std::exit;' \
3491 'extern "C" void exit (int) throw ();' \
3492 'extern "C" void exit (int);' \
3495 cat >conftest.$ac_ext <<_ACEOF
3498 cat confdefs.h >>conftest.$ac_ext
3499 cat >>conftest.$ac_ext <<_ACEOF
3500 /* end confdefs.h. */
3511 rm -f conftest.$ac_objext
3512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3513 (eval $ac_compile) 2>conftest.er1
3515 grep -v '^ *+' conftest.er1 >conftest.err
3517 cat conftest.err >&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); } &&
3520 { ac_try='test -z "$ac_c_werror_flag"
3521 || test ! -s conftest.err'
3522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); }; } &&
3527 { ac_try='test -s conftest.$ac_objext'
3528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); }; }; then
3535 echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.$ac_ext >&5
3540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3541 cat >conftest.$ac_ext <<_ACEOF
3544 cat confdefs.h >>conftest.$ac_ext
3545 cat >>conftest.$ac_ext <<_ACEOF
3546 /* end confdefs.h. */
3556 rm -f conftest.$ac_objext
3557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3558 (eval $ac_compile) 2>conftest.er1
3560 grep -v '^ *+' conftest.er1 >conftest.err
3562 cat conftest.err >&5
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); } &&
3565 { ac_try='test -z "$ac_c_werror_flag"
3566 || test ! -s conftest.err'
3567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }; } &&
3572 { ac_try='test -s conftest.$ac_objext'
3573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); }; }; then
3580 echo "$as_me: failed program was:" >&5
3581 sed 's/^/| /' conftest.$ac_ext >&5
3584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3587 if test -n "$ac_declaration"; then
3588 echo '#ifdef __cplusplus' >>confdefs.h
3589 echo $ac_declaration >>confdefs.h
3590 echo '#endif' >>confdefs.h
3594 echo "$as_me: failed program was:" >&5
3595 sed 's/^/| /' conftest.$ac_ext >&5
3598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3600 ac_cpp='$CPP $CPPFLAGS'
3601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3605 depcc="$CC" am_compiler_list=
3607 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3608 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3609 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3610 echo $ECHO_N "(cached) $ECHO_C" >&6
3612 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3613 # We make a subdir and do the tests there. Otherwise we can end up
3614 # making bogus files that we don't know about and never remove. For
3615 # instance it was reported that on HP-UX the gcc test will end up
3616 # making a dummy file named `D' -- because `-MD' means `put the output
3619 # Copy depcomp to subdir because otherwise we won't find it if we're
3620 # using a relative directory.
3621 cp "$am_depcomp" conftest.dir
3623 # We will build objects and dependencies in a subdirectory because
3624 # it helps to detect inapplicable dependency modes. For instance
3625 # both Tru64's cc and ICC support -MD to output dependencies as a
3626 # side effect of compilation, but ICC will put the dependencies in
3627 # the current directory while Tru64 will put them in the object
3631 am_cv_CC_dependencies_compiler_type=none
3632 if test "$am_compiler_list" = ""; then
3633 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3635 for depmode in $am_compiler_list; do
3636 # Setup a source with many dependencies, because some compilers
3637 # like to wrap large dependency lists on column 80 (with \), and
3638 # we should not choose a depcomp mode which is confused by this.
3640 # We need to recreate these files for each test, as the compiler may
3641 # overwrite some of them when testing with obscure command lines.
3642 # This happens at least with the AIX C compiler.
3644 for i in 1 2 3 4 5 6; do
3645 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3646 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3647 # Solaris 8's {/usr,}/bin/sh.
3648 touch sub/conftst$i.h
3650 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3654 # after this tag, mechanisms are not by side-effect, so they'll
3655 # only be used when explicitly requested
3656 if test "x$enable_dependency_tracking" = xyes; then
3664 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3665 # mode. It turns out that the SunPro C++ compiler does not properly
3666 # handle `-M -o', and we need to detect this.
3667 if depmode=$depmode \
3668 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3669 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3670 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3671 >/dev/null 2>conftest.err &&
3672 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3673 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3674 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3675 # icc doesn't choke on unknown options, it will just issue warnings
3676 # or remarks (even with -Werror). So we grep stderr for any message
3677 # that says an option was ignored or not supported.
3678 # When given -MP, icc 7.0 and 7.1 complain thusly:
3679 # icc: Command line warning: ignoring option '-M'; no argument required
3680 # The diagnosis changed in icc 8.0:
3681 # icc: Command line remark: option '-MP' not supported
3682 if (grep 'ignoring option' conftest.err ||
3683 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3684 am_cv_CC_dependencies_compiler_type=$depmode
3693 am_cv_CC_dependencies_compiler_type=none
3697 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3698 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3699 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3704 test "x$enable_dependency_tracking" != xno \
3705 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3707 am__fastdepCC_FALSE='#'
3709 am__fastdepCC_TRUE='#'
3710 am__fastdepCC_FALSE=
3714 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3715 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3716 if test "${lt_cv_path_SED+set}" = set; then
3717 echo $ECHO_N "(cached) $ECHO_C" >&6
3719 # Loop through the user's path and test for sed and gsed.
3720 # Then use that list of sed's as ones to test for truncation.
3721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725 test -z "$as_dir" && as_dir=.
3726 for lt_ac_prog in sed gsed; do
3727 for ac_exec_ext in '' $ac_executable_extensions; do
3728 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3729 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3736 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3737 # along with /bin/sed that truncates output.
3738 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3739 test ! -f $lt_ac_sed && continue
3740 cat /dev/null > conftest.in
3742 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3743 # Check for GNU sed and select it if it is found.
3744 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3745 lt_cv_path_SED=$lt_ac_sed
3749 cat conftest.in conftest.in >conftest.tmp
3750 mv conftest.tmp conftest.in
3751 cp conftest.in conftest.nl
3753 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3754 cmp -s conftest.out conftest.nl || break
3755 # 10000 chars as input seems more than enough
3756 test $lt_ac_count -gt 10 && break
3757 lt_ac_count=`expr $lt_ac_count + 1`
3758 if test $lt_ac_count -gt $lt_ac_max; then
3759 lt_ac_max=$lt_ac_count
3760 lt_cv_path_SED=$lt_ac_sed
3768 echo "$as_me:$LINENO: result: $SED" >&5
3769 echo "${ECHO_T}$SED" >&6
3771 echo "$as_me:$LINENO: checking for egrep" >&5
3772 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3773 if test "${ac_cv_prog_egrep+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3776 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3777 then ac_cv_prog_egrep='grep -E'
3778 else ac_cv_prog_egrep='egrep'
3781 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3782 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3783 EGREP=$ac_cv_prog_egrep
3787 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3788 if test "${with_gnu_ld+set}" = set; then
3789 withval="$with_gnu_ld"
3790 test "$withval" = no || with_gnu_ld=yes
3795 if test "$GCC" = yes; then
3796 # Check if gcc -print-prog-name=ld gives a path.
3797 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3798 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3801 # gcc leaves a trailing carriage return which upsets mingw
3802 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3804 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3807 # Accept absolute paths.
3809 re_direlt='/[^/][^/]*/\.\./'
3810 # Canonicalize the pathname of ld
3811 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3812 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3813 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3815 test -z "$LD" && LD="$ac_prog"
3818 # If it fails, then pretend we aren't using GCC.
3822 # If it is relative, then search for the first ld in PATH.
3826 elif test "$with_gnu_ld" = yes; then
3827 echo "$as_me:$LINENO: checking for GNU ld" >&5
3828 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3830 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3831 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3833 if test "${lt_cv_path_LD+set}" = set; then
3834 echo $ECHO_N "(cached) $ECHO_C" >&6
3836 if test -z "$LD"; then
3837 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3838 for ac_dir in $PATH; do
3840 test -z "$ac_dir" && ac_dir=.
3841 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3842 lt_cv_path_LD="$ac_dir/$ac_prog"
3843 # Check to see if the program is GNU ld. I'd rather use --version,
3844 # but apparently some GNU ld's only accept -v.
3845 # Break only if it was the GNU/non-GNU ld that we prefer.
3846 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3847 *GNU* | *'with BFD'*)
3848 test "$with_gnu_ld" != no && break
3851 test "$with_gnu_ld" != yes && break
3858 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3863 if test -n "$LD"; then
3864 echo "$as_me:$LINENO: result: $LD" >&5
3865 echo "${ECHO_T}$LD" >&6
3867 echo "$as_me:$LINENO: result: no" >&5
3868 echo "${ECHO_T}no" >&6
3870 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3871 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3872 { (exit 1); exit 1; }; }
3873 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3874 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3875 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3876 echo $ECHO_N "(cached) $ECHO_C" >&6
3878 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3879 case `$LD -v 2>&1 </dev/null` in
3880 *GNU* | *'with BFD'*)
3881 lt_cv_prog_gnu_ld=yes
3884 lt_cv_prog_gnu_ld=no
3888 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3889 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3890 with_gnu_ld=$lt_cv_prog_gnu_ld
3893 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3894 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3895 if test "${lt_cv_ld_reload_flag+set}" = set; then
3896 echo $ECHO_N "(cached) $ECHO_C" >&6
3898 lt_cv_ld_reload_flag='-r'
3900 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3901 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3902 reload_flag=$lt_cv_ld_reload_flag
3903 case $reload_flag in
3905 *) reload_flag=" $reload_flag" ;;
3907 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3910 if test "$GCC" = yes; then
3911 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3913 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3918 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3919 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3920 if test "${lt_cv_path_NM+set}" = set; then
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
3923 if test -n "$NM"; then
3924 # Let the user override the test.
3927 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3928 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3930 test -z "$ac_dir" && ac_dir=.
3931 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3932 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3933 # Check to see if the nm accepts a BSD-compat flag.
3934 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3935 # nm: unknown option "B" ignored
3936 # Tru64's nm complains that /dev/null is an invalid object file
3937 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3938 */dev/null* | *'Invalid file or object type'*)
3939 lt_cv_path_NM="$tmp_nm -B"
3943 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3945 lt_cv_path_NM="$tmp_nm -p"
3949 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3950 continue # so that we can try to find one that supports BSD flags
3957 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3960 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3961 echo "${ECHO_T}$lt_cv_path_NM" >&6
3964 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3965 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3967 if test "$LN_S" = "ln -s"; then
3968 echo "$as_me:$LINENO: result: yes" >&5
3969 echo "${ECHO_T}yes" >&6
3971 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3972 echo "${ECHO_T}no, using $LN_S" >&6
3975 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3976 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3977 if test "${lt_cv_deplibs_check_method+set}" = set; then
3978 echo $ECHO_N "(cached) $ECHO_C" >&6
3980 lt_cv_file_magic_cmd='$MAGIC_CMD'
3981 lt_cv_file_magic_test_file=
3982 lt_cv_deplibs_check_method='unknown'
3983 # Need to set the preceding variable on all platforms that support
3984 # interlibrary dependencies.
3985 # 'none' -- dependencies not supported.
3986 # `unknown' -- same as none, but documents that we really don't know.
3987 # 'pass_all' -- all dependencies passed with no checks.
3988 # 'test_compile' -- check by making test program.
3989 # 'file_magic [[regex]]' -- check by looking for files in library path
3990 # which responds to the $file_magic_cmd with a given extended regex.
3991 # If you have `file' or equivalent on your system and you're not sure
3992 # whether `pass_all' will *always* work, you probably want this one.
3996 lt_cv_deplibs_check_method=pass_all
4000 lt_cv_deplibs_check_method=pass_all
4004 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4005 lt_cv_file_magic_cmd='/usr/bin/file -L'
4006 lt_cv_file_magic_test_file=/shlib/libc.so
4010 # func_win32_libid is a shell function defined in ltmain.sh
4011 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4012 lt_cv_file_magic_cmd='func_win32_libid'
4016 # Base MSYS/MinGW do not provide the 'file' command needed by
4017 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4018 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4019 lt_cv_file_magic_cmd='$OBJDUMP -f'
4022 darwin* | rhapsody*)
4023 lt_cv_deplibs_check_method=pass_all
4026 freebsd* | kfreebsd*-gnu | dragonfly*)
4027 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4030 # Not sure whether the presence of OpenBSD here was a mistake.
4031 # Let's accept both of them until this is cleared up.
4032 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4033 lt_cv_file_magic_cmd=/usr/bin/file
4034 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4038 lt_cv_deplibs_check_method=pass_all
4043 lt_cv_deplibs_check_method=pass_all
4046 hpux10.20* | hpux11*)
4047 lt_cv_file_magic_cmd=/usr/bin/file
4050 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4051 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4054 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]'
4055 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4058 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4059 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4064 irix5* | irix6* | nonstopux*)
4066 *-32|*"-32 ") libmagic=32-bit;;
4067 *-n32|*"-n32 ") libmagic=N32;;
4068 *-64|*"-64 ") libmagic=64-bit;;
4069 *) libmagic=never-match;;
4071 lt_cv_deplibs_check_method=pass_all
4074 # This must be Linux ELF.
4076 lt_cv_deplibs_check_method=pass_all
4080 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4081 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4083 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4088 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4089 lt_cv_file_magic_cmd=/usr/bin/file
4090 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4094 lt_cv_deplibs_check_method=unknown
4098 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4099 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4101 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4105 osf3* | osf4* | osf5*)
4106 lt_cv_deplibs_check_method=pass_all
4110 lt_cv_deplibs_check_method=pass_all
4114 lt_cv_deplibs_check_method=pass_all
4117 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4118 case $host_vendor in
4120 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]'
4121 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4124 lt_cv_deplibs_check_method=pass_all
4127 lt_cv_file_magic_cmd='/bin/file'
4128 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4131 lt_cv_file_magic_cmd='/bin/file'
4132 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4133 lt_cv_file_magic_test_file=/lib/libc.so
4136 lt_cv_deplibs_check_method=pass_all
4141 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4142 lt_cv_deplibs_check_method=pass_all
4147 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4148 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4149 file_magic_cmd=$lt_cv_file_magic_cmd
4150 deplibs_check_method=$lt_cv_deplibs_check_method
4151 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4156 # If no C compiler was specified, use CC.
4159 # Allow CC to be a program name with arguments.
4163 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4164 if test "${enable_libtool_lock+set}" = set; then
4165 enableval="$enable_libtool_lock"
4168 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4170 # Some flags need to be propagated to the compiler or linker for good
4174 # Find out which ABI we are using.
4175 echo 'int i;' > conftest.$ac_ext
4176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4177 (eval $ac_compile) 2>&5
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); }; then
4181 case `/usr/bin/file conftest.$ac_objext` in
4193 # Find out which ABI we are using.
4194 echo '#line 4194 "configure"' > conftest.$ac_ext
4195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4196 (eval $ac_compile) 2>&5
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); }; then
4200 if test "$lt_cv_prog_gnu_ld" = yes; then
4201 case `/usr/bin/file conftest.$ac_objext` in
4203 LD="${LD-ld} -melf32bsmip"
4206 LD="${LD-ld} -melf32bmipn32"
4209 LD="${LD-ld} -melf64bmip"
4213 case `/usr/bin/file conftest.$ac_objext` in
4229 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4230 # Find out which ABI we are using.
4231 echo 'int i;' > conftest.$ac_ext
4232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4233 (eval $ac_compile) 2>&5
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); }; then
4237 case "`/usr/bin/file conftest.o`" in
4241 LD="${LD-ld} -m elf_i386"
4243 ppc64-*linux*|powerpc64-*linux*)
4244 LD="${LD-ld} -m elf32ppclinux"
4247 LD="${LD-ld} -m elf_s390"
4250 LD="${LD-ld} -m elf32_sparc"
4257 LD="${LD-ld} -m elf_x86_64"
4259 ppc*-*linux*|powerpc*-*linux*)
4260 LD="${LD-ld} -m elf64ppc"
4263 LD="${LD-ld} -m elf64_s390"
4266 LD="${LD-ld} -m elf64_sparc"
4276 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4277 SAVE_CFLAGS="$CFLAGS"
4278 CFLAGS="$CFLAGS -belf"
4279 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4280 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4281 if test "${lt_cv_cc_needs_belf+set}" = set; then
4282 echo $ECHO_N "(cached) $ECHO_C" >&6
4285 ac_cpp='$CPP $CPPFLAGS'
4286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4290 cat >conftest.$ac_ext <<_ACEOF
4293 cat confdefs.h >>conftest.$ac_ext
4294 cat >>conftest.$ac_ext <<_ACEOF
4295 /* end confdefs.h. */
4305 rm -f conftest.$ac_objext conftest$ac_exeext
4306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4307 (eval $ac_link) 2>conftest.er1
4309 grep -v '^ *+' conftest.er1 >conftest.err
4311 cat conftest.err >&5
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); } &&
4314 { ac_try='test -z "$ac_c_werror_flag"
4315 || test ! -s conftest.err'
4316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320 (exit $ac_status); }; } &&
4321 { ac_try='test -s conftest$ac_exeext'
4322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); }; }; then
4327 lt_cv_cc_needs_belf=yes
4329 echo "$as_me: failed program was:" >&5
4330 sed 's/^/| /' conftest.$ac_ext >&5
4332 lt_cv_cc_needs_belf=no
4334 rm -f conftest.err conftest.$ac_objext \
4335 conftest$ac_exeext conftest.$ac_ext
4337 ac_cpp='$CPP $CPPFLAGS'
4338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4343 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4344 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4345 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4346 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4347 CFLAGS="$SAVE_CFLAGS"
4353 need_locks="$enable_libtool_lock"
4357 ac_cpp='$CPP $CPPFLAGS'
4358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4361 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4362 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4363 # On Suns, sometimes $CPP names a directory.
4364 if test -n "$CPP" && test -d "$CPP"; then
4367 if test -z "$CPP"; then
4368 if test "${ac_cv_prog_CPP+set}" = set; then
4369 echo $ECHO_N "(cached) $ECHO_C" >&6
4371 # Double quotes because CPP needs to be expanded
4372 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4375 for ac_c_preproc_warn_flag in '' yes
4377 # Use a header file that comes with gcc, so configuring glibc
4378 # with a fresh cross-compiler works.
4379 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4380 # <limits.h> exists even on freestanding compilers.
4381 # On the NeXT, cc -E runs the code through the compiler's parser,
4382 # not just through cpp. "Syntax error" is here to catch this case.
4383 cat >conftest.$ac_ext <<_ACEOF
4386 cat confdefs.h >>conftest.$ac_ext
4387 cat >>conftest.$ac_ext <<_ACEOF
4388 /* end confdefs.h. */
4390 # include <limits.h>
4392 # include <assert.h>
4396 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4397 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4399 grep -v '^ *+' conftest.er1 >conftest.err
4401 cat conftest.err >&5
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); } >/dev/null; then
4404 if test -s conftest.err; then
4405 ac_cpp_err=$ac_c_preproc_warn_flag
4406 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4413 if test -z "$ac_cpp_err"; then
4416 echo "$as_me: failed program was:" >&5
4417 sed 's/^/| /' conftest.$ac_ext >&5
4419 # Broken: fails on valid input.
4422 rm -f conftest.err conftest.$ac_ext
4424 # OK, works on sane cases. Now check whether non-existent headers
4425 # can be detected and how.
4426 cat >conftest.$ac_ext <<_ACEOF
4429 cat confdefs.h >>conftest.$ac_ext
4430 cat >>conftest.$ac_ext <<_ACEOF
4431 /* end confdefs.h. */
4432 #include <ac_nonexistent.h>
4434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4437 grep -v '^ *+' conftest.er1 >conftest.err
4439 cat conftest.err >&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); } >/dev/null; then
4442 if test -s conftest.err; then
4443 ac_cpp_err=$ac_c_preproc_warn_flag
4444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4451 if test -z "$ac_cpp_err"; then
4452 # Broken: success on invalid input.
4455 echo "$as_me: failed program was:" >&5
4456 sed 's/^/| /' conftest.$ac_ext >&5
4458 # Passes both tests.
4462 rm -f conftest.err conftest.$ac_ext
4465 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4466 rm -f conftest.err conftest.$ac_ext
4467 if $ac_preproc_ok; then
4479 echo "$as_me:$LINENO: result: $CPP" >&5
4480 echo "${ECHO_T}$CPP" >&6
4482 for ac_c_preproc_warn_flag in '' yes
4484 # Use a header file that comes with gcc, so configuring glibc
4485 # with a fresh cross-compiler works.
4486 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4487 # <limits.h> exists even on freestanding compilers.
4488 # On the NeXT, cc -E runs the code through the compiler's parser,
4489 # not just through cpp. "Syntax error" is here to catch this case.
4490 cat >conftest.$ac_ext <<_ACEOF
4493 cat confdefs.h >>conftest.$ac_ext
4494 cat >>conftest.$ac_ext <<_ACEOF
4495 /* end confdefs.h. */
4497 # include <limits.h>
4499 # include <assert.h>
4503 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4504 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4506 grep -v '^ *+' conftest.er1 >conftest.err
4508 cat conftest.err >&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); } >/dev/null; then
4511 if test -s conftest.err; then
4512 ac_cpp_err=$ac_c_preproc_warn_flag
4513 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4520 if test -z "$ac_cpp_err"; then
4523 echo "$as_me: failed program was:" >&5
4524 sed 's/^/| /' conftest.$ac_ext >&5
4526 # Broken: fails on valid input.
4529 rm -f conftest.err conftest.$ac_ext
4531 # OK, works on sane cases. Now check whether non-existent headers
4532 # can be detected and how.
4533 cat >conftest.$ac_ext <<_ACEOF
4536 cat confdefs.h >>conftest.$ac_ext
4537 cat >>conftest.$ac_ext <<_ACEOF
4538 /* end confdefs.h. */
4539 #include <ac_nonexistent.h>
4541 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4542 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4544 grep -v '^ *+' conftest.er1 >conftest.err
4546 cat conftest.err >&5
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); } >/dev/null; then
4549 if test -s conftest.err; then
4550 ac_cpp_err=$ac_c_preproc_warn_flag
4551 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4558 if test -z "$ac_cpp_err"; then
4559 # Broken: success on invalid input.
4562 echo "$as_me: failed program was:" >&5
4563 sed 's/^/| /' conftest.$ac_ext >&5
4565 # Passes both tests.
4569 rm -f conftest.err conftest.$ac_ext
4572 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4573 rm -f conftest.err conftest.$ac_ext
4574 if $ac_preproc_ok; then
4577 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4578 See \`config.log' for more details." >&5
4579 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4580 See \`config.log' for more details." >&2;}
4581 { (exit 1); exit 1; }; }
4585 ac_cpp='$CPP $CPPFLAGS'
4586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4591 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4592 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4593 if test "${ac_cv_header_stdc+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4596 cat >conftest.$ac_ext <<_ACEOF
4599 cat confdefs.h >>conftest.$ac_ext
4600 cat >>conftest.$ac_ext <<_ACEOF
4601 /* end confdefs.h. */
4615 rm -f conftest.$ac_objext
4616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4617 (eval $ac_compile) 2>conftest.er1
4619 grep -v '^ *+' conftest.er1 >conftest.err
4621 cat conftest.err >&5
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); } &&
4624 { ac_try='test -z "$ac_c_werror_flag"
4625 || test ! -s conftest.err'
4626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }; } &&
4631 { ac_try='test -s conftest.$ac_objext'
4632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); }; }; then
4637 ac_cv_header_stdc=yes
4639 echo "$as_me: failed program was:" >&5
4640 sed 's/^/| /' conftest.$ac_ext >&5
4642 ac_cv_header_stdc=no
4644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4646 if test $ac_cv_header_stdc = yes; then
4647 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4648 cat >conftest.$ac_ext <<_ACEOF
4651 cat confdefs.h >>conftest.$ac_ext
4652 cat >>conftest.$ac_ext <<_ACEOF
4653 /* end confdefs.h. */
4657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4658 $EGREP "memchr" >/dev/null 2>&1; then
4661 ac_cv_header_stdc=no
4667 if test $ac_cv_header_stdc = yes; then
4668 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4669 cat >conftest.$ac_ext <<_ACEOF
4672 cat confdefs.h >>conftest.$ac_ext
4673 cat >>conftest.$ac_ext <<_ACEOF
4674 /* end confdefs.h. */
4678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4679 $EGREP "free" >/dev/null 2>&1; then
4682 ac_cv_header_stdc=no
4688 if test $ac_cv_header_stdc = yes; then
4689 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4690 if test "$cross_compiling" = yes; then
4693 cat >conftest.$ac_ext <<_ACEOF
4696 cat confdefs.h >>conftest.$ac_ext
4697 cat >>conftest.$ac_ext <<_ACEOF
4698 /* end confdefs.h. */
4700 #if ((' ' & 0x0FF) == 0x020)
4701 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4702 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4704 # define ISLOWER(c) \
4705 (('a' <= (c) && (c) <= 'i') \
4706 || ('j' <= (c) && (c) <= 'r') \
4707 || ('s' <= (c) && (c) <= 'z'))
4708 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4711 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4716 for (i = 0; i < 256; i++)
4717 if (XOR (islower (i), ISLOWER (i))
4718 || toupper (i) != TOUPPER (i))
4723 rm -f conftest$ac_exeext
4724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4725 (eval $ac_link) 2>&5
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); }; }; then
4736 echo "$as_me: program exited with status $ac_status" >&5
4737 echo "$as_me: failed program was:" >&5
4738 sed 's/^/| /' conftest.$ac_ext >&5
4741 ac_cv_header_stdc=no
4743 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4747 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4748 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4749 if test $ac_cv_header_stdc = yes; then
4751 cat >>confdefs.h <<\_ACEOF
4752 #define STDC_HEADERS 1
4757 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4767 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4768 inttypes.h stdint.h unistd.h
4770 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4771 echo "$as_me:$LINENO: checking for $ac_header" >&5
4772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4774 echo $ECHO_N "(cached) $ECHO_C" >&6
4776 cat >conftest.$ac_ext <<_ACEOF
4779 cat confdefs.h >>conftest.$ac_ext
4780 cat >>conftest.$ac_ext <<_ACEOF
4781 /* end confdefs.h. */
4782 $ac_includes_default
4784 #include <$ac_header>
4786 rm -f conftest.$ac_objext
4787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4788 (eval $ac_compile) 2>conftest.er1
4790 grep -v '^ *+' conftest.er1 >conftest.err
4792 cat conftest.err >&5
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); } &&
4795 { ac_try='test -z "$ac_c_werror_flag"
4796 || test ! -s conftest.err'
4797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); }; } &&
4802 { ac_try='test -s conftest.$ac_objext'
4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; }; then
4808 eval "$as_ac_Header=yes"
4810 echo "$as_me: failed program was:" >&5
4811 sed 's/^/| /' conftest.$ac_ext >&5
4813 eval "$as_ac_Header=no"
4815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4819 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4820 cat >>confdefs.h <<_ACEOF
4821 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4830 for ac_header in dlfcn.h
4832 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4834 echo "$as_me:$LINENO: checking for $ac_header" >&5
4835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4837 echo $ECHO_N "(cached) $ECHO_C" >&6
4839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4840 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4842 # Is the header compilable?
4843 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4844 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4845 cat >conftest.$ac_ext <<_ACEOF
4848 cat confdefs.h >>conftest.$ac_ext
4849 cat >>conftest.$ac_ext <<_ACEOF
4850 /* end confdefs.h. */
4851 $ac_includes_default
4852 #include <$ac_header>
4854 rm -f conftest.$ac_objext
4855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4856 (eval $ac_compile) 2>conftest.er1
4858 grep -v '^ *+' conftest.er1 >conftest.err
4860 cat conftest.err >&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); } &&
4863 { ac_try='test -z "$ac_c_werror_flag"
4864 || test ! -s conftest.err'
4865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); }; } &&
4870 { ac_try='test -s conftest.$ac_objext'
4871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); }; }; then
4876 ac_header_compiler=yes
4878 echo "$as_me: failed program was:" >&5
4879 sed 's/^/| /' conftest.$ac_ext >&5
4881 ac_header_compiler=no
4883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4884 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4885 echo "${ECHO_T}$ac_header_compiler" >&6
4887 # Is the header present?
4888 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4889 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4890 cat >conftest.$ac_ext <<_ACEOF
4893 cat confdefs.h >>conftest.$ac_ext
4894 cat >>conftest.$ac_ext <<_ACEOF
4895 /* end confdefs.h. */
4896 #include <$ac_header>
4898 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4899 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4901 grep -v '^ *+' conftest.er1 >conftest.err
4903 cat conftest.err >&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); } >/dev/null; then
4906 if test -s conftest.err; then
4907 ac_cpp_err=$ac_c_preproc_warn_flag
4908 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4915 if test -z "$ac_cpp_err"; then
4916 ac_header_preproc=yes
4918 echo "$as_me: failed program was:" >&5
4919 sed 's/^/| /' conftest.$ac_ext >&5
4921 ac_header_preproc=no
4923 rm -f conftest.err conftest.$ac_ext
4924 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4925 echo "${ECHO_T}$ac_header_preproc" >&6
4927 # So? What about this header?
4928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4930 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4931 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4933 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4934 ac_header_preproc=yes
4937 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4938 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4939 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4940 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4941 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4942 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4943 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4944 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4946 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4947 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4948 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4951 ## ------------------------------------------ ##
4952 ## Report this to the AC_PACKAGE_NAME lists. ##
4953 ## ------------------------------------------ ##
4956 sed "s/^/$as_me: WARNING: /" >&2
4959 echo "$as_me:$LINENO: checking for $ac_header" >&5
4960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4962 echo $ECHO_N "(cached) $ECHO_C" >&6
4964 eval "$as_ac_Header=\$ac_header_preproc"
4966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4967 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4971 cat >>confdefs.h <<_ACEOF
4972 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4981 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4982 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4983 (test "X$CXX" != "Xg++"))) ; then
4985 ac_cpp='$CXXCPP $CPPFLAGS'
4986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4989 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4990 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4991 if test -z "$CXXCPP"; then
4992 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4993 echo $ECHO_N "(cached) $ECHO_C" >&6
4995 # Double quotes because CXXCPP needs to be expanded
4996 for CXXCPP in "$CXX -E" "/lib/cpp"
4999 for ac_cxx_preproc_warn_flag in '' yes
5001 # Use a header file that comes with gcc, so configuring glibc
5002 # with a fresh cross-compiler works.
5003 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5004 # <limits.h> exists even on freestanding compilers.
5005 # On the NeXT, cc -E runs the code through the compiler's parser,
5006 # not just through cpp. "Syntax error" is here to catch this case.
5007 cat >conftest.$ac_ext <<_ACEOF
5010 cat confdefs.h >>conftest.$ac_ext
5011 cat >>conftest.$ac_ext <<_ACEOF
5012 /* end confdefs.h. */
5014 # include <limits.h>
5016 # include <assert.h>
5020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5021 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5023 grep -v '^ *+' conftest.er1 >conftest.err
5025 cat conftest.err >&5
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); } >/dev/null; then
5028 if test -s conftest.err; then
5029 ac_cpp_err=$ac_cxx_preproc_warn_flag
5030 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5037 if test -z "$ac_cpp_err"; then
5040 echo "$as_me: failed program was:" >&5
5041 sed 's/^/| /' conftest.$ac_ext >&5
5043 # Broken: fails on valid input.
5046 rm -f conftest.err conftest.$ac_ext
5048 # OK, works on sane cases. Now check whether non-existent headers
5049 # can be detected and how.
5050 cat >conftest.$ac_ext <<_ACEOF
5053 cat confdefs.h >>conftest.$ac_ext
5054 cat >>conftest.$ac_ext <<_ACEOF
5055 /* end confdefs.h. */
5056 #include <ac_nonexistent.h>
5058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5059 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5061 grep -v '^ *+' conftest.er1 >conftest.err
5063 cat conftest.err >&5
5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); } >/dev/null; then
5066 if test -s conftest.err; then
5067 ac_cpp_err=$ac_cxx_preproc_warn_flag
5068 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5075 if test -z "$ac_cpp_err"; then
5076 # Broken: success on invalid input.
5079 echo "$as_me: failed program was:" >&5
5080 sed 's/^/| /' conftest.$ac_ext >&5
5082 # Passes both tests.
5086 rm -f conftest.err conftest.$ac_ext
5089 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5090 rm -f conftest.err conftest.$ac_ext
5091 if $ac_preproc_ok; then
5096 ac_cv_prog_CXXCPP=$CXXCPP
5099 CXXCPP=$ac_cv_prog_CXXCPP
5101 ac_cv_prog_CXXCPP=$CXXCPP
5103 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5104 echo "${ECHO_T}$CXXCPP" >&6
5106 for ac_cxx_preproc_warn_flag in '' yes
5108 # Use a header file that comes with gcc, so configuring glibc
5109 # with a fresh cross-compiler works.
5110 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5111 # <limits.h> exists even on freestanding compilers.
5112 # On the NeXT, cc -E runs the code through the compiler's parser,
5113 # not just through cpp. "Syntax error" is here to catch this case.
5114 cat >conftest.$ac_ext <<_ACEOF
5117 cat confdefs.h >>conftest.$ac_ext
5118 cat >>conftest.$ac_ext <<_ACEOF
5119 /* end confdefs.h. */
5121 # include <limits.h>
5123 # include <assert.h>
5127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5128 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5130 grep -v '^ *+' conftest.er1 >conftest.err
5132 cat conftest.err >&5
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); } >/dev/null; then
5135 if test -s conftest.err; then
5136 ac_cpp_err=$ac_cxx_preproc_warn_flag
5137 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5144 if test -z "$ac_cpp_err"; then
5147 echo "$as_me: failed program was:" >&5
5148 sed 's/^/| /' conftest.$ac_ext >&5
5150 # Broken: fails on valid input.
5153 rm -f conftest.err conftest.$ac_ext
5155 # OK, works on sane cases. Now check whether non-existent headers
5156 # can be detected and how.
5157 cat >conftest.$ac_ext <<_ACEOF
5160 cat confdefs.h >>conftest.$ac_ext
5161 cat >>conftest.$ac_ext <<_ACEOF
5162 /* end confdefs.h. */
5163 #include <ac_nonexistent.h>
5165 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5166 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5168 grep -v '^ *+' conftest.er1 >conftest.err
5170 cat conftest.err >&5
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); } >/dev/null; then
5173 if test -s conftest.err; then
5174 ac_cpp_err=$ac_cxx_preproc_warn_flag
5175 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5182 if test -z "$ac_cpp_err"; then
5183 # Broken: success on invalid input.
5186 echo "$as_me: failed program was:" >&5
5187 sed 's/^/| /' conftest.$ac_ext >&5
5189 # Passes both tests.
5193 rm -f conftest.err conftest.$ac_ext
5196 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5197 rm -f conftest.err conftest.$ac_ext
5198 if $ac_preproc_ok; then
5201 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5202 See \`config.log' for more details." >&5
5203 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5204 See \`config.log' for more details." >&2;}
5205 { (exit 1); exit 1; }; }
5209 ac_cpp='$CXXCPP $CPPFLAGS'
5210 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5211 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5212 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5218 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5219 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5220 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5221 if test -n "$ac_tool_prefix"; then
5222 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5224 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5225 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5226 echo "$as_me:$LINENO: checking for $ac_word" >&5
5227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5228 if test "${ac_cv_prog_F77+set}" = set; then
5229 echo $ECHO_N "(cached) $ECHO_C" >&6
5231 if test -n "$F77"; then
5232 ac_cv_prog_F77="$F77" # Let the user override the test.
5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238 test -z "$as_dir" && as_dir=.
5239 for ac_exec_ext in '' $ac_executable_extensions; do
5240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5241 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5251 if test -n "$F77"; then
5252 echo "$as_me:$LINENO: result: $F77" >&5
5253 echo "${ECHO_T}$F77" >&6
5255 echo "$as_me:$LINENO: result: no" >&5
5256 echo "${ECHO_T}no" >&6
5259 test -n "$F77" && break
5262 if test -z "$F77"; then
5264 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5266 # Extract the first word of "$ac_prog", so it can be a program name with args.
5267 set dummy $ac_prog; ac_word=$2
5268 echo "$as_me:$LINENO: checking for $ac_word" >&5
5269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5270 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5271 echo $ECHO_N "(cached) $ECHO_C" >&6
5273 if test -n "$ac_ct_F77"; then
5274 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280 test -z "$as_dir" && as_dir=.
5281 for ac_exec_ext in '' $ac_executable_extensions; do
5282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5283 ac_cv_prog_ac_ct_F77="$ac_prog"
5284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5292 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5293 if test -n "$ac_ct_F77"; then
5294 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5295 echo "${ECHO_T}$ac_ct_F77" >&6
5297 echo "$as_me:$LINENO: result: no" >&5
5298 echo "${ECHO_T}no" >&6
5301 test -n "$ac_ct_F77" && break
5308 # Provide some information about the compiler.
5309 echo "$as_me:5309:" \
5310 "checking for Fortran 77 compiler version" >&5
5311 ac_compiler=`set X $ac_compile; echo $2`
5312 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5313 (eval $ac_compiler --version </dev/null >&5) 2>&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); }
5317 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5318 (eval $ac_compiler -v </dev/null >&5) 2>&5
5320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321 (exit $ac_status); }
5322 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5323 (eval $ac_compiler -V </dev/null >&5) 2>&5
5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326 (exit $ac_status); }
5329 # If we don't use `.F' as extension, the preprocessor is not run on the
5330 # input file. (Note that this only needs to work for GNU compilers.)
5333 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5334 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5335 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5336 echo $ECHO_N "(cached) $ECHO_C" >&6
5338 cat >conftest.$ac_ext <<_ACEOF
5346 rm -f conftest.$ac_objext
5347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5348 (eval $ac_compile) 2>conftest.er1
5350 grep -v '^ *+' conftest.er1 >conftest.err
5352 cat conftest.err >&5
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); } &&
5355 { ac_try='test -z "$ac_f77_werror_flag"
5356 || test ! -s conftest.err'
5357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); }; } &&
5362 { ac_try='test -s conftest.$ac_objext'
5363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); }; }; then
5370 echo "$as_me: failed program was:" >&5
5371 sed 's/^/| /' conftest.$ac_ext >&5
5375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5376 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5379 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5380 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5382 ac_test_FFLAGS=${FFLAGS+set}
5383 ac_save_FFLAGS=$FFLAGS
5385 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5386 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5387 if test "${ac_cv_prog_f77_g+set}" = set; then
5388 echo $ECHO_N "(cached) $ECHO_C" >&6
5391 cat >conftest.$ac_ext <<_ACEOF
5396 rm -f conftest.$ac_objext
5397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5398 (eval $ac_compile) 2>conftest.er1
5400 grep -v '^ *+' conftest.er1 >conftest.err
5402 cat conftest.err >&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); } &&
5405 { ac_try='test -z "$ac_f77_werror_flag"
5406 || test ! -s conftest.err'
5407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); }; } &&
5412 { ac_try='test -s conftest.$ac_objext'
5413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); }; }; then
5418 ac_cv_prog_f77_g=yes
5420 echo "$as_me: failed program was:" >&5
5421 sed 's/^/| /' conftest.$ac_ext >&5
5425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5428 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5429 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5430 if test "$ac_test_FFLAGS" = set; then
5431 FFLAGS=$ac_save_FFLAGS
5432 elif test $ac_cv_prog_f77_g = yes; then
5433 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5439 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5446 G77=`test $ac_compiler_gnu = yes && echo yes`
5448 ac_cpp='$CPP $CPPFLAGS'
5449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5455 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5457 # find the maximum length of command line arguments
5458 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5459 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5460 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5461 echo $ECHO_N "(cached) $ECHO_C" >&6
5468 # On DJGPP, this test can blow up pretty badly due to problems in libc
5469 # (any single argument exceeding 2000 bytes causes a buffer overrun
5470 # during glob expansion). Even if it were fixed, the result of this
5471 # check would be larger than it should be.
5472 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5476 # Under GNU Hurd, this test is not required because there is
5477 # no limit to the length of command line arguments.
5478 # Libtool will interpret -1 as no limit whatsoever
5479 lt_cv_sys_max_cmd_len=-1;
5483 # On Win9x/ME, this test blows up -- it succeeds, but takes
5484 # about 5 minutes as the teststring grows exponentially.
5485 # Worse, since 9x/ME are not pre-emptively multitasking,
5486 # you end up with a "frozen" computer, even though with patience
5487 # the test eventually succeeds (with a max line length of 256k).
5488 # Instead, let's just punt: use the minimum linelength reported by
5489 # all of the supported platforms: 8192 (on NT/2K/XP).
5490 lt_cv_sys_max_cmd_len=8192;
5494 # On AmigaOS with pdksh, this test takes hours, literally.
5495 # So we just punt and use a minimum line length of 8192.
5496 lt_cv_sys_max_cmd_len=8192;
5499 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5500 # This has been around since 386BSD, at least. Likely further.
5501 if test -x /sbin/sysctl; then
5502 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5503 elif test -x /usr/sbin/sysctl; then
5504 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5506 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5508 # And add a safety zone
5509 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5512 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5513 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5514 # nice to cause kernel panics so lets avoid the loop below.
5515 # First set a reasonable default.
5516 lt_cv_sys_max_cmd_len=16384
5518 if test -x /sbin/sysconfig; then
5519 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5520 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5525 # If test is not a shell built-in, we'll probably end up computing a
5526 # maximum length that is only half of the actual maximum length, but
5528 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5529 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5530 = "XX$teststring") >/dev/null 2>&1 &&
5531 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5532 lt_cv_sys_max_cmd_len=$new_result &&
5533 test $i != 17 # 1/2 MB should be enough
5536 teststring=$teststring$teststring
5539 # Add a significant safety factor because C++ compilers can tack on massive
5540 # amounts of additional arguments before passing them to the linker.
5541 # It appears as though 1/2 is a usable value.
5542 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5548 if test -n $lt_cv_sys_max_cmd_len ; then
5549 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5550 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5552 echo "$as_me:$LINENO: result: none" >&5
5553 echo "${ECHO_T}none" >&6
5559 # Check for command to grab the raw symbol name followed by C symbol from nm.
5560 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5561 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5562 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5563 echo $ECHO_N "(cached) $ECHO_C" >&6
5566 # These are sane defaults that work on at least a few old systems.
5567 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5569 # Character class describing NM global symbol codes.
5570 symcode='[BCDEGRST]'
5572 # Regexp to match symbols that can be accessed directly from C.
5573 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5575 # Transform an extracted symbol line into a proper C declaration
5576 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5578 # Transform an extracted symbol line into symbol name and symbol address
5579 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'"
5581 # Define system-specific variables.
5586 cygwin* | mingw* | pw32*)
5587 symcode='[ABCDGISTW]'
5589 hpux*) # Its linker distinguishes data from code symbols
5590 if test "$host_cpu" = ia64; then
5591 symcode='[ABCDEGRST]'
5593 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5594 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'"
5597 if test "$host_cpu" = ia64; then
5598 symcode='[ABCDGIRSTW]'
5599 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5600 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'"
5604 symcode='[BCDEGRST]'
5607 symcode='[BCDEGQRST]'
5617 # Handle CRLF in mingw tool chain
5621 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5625 # If we're using GNU nm, then use its standard symbol codes.
5626 case `$NM -V 2>&1` in
5627 *GNU* | *'with BFD'*)
5628 symcode='[ABCDGIRSTW]' ;;
5631 # Try without a prefix undercore, then with it.
5632 for ac_symprfx in "" "_"; do
5634 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5635 symxfrm="\\1 $ac_symprfx\\2 \\2"
5637 # Write the raw and C identifiers.
5638 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5640 # Check to see that the pipe works correctly.
5644 cat > conftest.$ac_ext <<EOF
5649 void nm_test_func(){}
5653 int main(){nm_test_var='a';nm_test_func();return(0);}
5656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5657 (eval $ac_compile) 2>&5
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); }; then
5661 # Now try to grab the symbols.
5663 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5664 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); } && test -s "$nlist"; then
5668 # Try sorting and uniquifying the output.
5669 if sort "$nlist" | uniq > "$nlist"T; then
5670 mv -f "$nlist"T "$nlist"
5675 # Make sure that we snagged all the symbols we need.
5676 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5677 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5678 cat <<EOF > conftest.$ac_ext
5684 # Now generate the symbol file.
5685 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5687 cat <<EOF >> conftest.$ac_ext
5688 #if defined (__STDC__) && __STDC__
5689 # define lt_ptr_t void *
5691 # define lt_ptr_t char *
5695 /* The mapping between symbol names and symbols. */
5700 lt_preloaded_symbols[] =
5703 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5704 cat <<\EOF >> conftest.$ac_ext
5712 # Now try linking the two files.
5713 mv conftest.$ac_objext conftstm.$ac_objext
5714 lt_save_LIBS="$LIBS"
5715 lt_save_CFLAGS="$CFLAGS"
5716 LIBS="conftstm.$ac_objext"
5717 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5719 (eval $ac_link) 2>&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5725 LIBS="$lt_save_LIBS"
5726 CFLAGS="$lt_save_CFLAGS"
5728 echo "cannot find nm_test_func in $nlist" >&5
5731 echo "cannot find nm_test_var in $nlist" >&5
5734 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5737 echo "$progname: failed program was:" >&5
5738 cat conftest.$ac_ext >&5
5740 rm -f conftest* conftst*
5742 # Do not use the global_symbol_pipe unless it works.
5743 if test "$pipe_works" = yes; then
5746 lt_cv_sys_global_symbol_pipe=
5752 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5753 lt_cv_sys_global_symbol_to_cdecl=
5755 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5756 echo "$as_me:$LINENO: result: failed" >&5
5757 echo "${ECHO_T}failed" >&6
5759 echo "$as_me:$LINENO: result: ok" >&5
5760 echo "${ECHO_T}ok" >&6
5763 echo "$as_me:$LINENO: checking for objdir" >&5
5764 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5765 if test "${lt_cv_objdir+set}" = set; then
5766 echo $ECHO_N "(cached) $ECHO_C" >&6
5768 rm -f .libs 2>/dev/null
5769 mkdir .libs 2>/dev/null
5770 if test -d .libs; then
5773 # MS-DOS does not allow filenames that begin with a dot.
5776 rmdir .libs 2>/dev/null
5778 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5779 echo "${ECHO_T}$lt_cv_objdir" >&6
5780 objdir=$lt_cv_objdir
5788 # AIX sometimes has problems with the GCC collect2 program. For some
5789 # reason, if we set the COLLECT_NAMES environment variable, the problems
5790 # vanish in a puff of smoke.
5791 if test "X${COLLECT_NAMES+set}" != Xset; then
5793 export COLLECT_NAMES
5798 # Sed substitution that helps us do robust quoting. It backslashifies
5799 # metacharacters that are still active within double-quoted strings.
5800 Xsed='sed -e s/^X//'
5801 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5803 # Same as above, but do not quote variable references.
5804 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5806 # Sed substitution to delay expansion of an escaped shell variable in a
5807 # double_quote_subst'ed string.
5808 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5810 # Sed substitution to avoid accidental globbing in evaled expressions
5811 no_glob_subst='s/\*/\\\*/g'
5817 default_ofile=libtool
5818 can_build_shared=yes
5820 # All known linkers require a `.a' archive for static linking (except M$VC,
5821 # which needs '.lib').
5823 ltmain="$ac_aux_dir/ltmain.sh"
5824 ofile="$default_ofile"
5825 with_gnu_ld="$lt_cv_prog_gnu_ld"
5827 if test -n "$ac_tool_prefix"; then
5828 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5829 set dummy ${ac_tool_prefix}ar; ac_word=$2
5830 echo "$as_me:$LINENO: checking for $ac_word" >&5
5831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5832 if test "${ac_cv_prog_AR+set}" = set; then
5833 echo $ECHO_N "(cached) $ECHO_C" >&6
5835 if test -n "$AR"; then
5836 ac_cv_prog_AR="$AR" # Let the user override the test.
5838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5842 test -z "$as_dir" && as_dir=.
5843 for ac_exec_ext in '' $ac_executable_extensions; do
5844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5845 ac_cv_prog_AR="${ac_tool_prefix}ar"
5846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5855 if test -n "$AR"; then
5856 echo "$as_me:$LINENO: result: $AR" >&5
5857 echo "${ECHO_T}$AR" >&6
5859 echo "$as_me:$LINENO: result: no" >&5
5860 echo "${ECHO_T}no" >&6
5864 if test -z "$ac_cv_prog_AR"; then
5866 # Extract the first word of "ar", so it can be a program name with args.
5867 set dummy ar; ac_word=$2
5868 echo "$as_me:$LINENO: checking for $ac_word" >&5
5869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5870 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5871 echo $ECHO_N "(cached) $ECHO_C" >&6
5873 if test -n "$ac_ct_AR"; then
5874 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5880 test -z "$as_dir" && as_dir=.
5881 for ac_exec_ext in '' $ac_executable_extensions; do
5882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5883 ac_cv_prog_ac_ct_AR="ar"
5884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5890 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5893 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5894 if test -n "$ac_ct_AR"; then
5895 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5896 echo "${ECHO_T}$ac_ct_AR" >&6
5898 echo "$as_me:$LINENO: result: no" >&5
5899 echo "${ECHO_T}no" >&6
5907 if test -n "$ac_tool_prefix"; then
5908 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5909 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5910 echo "$as_me:$LINENO: checking for $ac_word" >&5
5911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5912 if test "${ac_cv_prog_RANLIB+set}" = set; then
5913 echo $ECHO_N "(cached) $ECHO_C" >&6
5915 if test -n "$RANLIB"; then
5916 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5922 test -z "$as_dir" && as_dir=.
5923 for ac_exec_ext in '' $ac_executable_extensions; do
5924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5925 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5934 RANLIB=$ac_cv_prog_RANLIB
5935 if test -n "$RANLIB"; then
5936 echo "$as_me:$LINENO: result: $RANLIB" >&5
5937 echo "${ECHO_T}$RANLIB" >&6
5939 echo "$as_me:$LINENO: result: no" >&5
5940 echo "${ECHO_T}no" >&6
5944 if test -z "$ac_cv_prog_RANLIB"; then
5945 ac_ct_RANLIB=$RANLIB
5946 # Extract the first word of "ranlib", so it can be a program name with args.
5947 set dummy ranlib; ac_word=$2
5948 echo "$as_me:$LINENO: checking for $ac_word" >&5
5949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5950 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5951 echo $ECHO_N "(cached) $ECHO_C" >&6
5953 if test -n "$ac_ct_RANLIB"; then
5954 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960 test -z "$as_dir" && as_dir=.
5961 for ac_exec_ext in '' $ac_executable_extensions; do
5962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5963 ac_cv_prog_ac_ct_RANLIB="ranlib"
5964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5970 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5973 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5974 if test -n "$ac_ct_RANLIB"; then
5975 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5976 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5978 echo "$as_me:$LINENO: result: no" >&5
5979 echo "${ECHO_T}no" >&6
5982 RANLIB=$ac_ct_RANLIB
5984 RANLIB="$ac_cv_prog_RANLIB"
5987 if test -n "$ac_tool_prefix"; then
5988 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5989 set dummy ${ac_tool_prefix}strip; ac_word=$2
5990 echo "$as_me:$LINENO: checking for $ac_word" >&5
5991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5992 if test "${ac_cv_prog_STRIP+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5995 if test -n "$STRIP"; then
5996 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6002 test -z "$as_dir" && as_dir=.
6003 for ac_exec_ext in '' $ac_executable_extensions; do
6004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6005 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6014 STRIP=$ac_cv_prog_STRIP
6015 if test -n "$STRIP"; then
6016 echo "$as_me:$LINENO: result: $STRIP" >&5
6017 echo "${ECHO_T}$STRIP" >&6
6019 echo "$as_me:$LINENO: result: no" >&5
6020 echo "${ECHO_T}no" >&6
6024 if test -z "$ac_cv_prog_STRIP"; then
6026 # Extract the first word of "strip", so it can be a program name with args.
6027 set dummy strip; ac_word=$2
6028 echo "$as_me:$LINENO: checking for $ac_word" >&5
6029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6030 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6031 echo $ECHO_N "(cached) $ECHO_C" >&6
6033 if test -n "$ac_ct_STRIP"; then
6034 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040 test -z "$as_dir" && as_dir=.
6041 for ac_exec_ext in '' $ac_executable_extensions; do
6042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6043 ac_cv_prog_ac_ct_STRIP="strip"
6044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6050 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6053 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6054 if test -n "$ac_ct_STRIP"; then
6055 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6056 echo "${ECHO_T}$ac_ct_STRIP" >&6
6058 echo "$as_me:$LINENO: result: no" >&5
6059 echo "${ECHO_T}no" >&6
6064 STRIP="$ac_cv_prog_STRIP"
6069 old_CFLAGS="$CFLAGS"
6071 # Set sane defaults for various variables
6072 test -z "$AR" && AR=ar
6073 test -z "$AR_FLAGS" && AR_FLAGS=cru
6074 test -z "$AS" && AS=as
6075 test -z "$CC" && CC=cc
6076 test -z "$LTCC" && LTCC=$CC
6077 test -z "$DLLTOOL" && DLLTOOL=dlltool
6078 test -z "$LD" && LD=ld
6079 test -z "$LN_S" && LN_S="ln -s"
6080 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6081 test -z "$NM" && NM=nm
6082 test -z "$SED" && SED=sed
6083 test -z "$OBJDUMP" && OBJDUMP=objdump
6084 test -z "$RANLIB" && RANLIB=:
6085 test -z "$STRIP" && STRIP=:
6086 test -z "$ac_objext" && ac_objext=o
6088 # Determine commands to create old-style static archives.
6089 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6090 old_postinstall_cmds='chmod 644 $oldlib'
6091 old_postuninstall_cmds=
6093 if test -n "$RANLIB"; then
6096 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6099 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6102 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6105 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
6107 # Only perform the check for file, if the check method requires it
6108 case $deplibs_check_method in
6110 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6111 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6112 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6113 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6114 echo $ECHO_N "(cached) $ECHO_C" >&6
6118 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6121 lt_save_MAGIC_CMD="$MAGIC_CMD"
6122 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6123 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6124 for ac_dir in $ac_dummy; do
6126 test -z "$ac_dir" && ac_dir=.
6127 if test -f $ac_dir/${ac_tool_prefix}file; then
6128 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6129 if test -n "$file_magic_test_file"; then
6130 case $deplibs_check_method in
6132 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6133 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6134 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6135 $EGREP "$file_magic_regex" > /dev/null; then
6140 *** Warning: the command libtool uses to detect shared libraries,
6141 *** $file_magic_cmd, produces output that libtool cannot recognize.
6142 *** The result is that libtool may fail to recognize shared libraries
6143 *** as such. This will affect the creation of libtool libraries that
6144 *** depend on shared libraries, but programs linked with such libtool
6145 *** libraries will work regardless of this problem. Nevertheless, you
6146 *** may want to report the problem to your system manager and/or to
6147 *** bug-libtool@gnu.org
6157 MAGIC_CMD="$lt_save_MAGIC_CMD"
6162 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6163 if test -n "$MAGIC_CMD"; then
6164 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6165 echo "${ECHO_T}$MAGIC_CMD" >&6
6167 echo "$as_me:$LINENO: result: no" >&5
6168 echo "${ECHO_T}no" >&6
6171 if test -z "$lt_cv_path_MAGIC_CMD"; then
6172 if test -n "$ac_tool_prefix"; then
6173 echo "$as_me:$LINENO: checking for file" >&5
6174 echo $ECHO_N "checking for file... $ECHO_C" >&6
6175 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6176 echo $ECHO_N "(cached) $ECHO_C" >&6
6180 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6183 lt_save_MAGIC_CMD="$MAGIC_CMD"
6184 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6185 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6186 for ac_dir in $ac_dummy; do
6188 test -z "$ac_dir" && ac_dir=.
6189 if test -f $ac_dir/file; then
6190 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6191 if test -n "$file_magic_test_file"; then
6192 case $deplibs_check_method in
6194 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6195 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6196 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6197 $EGREP "$file_magic_regex" > /dev/null; then
6202 *** Warning: the command libtool uses to detect shared libraries,
6203 *** $file_magic_cmd, produces output that libtool cannot recognize.
6204 *** The result is that libtool may fail to recognize shared libraries
6205 *** as such. This will affect the creation of libtool libraries that
6206 *** depend on shared libraries, but programs linked with such libtool
6207 *** libraries will work regardless of this problem. Nevertheless, you
6208 *** may want to report the problem to your system manager and/or to
6209 *** bug-libtool@gnu.org
6219 MAGIC_CMD="$lt_save_MAGIC_CMD"
6224 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6225 if test -n "$MAGIC_CMD"; then
6226 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6227 echo "${ECHO_T}$MAGIC_CMD" >&6
6229 echo "$as_me:$LINENO: result: no" >&5
6230 echo "${ECHO_T}no" >&6
6245 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6246 if test "${enable_libtool_lock+set}" = set; then
6247 enableval="$enable_libtool_lock"
6250 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6253 # Check whether --with-pic or --without-pic was given.
6254 if test "${with_pic+set}" = set; then
6260 test -z "$pic_mode" && pic_mode=default
6262 # Use C for the default configuration in the libtool script
6266 ac_cpp='$CPP $CPPFLAGS'
6267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6272 # Source file extension for C test sources.
6275 # Object file extension for compiled C test sources.
6279 # Code to be used in simple compile tests
6280 lt_simple_compile_test_code="int some_variable = 0;\n"
6282 # Code to be used in simple link tests
6283 lt_simple_link_test_code='int main(){return(0);}\n'
6286 # If no C compiler was specified, use CC.
6289 # Allow CC to be a program name with arguments.
6294 # Check for any special shared library compilation flags.
6297 if test "$GCC" = no; then
6300 lt_prog_cc_shlib='-belf'
6304 if test -n "$lt_prog_cc_shlib"; then
6305 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6306 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6307 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6309 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6310 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6311 lt_cv_prog_cc_can_build_shared=no
6317 # Check to make sure the static flag actually works.
6319 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6320 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6321 if test "${lt_prog_compiler_static_works+set}" = set; then
6322 echo $ECHO_N "(cached) $ECHO_C" >&6
6324 lt_prog_compiler_static_works=no
6325 save_LDFLAGS="$LDFLAGS"
6326 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6327 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6328 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6329 # The compiler can only warn and ignore the option if not recognized
6330 # So say no if there are warnings
6331 if test -s conftest.err; then
6332 # Append any errors to the config.log.
6333 cat conftest.err 1>&5
6335 lt_prog_compiler_static_works=yes
6339 LDFLAGS="$save_LDFLAGS"
6342 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6343 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6345 if test x"$lt_prog_compiler_static_works" = xyes; then
6348 lt_prog_compiler_static=
6354 lt_prog_compiler_no_builtin_flag=
6356 if test "$GCC" = yes; then
6357 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6360 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6361 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6362 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6363 echo $ECHO_N "(cached) $ECHO_C" >&6
6365 lt_cv_prog_compiler_rtti_exceptions=no
6366 ac_outfile=conftest.$ac_objext
6367 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6368 lt_compiler_flag="-fno-rtti -fno-exceptions"
6369 # Insert the option either (1) after the last *FLAGS variable, or
6370 # (2) before a word containing "conftest.", or (3) at the end.
6371 # Note that $ac_compile itself does not contain backslashes and begins
6372 # with a dollar sign (not a hyphen), so the echo should work correctly.
6373 # The option is referenced via a variable to avoid confusing sed.
6374 lt_compile=`echo "$ac_compile" | $SED \
6375 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6376 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6377 -e 's:$: $lt_compiler_flag:'`
6378 (eval echo "\"\$as_me:6378: $lt_compile\"" >&5)
6379 (eval "$lt_compile" 2>conftest.err)
6381 cat conftest.err >&5
6382 echo "$as_me:6382: \$? = $ac_status" >&5
6383 if (exit $ac_status) && test -s "$ac_outfile"; then
6384 # The compiler can only warn and ignore the option if not recognized
6385 # So say no if there are warnings
6386 if test ! -s conftest.err; then
6387 lt_cv_prog_compiler_rtti_exceptions=yes
6393 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6394 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6396 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6397 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6404 lt_prog_compiler_wl=
6405 lt_prog_compiler_pic=
6406 lt_prog_compiler_static=
6408 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6409 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6411 if test "$GCC" = yes; then
6412 lt_prog_compiler_wl='-Wl,'
6413 lt_prog_compiler_static='-static'
6417 # All AIX code is PIC.
6418 if test "$host_cpu" = ia64; then
6419 # AIX 5 now supports IA64 processor
6420 lt_prog_compiler_static='-Bstatic'
6425 # FIXME: we need at least 68020 code to build shared libraries, but
6426 # adding the `-m68020' flag to GCC prevents building anything better,
6428 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6431 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6432 # PIC is the default for these OSes.
6435 mingw* | pw32* | os2*)
6436 # This hack is so that the source file can tell whether it is being
6437 # built for inclusion in a dll (and should export symbols for example).
6438 lt_prog_compiler_pic='-DDLL_EXPORT'
6441 darwin* | rhapsody*)
6442 # PIC is the default on this platform
6443 # Common symbols not allowed in MH_DYLIB files
6444 lt_prog_compiler_pic='-fno-common'
6448 # Just because we use GCC doesn't mean we suddenly get shared libraries
6449 # on systems that don't support them.
6450 lt_prog_compiler_can_build_shared=no
6455 if test -d /usr/nec; then
6456 lt_prog_compiler_pic=-Kconform_pic
6461 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6468 lt_prog_compiler_pic='-fPIC'
6474 lt_prog_compiler_pic='-fPIC'
6478 # PORTME Check for flag to pass linker flags through the system compiler.
6481 lt_prog_compiler_wl='-Wl,'
6482 if test "$host_cpu" = ia64; then
6483 # AIX 5 now supports IA64 processor
6484 lt_prog_compiler_static='-Bstatic'
6486 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6490 # PIC is the default on this platform
6491 # Common symbols not allowed in MH_DYLIB files
6492 case "$cc_basename" in
6494 lt_prog_compiler_pic='-qnocommon'
6495 lt_prog_compiler_wl='-Wl,'
6500 mingw* | pw32* | os2*)
6501 # This hack is so that the source file can tell whether it is being
6502 # built for inclusion in a dll (and should export symbols for example).
6503 lt_prog_compiler_pic='-DDLL_EXPORT'
6506 hpux9* | hpux10* | hpux11*)
6507 lt_prog_compiler_wl='-Wl,'
6508 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6515 lt_prog_compiler_pic='+Z'
6518 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6519 lt_prog_compiler_static='${wl}-a ${wl}archive'
6522 irix5* | irix6* | nonstopux*)
6523 lt_prog_compiler_wl='-Wl,'
6524 # PIC (with -KPIC) is the default.
6525 lt_prog_compiler_static='-non_shared'
6529 lt_prog_compiler_pic='-KPIC'
6530 lt_prog_compiler_static='-Bstatic'
6534 case $cc_basename in
6536 lt_prog_compiler_wl='-Wl,'
6537 lt_prog_compiler_pic='-KPIC'
6538 lt_prog_compiler_static='-static'
6540 pgcc | pgf77 | pgf90)
6541 # Portland Group compilers (*not* the Pentium gcc compiler,
6542 # which looks to be a dead project)
6543 lt_prog_compiler_wl='-Wl,'
6544 lt_prog_compiler_pic='-fpic'
6545 lt_prog_compiler_static='-static'
6548 lt_prog_compiler_wl='-Wl,'
6549 # All Alpha code is PIC.
6550 lt_prog_compiler_static='-non_shared'
6555 osf3* | osf4* | osf5*)
6556 lt_prog_compiler_wl='-Wl,'
6557 # All OSF/1 code is PIC.
6558 lt_prog_compiler_static='-non_shared'
6562 lt_prog_compiler_pic='-Kpic'
6563 lt_prog_compiler_static='-dn'
6567 lt_prog_compiler_wl='-Wl,'
6568 lt_prog_compiler_pic='-KPIC'
6569 lt_prog_compiler_static='-Bstatic'
6573 lt_prog_compiler_wl='-Qoption ld '
6574 lt_prog_compiler_pic='-PIC'
6575 lt_prog_compiler_static='-Bstatic'
6578 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6579 lt_prog_compiler_wl='-Wl,'
6580 lt_prog_compiler_pic='-KPIC'
6581 lt_prog_compiler_static='-Bstatic'
6585 if test -d /usr/nec ;then
6586 lt_prog_compiler_pic='-Kconform_pic'
6587 lt_prog_compiler_static='-Bstatic'
6592 lt_prog_compiler_wl='-Wl,'
6593 lt_prog_compiler_can_build_shared=no
6597 lt_prog_compiler_pic='-pic'
6598 lt_prog_compiler_static='-Bstatic'
6602 lt_prog_compiler_can_build_shared=no
6607 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6608 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6611 # Check to make sure the PIC flag actually works.
6613 if test -n "$lt_prog_compiler_pic"; then
6615 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6616 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6617 if test "${lt_prog_compiler_pic_works+set}" = set; then
6618 echo $ECHO_N "(cached) $ECHO_C" >&6
6620 lt_prog_compiler_pic_works=no
6621 ac_outfile=conftest.$ac_objext
6622 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6623 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6624 # Insert the option either (1) after the last *FLAGS variable, or
6625 # (2) before a word containing "conftest.", or (3) at the end.
6626 # Note that $ac_compile itself does not contain backslashes and begins
6627 # with a dollar sign (not a hyphen), so the echo should work correctly.
6628 # The option is referenced via a variable to avoid confusing sed.
6629 lt_compile=`echo "$ac_compile" | $SED \
6630 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6631 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6632 -e 's:$: $lt_compiler_flag:'`
6633 (eval echo "\"\$as_me:6633: $lt_compile\"" >&5)
6634 (eval "$lt_compile" 2>conftest.err)
6636 cat conftest.err >&5
6637 echo "$as_me:6637: \$? = $ac_status" >&5
6638 if (exit $ac_status) && test -s "$ac_outfile"; then
6639 # The compiler can only warn and ignore the option if not recognized
6640 # So say no if there are warnings
6641 if test ! -s conftest.err; then
6642 lt_prog_compiler_pic_works=yes
6648 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6649 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6651 if test x"$lt_prog_compiler_pic_works" = xyes; then
6652 case $lt_prog_compiler_pic in
6654 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6657 lt_prog_compiler_pic=
6658 lt_prog_compiler_can_build_shared=no
6663 # For platforms which do not support PIC, -DPIC is meaningless:
6665 lt_prog_compiler_pic=
6668 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6672 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6673 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6674 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6675 echo $ECHO_N "(cached) $ECHO_C" >&6
6677 lt_cv_prog_compiler_c_o=no
6678 $rm -r conftest 2>/dev/null
6682 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6684 lt_compiler_flag="-o out/conftest2.$ac_objext"
6685 # Insert the option either (1) after the last *FLAGS variable, or
6686 # (2) before a word containing "conftest.", or (3) at the end.
6687 # Note that $ac_compile itself does not contain backslashes and begins
6688 # with a dollar sign (not a hyphen), so the echo should work correctly.
6689 lt_compile=`echo "$ac_compile" | $SED \
6690 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6691 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6692 -e 's:$: $lt_compiler_flag:'`
6693 (eval echo "\"\$as_me:6693: $lt_compile\"" >&5)
6694 (eval "$lt_compile" 2>out/conftest.err)
6696 cat out/conftest.err >&5
6697 echo "$as_me:6697: \$? = $ac_status" >&5
6698 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6700 # The compiler can only warn and ignore the option if not recognized
6701 # So say no if there are warnings
6702 if test ! -s out/conftest.err; then
6703 lt_cv_prog_compiler_c_o=yes
6708 # SGI C++ compiler will create directory out/ii_files/ for
6709 # template instantiation
6710 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6711 $rm out/* && rmdir out
6717 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6718 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6721 hard_links="nottested"
6722 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6723 # do not overwrite the value of need_locks provided by the user
6724 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6725 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6728 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6730 ln conftest.a conftest.b 2>&5 || hard_links=no
6731 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6732 echo "$as_me:$LINENO: result: $hard_links" >&5
6733 echo "${ECHO_T}$hard_links" >&6
6734 if test "$hard_links" = no; then
6735 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6736 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6743 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6744 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6747 allow_undefined_flag=
6748 enable_shared_with_static_runtimes=no
6750 archive_expsym_cmds=
6751 old_archive_From_new_cmds=
6752 old_archive_from_expsyms_cmds=
6753 export_dynamic_flag_spec=
6754 whole_archive_flag_spec=
6755 thread_safe_flag_spec=
6756 hardcode_libdir_flag_spec=
6757 hardcode_libdir_flag_spec_ld=
6758 hardcode_libdir_separator=
6761 hardcode_shlibpath_var=unsupported
6762 link_all_deplibs=unknown
6763 hardcode_automatic=no
6766 always_export_symbols=no
6767 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6768 # include_expsyms should be a list of space-separated symbols to be *always*
6769 # included in the symbol list
6771 # exclude_expsyms can be an extended regexp of symbols to exclude
6772 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6773 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6774 # as well as any symbol that contains `d'.
6775 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6776 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6777 # platforms (ab)use it in PIC code, but their linkers get confused if
6778 # the symbol is explicitly referenced. Since portable code cannot
6779 # rely on this symbol name, it's probably fine to never include it in
6780 # preloaded symbol tables.
6781 extract_expsyms_cmds=
6784 cygwin* | mingw* | pw32*)
6785 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6786 # When not using gcc, we currently assume that we are using
6787 # Microsoft Visual C++.
6788 if test "$GCC" != yes; then
6798 if test "$with_gnu_ld" = yes; then
6799 # If archive_cmds runs LD, not CC, wlarc should be empty
6802 # See if GNU ld supports shared libraries.
6804 aix3* | aix4* | aix5*)
6805 # On AIX/PPC, the GNU linker is very broken
6806 if test "$host_cpu" != ia64; then
6810 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6811 *** to be unable to reliably create shared libraries on AIX.
6812 *** Therefore, libtool is disabling shared libraries support. If you
6813 *** really care for shared libraries, you may want to modify your PATH
6814 *** so that a non-GNU linker is found, and then restart.
6821 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)'
6822 hardcode_libdir_flag_spec='-L$libdir'
6823 hardcode_minus_L=yes
6825 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6826 # that the semantics of dynamic libraries on AmigaOS, at least up
6827 # to version 4, is to share data among multiple programs linked
6828 # with the same dynamic library. Since this doesn't match the
6829 # behavior of shared libraries on other platforms, we can't use
6835 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6836 allow_undefined_flag=unsupported
6837 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6838 # support --undefined. This deserves some investigation. FIXME
6839 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6845 cygwin* | mingw* | pw32*)
6846 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6847 # as there is no search path for DLLs.
6848 hardcode_libdir_flag_spec='-L$libdir'
6849 allow_undefined_flag=unsupported
6850 always_export_symbols=no
6851 enable_shared_with_static_runtimes=yes
6852 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6854 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6855 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6856 # If the export-symbols file already is a .def file (1st line
6857 # is EXPORTS), use it as is; otherwise, prepend...
6858 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6859 cp $export_symbols $output_objdir/$soname.def;
6861 echo EXPORTS > $output_objdir/$soname.def;
6862 cat $export_symbols >> $output_objdir/$soname.def;
6864 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6871 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6872 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6875 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6876 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6881 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6885 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6886 *** create shared libraries on Solaris systems. Therefore, libtool
6887 *** is disabling shared libraries support. We urge you to upgrade GNU
6888 *** binutils to release 2.9.1 or newer. Another option is to modify
6889 *** your PATH or compiler configuration so that the native linker is
6890 *** used, and then restart.
6893 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6894 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6895 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6902 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6905 hardcode_shlibpath_var=no
6909 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6911 case $CC,$host_cpu in
6912 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
6913 tmp_addflag=' -fpic' ;;
6914 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6915 tmp_addflag=' -i_dynamic' ;;
6916 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6917 tmp_addflag=' -i_dynamic -nofor_main' ;;
6918 ifc* | ifort*) # Intel Fortran compiler
6919 tmp_addflag=' -nofor_main' ;;
6921 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6922 supports_anon_versioning=no
6923 case `$LD -v 2>/dev/null` in
6924 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6925 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6926 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6927 *\ 2.11.*) ;; # other 2.11 versions
6928 *) supports_anon_versioning=yes ;;
6930 if test $supports_anon_versioning = yes; then
6931 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6932 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6933 $echo "local: *; };" >> $output_objdir/$libname.ver~
6934 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6936 archive_expsym_cmds=$archive_cmds
6944 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6945 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6946 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6953 if test "$ld_shlibs" = yes; then
6954 runpath_var=LD_RUN_PATH
6955 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6956 export_dynamic_flag_spec='${wl}--export-dynamic'
6957 # ancient GNU ld didn't support --whole-archive et. al.
6958 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6959 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6961 whole_archive_flag_spec=
6965 # PORTME fill in a description of your system's linker (not GNU ld)
6968 allow_undefined_flag=unsupported
6969 always_export_symbols=yes
6970 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'
6971 # Note: this linker hardcodes the directories in LIBPATH if there
6972 # are no directories specified by -L.
6973 hardcode_minus_L=yes
6974 if test "$GCC" = yes && test -z "$link_static_flag"; then
6975 # Neither direct hardcoding nor static linking is supported with a
6977 hardcode_direct=unsupported
6982 if test "$host_cpu" = ia64; then
6983 # On IA64, the linker does run time linking by default, so we don't
6984 # have to do anything special.
6985 aix_use_runtimelinking=no
6986 exp_sym_flag='-Bexport'
6989 # If we're using GNU nm, then we don't want the "-C" option.
6990 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6991 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6992 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'
6994 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'
6996 aix_use_runtimelinking=no
6998 # Test if we are trying to use run time linking or normal
6999 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7000 # need to do runtime linking.
7001 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7002 for ld_flag in $LDFLAGS; do
7003 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7004 aix_use_runtimelinking=yes
7010 exp_sym_flag='-bexport'
7011 no_entry_flag='-bnoentry'
7014 # When large executables or shared objects are built, AIX ld can
7015 # have problems creating the table of contents. If linking a library
7016 # or program results in "error TOC overflow" add -mminimal-toc to
7017 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7018 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7022 hardcode_libdir_separator=':'
7023 link_all_deplibs=yes
7025 if test "$GCC" = yes; then
7026 case $host_os in aix4.[012]|aix4.[012].*)
7027 # We only want to do this on AIX 4.2 and lower, the check
7028 # below for broken collect2 doesn't work under 4.3+
7029 collect2name=`${CC} -print-prog-name=collect2`
7030 if test -f "$collect2name" && \
7031 strings "$collect2name" | grep resolve_lib_name >/dev/null
7033 # We have reworked collect2
7036 # We have old collect2
7037 hardcode_direct=unsupported
7038 # It fails to find uninstalled libraries when the uninstalled
7039 # path is not listed in the libpath. Setting hardcode_minus_L
7040 # to unsupported forces relinking
7041 hardcode_minus_L=yes
7042 hardcode_libdir_flag_spec='-L$libdir'
7043 hardcode_libdir_separator=
7046 shared_flag='-shared'
7047 if test "$aix_use_runtimelinking" = yes; then
7048 shared_flag="$shared_flag "'${wl}-G'
7052 if test "$host_cpu" = ia64; then
7053 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7054 # chokes on -Wl,-G. The following line is correct:
7057 if test "$aix_use_runtimelinking" = yes; then
7058 shared_flag='${wl}-G'
7060 shared_flag='${wl}-bM:SRE'
7065 # It seems that -bexpall does not export symbols beginning with
7066 # underscore (_), so it is better to generate a list of symbols to export.
7067 always_export_symbols=yes
7068 if test "$aix_use_runtimelinking" = yes; then
7069 # Warning - without using the other runtime loading flags (-brtl),
7070 # -berok will link without error, but may produce a broken library.
7071 allow_undefined_flag='-berok'
7072 # Determine the default libpath from the value encoded in an empty executable.
7073 cat >conftest.$ac_ext <<_ACEOF
7076 cat confdefs.h >>conftest.$ac_ext
7077 cat >>conftest.$ac_ext <<_ACEOF
7078 /* end confdefs.h. */
7088 rm -f conftest.$ac_objext conftest$ac_exeext
7089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7090 (eval $ac_link) 2>conftest.er1
7092 grep -v '^ *+' conftest.er1 >conftest.err
7094 cat conftest.err >&5
7095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096 (exit $ac_status); } &&
7097 { ac_try='test -z "$ac_c_werror_flag"
7098 || test ! -s conftest.err'
7099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); }; } &&
7104 { ac_try='test -s conftest$ac_exeext'
7105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109 (exit $ac_status); }; }; then
7111 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7113 # Check for a 64-bit object if we didn't find anything.
7114 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; }
7117 echo "$as_me: failed program was:" >&5
7118 sed 's/^/| /' conftest.$ac_ext >&5
7121 rm -f conftest.err conftest.$ac_objext \
7122 conftest$ac_exeext conftest.$ac_ext
7123 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7125 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7126 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"
7128 if test "$host_cpu" = ia64; then
7129 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7130 allow_undefined_flag="-z nodefs"
7131 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"
7133 # Determine the default libpath from the value encoded in an empty executable.
7134 cat >conftest.$ac_ext <<_ACEOF
7137 cat confdefs.h >>conftest.$ac_ext
7138 cat >>conftest.$ac_ext <<_ACEOF
7139 /* end confdefs.h. */
7149 rm -f conftest.$ac_objext conftest$ac_exeext
7150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7151 (eval $ac_link) 2>conftest.er1
7153 grep -v '^ *+' conftest.er1 >conftest.err
7155 cat conftest.err >&5
7156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157 (exit $ac_status); } &&
7158 { ac_try='test -z "$ac_c_werror_flag"
7159 || test ! -s conftest.err'
7160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); }; } &&
7165 { ac_try='test -s conftest$ac_exeext'
7166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); }; }; then
7172 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7174 # Check for a 64-bit object if we didn't find anything.
7175 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; }
7178 echo "$as_me: failed program was:" >&5
7179 sed 's/^/| /' conftest.$ac_ext >&5
7182 rm -f conftest.err conftest.$ac_objext \
7183 conftest$ac_exeext conftest.$ac_ext
7184 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7186 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7187 # Warning - without using the other run time loading flags,
7188 # -berok will link without error, but may produce a broken library.
7189 no_undefined_flag=' ${wl}-bernotok'
7190 allow_undefined_flag=' ${wl}-berok'
7191 # -bexpall does not export symbols beginning with underscore (_)
7192 always_export_symbols=yes
7193 # Exported symbols can be pulled into shared objects from archives
7194 whole_archive_flag_spec=' '
7195 archive_cmds_need_lc=yes
7196 # This is similar to how AIX traditionally builds it's shared libraries.
7197 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'
7203 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)'
7204 hardcode_libdir_flag_spec='-L$libdir'
7205 hardcode_minus_L=yes
7206 # see comment about different semantics on the GNU ld section
7211 export_dynamic_flag_spec=-rdynamic
7214 cygwin* | mingw* | pw32*)
7215 # When not using gcc, we currently assume that we are using
7216 # Microsoft Visual C++.
7217 # hardcode_libdir_flag_spec is actually meaningless, as there is
7218 # no search path for DLLs.
7219 hardcode_libdir_flag_spec=' '
7220 allow_undefined_flag=unsupported
7221 # Tell ltmain to make .lib files, not .a files.
7223 # Tell ltmain to make .dll files, not .so files.
7225 # FIXME: Setting linknames here is a bad hack.
7226 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7227 # The linker will automatically build a .lib file if we build a DLL.
7228 old_archive_From_new_cmds='true'
7229 # FIXME: Should let the user specify the lib program.
7230 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7231 fix_srcfile_path='`cygpath -w "$srcfile"`'
7232 enable_shared_with_static_runtimes=yes
7235 darwin* | rhapsody*)
7237 rhapsody* | darwin1.[012])
7238 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7241 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7242 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7244 case ${MACOSX_DEPLOYMENT_TARGET} in
7246 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7249 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7255 archive_cmds_need_lc=no
7257 hardcode_automatic=yes
7258 hardcode_shlibpath_var=unsupported
7259 whole_archive_flag_spec=''
7260 link_all_deplibs=yes
7261 if test "$GCC" = yes ; then
7262 output_verbose_link_cmd='echo'
7263 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7264 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7265 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7266 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}'
7267 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}'
7269 case "$cc_basename" in
7271 output_verbose_link_cmd='echo'
7272 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7273 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7274 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7275 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}'
7276 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}'
7286 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7287 hardcode_libdir_flag_spec='-L$libdir'
7288 hardcode_shlibpath_var=no
7295 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7296 # support. Future versions do this automatically, but an explicit c++rt0.o
7297 # does not break anything, and helps significantly (at the cost of a little
7300 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7301 hardcode_libdir_flag_spec='-R$libdir'
7303 hardcode_shlibpath_var=no
7306 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7308 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7310 hardcode_minus_L=yes
7311 hardcode_shlibpath_var=no
7314 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7315 freebsd* | kfreebsd*-gnu | dragonfly*)
7316 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7317 hardcode_libdir_flag_spec='-R$libdir'
7319 hardcode_shlibpath_var=no
7323 if test "$GCC" = yes; then
7324 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'
7326 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'
7328 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7329 hardcode_libdir_separator=:
7332 # hardcode_minus_L: Not really in the search PATH,
7333 # but as the default location of the library.
7334 hardcode_minus_L=yes
7335 export_dynamic_flag_spec='${wl}-E'
7339 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7342 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7345 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7351 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7354 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7358 if test "$with_gnu_ld" = no; then
7361 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7362 hardcode_libdir_flag_spec_ld='+b $libdir'
7363 hardcode_libdir_separator=:
7365 hardcode_shlibpath_var=no
7368 hardcode_libdir_flag_spec='-L$libdir'
7370 hardcode_shlibpath_var=no
7372 # hardcode_minus_L: Not really in the search PATH,
7373 # but as the default location of the library.
7374 hardcode_minus_L=yes
7377 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7378 hardcode_libdir_separator=:
7380 export_dynamic_flag_spec='${wl}-E'
7382 # hardcode_minus_L: Not really in the search PATH,
7383 # but as the default location of the library.
7384 hardcode_minus_L=yes
7390 irix5* | irix6* | nonstopux*)
7391 if test "$GCC" = yes; then
7392 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'
7394 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'
7395 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7397 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7398 hardcode_libdir_separator=:
7399 link_all_deplibs=yes
7403 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7404 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7406 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7408 hardcode_libdir_flag_spec='-R$libdir'
7410 hardcode_shlibpath_var=no
7414 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7416 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7417 hardcode_libdir_separator=:
7418 hardcode_shlibpath_var=no
7423 hardcode_shlibpath_var=no
7424 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7425 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7426 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7427 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7428 export_dynamic_flag_spec='${wl}-E'
7431 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7432 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7433 hardcode_libdir_flag_spec='-R$libdir'
7436 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7437 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7444 hardcode_libdir_flag_spec='-L$libdir'
7445 hardcode_minus_L=yes
7446 allow_undefined_flag=unsupported
7447 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'
7448 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7452 if test "$GCC" = yes; then
7453 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7454 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'
7456 allow_undefined_flag=' -expect_unresolved \*'
7457 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'
7459 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7460 hardcode_libdir_separator=:
7463 osf4* | osf5*) # as osf3* with the addition of -msym flag
7464 if test "$GCC" = yes; then
7465 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7466 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'
7467 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7469 allow_undefined_flag=' -expect_unresolved \*'
7470 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'
7471 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7472 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7474 # Both c and cxx compiler support -rpath directly
7475 hardcode_libdir_flag_spec='-rpath $libdir'
7477 hardcode_libdir_separator=:
7481 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7482 hardcode_shlibpath_var=no
7483 export_dynamic_flag_spec='${wl}-Bexport'
7484 runpath_var=LD_RUN_PATH
7485 hardcode_runpath_var=yes
7489 no_undefined_flag=' -z text'
7490 if test "$GCC" = yes; then
7491 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7492 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7493 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7495 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7496 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7497 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7499 hardcode_libdir_flag_spec='-R$libdir'
7500 hardcode_shlibpath_var=no
7502 solaris2.[0-5] | solaris2.[0-5].*) ;;
7503 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7504 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
7506 link_all_deplibs=yes
7510 if test "x$host_vendor" = xsequent; then
7511 # Use $CC to link under sequent, because it throws in some extra .o
7512 # files that make .init and .fini sections work.
7513 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7515 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7517 hardcode_libdir_flag_spec='-L$libdir'
7519 hardcode_minus_L=yes
7520 hardcode_shlibpath_var=no
7524 case $host_vendor in
7526 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7527 hardcode_direct=yes # is this really true???
7530 ## LD is ld it makes a PLAMLIB
7531 ## CC just makes a GrossModule.
7532 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7533 reload_cmds='$CC -r -o $output$reload_objs'
7537 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7538 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7541 runpath_var='LD_RUN_PATH'
7542 hardcode_shlibpath_var=no
7546 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7547 hardcode_shlibpath_var=no
7548 export_dynamic_flag_spec='-Bexport'
7552 if test -d /usr/nec; then
7553 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7554 hardcode_shlibpath_var=no
7555 runpath_var=LD_RUN_PATH
7556 hardcode_runpath_var=yes
7562 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7565 hardcode_shlibpath_var=no
7566 hardcode_runpath_var=yes
7567 runpath_var=LD_RUN_PATH
7570 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7571 no_undefined_flag='${wl}-z ${wl}text'
7572 if test "$GCC" = yes; then
7573 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7575 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7577 runpath_var='LD_RUN_PATH'
7578 hardcode_shlibpath_var=no
7582 no_undefined_flag=' -z text'
7583 # $CC -shared without GNU ld will not create a library from C++
7584 # object files and a static libstdc++, better avoid it by now
7585 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7586 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7587 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7588 hardcode_libdir_flag_spec=
7589 hardcode_shlibpath_var=no
7590 runpath_var='LD_RUN_PATH'
7594 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7595 hardcode_libdir_flag_spec='-L$libdir'
7596 hardcode_shlibpath_var=no
7605 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7606 echo "${ECHO_T}$ld_shlibs" >&6
7607 test "$ld_shlibs" = no && can_build_shared=no
7609 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7610 if test "$GCC" = yes; then
7611 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7615 # Do we need to explicitly link libc?
7617 case "x$archive_cmds_need_lc" in
7619 # Assume -lc should be added
7620 archive_cmds_need_lc=yes
7622 if test "$enable_shared" = yes && test "$GCC" = yes; then
7623 case $archive_cmds in
7625 # FIXME: we may have to deal with multi-command sequences.
7628 # Test whether the compiler implicitly links with -lc since on some
7629 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7630 # to ld, don't add -lc before -lgcc.
7631 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7632 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7634 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7637 (eval $ac_compile) 2>&5
7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); } 2>conftest.err; then
7643 libobjs=conftest.$ac_objext
7645 wl=$lt_prog_compiler_wl
7651 lt_save_allow_undefined_flag=$allow_undefined_flag
7652 allow_undefined_flag=
7653 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7654 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); }
7659 archive_cmds_need_lc=no
7661 archive_cmds_need_lc=yes
7663 allow_undefined_flag=$lt_save_allow_undefined_flag
7665 cat conftest.err 1>&5
7668 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7669 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7676 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7677 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7679 libname_spec='lib$name'
7687 shlibpath_overrides_runpath=unknown
7689 dynamic_linker="$host_os ld.so"
7690 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7691 if test "$GCC" = yes; then
7692 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7693 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7694 # if the path contains ";" then we assume it to be the separator
7695 # otherwise default to the standard path separator (i.e. ":") - it is
7696 # assumed that no part of a normal pathname contains ";" but that should
7697 # okay in the real world where ";" in dirpaths is itself problematic.
7698 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7700 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7703 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7705 need_lib_prefix=unknown
7706 hardcode_into_libs=no
7708 # when you set need_version to no, make sure it does not cause -set_version
7709 # flags to be left without arguments
7710 need_version=unknown
7715 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7716 shlibpath_var=LIBPATH
7718 # AIX 3 has no versioning support, so we append a major version to the name.
7719 soname_spec='${libname}${release}${shared_ext}$major'
7726 hardcode_into_libs=yes
7727 if test "$host_cpu" = ia64; then
7728 # AIX 5 supports IA64
7729 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7730 shlibpath_var=LD_LIBRARY_PATH
7732 # With GCC up to 2.95.x, collect2 would create an import file
7733 # for dependence libraries. The import file would start with
7734 # the line `#! .'. This would cause the generated library to
7735 # depend on `.', always an invalid library. This was fixed in
7736 # development snapshots of GCC prior to 3.0.
7738 aix4 | aix4.[01] | aix4.[01].*)
7739 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7741 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7748 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7749 # soname into executable. Probably we can add versioning support to
7750 # collect2, so additional links can be useful in future.
7751 if test "$aix_use_runtimelinking" = yes; then
7752 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7753 # instead of lib<name>.a to let people know that these are not
7754 # typical AIX shared libraries.
7755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7757 # We preserve .a as extension for shared libraries through AIX4.2
7758 # and later when we are not doing run time linking.
7759 library_names_spec='${libname}${release}.a $libname.a'
7760 soname_spec='${libname}${release}${shared_ext}$major'
7762 shlibpath_var=LIBPATH
7767 library_names_spec='$libname.ixlibrary $libname.a'
7768 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7769 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'
7773 library_names_spec='${libname}${shared_ext}'
7774 dynamic_linker="$host_os ld.so"
7775 shlibpath_var=LIBRARY_PATH
7781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7782 soname_spec='${libname}${release}${shared_ext}$major'
7783 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7784 shlibpath_var=LD_LIBRARY_PATH
7785 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7786 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7787 # the default ld.so.conf also contains /usr/contrib/lib and
7788 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7789 # libtool to hard-code these into programs
7792 cygwin* | mingw* | pw32*)
7793 version_type=windows
7798 case $GCC,$host_os in
7799 yes,cygwin* | yes,mingw* | yes,pw32*)
7800 library_names_spec='$libname.dll.a'
7801 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7802 postinstall_cmds='base_file=`basename \${file}`~
7803 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7804 dldir=$destdir/`dirname \$dlpath`~
7805 test -d \$dldir || mkdir -p \$dldir~
7806 $install_prog $dir/$dlname \$dldir/$dlname'
7807 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7808 dlpath=$dir/\$dldll~
7810 shlibpath_overrides_runpath=yes
7814 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7815 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7816 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7819 # MinGW DLLs use traditional 'lib' prefix
7820 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7821 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7822 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7823 # It is most probably a Windows format PATH printed by
7824 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7825 # path with ; separators, and with drive letters. We can handle the
7826 # drive letters (cygwin fileutils understands them), so leave them,
7827 # especially as we might pass files found there to a mingw objdump,
7828 # which wouldn't understand a cygwinified path. Ahh.
7829 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7831 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7835 # pw32 DLLs use 'pw' prefix rather than 'lib'
7836 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7842 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7845 dynamic_linker='Win32 ld.exe'
7846 # FIXME: first we should search . and the directory the executable is in
7850 darwin* | rhapsody*)
7851 dynamic_linker="$host_os dyld"
7855 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7856 soname_spec='${libname}${release}${major}$shared_ext'
7857 shlibpath_overrides_runpath=yes
7858 shlibpath_var=DYLD_LIBRARY_PATH
7859 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7860 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7861 if test "$GCC" = yes; then
7862 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"`
7864 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7866 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7874 soname_spec='${libname}${release}${shared_ext}$major'
7875 shlibpath_var=LD_LIBRARY_PATH
7886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7887 soname_spec='${libname}${release}${shared_ext}$major'
7888 shlibpath_var=LD_LIBRARY_PATH
7889 shlibpath_overrides_runpath=no
7890 hardcode_into_libs=yes
7891 dynamic_linker='GNU ld.so'
7894 freebsd* | dragonfly*)
7895 # DragonFly does not have aout. When/if they implement a new
7896 # versioning mechanism, adjust this.
7897 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7898 version_type=freebsd-$objformat
7899 case $version_type in
7901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7906 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7910 shlibpath_var=LD_LIBRARY_PATH
7913 shlibpath_overrides_runpath=yes
7915 freebsd3.[01]* | freebsdelf3.[01]*)
7916 shlibpath_overrides_runpath=yes
7917 hardcode_into_libs=yes
7920 shlibpath_overrides_runpath=no
7921 hardcode_into_libs=yes
7930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7931 soname_spec='${libname}${release}${shared_ext}$major'
7932 shlibpath_var=LD_LIBRARY_PATH
7933 hardcode_into_libs=yes
7936 hpux9* | hpux10* | hpux11*)
7937 # Give a soname corresponding to the major version so that dld.sl refuses to
7938 # link against other versions.
7945 hardcode_into_libs=yes
7946 dynamic_linker="$host_os dld.so"
7947 shlibpath_var=LD_LIBRARY_PATH
7948 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7950 soname_spec='${libname}${release}${shared_ext}$major'
7951 if test "X$HPUX_IA64_MODE" = X32; then
7952 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7954 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7956 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7960 hardcode_into_libs=yes
7961 dynamic_linker="$host_os dld.sl"
7962 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7963 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7965 soname_spec='${libname}${release}${shared_ext}$major'
7966 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7967 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7971 dynamic_linker="$host_os dld.sl"
7972 shlibpath_var=SHLIB_PATH
7973 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7975 soname_spec='${libname}${release}${shared_ext}$major'
7978 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7979 postinstall_cmds='chmod 555 $lib'
7982 irix5* | irix6* | nonstopux*)
7984 nonstopux*) version_type=nonstopux ;;
7986 if test "$lt_cv_prog_gnu_ld" = yes; then
7994 soname_spec='${libname}${release}${shared_ext}$major'
7995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7997 irix5* | nonstopux*)
8001 case $LD in # libtool.m4 will add one of these switches to LD
8002 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8003 libsuff= shlibsuff= libmagic=32-bit;;
8004 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8005 libsuff=32 shlibsuff=N32 libmagic=N32;;
8006 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8007 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8008 *) libsuff= shlibsuff= libmagic=never-match;;
8012 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8013 shlibpath_overrides_runpath=no
8014 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8015 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8016 hardcode_into_libs=yes
8019 # No shared lib support for Linux oldld, aout, or coff.
8020 linux*oldld* | linux*aout* | linux*coff*)
8024 # This must be Linux ELF.
8029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8030 soname_spec='${libname}${release}${shared_ext}$major'
8031 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8032 shlibpath_var=LD_LIBRARY_PATH
8033 shlibpath_overrides_runpath=no
8034 # This implies no fast_install, which is unacceptable.
8035 # Some rework will be needed to allow for fast_install
8036 # before this can be enabled.
8037 hardcode_into_libs=yes
8039 # Append ld.so.conf contents to the search path
8040 if test -f /etc/ld.so.conf; then
8041 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' ' '`
8042 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8045 # We used to test for /lib/ld.so.1 and disable shared libraries on
8046 # powerpc, because MkLinux only supported shared libraries with the
8047 # GNU dynamic linker. Since this was broken with cross compilers,
8048 # most powerpc-linux boxes support dynamic linking these days and
8049 # people can always --disable-shared, the test was removed, and we
8050 # assume the GNU/Linux dynamic linker is in use.
8051 dynamic_linker='GNU/Linux ld.so'
8058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8059 soname_spec='${libname}${release}${shared_ext}$major'
8060 shlibpath_var=LD_LIBRARY_PATH
8061 shlibpath_overrides_runpath=no
8062 hardcode_into_libs=yes
8063 dynamic_linker='GNU ld.so'
8070 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8072 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8073 dynamic_linker='NetBSD (a.out) ld.so'
8075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8076 soname_spec='${libname}${release}${shared_ext}$major'
8077 dynamic_linker='NetBSD ld.elf_so'
8079 shlibpath_var=LD_LIBRARY_PATH
8080 shlibpath_overrides_runpath=yes
8081 hardcode_into_libs=yes
8086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8087 shlibpath_var=LD_LIBRARY_PATH
8088 shlibpath_overrides_runpath=yes
8095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8096 soname_spec='${libname}${release}${shared_ext}$major'
8097 shlibpath_var=LD_LIBRARY_PATH
8098 shlibpath_overrides_runpath=yes
8105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8106 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8107 shlibpath_var=LD_LIBRARY_PATH
8108 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8110 openbsd2.[89] | openbsd2.[89].*)
8111 shlibpath_overrides_runpath=no
8114 shlibpath_overrides_runpath=yes
8118 shlibpath_overrides_runpath=yes
8123 libname_spec='$name'
8126 library_names_spec='$libname${shared_ext} $libname.a'
8127 dynamic_linker='OS/2 ld.exe'
8128 shlibpath_var=LIBPATH
8131 osf3* | osf4* | osf5*)
8135 soname_spec='${libname}${release}${shared_ext}$major'
8136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8137 shlibpath_var=LD_LIBRARY_PATH
8138 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8139 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8144 soname_spec='${libname}${release}${shared_ext}$major'
8145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8146 shlibpath_var=LD_LIBRARY_PATH
8153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8154 soname_spec='${libname}${release}${shared_ext}$major'
8155 shlibpath_var=LD_LIBRARY_PATH
8156 shlibpath_overrides_runpath=yes
8157 hardcode_into_libs=yes
8158 # ldd complains unless libraries are executable
8159 postinstall_cmds='chmod +x $lib'
8164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8165 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8166 shlibpath_var=LD_LIBRARY_PATH
8167 shlibpath_overrides_runpath=yes
8168 if test "$with_gnu_ld" = yes; then
8174 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8177 soname_spec='${libname}${release}${shared_ext}$major'
8178 shlibpath_var=LD_LIBRARY_PATH
8179 case $host_vendor in
8181 shlibpath_overrides_runpath=no
8183 export_dynamic_flag_spec='${wl}-Blargedynsym'
8184 runpath_var=LD_RUN_PATH
8192 shlibpath_overrides_runpath=no
8193 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8199 if test -d /usr/nec ;then
8201 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8202 soname_spec='$libname${shared_ext}.$major'
8203 shlibpath_var=LD_LIBRARY_PATH
8209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8210 soname_spec='${libname}${release}${shared_ext}$major'
8211 shlibpath_var=LD_LIBRARY_PATH
8218 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8219 echo "${ECHO_T}$dynamic_linker" >&6
8220 test "$dynamic_linker" = no && can_build_shared=no
8222 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8223 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8225 if test -n "$hardcode_libdir_flag_spec" || \
8226 test -n "$runpath_var" || \
8227 test "X$hardcode_automatic" = "Xyes" ; then
8229 # We can hardcode non-existant directories.
8230 if test "$hardcode_direct" != no &&
8231 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8232 # have to relink, otherwise we might link with an installed library
8233 # when we should be linking with a yet-to-be-installed one
8234 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8235 test "$hardcode_minus_L" != no; then
8236 # Linking always hardcodes the temporary library directory.
8237 hardcode_action=relink
8239 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8240 hardcode_action=immediate
8243 # We cannot hardcode anything, or else we can only hardcode existing
8245 hardcode_action=unsupported
8247 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8248 echo "${ECHO_T}$hardcode_action" >&6
8250 if test "$hardcode_action" = relink; then
8251 # Fast installation is not supported
8252 enable_fast_install=no
8253 elif test "$shlibpath_overrides_runpath" = yes ||
8254 test "$enable_shared" = no; then
8255 # Fast installation is not necessary
8256 enable_fast_install=needless
8261 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8262 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8263 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8264 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8265 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8266 echo "$as_me:$LINENO: result: yes" >&5
8267 echo "${ECHO_T}yes" >&6
8269 # FIXME - insert some real tests, host_os isn't really good enough
8272 if test -n "$STRIP" ; then
8273 striplib="$STRIP -x"
8274 echo "$as_me:$LINENO: result: yes" >&5
8275 echo "${ECHO_T}yes" >&6
8277 echo "$as_me:$LINENO: result: no" >&5
8278 echo "${ECHO_T}no" >&6
8282 echo "$as_me:$LINENO: result: no" >&5
8283 echo "${ECHO_T}no" >&6
8288 if test "x$enable_dlopen" != xyes; then
8289 enable_dlopen=unknown
8290 enable_dlopen_self=unknown
8291 enable_dlopen_self_static=unknown
8298 lt_cv_dlopen="load_add_on"
8300 lt_cv_dlopen_self=yes
8304 lt_cv_dlopen="LoadLibrary"
8309 lt_cv_dlopen="dlopen"
8314 # if libdl is installed we need to link against it
8315 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8316 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8317 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8318 echo $ECHO_N "(cached) $ECHO_C" >&6
8320 ac_check_lib_save_LIBS=$LIBS
8322 cat >conftest.$ac_ext <<_ACEOF
8325 cat confdefs.h >>conftest.$ac_ext
8326 cat >>conftest.$ac_ext <<_ACEOF
8327 /* end confdefs.h. */
8329 /* Override any gcc2 internal prototype to avoid an error. */
8333 /* We use char because int might match the return type of a gcc2
8334 builtin and then its argument prototype would still apply. */
8344 rm -f conftest.$ac_objext conftest$ac_exeext
8345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8346 (eval $ac_link) 2>conftest.er1
8348 grep -v '^ *+' conftest.er1 >conftest.err
8350 cat conftest.err >&5
8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352 (exit $ac_status); } &&
8353 { ac_try='test -z "$ac_c_werror_flag"
8354 || test ! -s conftest.err'
8355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); }; } &&
8360 { ac_try='test -s conftest$ac_exeext'
8361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365 (exit $ac_status); }; }; then
8366 ac_cv_lib_dl_dlopen=yes
8368 echo "$as_me: failed program was:" >&5
8369 sed 's/^/| /' conftest.$ac_ext >&5
8371 ac_cv_lib_dl_dlopen=no
8373 rm -f conftest.err conftest.$ac_objext \
8374 conftest$ac_exeext conftest.$ac_ext
8375 LIBS=$ac_check_lib_save_LIBS
8377 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8378 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8379 if test $ac_cv_lib_dl_dlopen = yes; then
8380 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8385 lt_cv_dlopen_self=yes
8392 echo "$as_me:$LINENO: checking for shl_load" >&5
8393 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8394 if test "${ac_cv_func_shl_load+set}" = set; then
8395 echo $ECHO_N "(cached) $ECHO_C" >&6
8397 cat >conftest.$ac_ext <<_ACEOF
8400 cat confdefs.h >>conftest.$ac_ext
8401 cat >>conftest.$ac_ext <<_ACEOF
8402 /* end confdefs.h. */
8403 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8405 #define shl_load innocuous_shl_load
8407 /* System header to define __stub macros and hopefully few prototypes,
8408 which can conflict with char shl_load (); below.
8409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8410 <limits.h> exists even on freestanding compilers. */
8413 # include <limits.h>
8415 # include <assert.h>
8420 /* Override any gcc2 internal prototype to avoid an error. */
8425 /* We use char because int might match the return type of a gcc2
8426 builtin and then its argument prototype would still apply. */
8428 /* The GNU C library defines this for functions which it implements
8429 to always fail with ENOSYS. Some functions are actually named
8430 something starting with __ and the normal name is an alias. */
8431 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8434 char (*f) () = shl_load;
8443 return f != shl_load;
8448 rm -f conftest.$ac_objext conftest$ac_exeext
8449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8450 (eval $ac_link) 2>conftest.er1
8452 grep -v '^ *+' conftest.er1 >conftest.err
8454 cat conftest.err >&5
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); } &&
8457 { ac_try='test -z "$ac_c_werror_flag"
8458 || test ! -s conftest.err'
8459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); }; } &&
8464 { ac_try='test -s conftest$ac_exeext'
8465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }; }; then
8470 ac_cv_func_shl_load=yes
8472 echo "$as_me: failed program was:" >&5
8473 sed 's/^/| /' conftest.$ac_ext >&5
8475 ac_cv_func_shl_load=no
8477 rm -f conftest.err conftest.$ac_objext \
8478 conftest$ac_exeext conftest.$ac_ext
8480 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8481 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8482 if test $ac_cv_func_shl_load = yes; then
8483 lt_cv_dlopen="shl_load"
8485 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8486 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8487 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8488 echo $ECHO_N "(cached) $ECHO_C" >&6
8490 ac_check_lib_save_LIBS=$LIBS
8492 cat >conftest.$ac_ext <<_ACEOF
8495 cat confdefs.h >>conftest.$ac_ext
8496 cat >>conftest.$ac_ext <<_ACEOF
8497 /* end confdefs.h. */
8499 /* Override any gcc2 internal prototype to avoid an error. */
8503 /* We use char because int might match the return type of a gcc2
8504 builtin and then its argument prototype would still apply. */
8514 rm -f conftest.$ac_objext conftest$ac_exeext
8515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8516 (eval $ac_link) 2>conftest.er1
8518 grep -v '^ *+' conftest.er1 >conftest.err
8520 cat conftest.err >&5
8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); } &&
8523 { ac_try='test -z "$ac_c_werror_flag"
8524 || test ! -s conftest.err'
8525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); }; } &&
8530 { ac_try='test -s conftest$ac_exeext'
8531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); }; }; then
8536 ac_cv_lib_dld_shl_load=yes
8538 echo "$as_me: failed program was:" >&5
8539 sed 's/^/| /' conftest.$ac_ext >&5
8541 ac_cv_lib_dld_shl_load=no
8543 rm -f conftest.err conftest.$ac_objext \
8544 conftest$ac_exeext conftest.$ac_ext
8545 LIBS=$ac_check_lib_save_LIBS
8547 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8548 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8549 if test $ac_cv_lib_dld_shl_load = yes; then
8550 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8552 echo "$as_me:$LINENO: checking for dlopen" >&5
8553 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8554 if test "${ac_cv_func_dlopen+set}" = set; then
8555 echo $ECHO_N "(cached) $ECHO_C" >&6
8557 cat >conftest.$ac_ext <<_ACEOF
8560 cat confdefs.h >>conftest.$ac_ext
8561 cat >>conftest.$ac_ext <<_ACEOF
8562 /* end confdefs.h. */
8563 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8565 #define dlopen innocuous_dlopen
8567 /* System header to define __stub macros and hopefully few prototypes,
8568 which can conflict with char dlopen (); below.
8569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8570 <limits.h> exists even on freestanding compilers. */
8573 # include <limits.h>
8575 # include <assert.h>
8580 /* Override any gcc2 internal prototype to avoid an error. */
8585 /* We use char because int might match the return type of a gcc2
8586 builtin and then its argument prototype would still apply. */
8588 /* The GNU C library defines this for functions which it implements
8589 to always fail with ENOSYS. Some functions are actually named
8590 something starting with __ and the normal name is an alias. */
8591 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8594 char (*f) () = dlopen;
8608 rm -f conftest.$ac_objext conftest$ac_exeext
8609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8610 (eval $ac_link) 2>conftest.er1
8612 grep -v '^ *+' conftest.er1 >conftest.err
8614 cat conftest.err >&5
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); } &&
8617 { ac_try='test -z "$ac_c_werror_flag"
8618 || test ! -s conftest.err'
8619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); }; } &&
8624 { ac_try='test -s conftest$ac_exeext'
8625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); }; }; then
8630 ac_cv_func_dlopen=yes
8632 echo "$as_me: failed program was:" >&5
8633 sed 's/^/| /' conftest.$ac_ext >&5
8635 ac_cv_func_dlopen=no
8637 rm -f conftest.err conftest.$ac_objext \
8638 conftest$ac_exeext conftest.$ac_ext
8640 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8641 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8642 if test $ac_cv_func_dlopen = yes; then
8643 lt_cv_dlopen="dlopen"
8645 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8646 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8647 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8648 echo $ECHO_N "(cached) $ECHO_C" >&6
8650 ac_check_lib_save_LIBS=$LIBS
8652 cat >conftest.$ac_ext <<_ACEOF
8655 cat confdefs.h >>conftest.$ac_ext
8656 cat >>conftest.$ac_ext <<_ACEOF
8657 /* end confdefs.h. */
8659 /* Override any gcc2 internal prototype to avoid an error. */
8663 /* We use char because int might match the return type of a gcc2
8664 builtin and then its argument prototype would still apply. */
8674 rm -f conftest.$ac_objext conftest$ac_exeext
8675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8676 (eval $ac_link) 2>conftest.er1
8678 grep -v '^ *+' conftest.er1 >conftest.err
8680 cat conftest.err >&5
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); } &&
8683 { ac_try='test -z "$ac_c_werror_flag"
8684 || test ! -s conftest.err'
8685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); }; } &&
8690 { ac_try='test -s conftest$ac_exeext'
8691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695 (exit $ac_status); }; }; then
8696 ac_cv_lib_dl_dlopen=yes
8698 echo "$as_me: failed program was:" >&5
8699 sed 's/^/| /' conftest.$ac_ext >&5
8701 ac_cv_lib_dl_dlopen=no
8703 rm -f conftest.err conftest.$ac_objext \
8704 conftest$ac_exeext conftest.$ac_ext
8705 LIBS=$ac_check_lib_save_LIBS
8707 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8708 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8709 if test $ac_cv_lib_dl_dlopen = yes; then
8710 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8712 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8713 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8714 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8715 echo $ECHO_N "(cached) $ECHO_C" >&6
8717 ac_check_lib_save_LIBS=$LIBS
8719 cat >conftest.$ac_ext <<_ACEOF
8722 cat confdefs.h >>conftest.$ac_ext
8723 cat >>conftest.$ac_ext <<_ACEOF
8724 /* end confdefs.h. */
8726 /* Override any gcc2 internal prototype to avoid an error. */
8730 /* We use char because int might match the return type of a gcc2
8731 builtin and then its argument prototype would still apply. */
8741 rm -f conftest.$ac_objext conftest$ac_exeext
8742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8743 (eval $ac_link) 2>conftest.er1
8745 grep -v '^ *+' conftest.er1 >conftest.err
8747 cat conftest.err >&5
8748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 (exit $ac_status); } &&
8750 { ac_try='test -z "$ac_c_werror_flag"
8751 || test ! -s conftest.err'
8752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); }; } &&
8757 { ac_try='test -s conftest$ac_exeext'
8758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); }; }; then
8763 ac_cv_lib_svld_dlopen=yes
8765 echo "$as_me: failed program was:" >&5
8766 sed 's/^/| /' conftest.$ac_ext >&5
8768 ac_cv_lib_svld_dlopen=no
8770 rm -f conftest.err conftest.$ac_objext \
8771 conftest$ac_exeext conftest.$ac_ext
8772 LIBS=$ac_check_lib_save_LIBS
8774 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8775 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8776 if test $ac_cv_lib_svld_dlopen = yes; then
8777 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8779 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8780 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8781 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8782 echo $ECHO_N "(cached) $ECHO_C" >&6
8784 ac_check_lib_save_LIBS=$LIBS
8786 cat >conftest.$ac_ext <<_ACEOF
8789 cat confdefs.h >>conftest.$ac_ext
8790 cat >>conftest.$ac_ext <<_ACEOF
8791 /* end confdefs.h. */
8793 /* Override any gcc2 internal prototype to avoid an error. */
8797 /* We use char because int might match the return type of a gcc2
8798 builtin and then its argument prototype would still apply. */
8808 rm -f conftest.$ac_objext conftest$ac_exeext
8809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8810 (eval $ac_link) 2>conftest.er1
8812 grep -v '^ *+' conftest.er1 >conftest.err
8814 cat conftest.err >&5
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); } &&
8817 { ac_try='test -z "$ac_c_werror_flag"
8818 || test ! -s conftest.err'
8819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823 (exit $ac_status); }; } &&
8824 { ac_try='test -s conftest$ac_exeext'
8825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); }; }; then
8830 ac_cv_lib_dld_dld_link=yes
8832 echo "$as_me: failed program was:" >&5
8833 sed 's/^/| /' conftest.$ac_ext >&5
8835 ac_cv_lib_dld_dld_link=no
8837 rm -f conftest.err conftest.$ac_objext \
8838 conftest$ac_exeext conftest.$ac_ext
8839 LIBS=$ac_check_lib_save_LIBS
8841 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8842 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8843 if test $ac_cv_lib_dld_dld_link = yes; then
8844 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8865 if test "x$lt_cv_dlopen" != xno; then
8871 case $lt_cv_dlopen in
8873 save_CPPFLAGS="$CPPFLAGS"
8874 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8876 save_LDFLAGS="$LDFLAGS"
8877 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8880 LIBS="$lt_cv_dlopen_libs $LIBS"
8882 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8883 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8884 if test "${lt_cv_dlopen_self+set}" = set; then
8885 echo $ECHO_N "(cached) $ECHO_C" >&6
8887 if test "$cross_compiling" = yes; then :
8888 lt_cv_dlopen_self=cross
8890 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8891 lt_status=$lt_dlunknown
8892 cat > conftest.$ac_ext <<EOF
8893 #line 8893 "configure"
8894 #include "confdefs.h"
8903 # define LT_DLGLOBAL RTLD_GLOBAL
8906 # define LT_DLGLOBAL DL_GLOBAL
8908 # define LT_DLGLOBAL 0
8912 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8913 find out it does not work in some platform. */
8914 #ifndef LT_DLLAZY_OR_NOW
8916 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8919 # define LT_DLLAZY_OR_NOW DL_LAZY
8922 # define LT_DLLAZY_OR_NOW RTLD_NOW
8925 # define LT_DLLAZY_OR_NOW DL_NOW
8927 # define LT_DLLAZY_OR_NOW 0
8935 extern "C" void exit (int);
8938 void fnord() { int i=42;}
8941 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8942 int status = $lt_dlunknown;
8946 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8947 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8948 /* dlclose (self); */
8954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8955 (eval $ac_link) 2>&5
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8959 (./conftest; exit; ) 2>/dev/null
8962 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8963 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8964 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8967 # compilation failed
8968 lt_cv_dlopen_self=no
8975 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8976 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8978 if test "x$lt_cv_dlopen_self" = xyes; then
8979 LDFLAGS="$LDFLAGS $link_static_flag"
8980 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8981 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8982 if test "${lt_cv_dlopen_self_static+set}" = set; then
8983 echo $ECHO_N "(cached) $ECHO_C" >&6
8985 if test "$cross_compiling" = yes; then :
8986 lt_cv_dlopen_self_static=cross
8988 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8989 lt_status=$lt_dlunknown
8990 cat > conftest.$ac_ext <<EOF
8991 #line 8991 "configure"
8992 #include "confdefs.h"
9001 # define LT_DLGLOBAL RTLD_GLOBAL
9004 # define LT_DLGLOBAL DL_GLOBAL
9006 # define LT_DLGLOBAL 0
9010 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9011 find out it does not work in some platform. */
9012 #ifndef LT_DLLAZY_OR_NOW
9014 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9017 # define LT_DLLAZY_OR_NOW DL_LAZY
9020 # define LT_DLLAZY_OR_NOW RTLD_NOW
9023 # define LT_DLLAZY_OR_NOW DL_NOW
9025 # define LT_DLLAZY_OR_NOW 0
9033 extern "C" void exit (int);
9036 void fnord() { int i=42;}
9039 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9040 int status = $lt_dlunknown;
9044 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9045 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9046 /* dlclose (self); */
9052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9053 (eval $ac_link) 2>&5
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9057 (./conftest; exit; ) 2>/dev/null
9060 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9061 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9062 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9065 # compilation failed
9066 lt_cv_dlopen_self_static=no
9073 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9074 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9077 CPPFLAGS="$save_CPPFLAGS"
9078 LDFLAGS="$save_LDFLAGS"
9083 case $lt_cv_dlopen_self in
9084 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9085 *) enable_dlopen_self=unknown ;;
9088 case $lt_cv_dlopen_self_static in
9089 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9090 *) enable_dlopen_self_static=unknown ;;
9095 # Report which librarie types wil actually be built
9096 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9097 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9098 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9099 echo "${ECHO_T}$can_build_shared" >&6
9101 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9102 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9103 test "$can_build_shared" = "no" && enable_shared=no
9105 # On AIX, shared libraries and static libraries use the same namespace, and
9106 # are all built from PIC.
9109 test "$enable_shared" = yes && enable_static=no
9110 if test -n "$RANLIB"; then
9111 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9112 postinstall_cmds='$RANLIB $lib'
9117 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9118 test "$enable_shared" = yes && enable_static=no
9122 echo "$as_me:$LINENO: result: $enable_shared" >&5
9123 echo "${ECHO_T}$enable_shared" >&6
9125 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9126 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9127 # Make sure either enable_shared or enable_static is yes.
9128 test "$enable_shared" = yes || enable_static=yes
9129 echo "$as_me:$LINENO: result: $enable_static" >&5
9130 echo "${ECHO_T}$enable_static" >&6
9132 # The else clause should only fire when bootstrapping the
9133 # libtool distribution, otherwise you forgot to ship ltmain.sh
9134 # with your package, and you will get complaints that there are
9135 # no rules to generate ltmain.sh.
9136 if test -f "$ltmain"; then
9137 # See if we are running on zsh, and set the options which allow our commands through
9138 # without removal of \ escapes.
9139 if test -n "${ZSH_VERSION+set}" ; then
9140 setopt NO_GLOB_SUBST
9142 # Now quote all the things that may contain metacharacters while being
9143 # careful not to overquote the AC_SUBSTed values. We take copies of the
9144 # variables and quote the copies for generation of the libtool script.
9145 for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \
9147 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9148 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9149 deplibs_check_method reload_flag reload_cmds need_locks \
9150 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9151 lt_cv_sys_global_symbol_to_c_name_address \
9152 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9153 old_postinstall_cmds old_postuninstall_cmds \
9157 lt_prog_compiler_wl \
9158 lt_prog_compiler_pic \
9159 lt_prog_compiler_static \
9160 lt_prog_compiler_no_builtin_flag \
9161 export_dynamic_flag_spec \
9162 thread_safe_flag_spec \
9163 whole_archive_flag_spec \
9164 enable_shared_with_static_runtimes \
9166 old_archive_from_new_cmds \
9171 compiler_lib_search_path \
9173 archive_expsym_cmds \
9175 postuninstall_cmds \
9176 old_archive_from_expsyms_cmds \
9177 allow_undefined_flag \
9179 export_symbols_cmds \
9180 hardcode_libdir_flag_spec \
9181 hardcode_libdir_flag_spec_ld \
9182 hardcode_libdir_separator \
9183 hardcode_automatic \
9185 module_expsym_cmds \
9186 lt_cv_prog_compiler_c_o \
9191 old_archive_cmds | \
9192 old_archive_from_new_cmds | \
9194 archive_expsym_cmds | \
9196 module_expsym_cmds | \
9197 old_archive_from_expsyms_cmds | \
9198 export_symbols_cmds | \
9199 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9200 postinstall_cmds | postuninstall_cmds | \
9201 old_postinstall_cmds | old_postuninstall_cmds | \
9202 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9203 # Double-quote double-evaled strings.
9204 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9207 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9213 *'\$0 --fallback-echo"')
9214 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9219 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9221 { echo "$as_me:$LINENO: creating $ofile" >&5
9222 echo "$as_me: creating $ofile" >&6;}
9224 cat <<__EOF__ >> "$cfgfile"
9227 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9228 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9229 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9231 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9232 # Free Software Foundation, Inc.
9234 # This file is part of GNU Libtool:
9235 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9237 # This program is free software; you can redistribute it and/or modify
9238 # it under the terms of the GNU General Public License as published by
9239 # the Free Software Foundation; either version 2 of the License, or
9240 # (at your option) any later version.
9242 # This program is distributed in the hope that it will be useful, but
9243 # WITHOUT ANY WARRANTY; without even the implied warranty of
9244 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9245 # General Public License for more details.
9247 # You should have received a copy of the GNU General Public License
9248 # along with this program; if not, write to the Free Software
9249 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9251 # As a special exception to the GNU General Public License, if you
9252 # distribute this file as part of a program that contains a
9253 # configuration script generated by Autoconf, you may include it under
9254 # the same distribution terms that you use for the rest of that program.
9256 # A sed program that does not truncate output.
9259 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9260 Xsed="$SED -e s/^X//"
9262 # The HP-UX ksh and POSIX shell print the target directory to stdout
9264 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9266 # The names of the tagged configurations supported by this script.
9269 # ### BEGIN LIBTOOL CONFIG
9271 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9273 # Shell to use when invoking shell scripts.
9276 # Whether or not to build shared libraries.
9277 build_libtool_libs=$enable_shared
9279 # Whether or not to build static libraries.
9280 build_old_libs=$enable_static
9282 # Whether or not to add -lc for building shared libraries.
9283 build_libtool_need_lc=$archive_cmds_need_lc
9285 # Whether or not to disallow shared libs when runtime libs are static
9286 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9288 # Whether or not to optimize for fast installation.
9289 fast_install=$enable_fast_install
9292 host_alias=$host_alias
9297 build_alias=$build_alias
9301 # An echo program that does not interpret backslashes.
9306 AR_FLAGS=$lt_AR_FLAGS
9311 # A language-specific compiler.
9314 # Is the compiler the GNU C compiler?
9320 # The linker used to build libraries.
9323 # Whether we need hard or soft links.
9326 # A BSD-compatible nm program.
9329 # A symbol stripping program
9332 # Used to examine libraries when file_magic_cmd begins "file"
9333 MAGIC_CMD=$MAGIC_CMD
9335 # Used on cygwin: DLL creation program.
9338 # Used on cygwin: object dumper.
9341 # Used on cygwin: assembler.
9344 # The name of the directory that contains temporary libtool files.
9347 # How to create reloadable object files.
9348 reload_flag=$lt_reload_flag
9349 reload_cmds=$lt_reload_cmds
9351 # How to pass a linker flag through the compiler.
9352 wl=$lt_lt_prog_compiler_wl
9354 # Object file suffix (normally "o").
9357 # Old archive suffix (normally "a").
9360 # Shared library suffix (normally ".so").
9361 shrext_cmds='$shrext_cmds'
9363 # Executable file suffix (normally "").
9366 # Additional compiler flags for building library objects.
9367 pic_flag=$lt_lt_prog_compiler_pic
9370 # What is the maximum length of a command?
9371 max_cmd_len=$lt_cv_sys_max_cmd_len
9373 # Does compiler simultaneously support -c and -o options?
9374 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9376 # Must we lock files when doing compilation ?
9377 need_locks=$lt_need_locks
9379 # Do we need the lib prefix for modules?
9380 need_lib_prefix=$need_lib_prefix
9382 # Do we need a version for libraries?
9383 need_version=$need_version
9385 # Whether dlopen is supported.
9386 dlopen_support=$enable_dlopen
9388 # Whether dlopen of programs is supported.
9389 dlopen_self=$enable_dlopen_self
9391 # Whether dlopen of statically linked programs is supported.
9392 dlopen_self_static=$enable_dlopen_self_static
9394 # Compiler flag to prevent dynamic linking.
9395 link_static_flag=$lt_lt_prog_compiler_static
9397 # Compiler flag to turn off builtin functions.
9398 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9400 # Compiler flag to allow reflexive dlopens.
9401 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9403 # Compiler flag to generate shared objects directly from archives.
9404 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9406 # Compiler flag to generate thread-safe objects.
9407 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9409 # Library versioning type.
9410 version_type=$version_type
9412 # Format of library name prefix.
9413 libname_spec=$lt_libname_spec
9415 # List of archive names. First name is the real one, the rest are links.
9416 # The last name is the one that the linker finds with -lNAME.
9417 library_names_spec=$lt_library_names_spec
9419 # The coded name of the library, if different from the real name.
9420 soname_spec=$lt_soname_spec
9422 # Commands used to build and install an old-style archive.
9424 old_archive_cmds=$lt_old_archive_cmds
9425 old_postinstall_cmds=$lt_old_postinstall_cmds
9426 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9428 # Create an old-style archive from a shared archive.
9429 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9431 # Create a temporary old-style archive to link instead of a shared archive.
9432 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9434 # Commands used to build and install a shared archive.
9435 archive_cmds=$lt_archive_cmds
9436 archive_expsym_cmds=$lt_archive_expsym_cmds
9437 postinstall_cmds=$lt_postinstall_cmds
9438 postuninstall_cmds=$lt_postuninstall_cmds
9440 # Commands used to build a loadable module (assumed same as above if empty)
9441 module_cmds=$lt_module_cmds
9442 module_expsym_cmds=$lt_module_expsym_cmds
9444 # Commands to strip libraries.
9445 old_striplib=$lt_old_striplib
9446 striplib=$lt_striplib
9448 # Dependencies to place before the objects being linked to create a
9450 predep_objects=$lt_predep_objects
9452 # Dependencies to place after the objects being linked to create a
9454 postdep_objects=$lt_postdep_objects
9456 # Dependencies to place before the objects being linked to create a
9460 # Dependencies to place after the objects being linked to create a
9462 postdeps=$lt_postdeps
9464 # The library search path used internally by the compiler when linking
9466 compiler_lib_search_path=$lt_compiler_lib_search_path
9468 # Method to check whether dependent libraries are shared objects.
9469 deplibs_check_method=$lt_deplibs_check_method
9471 # Command to use when deplibs_check_method == file_magic.
9472 file_magic_cmd=$lt_file_magic_cmd
9474 # Flag that allows shared libraries with undefined symbols to be built.
9475 allow_undefined_flag=$lt_allow_undefined_flag
9477 # Flag that forces no undefined symbols.
9478 no_undefined_flag=$lt_no_undefined_flag
9480 # Commands used to finish a libtool library installation in a directory.
9481 finish_cmds=$lt_finish_cmds
9483 # Same as above, but a single script fragment to be evaled but not shown.
9484 finish_eval=$lt_finish_eval
9486 # Take the output of nm and produce a listing of raw symbols and C names.
9487 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9489 # Transform the output of nm in a proper C declaration
9490 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9492 # Transform the output of nm in a C name address pair
9493 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9495 # This is the shared library runtime path variable.
9496 runpath_var=$runpath_var
9498 # This is the shared library path variable.
9499 shlibpath_var=$shlibpath_var
9501 # Is shlibpath searched before the hard-coded library search path?
9502 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9504 # How to hardcode a shared library path into an executable.
9505 hardcode_action=$hardcode_action
9507 # Whether we should hardcode library paths into libraries.
9508 hardcode_into_libs=$hardcode_into_libs
9510 # Flag to hardcode \$libdir into a binary during linking.
9511 # This must work even if \$libdir does not exist.
9512 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9514 # If ld is used when linking, flag to hardcode \$libdir into
9515 # a binary during linking. This must work even if \$libdir does
9517 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9519 # Whether we need a single -rpath flag with a separated argument.
9520 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9522 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9524 hardcode_direct=$hardcode_direct
9526 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9528 hardcode_minus_L=$hardcode_minus_L
9530 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9531 # the resulting binary.
9532 hardcode_shlibpath_var=$hardcode_shlibpath_var
9534 # Set to yes if building a shared library automatically hardcodes DIR into the library
9535 # and all subsequent libraries and executables linked against it.
9536 hardcode_automatic=$hardcode_automatic
9538 # Variables whose values should be saved in libtool wrapper scripts and
9539 # restored at relink time.
9540 variables_saved_for_relink="$variables_saved_for_relink"
9542 # Whether libtool must link a program against all its dependency libraries.
9543 link_all_deplibs=$link_all_deplibs
9545 # Compile-time system search path for libraries
9546 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9548 # Run-time system search path for libraries
9549 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9551 # Fix the shell variable \$srcfile for the compiler.
9552 fix_srcfile_path="$fix_srcfile_path"
9554 # Set to yes if exported symbols are required.
9555 always_export_symbols=$always_export_symbols
9557 # The commands to list exported symbols.
9558 export_symbols_cmds=$lt_export_symbols_cmds
9560 # The commands to extract the exported symbol list from a shared archive.
9561 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9563 # Symbols that should not be listed in the preloaded symbols.
9564 exclude_expsyms=$lt_exclude_expsyms
9566 # Symbols that must always be exported.
9567 include_expsyms=$lt_include_expsyms
9569 # ### END LIBTOOL CONFIG
9576 cat <<\EOF >> "$cfgfile"
9578 # AIX sometimes has problems with the GCC collect2 program. For some
9579 # reason, if we set the COLLECT_NAMES environment variable, the problems
9580 # vanish in a puff of smoke.
9581 if test "X${COLLECT_NAMES+set}" != Xset; then
9583 export COLLECT_NAMES
9589 # We use sed instead of cat because bash on DJGPP gets confused if
9590 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9591 # text mode, it properly converts lines to CR/LF. This bash problem
9592 # is reportedly fixed, but why not run on old versions too?
9593 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9595 mv -f "$cfgfile" "$ofile" || \
9596 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9600 # If there is no Makefile yet, we rely on a make rule to execute
9601 # `config.status --recheck' to rerun these tests and create the
9602 # libtool script then.
9603 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9604 if test -f "$ltmain_in"; then
9605 test -f Makefile && make "$ltmain"
9611 ac_cpp='$CPP $CPPFLAGS'
9612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9619 # Check whether --with-tags or --without-tags was given.
9620 if test "${with_tags+set}" = set; then
9621 withval="$with_tags"
9625 if test -f "$ltmain" && test -n "$tagnames"; then
9626 if test ! -f "${ofile}"; then
9627 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9628 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9631 if test -z "$LTCC"; then
9632 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9633 if test -z "$LTCC"; then
9634 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9635 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9637 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9638 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9642 # Extract list of available tagged configurations in $ofile.
9643 # Note that this assumes the entire list is on one line.
9644 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9646 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9647 for tagname in $tagnames; do
9649 # Check whether tagname contains only valid characters
9650 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9652 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9653 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9654 { (exit 1); exit 1; }; }
9658 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9660 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9661 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9662 { (exit 1); exit 1; }; }
9665 # Update the list of available tags.
9666 if test -n "$tagname"; then
9667 echo appending configuration tag \"$tagname\" to $ofile
9671 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9672 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9673 (test "X$CXX" != "Xg++"))) ; then
9675 ac_cpp='$CXXCPP $CPPFLAGS'
9676 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9677 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9678 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9683 archive_cmds_need_lc_CXX=no
9684 allow_undefined_flag_CXX=
9685 always_export_symbols_CXX=no
9686 archive_expsym_cmds_CXX=
9687 export_dynamic_flag_spec_CXX=
9688 hardcode_direct_CXX=no
9689 hardcode_libdir_flag_spec_CXX=
9690 hardcode_libdir_flag_spec_ld_CXX=
9691 hardcode_libdir_separator_CXX=
9692 hardcode_minus_L_CXX=no
9693 hardcode_automatic_CXX=no
9695 module_expsym_cmds_CXX=
9696 link_all_deplibs_CXX=unknown
9697 old_archive_cmds_CXX=$old_archive_cmds
9698 no_undefined_flag_CXX=
9699 whole_archive_flag_spec_CXX=
9700 enable_shared_with_static_runtimes_CXX=no
9702 # Dependencies to place before and after the object being linked:
9704 postdep_objects_CXX=
9707 compiler_lib_search_path_CXX=
9709 # Source file extension for C++ test sources.
9712 # Object file extension for compiled C++ test sources.
9716 # Code to be used in simple compile tests
9717 lt_simple_compile_test_code="int some_variable = 0;\n"
9719 # Code to be used in simple link tests
9720 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9722 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9724 # If no C compiler was specified, use CC.
9727 # Allow CC to be a program name with arguments.
9731 # Allow CC to be a program name with arguments.
9736 lt_save_with_gnu_ld=$with_gnu_ld
9737 lt_save_path_LD=$lt_cv_path_LD
9738 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9739 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9741 unset lt_cv_prog_gnu_ld
9743 if test -n "${lt_cv_path_LDCXX+set}"; then
9744 lt_cv_path_LD=$lt_cv_path_LDCXX
9748 test -z "${LDCXX+set}" || LD=$LDCXX
9752 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9754 # We don't want -fno-exception wen compiling C++ code, so set the
9755 # no_builtin_flag separately
9756 if test "$GXX" = yes; then
9757 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9759 lt_prog_compiler_no_builtin_flag_CXX=
9762 if test "$GXX" = yes; then
9763 # Set up default GNU C++ configuration
9766 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9767 if test "${with_gnu_ld+set}" = set; then
9768 withval="$with_gnu_ld"
9769 test "$withval" = no || with_gnu_ld=yes
9774 if test "$GCC" = yes; then
9775 # Check if gcc -print-prog-name=ld gives a path.
9776 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9777 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9780 # gcc leaves a trailing carriage return which upsets mingw
9781 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9783 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9786 # Accept absolute paths.
9788 re_direlt='/[^/][^/]*/\.\./'
9789 # Canonicalize the pathname of ld
9790 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9791 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9792 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9794 test -z "$LD" && LD="$ac_prog"
9797 # If it fails, then pretend we aren't using GCC.
9801 # If it is relative, then search for the first ld in PATH.
9805 elif test "$with_gnu_ld" = yes; then
9806 echo "$as_me:$LINENO: checking for GNU ld" >&5
9807 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9809 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9810 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9812 if test "${lt_cv_path_LD+set}" = set; then
9813 echo $ECHO_N "(cached) $ECHO_C" >&6
9815 if test -z "$LD"; then
9816 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9817 for ac_dir in $PATH; do
9819 test -z "$ac_dir" && ac_dir=.
9820 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9821 lt_cv_path_LD="$ac_dir/$ac_prog"
9822 # Check to see if the program is GNU ld. I'd rather use --version,
9823 # but apparently some GNU ld's only accept -v.
9824 # Break only if it was the GNU/non-GNU ld that we prefer.
9825 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9826 *GNU* | *'with BFD'*)
9827 test "$with_gnu_ld" != no && break
9830 test "$with_gnu_ld" != yes && break
9837 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9842 if test -n "$LD"; then
9843 echo "$as_me:$LINENO: result: $LD" >&5
9844 echo "${ECHO_T}$LD" >&6
9846 echo "$as_me:$LINENO: result: no" >&5
9847 echo "${ECHO_T}no" >&6
9849 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9850 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9851 { (exit 1); exit 1; }; }
9852 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9853 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9854 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9855 echo $ECHO_N "(cached) $ECHO_C" >&6
9857 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9858 case `$LD -v 2>&1 </dev/null` in
9859 *GNU* | *'with BFD'*)
9860 lt_cv_prog_gnu_ld=yes
9863 lt_cv_prog_gnu_ld=no
9867 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9868 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9869 with_gnu_ld=$lt_cv_prog_gnu_ld
9873 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9874 # archiving commands below assume that GNU ld is being used.
9875 if test "$with_gnu_ld" = yes; then
9876 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9877 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'
9879 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9880 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9882 # If archive_cmds runs LD, not CC, wlarc should be empty
9883 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9884 # investigate it a little bit more. (MM)
9887 # ancient GNU ld didn't support --whole-archive et. al.
9888 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9889 grep 'no-whole-archive' > /dev/null; then
9890 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9892 whole_archive_flag_spec_CXX=
9898 # A generic and very simple default shared library creation
9899 # command for GNU C++ for the case where it uses the native
9900 # linker, instead of GNU ld. If possible, this setting should
9901 # overridden to take advantage of the native linker features on
9902 # the platform it is being used on.
9903 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9906 # Commands to make compiler produce verbose output that lists
9907 # what "hidden" libraries, object files and flags are used when
9908 # linking a shared library.
9909 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9917 # PORTME: fill in a description of your system's C++ link characteristics
9918 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9919 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9923 # FIXME: insert proper C++ library support
9927 if test "$host_cpu" = ia64; then
9928 # On IA64, the linker does run time linking by default, so we don't
9929 # have to do anything special.
9930 aix_use_runtimelinking=no
9931 exp_sym_flag='-Bexport'
9934 aix_use_runtimelinking=no
9936 # Test if we are trying to use run time linking or normal
9937 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9938 # need to do runtime linking.
9939 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9940 for ld_flag in $LDFLAGS; do
9943 aix_use_runtimelinking=yes
9950 exp_sym_flag='-bexport'
9951 no_entry_flag='-bnoentry'
9954 # When large executables or shared objects are built, AIX ld can
9955 # have problems creating the table of contents. If linking a library
9956 # or program results in "error TOC overflow" add -mminimal-toc to
9957 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9958 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9961 hardcode_direct_CXX=yes
9962 hardcode_libdir_separator_CXX=':'
9963 link_all_deplibs_CXX=yes
9965 if test "$GXX" = yes; then
9966 case $host_os in aix4.[012]|aix4.[012].*)
9967 # We only want to do this on AIX 4.2 and lower, the check
9968 # below for broken collect2 doesn't work under 4.3+
9969 collect2name=`${CC} -print-prog-name=collect2`
9970 if test -f "$collect2name" && \
9971 strings "$collect2name" | grep resolve_lib_name >/dev/null
9973 # We have reworked collect2
9974 hardcode_direct_CXX=yes
9976 # We have old collect2
9977 hardcode_direct_CXX=unsupported
9978 # It fails to find uninstalled libraries when the uninstalled
9979 # path is not listed in the libpath. Setting hardcode_minus_L
9980 # to unsupported forces relinking
9981 hardcode_minus_L_CXX=yes
9982 hardcode_libdir_flag_spec_CXX='-L$libdir'
9983 hardcode_libdir_separator_CXX=
9986 shared_flag='-shared'
9987 if test "$aix_use_runtimelinking" = yes; then
9988 shared_flag="$shared_flag "'${wl}-G'
9992 if test "$host_cpu" = ia64; then
9993 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9994 # chokes on -Wl,-G. The following line is correct:
9997 if test "$aix_use_runtimelinking" = yes; then
9998 shared_flag='${wl}-G'
10000 shared_flag='${wl}-bM:SRE'
10005 # It seems that -bexpall does not export symbols beginning with
10006 # underscore (_), so it is better to generate a list of symbols to export.
10007 always_export_symbols_CXX=yes
10008 if test "$aix_use_runtimelinking" = yes; then
10009 # Warning - without using the other runtime loading flags (-brtl),
10010 # -berok will link without error, but may produce a broken library.
10011 allow_undefined_flag_CXX='-berok'
10012 # Determine the default libpath from the value encoded in an empty executable.
10013 cat >conftest.$ac_ext <<_ACEOF
10016 cat confdefs.h >>conftest.$ac_ext
10017 cat >>conftest.$ac_ext <<_ACEOF
10018 /* end confdefs.h. */
10028 rm -f conftest.$ac_objext conftest$ac_exeext
10029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10030 (eval $ac_link) 2>conftest.er1
10032 grep -v '^ *+' conftest.er1 >conftest.err
10034 cat conftest.err >&5
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); } &&
10037 { ac_try='test -z "$ac_cxx_werror_flag"
10038 || test ! -s conftest.err'
10039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10040 (eval $ac_try) 2>&5
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); }; } &&
10044 { ac_try='test -s conftest$ac_exeext'
10045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10046 (eval $ac_try) 2>&5
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); }; }; then
10051 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10053 # Check for a 64-bit object if we didn't find anything.
10054 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; }
10057 echo "$as_me: failed program was:" >&5
10058 sed 's/^/| /' conftest.$ac_ext >&5
10061 rm -f conftest.err conftest.$ac_objext \
10062 conftest$ac_exeext conftest.$ac_ext
10063 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10065 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10067 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"
10069 if test "$host_cpu" = ia64; then
10070 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10071 allow_undefined_flag_CXX="-z nodefs"
10072 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"
10074 # Determine the default libpath from the value encoded in an empty executable.
10075 cat >conftest.$ac_ext <<_ACEOF
10078 cat confdefs.h >>conftest.$ac_ext
10079 cat >>conftest.$ac_ext <<_ACEOF
10080 /* end confdefs.h. */
10090 rm -f conftest.$ac_objext conftest$ac_exeext
10091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10092 (eval $ac_link) 2>conftest.er1
10094 grep -v '^ *+' conftest.er1 >conftest.err
10096 cat conftest.err >&5
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); } &&
10099 { ac_try='test -z "$ac_cxx_werror_flag"
10100 || test ! -s conftest.err'
10101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10102 (eval $ac_try) 2>&5
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); }; } &&
10106 { ac_try='test -s conftest$ac_exeext'
10107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10108 (eval $ac_try) 2>&5
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); }; }; then
10113 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10115 # Check for a 64-bit object if we didn't find anything.
10116 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; }
10119 echo "$as_me: failed program was:" >&5
10120 sed 's/^/| /' conftest.$ac_ext >&5
10123 rm -f conftest.err conftest.$ac_objext \
10124 conftest$ac_exeext conftest.$ac_ext
10125 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10127 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10128 # Warning - without using the other run time loading flags,
10129 # -berok will link without error, but may produce a broken library.
10130 no_undefined_flag_CXX=' ${wl}-bernotok'
10131 allow_undefined_flag_CXX=' ${wl}-berok'
10132 # -bexpall does not export symbols beginning with underscore (_)
10133 always_export_symbols_CXX=yes
10134 # Exported symbols can be pulled into shared objects from archives
10135 whole_archive_flag_spec_CXX=' '
10136 archive_cmds_need_lc_CXX=yes
10137 # This is similar to how AIX traditionally builds it's shared libraries.
10138 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'
10143 case $cc_basename in
10145 # FIXME: insert proper C++ library support
10152 cygwin* | mingw* | pw32*)
10153 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10154 # as there is no search path for DLLs.
10155 hardcode_libdir_flag_spec_CXX='-L$libdir'
10156 allow_undefined_flag_CXX=unsupported
10157 always_export_symbols_CXX=no
10158 enable_shared_with_static_runtimes_CXX=yes
10160 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10161 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'
10162 # If the export-symbols file already is a .def file (1st line
10163 # is EXPORTS), use it as is; otherwise, prepend...
10164 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10165 cp $export_symbols $output_objdir/$soname.def;
10167 echo EXPORTS > $output_objdir/$soname.def;
10168 cat $export_symbols >> $output_objdir/$soname.def;
10170 $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'
10175 darwin* | rhapsody*)
10177 rhapsody* | darwin1.[012])
10178 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10181 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10182 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10184 case ${MACOSX_DEPLOYMENT_TARGET} in
10186 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10189 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10195 archive_cmds_need_lc_CXX=no
10196 hardcode_direct_CXX=no
10197 hardcode_automatic_CXX=yes
10198 hardcode_shlibpath_var_CXX=unsupported
10199 whole_archive_flag_spec_CXX=''
10200 link_all_deplibs_CXX=yes
10202 if test "$GXX" = yes ; then
10203 lt_int_apple_cc_single_mod=no
10204 output_verbose_link_cmd='echo'
10205 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10206 lt_int_apple_cc_single_mod=yes
10208 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10209 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10211 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'
10213 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10214 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10215 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10216 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}'
10218 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}'
10220 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}'
10222 case "$cc_basename" in
10224 output_verbose_link_cmd='echo'
10225 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'
10226 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10227 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10228 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}'
10229 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}'
10239 case $cc_basename in
10241 # FIXME: insert proper C++ library support
10245 # Green Hills C++ Compiler
10246 # FIXME: insert proper C++ library support
10250 # FIXME: insert proper C++ library support
10256 # C++ shared libraries reported to be fairly broken before switch to ELF
10260 archive_cmds_need_lc_CXX=no
10262 freebsd* | kfreebsd*-gnu | dragonfly*)
10263 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10270 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10271 hardcode_libdir_separator_CXX=:
10272 export_dynamic_flag_spec_CXX='${wl}-E'
10273 hardcode_direct_CXX=yes
10274 hardcode_minus_L_CXX=yes # Not in the search PATH,
10275 # but as the default
10276 # location of the library.
10278 case $cc_basename in
10280 # FIXME: insert proper C++ library support
10284 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'
10285 # Commands to make compiler produce verbose output that lists
10286 # what "hidden" libraries, object files and flags are used when
10287 # linking a shared library.
10289 # There doesn't appear to be a way to prevent this compiler from
10290 # explicitly linking system object files so we need to strip them
10291 # from the output so that they don't get included in the library
10293 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'
10296 if test "$GXX" = yes; then
10297 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'
10299 # FIXME: insert proper C++ library support
10306 if test $with_gnu_ld = no; then
10307 case "$host_cpu" in
10309 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10310 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10311 hardcode_libdir_separator_CXX=:
10314 hardcode_libdir_flag_spec_CXX='-L$libdir'
10317 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10318 hardcode_libdir_separator_CXX=:
10319 export_dynamic_flag_spec_CXX='${wl}-E'
10323 case "$host_cpu" in
10325 hardcode_direct_CXX=no
10326 hardcode_shlibpath_var_CXX=no
10329 hardcode_direct_CXX=no
10330 hardcode_shlibpath_var_CXX=no
10331 hardcode_minus_L_CXX=yes # Not in the search PATH,
10332 # but as the default
10333 # location of the library.
10336 hardcode_direct_CXX=yes
10337 hardcode_minus_L_CXX=yes # Not in the search PATH,
10338 # but as the default
10339 # location of the library.
10343 case $cc_basename in
10345 # FIXME: insert proper C++ library support
10349 case "$host_cpu" in
10351 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10354 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10357 # Commands to make compiler produce verbose output that lists
10358 # what "hidden" libraries, object files and flags are used when
10359 # linking a shared library.
10361 # There doesn't appear to be a way to prevent this compiler from
10362 # explicitly linking system object files so we need to strip them
10363 # from the output so that they don't get included in the library
10365 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'
10368 if test "$GXX" = yes; then
10369 if test $with_gnu_ld = no; then
10370 case "$host_cpu" in
10372 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10375 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'
10380 # FIXME: insert proper C++ library support
10387 case $cc_basename in
10390 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10392 # Archives containing C++ object files must be created using
10393 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10394 # necessary to make sure instantiated templates are included
10396 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10399 if test "$GXX" = yes; then
10400 if test "$with_gnu_ld" = no; then
10401 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10403 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'
10406 link_all_deplibs_CXX=yes
10409 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10410 hardcode_libdir_separator_CXX=:
10413 case $cc_basename in
10415 # Kuck and Associates, Inc. (KAI) C++ Compiler
10417 # KCC will only create a shared library if the output file
10418 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10419 # to its proper name (with version) after linking.
10420 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'
10421 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'
10422 # Commands to make compiler produce verbose output that lists
10423 # what "hidden" libraries, object files and flags are used when
10424 # linking a shared library.
10426 # There doesn't appear to be a way to prevent this compiler from
10427 # explicitly linking system object files so we need to strip them
10428 # from the output so that they don't get included in the library
10430 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'
10432 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10433 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10435 # Archives containing C++ object files must be created using
10436 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10437 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10442 # version 8.0 and above of icpc choke on multiply defined symbols
10443 # if we add $predep_objects and $postdep_objects, however 7.1 and
10444 # earlier do not add the objects themselves.
10445 case `$CC -V 2>&1` in
10447 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10448 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'
10450 *) # Version 8.0 or newer
10453 ia64*) tmp_idyn=' -i_dynamic';;
10455 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10456 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'
10459 archive_cmds_need_lc_CXX=no
10460 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10461 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10462 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10465 # Portland Group C++ compiler
10466 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10467 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'
10469 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10470 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10474 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10475 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'
10477 runpath_var=LD_RUN_PATH
10478 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10479 hardcode_libdir_separator_CXX=:
10481 # Commands to make compiler produce verbose output that lists
10482 # what "hidden" libraries, object files and flags are used when
10483 # linking a shared library.
10485 # There doesn't appear to be a way to prevent this compiler from
10486 # explicitly linking system object files so we need to strip them
10487 # from the output so that they don't get included in the library
10489 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'
10494 # FIXME: insert proper C++ library support
10498 # FIXME: insert proper C++ library support
10502 case $cc_basename in
10504 # FIXME: insert proper C++ library support
10508 # FIXME: insert proper C++ library support
10514 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10515 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10517 hardcode_libdir_flag_spec_CXX='-R$libdir'
10518 hardcode_direct_CXX=yes
10519 hardcode_shlibpath_var_CXX=no
10521 # Workaround some broken pre-1.5 toolchains
10522 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10525 # C++ shared libraries are fairly broken
10529 hardcode_direct_CXX=yes
10530 hardcode_shlibpath_var_CXX=no
10531 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10532 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10533 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10534 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10535 export_dynamic_flag_spec_CXX='${wl}-E'
10536 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10538 output_verbose_link_cmd='echo'
10541 case $cc_basename in
10543 # Kuck and Associates, Inc. (KAI) C++ Compiler
10545 # KCC will only create a shared library if the output file
10546 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10547 # to its proper name (with version) after linking.
10548 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'
10550 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10551 hardcode_libdir_separator_CXX=:
10553 # Archives containing C++ object files must be created using
10554 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10555 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10559 # Rational C++ 2.4.1
10560 # FIXME: insert proper C++ library support
10564 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10565 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10567 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10568 hardcode_libdir_separator_CXX=:
10570 # Commands to make compiler produce verbose output that lists
10571 # what "hidden" libraries, object files and flags are used when
10572 # linking a shared library.
10574 # There doesn't appear to be a way to prevent this compiler from
10575 # explicitly linking system object files so we need to strip them
10576 # from the output so that they don't get included in the library
10578 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'
10581 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10582 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10583 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10585 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10586 hardcode_libdir_separator_CXX=:
10588 # Commands to make compiler produce verbose output that lists
10589 # what "hidden" libraries, object files and flags are used when
10590 # linking a shared library.
10591 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10594 # FIXME: insert proper C++ library support
10601 case $cc_basename in
10603 # Kuck and Associates, Inc. (KAI) C++ Compiler
10605 # KCC will only create a shared library if the output file
10606 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10607 # to its proper name (with version) after linking.
10608 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'
10610 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10611 hardcode_libdir_separator_CXX=:
10613 # Archives containing C++ object files must be created using
10614 # the KAI C++ compiler.
10615 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10618 # Rational C++ 2.4.1
10619 # FIXME: insert proper C++ library support
10623 allow_undefined_flag_CXX=' -expect_unresolved \*'
10624 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10625 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10626 echo "-hidden">> $lib.exp~
10627 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10630 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10631 hardcode_libdir_separator_CXX=:
10633 # Commands to make compiler produce verbose output that lists
10634 # what "hidden" libraries, object files and flags are used when
10635 # linking a shared library.
10637 # There doesn't appear to be a way to prevent this compiler from
10638 # explicitly linking system object files so we need to strip them
10639 # from the output so that they don't get included in the library
10641 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'
10644 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10645 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10646 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10648 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10649 hardcode_libdir_separator_CXX=:
10651 # Commands to make compiler produce verbose output that lists
10652 # what "hidden" libraries, object files and flags are used when
10653 # linking a shared library.
10654 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10657 # FIXME: insert proper C++ library support
10664 # FIXME: insert proper C++ library support
10668 archive_cmds_need_lc_CXX=no
10669 case $cc_basename in
10671 # FIXME: insert proper C++ library support
10675 # FIXME: insert proper C++ library support
10681 case $cc_basename in
10684 # FIXME: insert proper C++ library support
10689 # FIXME: insert proper C++ library support
10693 # FIXME: insert proper C++ library support
10699 case $cc_basename in
10701 # Sun C++ 4.2, 5.x and Centerline C++
10702 no_undefined_flag_CXX=' -zdefs'
10703 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10704 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10705 $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'
10707 hardcode_libdir_flag_spec_CXX='-R$libdir'
10708 hardcode_shlibpath_var_CXX=no
10710 solaris2.[0-5] | solaris2.[0-5].*) ;;
10712 # The C++ compiler is used as linker so we must use $wl
10713 # flag to pass the commands to the underlying system
10715 # Supported since Solaris 2.6 (maybe 2.5.1?)
10716 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10719 link_all_deplibs_CXX=yes
10721 # Commands to make compiler produce verbose output that lists
10722 # what "hidden" libraries, object files and flags are used when
10723 # linking a shared library.
10725 # There doesn't appear to be a way to prevent this compiler from
10726 # explicitly linking system object files so we need to strip them
10727 # from the output so that they don't get included in the library
10729 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'
10731 # Archives containing C++ object files must be created using
10732 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10733 # necessary to make sure instantiated templates are included
10735 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10738 # Green Hills C++ Compiler
10739 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10741 # The C++ compiler must be used to create the archive.
10742 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10745 # GNU C++ compiler with Solaris linker
10746 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10747 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10748 if $CC --version | grep -v '^2\.7' > /dev/null; then
10749 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10750 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10751 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10753 # Commands to make compiler produce verbose output that lists
10754 # what "hidden" libraries, object files and flags are used when
10755 # linking a shared library.
10756 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10758 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10760 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10761 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10762 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10764 # Commands to make compiler produce verbose output that lists
10765 # what "hidden" libraries, object files and flags are used when
10766 # linking a shared library.
10767 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10770 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10775 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10776 archive_cmds_need_lc_CXX=no
10779 case $cc_basename in
10781 # NonStop-UX NCC 3.20
10782 # FIXME: insert proper C++ library support
10786 # FIXME: insert proper C++ library support
10792 # FIXME: insert proper C++ library support
10796 # FIXME: insert proper C++ library support
10800 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10801 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10802 test "$ld_shlibs_CXX" = no && can_build_shared=no
10808 cat > conftest.$ac_ext <<EOF
10812 Foo (void) { a = 0; }
10818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10819 (eval $ac_compile) 2>&5
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); }; then
10823 # Parse the compiler output and extract the necessary
10824 # objects, libraries and library flags.
10826 # Sentinel used to keep track of whether or not we are before
10827 # the conftest object file.
10828 pre_test_object_deps_done=no
10830 # The `*' in the case matches for architectures that use `case' in
10831 # $output_verbose_cmd can trigger glob expansion during the loop
10832 # eval without this substitution.
10833 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10835 for p in `eval $output_verbose_link_cmd`; do
10839 # Some compilers place space between "-{L,R}" and the path.
10840 # Remove the space.
10841 if test $p = "-L" \
10842 || test $p = "-R"; then
10849 if test "$pre_test_object_deps_done" = no; then
10852 # Internal compiler library paths should come after those
10853 # provided the user. The postdeps already come after the
10854 # user supplied libs so there is no need to process them.
10855 if test -z "$compiler_lib_search_path_CXX"; then
10856 compiler_lib_search_path_CXX="${prev}${p}"
10858 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10861 # The "-l" case would never come before the object being
10862 # linked, so don't bother handling this case.
10865 if test -z "$postdeps_CXX"; then
10866 postdeps_CXX="${prev}${p}"
10868 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10874 # This assumes that the test object file only shows up
10875 # once in the compiler output.
10876 if test "$p" = "conftest.$objext"; then
10877 pre_test_object_deps_done=yes
10881 if test "$pre_test_object_deps_done" = no; then
10882 if test -z "$predep_objects_CXX"; then
10883 predep_objects_CXX="$p"
10885 predep_objects_CXX="$predep_objects_CXX $p"
10888 if test -z "$postdep_objects_CXX"; then
10889 postdep_objects_CXX="$p"
10891 postdep_objects_CXX="$postdep_objects_CXX $p"
10896 *) ;; # Ignore the rest.
10904 echo "libtool.m4: error: problem compiling CXX test program"
10907 $rm -f confest.$objext
10909 case " $postdeps_CXX " in
10910 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10913 lt_prog_compiler_wl_CXX=
10914 lt_prog_compiler_pic_CXX=
10915 lt_prog_compiler_static_CXX=
10917 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10918 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10920 # C++ specific cases for pic, static, wl, etc.
10921 if test "$GXX" = yes; then
10922 lt_prog_compiler_wl_CXX='-Wl,'
10923 lt_prog_compiler_static_CXX='-static'
10927 # All AIX code is PIC.
10928 if test "$host_cpu" = ia64; then
10929 # AIX 5 now supports IA64 processor
10930 lt_prog_compiler_static_CXX='-Bstatic'
10934 # FIXME: we need at least 68020 code to build shared libraries, but
10935 # adding the `-m68020' flag to GCC prevents building anything better,
10937 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10939 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10940 # PIC is the default for these OSes.
10942 mingw* | os2* | pw32*)
10943 # This hack is so that the source file can tell whether it is being
10944 # built for inclusion in a dll (and should export symbols for example).
10945 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10947 darwin* | rhapsody*)
10948 # PIC is the default on this platform
10949 # Common symbols not allowed in MH_DYLIB files
10950 lt_prog_compiler_pic_CXX='-fno-common'
10953 # DJGPP does not support shared libraries at all
10954 lt_prog_compiler_pic_CXX=
10957 if test -d /usr/nec; then
10958 lt_prog_compiler_pic_CXX=-Kconform_pic
10962 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10963 # not for PA HP-UX.
10964 case "$host_cpu" in
10968 lt_prog_compiler_pic_CXX='-fPIC'
10973 lt_prog_compiler_pic_CXX='-fPIC'
10979 # All AIX code is PIC.
10980 if test "$host_cpu" = ia64; then
10981 # AIX 5 now supports IA64 processor
10982 lt_prog_compiler_static_CXX='-Bstatic'
10984 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10988 case $cc_basename in
10990 # Green Hills C++ Compiler
10991 # _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"
10996 # PIC is the default on this platform
10997 # Common symbols not allowed in MH_DYLIB files
10998 case "$cc_basename" in
11000 lt_prog_compiler_pic_CXX='-qnocommon'
11001 lt_prog_compiler_wl_CXX='-Wl,'
11006 case $cc_basename in
11008 lt_prog_compiler_pic_CXX='-KPIC'
11011 # Green Hills C++ Compiler
11012 lt_prog_compiler_pic_CXX='-pic'
11018 freebsd* | kfreebsd*-gnu | dragonfly*)
11019 # FreeBSD uses GNU C++
11021 hpux9* | hpux10* | hpux11*)
11022 case $cc_basename in
11024 lt_prog_compiler_wl_CXX='-Wl,'
11025 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11026 if test "$host_cpu" != ia64; then
11027 lt_prog_compiler_pic_CXX='+Z'
11031 lt_prog_compiler_wl_CXX='-Wl,'
11032 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11033 case "$host_cpu" in
11038 lt_prog_compiler_pic_CXX='+Z'
11046 irix5* | irix6* | nonstopux*)
11047 case $cc_basename in
11049 lt_prog_compiler_wl_CXX='-Wl,'
11050 lt_prog_compiler_static_CXX='-non_shared'
11051 # CC pic flag -KPIC is the default.
11058 case $cc_basename in
11061 lt_prog_compiler_wl_CXX='--backend -Wl,'
11062 lt_prog_compiler_pic_CXX='-fPIC'
11066 lt_prog_compiler_wl_CXX='-Wl,'
11067 lt_prog_compiler_pic_CXX='-KPIC'
11068 lt_prog_compiler_static_CXX='-static'
11071 # Portland Group C++ compiler.
11072 lt_prog_compiler_wl_CXX='-Wl,'
11073 lt_prog_compiler_pic_CXX='-fpic'
11074 lt_prog_compiler_static_CXX='-static'
11078 # Make sure the PIC flag is empty. It appears that all Alpha
11079 # Linux and Compaq Tru64 Unix objects are PIC.
11080 lt_prog_compiler_pic_CXX=
11081 lt_prog_compiler_static_CXX='-non_shared'
11092 case $cc_basename in
11094 lt_prog_compiler_pic_CXX='-W c,exportall'
11102 osf3* | osf4* | osf5*)
11103 case $cc_basename in
11105 lt_prog_compiler_wl_CXX='--backend -Wl,'
11108 # Rational C++ 2.4.1
11109 lt_prog_compiler_pic_CXX='-pic'
11112 # Digital/Compaq C++
11113 lt_prog_compiler_wl_CXX='-Wl,'
11114 # Make sure the PIC flag is empty. It appears that all Alpha
11115 # Linux and Compaq Tru64 Unix objects are PIC.
11116 lt_prog_compiler_pic_CXX=
11117 lt_prog_compiler_static_CXX='-non_shared'
11126 case $cc_basename in
11128 lt_prog_compiler_pic_CXX='-fPIC'
11135 case $cc_basename in
11137 # Sun C++ 4.2, 5.x and Centerline C++
11138 lt_prog_compiler_pic_CXX='-KPIC'
11139 lt_prog_compiler_static_CXX='-Bstatic'
11140 lt_prog_compiler_wl_CXX='-Qoption ld '
11143 # Green Hills C++ Compiler
11144 lt_prog_compiler_pic_CXX='-PIC'
11151 case $cc_basename in
11154 lt_prog_compiler_pic_CXX='-pic'
11155 lt_prog_compiler_static_CXX='-Bstatic'
11159 lt_prog_compiler_pic_CXX='-pic'
11166 case $cc_basename in
11168 # NonStop-UX NCC 3.20
11169 lt_prog_compiler_pic_CXX='-KPIC'
11180 lt_prog_compiler_can_build_shared_CXX=no
11185 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11186 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11189 # Check to make sure the PIC flag actually works.
11191 if test -n "$lt_prog_compiler_pic_CXX"; then
11193 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11194 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11195 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11196 echo $ECHO_N "(cached) $ECHO_C" >&6
11198 lt_prog_compiler_pic_works_CXX=no
11199 ac_outfile=conftest.$ac_objext
11200 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11201 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11202 # Insert the option either (1) after the last *FLAGS variable, or
11203 # (2) before a word containing "conftest.", or (3) at the end.
11204 # Note that $ac_compile itself does not contain backslashes and begins
11205 # with a dollar sign (not a hyphen), so the echo should work correctly.
11206 # The option is referenced via a variable to avoid confusing sed.
11207 lt_compile=`echo "$ac_compile" | $SED \
11208 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11209 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11210 -e 's:$: $lt_compiler_flag:'`
11211 (eval echo "\"\$as_me:11211: $lt_compile\"" >&5)
11212 (eval "$lt_compile" 2>conftest.err)
11214 cat conftest.err >&5
11215 echo "$as_me:11215: \$? = $ac_status" >&5
11216 if (exit $ac_status) && test -s "$ac_outfile"; then
11217 # The compiler can only warn and ignore the option if not recognized
11218 # So say no if there are warnings
11219 if test ! -s conftest.err; then
11220 lt_prog_compiler_pic_works_CXX=yes
11226 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11227 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11229 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11230 case $lt_prog_compiler_pic_CXX in
11232 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11235 lt_prog_compiler_pic_CXX=
11236 lt_prog_compiler_can_build_shared_CXX=no
11241 # For platforms which do not support PIC, -DPIC is meaningless:
11243 lt_prog_compiler_pic_CXX=
11246 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11250 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11251 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11252 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11253 echo $ECHO_N "(cached) $ECHO_C" >&6
11255 lt_cv_prog_compiler_c_o_CXX=no
11256 $rm -r conftest 2>/dev/null
11260 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11262 lt_compiler_flag="-o out/conftest2.$ac_objext"
11263 # Insert the option either (1) after the last *FLAGS variable, or
11264 # (2) before a word containing "conftest.", or (3) at the end.
11265 # Note that $ac_compile itself does not contain backslashes and begins
11266 # with a dollar sign (not a hyphen), so the echo should work correctly.
11267 lt_compile=`echo "$ac_compile" | $SED \
11268 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11269 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11270 -e 's:$: $lt_compiler_flag:'`
11271 (eval echo "\"\$as_me:11271: $lt_compile\"" >&5)
11272 (eval "$lt_compile" 2>out/conftest.err)
11274 cat out/conftest.err >&5
11275 echo "$as_me:11275: \$? = $ac_status" >&5
11276 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11278 # The compiler can only warn and ignore the option if not recognized
11279 # So say no if there are warnings
11280 if test ! -s out/conftest.err; then
11281 lt_cv_prog_compiler_c_o_CXX=yes
11286 # SGI C++ compiler will create directory out/ii_files/ for
11287 # template instantiation
11288 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11289 $rm out/* && rmdir out
11295 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11296 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11299 hard_links="nottested"
11300 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11301 # do not overwrite the value of need_locks provided by the user
11302 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11303 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11306 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11308 ln conftest.a conftest.b 2>&5 || hard_links=no
11309 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11310 echo "$as_me:$LINENO: result: $hard_links" >&5
11311 echo "${ECHO_T}$hard_links" >&6
11312 if test "$hard_links" = no; then
11313 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11314 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11321 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11322 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11324 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11327 # If we're using GNU nm, then we don't want the "-C" option.
11328 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11329 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11330 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'
11332 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'
11336 export_symbols_cmds_CXX="$ltdll_cmds"
11339 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'
11342 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11346 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11347 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11348 test "$ld_shlibs_CXX" = no && can_build_shared=no
11350 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11351 if test "$GCC" = yes; then
11352 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11356 # Do we need to explicitly link libc?
11358 case "x$archive_cmds_need_lc_CXX" in
11360 # Assume -lc should be added
11361 archive_cmds_need_lc_CXX=yes
11363 if test "$enable_shared" = yes && test "$GCC" = yes; then
11364 case $archive_cmds_CXX in
11366 # FIXME: we may have to deal with multi-command sequences.
11369 # Test whether the compiler implicitly links with -lc since on some
11370 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11371 # to ld, don't add -lc before -lgcc.
11372 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11373 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11375 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11378 (eval $ac_compile) 2>&5
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); } 2>conftest.err; then
11384 libobjs=conftest.$ac_objext
11386 wl=$lt_prog_compiler_wl_CXX
11392 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11393 allow_undefined_flag_CXX=
11394 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11395 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); }
11400 archive_cmds_need_lc_CXX=no
11402 archive_cmds_need_lc_CXX=yes
11404 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11406 cat conftest.err 1>&5
11409 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11410 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11417 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11418 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11419 library_names_spec=
11420 libname_spec='lib$name'
11424 postuninstall_cmds=
11428 shlibpath_overrides_runpath=unknown
11430 dynamic_linker="$host_os ld.so"
11431 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11432 if test "$GCC" = yes; then
11433 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11434 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11435 # if the path contains ";" then we assume it to be the separator
11436 # otherwise default to the standard path separator (i.e. ":") - it is
11437 # assumed that no part of a normal pathname contains ";" but that should
11438 # okay in the real world where ";" in dirpaths is itself problematic.
11439 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11441 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11444 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11446 need_lib_prefix=unknown
11447 hardcode_into_libs=no
11449 # when you set need_version to no, make sure it does not cause -set_version
11450 # flags to be left without arguments
11451 need_version=unknown
11456 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11457 shlibpath_var=LIBPATH
11459 # AIX 3 has no versioning support, so we append a major version to the name.
11460 soname_spec='${libname}${release}${shared_ext}$major'
11467 hardcode_into_libs=yes
11468 if test "$host_cpu" = ia64; then
11469 # AIX 5 supports IA64
11470 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11471 shlibpath_var=LD_LIBRARY_PATH
11473 # With GCC up to 2.95.x, collect2 would create an import file
11474 # for dependence libraries. The import file would start with
11475 # the line `#! .'. This would cause the generated library to
11476 # depend on `.', always an invalid library. This was fixed in
11477 # development snapshots of GCC prior to 3.0.
11479 aix4 | aix4.[01] | aix4.[01].*)
11480 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11482 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11485 can_build_shared=no
11489 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11490 # soname into executable. Probably we can add versioning support to
11491 # collect2, so additional links can be useful in future.
11492 if test "$aix_use_runtimelinking" = yes; then
11493 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11494 # instead of lib<name>.a to let people know that these are not
11495 # typical AIX shared libraries.
11496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11498 # We preserve .a as extension for shared libraries through AIX4.2
11499 # and later when we are not doing run time linking.
11500 library_names_spec='${libname}${release}.a $libname.a'
11501 soname_spec='${libname}${release}${shared_ext}$major'
11503 shlibpath_var=LIBPATH
11508 library_names_spec='$libname.ixlibrary $libname.a'
11509 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11510 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'
11514 library_names_spec='${libname}${shared_ext}'
11515 dynamic_linker="$host_os ld.so"
11516 shlibpath_var=LIBRARY_PATH
11522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11523 soname_spec='${libname}${release}${shared_ext}$major'
11524 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11525 shlibpath_var=LD_LIBRARY_PATH
11526 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11527 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11528 # the default ld.so.conf also contains /usr/contrib/lib and
11529 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11530 # libtool to hard-code these into programs
11533 cygwin* | mingw* | pw32*)
11534 version_type=windows
11539 case $GCC,$host_os in
11540 yes,cygwin* | yes,mingw* | yes,pw32*)
11541 library_names_spec='$libname.dll.a'
11542 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11543 postinstall_cmds='base_file=`basename \${file}`~
11544 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11545 dldir=$destdir/`dirname \$dlpath`~
11546 test -d \$dldir || mkdir -p \$dldir~
11547 $install_prog $dir/$dlname \$dldir/$dlname'
11548 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11549 dlpath=$dir/\$dldll~
11551 shlibpath_overrides_runpath=yes
11555 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11556 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11557 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11560 # MinGW DLLs use traditional 'lib' prefix
11561 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11562 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11563 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11564 # It is most probably a Windows format PATH printed by
11565 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11566 # path with ; separators, and with drive letters. We can handle the
11567 # drive letters (cygwin fileutils understands them), so leave them,
11568 # especially as we might pass files found there to a mingw objdump,
11569 # which wouldn't understand a cygwinified path. Ahh.
11570 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11572 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11576 # pw32 DLLs use 'pw' prefix rather than 'lib'
11577 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11583 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11586 dynamic_linker='Win32 ld.exe'
11587 # FIXME: first we should search . and the directory the executable is in
11591 darwin* | rhapsody*)
11592 dynamic_linker="$host_os dyld"
11593 version_type=darwin
11596 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11597 soname_spec='${libname}${release}${major}$shared_ext'
11598 shlibpath_overrides_runpath=yes
11599 shlibpath_var=DYLD_LIBRARY_PATH
11600 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11601 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11602 if test "$GCC" = yes; then
11603 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"`
11605 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11607 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11615 soname_spec='${libname}${release}${shared_ext}$major'
11616 shlibpath_var=LD_LIBRARY_PATH
11627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11628 soname_spec='${libname}${release}${shared_ext}$major'
11629 shlibpath_var=LD_LIBRARY_PATH
11630 shlibpath_overrides_runpath=no
11631 hardcode_into_libs=yes
11632 dynamic_linker='GNU ld.so'
11635 freebsd* | dragonfly*)
11636 # DragonFly does not have aout. When/if they implement a new
11637 # versioning mechanism, adjust this.
11638 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11639 version_type=freebsd-$objformat
11640 case $version_type in
11642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11647 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11651 shlibpath_var=LD_LIBRARY_PATH
11654 shlibpath_overrides_runpath=yes
11656 freebsd3.[01]* | freebsdelf3.[01]*)
11657 shlibpath_overrides_runpath=yes
11658 hardcode_into_libs=yes
11661 shlibpath_overrides_runpath=no
11662 hardcode_into_libs=yes
11671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11672 soname_spec='${libname}${release}${shared_ext}$major'
11673 shlibpath_var=LD_LIBRARY_PATH
11674 hardcode_into_libs=yes
11677 hpux9* | hpux10* | hpux11*)
11678 # Give a soname corresponding to the major version so that dld.sl refuses to
11679 # link against other versions.
11683 case "$host_cpu" in
11686 hardcode_into_libs=yes
11687 dynamic_linker="$host_os dld.so"
11688 shlibpath_var=LD_LIBRARY_PATH
11689 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11691 soname_spec='${libname}${release}${shared_ext}$major'
11692 if test "X$HPUX_IA64_MODE" = X32; then
11693 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11695 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11697 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11701 hardcode_into_libs=yes
11702 dynamic_linker="$host_os dld.sl"
11703 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11704 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11706 soname_spec='${libname}${release}${shared_ext}$major'
11707 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11708 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11712 dynamic_linker="$host_os dld.sl"
11713 shlibpath_var=SHLIB_PATH
11714 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11716 soname_spec='${libname}${release}${shared_ext}$major'
11719 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11720 postinstall_cmds='chmod 555 $lib'
11723 irix5* | irix6* | nonstopux*)
11725 nonstopux*) version_type=nonstopux ;;
11727 if test "$lt_cv_prog_gnu_ld" = yes; then
11735 soname_spec='${libname}${release}${shared_ext}$major'
11736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11738 irix5* | nonstopux*)
11739 libsuff= shlibsuff=
11742 case $LD in # libtool.m4 will add one of these switches to LD
11743 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11744 libsuff= shlibsuff= libmagic=32-bit;;
11745 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11746 libsuff=32 shlibsuff=N32 libmagic=N32;;
11747 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11748 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11749 *) libsuff= shlibsuff= libmagic=never-match;;
11753 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11754 shlibpath_overrides_runpath=no
11755 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11756 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11757 hardcode_into_libs=yes
11760 # No shared lib support for Linux oldld, aout, or coff.
11761 linux*oldld* | linux*aout* | linux*coff*)
11765 # This must be Linux ELF.
11770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11771 soname_spec='${libname}${release}${shared_ext}$major'
11772 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11773 shlibpath_var=LD_LIBRARY_PATH
11774 shlibpath_overrides_runpath=no
11775 # This implies no fast_install, which is unacceptable.
11776 # Some rework will be needed to allow for fast_install
11777 # before this can be enabled.
11778 hardcode_into_libs=yes
11780 # Append ld.so.conf contents to the search path
11781 if test -f /etc/ld.so.conf; then
11782 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' ' '`
11783 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11786 # We used to test for /lib/ld.so.1 and disable shared libraries on
11787 # powerpc, because MkLinux only supported shared libraries with the
11788 # GNU dynamic linker. Since this was broken with cross compilers,
11789 # most powerpc-linux boxes support dynamic linking these days and
11790 # people can always --disable-shared, the test was removed, and we
11791 # assume the GNU/Linux dynamic linker is in use.
11792 dynamic_linker='GNU/Linux ld.so'
11799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11800 soname_spec='${libname}${release}${shared_ext}$major'
11801 shlibpath_var=LD_LIBRARY_PATH
11802 shlibpath_overrides_runpath=no
11803 hardcode_into_libs=yes
11804 dynamic_linker='GNU ld.so'
11811 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11813 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11814 dynamic_linker='NetBSD (a.out) ld.so'
11816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11817 soname_spec='${libname}${release}${shared_ext}$major'
11818 dynamic_linker='NetBSD ld.elf_so'
11820 shlibpath_var=LD_LIBRARY_PATH
11821 shlibpath_overrides_runpath=yes
11822 hardcode_into_libs=yes
11827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11828 shlibpath_var=LD_LIBRARY_PATH
11829 shlibpath_overrides_runpath=yes
11836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11837 soname_spec='${libname}${release}${shared_ext}$major'
11838 shlibpath_var=LD_LIBRARY_PATH
11839 shlibpath_overrides_runpath=yes
11846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11847 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11848 shlibpath_var=LD_LIBRARY_PATH
11849 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11851 openbsd2.[89] | openbsd2.[89].*)
11852 shlibpath_overrides_runpath=no
11855 shlibpath_overrides_runpath=yes
11859 shlibpath_overrides_runpath=yes
11864 libname_spec='$name'
11867 library_names_spec='$libname${shared_ext} $libname.a'
11868 dynamic_linker='OS/2 ld.exe'
11869 shlibpath_var=LIBPATH
11872 osf3* | osf4* | osf5*)
11876 soname_spec='${libname}${release}${shared_ext}$major'
11877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11878 shlibpath_var=LD_LIBRARY_PATH
11879 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11880 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11885 soname_spec='${libname}${release}${shared_ext}$major'
11886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11887 shlibpath_var=LD_LIBRARY_PATH
11894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11895 soname_spec='${libname}${release}${shared_ext}$major'
11896 shlibpath_var=LD_LIBRARY_PATH
11897 shlibpath_overrides_runpath=yes
11898 hardcode_into_libs=yes
11899 # ldd complains unless libraries are executable
11900 postinstall_cmds='chmod +x $lib'
11905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11906 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11907 shlibpath_var=LD_LIBRARY_PATH
11908 shlibpath_overrides_runpath=yes
11909 if test "$with_gnu_ld" = yes; then
11915 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11918 soname_spec='${libname}${release}${shared_ext}$major'
11919 shlibpath_var=LD_LIBRARY_PATH
11920 case $host_vendor in
11922 shlibpath_overrides_runpath=no
11924 export_dynamic_flag_spec='${wl}-Blargedynsym'
11925 runpath_var=LD_RUN_PATH
11933 shlibpath_overrides_runpath=no
11934 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11940 if test -d /usr/nec ;then
11942 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11943 soname_spec='$libname${shared_ext}.$major'
11944 shlibpath_var=LD_LIBRARY_PATH
11950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11951 soname_spec='${libname}${release}${shared_ext}$major'
11952 shlibpath_var=LD_LIBRARY_PATH
11959 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11960 echo "${ECHO_T}$dynamic_linker" >&6
11961 test "$dynamic_linker" = no && can_build_shared=no
11963 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11964 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11965 hardcode_action_CXX=
11966 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11967 test -n "$runpath_var_CXX" || \
11968 test "X$hardcode_automatic_CXX" = "Xyes" ; then
11970 # We can hardcode non-existant directories.
11971 if test "$hardcode_direct_CXX" != no &&
11972 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11973 # have to relink, otherwise we might link with an installed library
11974 # when we should be linking with a yet-to-be-installed one
11975 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11976 test "$hardcode_minus_L_CXX" != no; then
11977 # Linking always hardcodes the temporary library directory.
11978 hardcode_action_CXX=relink
11980 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11981 hardcode_action_CXX=immediate
11984 # We cannot hardcode anything, or else we can only hardcode existing
11986 hardcode_action_CXX=unsupported
11988 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11989 echo "${ECHO_T}$hardcode_action_CXX" >&6
11991 if test "$hardcode_action_CXX" = relink; then
11992 # Fast installation is not supported
11993 enable_fast_install=no
11994 elif test "$shlibpath_overrides_runpath" = yes ||
11995 test "$enable_shared" = no; then
11996 # Fast installation is not necessary
11997 enable_fast_install=needless
12002 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12003 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12004 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12005 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12006 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12007 echo "$as_me:$LINENO: result: yes" >&5
12008 echo "${ECHO_T}yes" >&6
12010 # FIXME - insert some real tests, host_os isn't really good enough
12013 if test -n "$STRIP" ; then
12014 striplib="$STRIP -x"
12015 echo "$as_me:$LINENO: result: yes" >&5
12016 echo "${ECHO_T}yes" >&6
12018 echo "$as_me:$LINENO: result: no" >&5
12019 echo "${ECHO_T}no" >&6
12023 echo "$as_me:$LINENO: result: no" >&5
12024 echo "${ECHO_T}no" >&6
12029 if test "x$enable_dlopen" != xyes; then
12030 enable_dlopen=unknown
12031 enable_dlopen_self=unknown
12032 enable_dlopen_self_static=unknown
12039 lt_cv_dlopen="load_add_on"
12041 lt_cv_dlopen_self=yes
12045 lt_cv_dlopen="LoadLibrary"
12050 lt_cv_dlopen="dlopen"
12055 # if libdl is installed we need to link against it
12056 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12057 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12058 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12059 echo $ECHO_N "(cached) $ECHO_C" >&6
12061 ac_check_lib_save_LIBS=$LIBS
12063 cat >conftest.$ac_ext <<_ACEOF
12066 cat confdefs.h >>conftest.$ac_ext
12067 cat >>conftest.$ac_ext <<_ACEOF
12068 /* end confdefs.h. */
12070 /* Override any gcc2 internal prototype to avoid an error. */
12074 /* We use char because int might match the return type of a gcc2
12075 builtin and then its argument prototype would still apply. */
12085 rm -f conftest.$ac_objext conftest$ac_exeext
12086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12087 (eval $ac_link) 2>conftest.er1
12089 grep -v '^ *+' conftest.er1 >conftest.err
12091 cat conftest.err >&5
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 (exit $ac_status); } &&
12094 { ac_try='test -z "$ac_cxx_werror_flag"
12095 || test ! -s conftest.err'
12096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12097 (eval $ac_try) 2>&5
12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); }; } &&
12101 { ac_try='test -s conftest$ac_exeext'
12102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12103 (eval $ac_try) 2>&5
12105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); }; }; then
12107 ac_cv_lib_dl_dlopen=yes
12109 echo "$as_me: failed program was:" >&5
12110 sed 's/^/| /' conftest.$ac_ext >&5
12112 ac_cv_lib_dl_dlopen=no
12114 rm -f conftest.err conftest.$ac_objext \
12115 conftest$ac_exeext conftest.$ac_ext
12116 LIBS=$ac_check_lib_save_LIBS
12118 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12119 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12120 if test $ac_cv_lib_dl_dlopen = yes; then
12121 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12124 lt_cv_dlopen="dyld"
12126 lt_cv_dlopen_self=yes
12133 echo "$as_me:$LINENO: checking for shl_load" >&5
12134 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12135 if test "${ac_cv_func_shl_load+set}" = set; then
12136 echo $ECHO_N "(cached) $ECHO_C" >&6
12138 cat >conftest.$ac_ext <<_ACEOF
12141 cat confdefs.h >>conftest.$ac_ext
12142 cat >>conftest.$ac_ext <<_ACEOF
12143 /* end confdefs.h. */
12144 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12146 #define shl_load innocuous_shl_load
12148 /* System header to define __stub macros and hopefully few prototypes,
12149 which can conflict with char shl_load (); below.
12150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12151 <limits.h> exists even on freestanding compilers. */
12154 # include <limits.h>
12156 # include <assert.h>
12161 /* Override any gcc2 internal prototype to avoid an error. */
12166 /* We use char because int might match the return type of a gcc2
12167 builtin and then its argument prototype would still apply. */
12169 /* The GNU C library defines this for functions which it implements
12170 to always fail with ENOSYS. Some functions are actually named
12171 something starting with __ and the normal name is an alias. */
12172 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12175 char (*f) () = shl_load;
12184 return f != shl_load;
12189 rm -f conftest.$ac_objext conftest$ac_exeext
12190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12191 (eval $ac_link) 2>conftest.er1
12193 grep -v '^ *+' conftest.er1 >conftest.err
12195 cat conftest.err >&5
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); } &&
12198 { ac_try='test -z "$ac_cxx_werror_flag"
12199 || test ! -s conftest.err'
12200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12201 (eval $ac_try) 2>&5
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); }; } &&
12205 { ac_try='test -s conftest$ac_exeext'
12206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12207 (eval $ac_try) 2>&5
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); }; }; then
12211 ac_cv_func_shl_load=yes
12213 echo "$as_me: failed program was:" >&5
12214 sed 's/^/| /' conftest.$ac_ext >&5
12216 ac_cv_func_shl_load=no
12218 rm -f conftest.err conftest.$ac_objext \
12219 conftest$ac_exeext conftest.$ac_ext
12221 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12222 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12223 if test $ac_cv_func_shl_load = yes; then
12224 lt_cv_dlopen="shl_load"
12226 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12227 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12228 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12229 echo $ECHO_N "(cached) $ECHO_C" >&6
12231 ac_check_lib_save_LIBS=$LIBS
12233 cat >conftest.$ac_ext <<_ACEOF
12236 cat confdefs.h >>conftest.$ac_ext
12237 cat >>conftest.$ac_ext <<_ACEOF
12238 /* end confdefs.h. */
12240 /* Override any gcc2 internal prototype to avoid an error. */
12244 /* We use char because int might match the return type of a gcc2
12245 builtin and then its argument prototype would still apply. */
12255 rm -f conftest.$ac_objext conftest$ac_exeext
12256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12257 (eval $ac_link) 2>conftest.er1
12259 grep -v '^ *+' conftest.er1 >conftest.err
12261 cat conftest.err >&5
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); } &&
12264 { ac_try='test -z "$ac_cxx_werror_flag"
12265 || test ! -s conftest.err'
12266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12267 (eval $ac_try) 2>&5
12269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); }; } &&
12271 { ac_try='test -s conftest$ac_exeext'
12272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12273 (eval $ac_try) 2>&5
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); }; }; then
12277 ac_cv_lib_dld_shl_load=yes
12279 echo "$as_me: failed program was:" >&5
12280 sed 's/^/| /' conftest.$ac_ext >&5
12282 ac_cv_lib_dld_shl_load=no
12284 rm -f conftest.err conftest.$ac_objext \
12285 conftest$ac_exeext conftest.$ac_ext
12286 LIBS=$ac_check_lib_save_LIBS
12288 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12289 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12290 if test $ac_cv_lib_dld_shl_load = yes; then
12291 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12293 echo "$as_me:$LINENO: checking for dlopen" >&5
12294 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12295 if test "${ac_cv_func_dlopen+set}" = set; then
12296 echo $ECHO_N "(cached) $ECHO_C" >&6
12298 cat >conftest.$ac_ext <<_ACEOF
12301 cat confdefs.h >>conftest.$ac_ext
12302 cat >>conftest.$ac_ext <<_ACEOF
12303 /* end confdefs.h. */
12304 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12306 #define dlopen innocuous_dlopen
12308 /* System header to define __stub macros and hopefully few prototypes,
12309 which can conflict with char dlopen (); below.
12310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12311 <limits.h> exists even on freestanding compilers. */
12314 # include <limits.h>
12316 # include <assert.h>
12321 /* Override any gcc2 internal prototype to avoid an error. */
12326 /* We use char because int might match the return type of a gcc2
12327 builtin and then its argument prototype would still apply. */
12329 /* The GNU C library defines this for functions which it implements
12330 to always fail with ENOSYS. Some functions are actually named
12331 something starting with __ and the normal name is an alias. */
12332 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12335 char (*f) () = dlopen;
12344 return f != dlopen;
12349 rm -f conftest.$ac_objext conftest$ac_exeext
12350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12351 (eval $ac_link) 2>conftest.er1
12353 grep -v '^ *+' conftest.er1 >conftest.err
12355 cat conftest.err >&5
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); } &&
12358 { ac_try='test -z "$ac_cxx_werror_flag"
12359 || test ! -s conftest.err'
12360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12361 (eval $ac_try) 2>&5
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); }; } &&
12365 { ac_try='test -s conftest$ac_exeext'
12366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12367 (eval $ac_try) 2>&5
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); }; }; then
12371 ac_cv_func_dlopen=yes
12373 echo "$as_me: failed program was:" >&5
12374 sed 's/^/| /' conftest.$ac_ext >&5
12376 ac_cv_func_dlopen=no
12378 rm -f conftest.err conftest.$ac_objext \
12379 conftest$ac_exeext conftest.$ac_ext
12381 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12382 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12383 if test $ac_cv_func_dlopen = yes; then
12384 lt_cv_dlopen="dlopen"
12386 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12387 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12388 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12389 echo $ECHO_N "(cached) $ECHO_C" >&6
12391 ac_check_lib_save_LIBS=$LIBS
12393 cat >conftest.$ac_ext <<_ACEOF
12396 cat confdefs.h >>conftest.$ac_ext
12397 cat >>conftest.$ac_ext <<_ACEOF
12398 /* end confdefs.h. */
12400 /* Override any gcc2 internal prototype to avoid an error. */
12404 /* We use char because int might match the return type of a gcc2
12405 builtin and then its argument prototype would still apply. */
12415 rm -f conftest.$ac_objext conftest$ac_exeext
12416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12417 (eval $ac_link) 2>conftest.er1
12419 grep -v '^ *+' conftest.er1 >conftest.err
12421 cat conftest.err >&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); } &&
12424 { ac_try='test -z "$ac_cxx_werror_flag"
12425 || test ! -s conftest.err'
12426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12427 (eval $ac_try) 2>&5
12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 (exit $ac_status); }; } &&
12431 { ac_try='test -s conftest$ac_exeext'
12432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12433 (eval $ac_try) 2>&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); }; }; then
12437 ac_cv_lib_dl_dlopen=yes
12439 echo "$as_me: failed program was:" >&5
12440 sed 's/^/| /' conftest.$ac_ext >&5
12442 ac_cv_lib_dl_dlopen=no
12444 rm -f conftest.err conftest.$ac_objext \
12445 conftest$ac_exeext conftest.$ac_ext
12446 LIBS=$ac_check_lib_save_LIBS
12448 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12449 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12450 if test $ac_cv_lib_dl_dlopen = yes; then
12451 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12453 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12454 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12455 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12456 echo $ECHO_N "(cached) $ECHO_C" >&6
12458 ac_check_lib_save_LIBS=$LIBS
12459 LIBS="-lsvld $LIBS"
12460 cat >conftest.$ac_ext <<_ACEOF
12463 cat confdefs.h >>conftest.$ac_ext
12464 cat >>conftest.$ac_ext <<_ACEOF
12465 /* end confdefs.h. */
12467 /* Override any gcc2 internal prototype to avoid an error. */
12471 /* We use char because int might match the return type of a gcc2
12472 builtin and then its argument prototype would still apply. */
12482 rm -f conftest.$ac_objext conftest$ac_exeext
12483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12484 (eval $ac_link) 2>conftest.er1
12486 grep -v '^ *+' conftest.er1 >conftest.err
12488 cat conftest.err >&5
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); } &&
12491 { ac_try='test -z "$ac_cxx_werror_flag"
12492 || test ! -s conftest.err'
12493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12494 (eval $ac_try) 2>&5
12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); }; } &&
12498 { ac_try='test -s conftest$ac_exeext'
12499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12500 (eval $ac_try) 2>&5
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); }; }; then
12504 ac_cv_lib_svld_dlopen=yes
12506 echo "$as_me: failed program was:" >&5
12507 sed 's/^/| /' conftest.$ac_ext >&5
12509 ac_cv_lib_svld_dlopen=no
12511 rm -f conftest.err conftest.$ac_objext \
12512 conftest$ac_exeext conftest.$ac_ext
12513 LIBS=$ac_check_lib_save_LIBS
12515 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12516 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12517 if test $ac_cv_lib_svld_dlopen = yes; then
12518 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12520 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12521 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12522 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12523 echo $ECHO_N "(cached) $ECHO_C" >&6
12525 ac_check_lib_save_LIBS=$LIBS
12527 cat >conftest.$ac_ext <<_ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h. */
12534 /* Override any gcc2 internal prototype to avoid an error. */
12538 /* We use char because int might match the return type of a gcc2
12539 builtin and then its argument prototype would still apply. */
12549 rm -f conftest.$ac_objext conftest$ac_exeext
12550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12551 (eval $ac_link) 2>conftest.er1
12553 grep -v '^ *+' conftest.er1 >conftest.err
12555 cat conftest.err >&5
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); } &&
12558 { ac_try='test -z "$ac_cxx_werror_flag"
12559 || test ! -s conftest.err'
12560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12561 (eval $ac_try) 2>&5
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); }; } &&
12565 { ac_try='test -s conftest$ac_exeext'
12566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12567 (eval $ac_try) 2>&5
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); }; }; then
12571 ac_cv_lib_dld_dld_link=yes
12573 echo "$as_me: failed program was:" >&5
12574 sed 's/^/| /' conftest.$ac_ext >&5
12576 ac_cv_lib_dld_dld_link=no
12578 rm -f conftest.err conftest.$ac_objext \
12579 conftest$ac_exeext conftest.$ac_ext
12580 LIBS=$ac_check_lib_save_LIBS
12582 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12583 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12584 if test $ac_cv_lib_dld_dld_link = yes; then
12585 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12606 if test "x$lt_cv_dlopen" != xno; then
12612 case $lt_cv_dlopen in
12614 save_CPPFLAGS="$CPPFLAGS"
12615 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12617 save_LDFLAGS="$LDFLAGS"
12618 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12621 LIBS="$lt_cv_dlopen_libs $LIBS"
12623 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12624 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12625 if test "${lt_cv_dlopen_self+set}" = set; then
12626 echo $ECHO_N "(cached) $ECHO_C" >&6
12628 if test "$cross_compiling" = yes; then :
12629 lt_cv_dlopen_self=cross
12631 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12632 lt_status=$lt_dlunknown
12633 cat > conftest.$ac_ext <<EOF
12634 #line 12634 "configure"
12635 #include "confdefs.h"
12644 # define LT_DLGLOBAL RTLD_GLOBAL
12647 # define LT_DLGLOBAL DL_GLOBAL
12649 # define LT_DLGLOBAL 0
12653 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12654 find out it does not work in some platform. */
12655 #ifndef LT_DLLAZY_OR_NOW
12657 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12660 # define LT_DLLAZY_OR_NOW DL_LAZY
12663 # define LT_DLLAZY_OR_NOW RTLD_NOW
12666 # define LT_DLLAZY_OR_NOW DL_NOW
12668 # define LT_DLLAZY_OR_NOW 0
12676 extern "C" void exit (int);
12679 void fnord() { int i=42;}
12682 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12683 int status = $lt_dlunknown;
12687 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12688 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12689 /* dlclose (self); */
12695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12696 (eval $ac_link) 2>&5
12698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12700 (./conftest; exit; ) 2>/dev/null
12702 case x$lt_status in
12703 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12704 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12705 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12708 # compilation failed
12709 lt_cv_dlopen_self=no
12716 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12717 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12719 if test "x$lt_cv_dlopen_self" = xyes; then
12720 LDFLAGS="$LDFLAGS $link_static_flag"
12721 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12722 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12723 if test "${lt_cv_dlopen_self_static+set}" = set; then
12724 echo $ECHO_N "(cached) $ECHO_C" >&6
12726 if test "$cross_compiling" = yes; then :
12727 lt_cv_dlopen_self_static=cross
12729 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12730 lt_status=$lt_dlunknown
12731 cat > conftest.$ac_ext <<EOF
12732 #line 12732 "configure"
12733 #include "confdefs.h"
12742 # define LT_DLGLOBAL RTLD_GLOBAL
12745 # define LT_DLGLOBAL DL_GLOBAL
12747 # define LT_DLGLOBAL 0
12751 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12752 find out it does not work in some platform. */
12753 #ifndef LT_DLLAZY_OR_NOW
12755 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12758 # define LT_DLLAZY_OR_NOW DL_LAZY
12761 # define LT_DLLAZY_OR_NOW RTLD_NOW
12764 # define LT_DLLAZY_OR_NOW DL_NOW
12766 # define LT_DLLAZY_OR_NOW 0
12774 extern "C" void exit (int);
12777 void fnord() { int i=42;}
12780 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12781 int status = $lt_dlunknown;
12785 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12786 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12787 /* dlclose (self); */
12793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12794 (eval $ac_link) 2>&5
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12798 (./conftest; exit; ) 2>/dev/null
12800 case x$lt_status in
12801 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12802 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12803 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12806 # compilation failed
12807 lt_cv_dlopen_self_static=no
12814 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12815 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12818 CPPFLAGS="$save_CPPFLAGS"
12819 LDFLAGS="$save_LDFLAGS"
12824 case $lt_cv_dlopen_self in
12825 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12826 *) enable_dlopen_self=unknown ;;
12829 case $lt_cv_dlopen_self_static in
12830 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12831 *) enable_dlopen_self_static=unknown ;;
12836 # The else clause should only fire when bootstrapping the
12837 # libtool distribution, otherwise you forgot to ship ltmain.sh
12838 # with your package, and you will get complaints that there are
12839 # no rules to generate ltmain.sh.
12840 if test -f "$ltmain"; then
12841 # See if we are running on zsh, and set the options which allow our commands through
12842 # without removal of \ escapes.
12843 if test -n "${ZSH_VERSION+set}" ; then
12844 setopt NO_GLOB_SUBST
12846 # Now quote all the things that may contain metacharacters while being
12847 # careful not to overquote the AC_SUBSTed values. We take copies of the
12848 # variables and quote the copies for generation of the libtool script.
12849 for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \
12851 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12852 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12853 deplibs_check_method reload_flag reload_cmds need_locks \
12854 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12855 lt_cv_sys_global_symbol_to_c_name_address \
12856 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12857 old_postinstall_cmds old_postuninstall_cmds \
12861 lt_prog_compiler_wl_CXX \
12862 lt_prog_compiler_pic_CXX \
12863 lt_prog_compiler_static_CXX \
12864 lt_prog_compiler_no_builtin_flag_CXX \
12865 export_dynamic_flag_spec_CXX \
12866 thread_safe_flag_spec_CXX \
12867 whole_archive_flag_spec_CXX \
12868 enable_shared_with_static_runtimes_CXX \
12869 old_archive_cmds_CXX \
12870 old_archive_from_new_cmds_CXX \
12871 predep_objects_CXX \
12872 postdep_objects_CXX \
12875 compiler_lib_search_path_CXX \
12877 archive_expsym_cmds_CXX \
12878 postinstall_cmds_CXX \
12879 postuninstall_cmds_CXX \
12880 old_archive_from_expsyms_cmds_CXX \
12881 allow_undefined_flag_CXX \
12882 no_undefined_flag_CXX \
12883 export_symbols_cmds_CXX \
12884 hardcode_libdir_flag_spec_CXX \
12885 hardcode_libdir_flag_spec_ld_CXX \
12886 hardcode_libdir_separator_CXX \
12887 hardcode_automatic_CXX \
12889 module_expsym_cmds_CXX \
12890 lt_cv_prog_compiler_c_o_CXX \
12891 exclude_expsyms_CXX \
12892 include_expsyms_CXX; do
12895 old_archive_cmds_CXX | \
12896 old_archive_from_new_cmds_CXX | \
12897 archive_cmds_CXX | \
12898 archive_expsym_cmds_CXX | \
12899 module_cmds_CXX | \
12900 module_expsym_cmds_CXX | \
12901 old_archive_from_expsyms_cmds_CXX | \
12902 export_symbols_cmds_CXX | \
12903 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12904 postinstall_cmds | postuninstall_cmds | \
12905 old_postinstall_cmds | old_postuninstall_cmds | \
12906 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12907 # Double-quote double-evaled strings.
12908 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12911 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12917 *'\$0 --fallback-echo"')
12918 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12924 cat <<__EOF__ >> "$cfgfile"
12925 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12927 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12929 # Shell to use when invoking shell scripts.
12932 # Whether or not to build shared libraries.
12933 build_libtool_libs=$enable_shared
12935 # Whether or not to build static libraries.
12936 build_old_libs=$enable_static
12938 # Whether or not to add -lc for building shared libraries.
12939 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12941 # Whether or not to disallow shared libs when runtime libs are static
12942 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12944 # Whether or not to optimize for fast installation.
12945 fast_install=$enable_fast_install
12948 host_alias=$host_alias
12952 # The build system.
12953 build_alias=$build_alias
12957 # An echo program that does not interpret backslashes.
12962 AR_FLAGS=$lt_AR_FLAGS
12967 # A language-specific compiler.
12968 CC=$lt_compiler_CXX
12970 # Is the compiler the GNU C compiler?
12976 # The linker used to build libraries.
12979 # Whether we need hard or soft links.
12982 # A BSD-compatible nm program.
12985 # A symbol stripping program
12988 # Used to examine libraries when file_magic_cmd begins "file"
12989 MAGIC_CMD=$MAGIC_CMD
12991 # Used on cygwin: DLL creation program.
12994 # Used on cygwin: object dumper.
12997 # Used on cygwin: assembler.
13000 # The name of the directory that contains temporary libtool files.
13003 # How to create reloadable object files.
13004 reload_flag=$lt_reload_flag
13005 reload_cmds=$lt_reload_cmds
13007 # How to pass a linker flag through the compiler.
13008 wl=$lt_lt_prog_compiler_wl_CXX
13010 # Object file suffix (normally "o").
13011 objext="$ac_objext"
13013 # Old archive suffix (normally "a").
13016 # Shared library suffix (normally ".so").
13017 shrext_cmds='$shrext_cmds'
13019 # Executable file suffix (normally "").
13022 # Additional compiler flags for building library objects.
13023 pic_flag=$lt_lt_prog_compiler_pic_CXX
13026 # What is the maximum length of a command?
13027 max_cmd_len=$lt_cv_sys_max_cmd_len
13029 # Does compiler simultaneously support -c and -o options?
13030 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13032 # Must we lock files when doing compilation ?
13033 need_locks=$lt_need_locks
13035 # Do we need the lib prefix for modules?
13036 need_lib_prefix=$need_lib_prefix
13038 # Do we need a version for libraries?
13039 need_version=$need_version
13041 # Whether dlopen is supported.
13042 dlopen_support=$enable_dlopen
13044 # Whether dlopen of programs is supported.
13045 dlopen_self=$enable_dlopen_self
13047 # Whether dlopen of statically linked programs is supported.
13048 dlopen_self_static=$enable_dlopen_self_static
13050 # Compiler flag to prevent dynamic linking.
13051 link_static_flag=$lt_lt_prog_compiler_static_CXX
13053 # Compiler flag to turn off builtin functions.
13054 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13056 # Compiler flag to allow reflexive dlopens.
13057 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13059 # Compiler flag to generate shared objects directly from archives.
13060 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13062 # Compiler flag to generate thread-safe objects.
13063 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13065 # Library versioning type.
13066 version_type=$version_type
13068 # Format of library name prefix.
13069 libname_spec=$lt_libname_spec
13071 # List of archive names. First name is the real one, the rest are links.
13072 # The last name is the one that the linker finds with -lNAME.
13073 library_names_spec=$lt_library_names_spec
13075 # The coded name of the library, if different from the real name.
13076 soname_spec=$lt_soname_spec
13078 # Commands used to build and install an old-style archive.
13080 old_archive_cmds=$lt_old_archive_cmds_CXX
13081 old_postinstall_cmds=$lt_old_postinstall_cmds
13082 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13084 # Create an old-style archive from a shared archive.
13085 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13087 # Create a temporary old-style archive to link instead of a shared archive.
13088 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13090 # Commands used to build and install a shared archive.
13091 archive_cmds=$lt_archive_cmds_CXX
13092 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13093 postinstall_cmds=$lt_postinstall_cmds
13094 postuninstall_cmds=$lt_postuninstall_cmds
13096 # Commands used to build a loadable module (assumed same as above if empty)
13097 module_cmds=$lt_module_cmds_CXX
13098 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13100 # Commands to strip libraries.
13101 old_striplib=$lt_old_striplib
13102 striplib=$lt_striplib
13104 # Dependencies to place before the objects being linked to create a
13106 predep_objects=$lt_predep_objects_CXX
13108 # Dependencies to place after the objects being linked to create a
13110 postdep_objects=$lt_postdep_objects_CXX
13112 # Dependencies to place before the objects being linked to create a
13114 predeps=$lt_predeps_CXX
13116 # Dependencies to place after the objects being linked to create a
13118 postdeps=$lt_postdeps_CXX
13120 # The library search path used internally by the compiler when linking
13121 # a shared library.
13122 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13124 # Method to check whether dependent libraries are shared objects.
13125 deplibs_check_method=$lt_deplibs_check_method
13127 # Command to use when deplibs_check_method == file_magic.
13128 file_magic_cmd=$lt_file_magic_cmd
13130 # Flag that allows shared libraries with undefined symbols to be built.
13131 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13133 # Flag that forces no undefined symbols.
13134 no_undefined_flag=$lt_no_undefined_flag_CXX
13136 # Commands used to finish a libtool library installation in a directory.
13137 finish_cmds=$lt_finish_cmds
13139 # Same as above, but a single script fragment to be evaled but not shown.
13140 finish_eval=$lt_finish_eval
13142 # Take the output of nm and produce a listing of raw symbols and C names.
13143 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13145 # Transform the output of nm in a proper C declaration
13146 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13148 # Transform the output of nm in a C name address pair
13149 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13151 # This is the shared library runtime path variable.
13152 runpath_var=$runpath_var
13154 # This is the shared library path variable.
13155 shlibpath_var=$shlibpath_var
13157 # Is shlibpath searched before the hard-coded library search path?
13158 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13160 # How to hardcode a shared library path into an executable.
13161 hardcode_action=$hardcode_action_CXX
13163 # Whether we should hardcode library paths into libraries.
13164 hardcode_into_libs=$hardcode_into_libs
13166 # Flag to hardcode \$libdir into a binary during linking.
13167 # This must work even if \$libdir does not exist.
13168 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13170 # If ld is used when linking, flag to hardcode \$libdir into
13171 # a binary during linking. This must work even if \$libdir does
13173 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13175 # Whether we need a single -rpath flag with a separated argument.
13176 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13178 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13179 # resulting binary.
13180 hardcode_direct=$hardcode_direct_CXX
13182 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13183 # resulting binary.
13184 hardcode_minus_L=$hardcode_minus_L_CXX
13186 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13187 # the resulting binary.
13188 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13190 # Set to yes if building a shared library automatically hardcodes DIR into the library
13191 # and all subsequent libraries and executables linked against it.
13192 hardcode_automatic=$hardcode_automatic_CXX
13194 # Variables whose values should be saved in libtool wrapper scripts and
13195 # restored at relink time.
13196 variables_saved_for_relink="$variables_saved_for_relink"
13198 # Whether libtool must link a program against all its dependency libraries.
13199 link_all_deplibs=$link_all_deplibs_CXX
13201 # Compile-time system search path for libraries
13202 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13204 # Run-time system search path for libraries
13205 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13207 # Fix the shell variable \$srcfile for the compiler.
13208 fix_srcfile_path="$fix_srcfile_path_CXX"
13210 # Set to yes if exported symbols are required.
13211 always_export_symbols=$always_export_symbols_CXX
13213 # The commands to list exported symbols.
13214 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13216 # The commands to extract the exported symbol list from a shared archive.
13217 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13219 # Symbols that should not be listed in the preloaded symbols.
13220 exclude_expsyms=$lt_exclude_expsyms_CXX
13222 # Symbols that must always be exported.
13223 include_expsyms=$lt_include_expsyms_CXX
13225 # ### END LIBTOOL TAG CONFIG: $tagname
13231 # If there is no Makefile yet, we rely on a make rule to execute
13232 # `config.status --recheck' to rerun these tests and create the
13233 # libtool script then.
13234 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13235 if test -f "$ltmain_in"; then
13236 test -f Makefile && make "$ltmain"
13242 ac_cpp='$CPP $CPPFLAGS'
13243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13251 with_gnu_ldcxx=$with_gnu_ld
13252 with_gnu_ld=$lt_save_with_gnu_ld
13253 lt_cv_path_LDCXX=$lt_cv_path_LD
13254 lt_cv_path_LD=$lt_save_path_LD
13255 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13256 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13264 if test -n "$F77" && test "X$F77" != "Xno"; then
13267 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13268 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13269 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13272 archive_cmds_need_lc_F77=no
13273 allow_undefined_flag_F77=
13274 always_export_symbols_F77=no
13275 archive_expsym_cmds_F77=
13276 export_dynamic_flag_spec_F77=
13277 hardcode_direct_F77=no
13278 hardcode_libdir_flag_spec_F77=
13279 hardcode_libdir_flag_spec_ld_F77=
13280 hardcode_libdir_separator_F77=
13281 hardcode_minus_L_F77=no
13282 hardcode_automatic_F77=no
13284 module_expsym_cmds_F77=
13285 link_all_deplibs_F77=unknown
13286 old_archive_cmds_F77=$old_archive_cmds
13287 no_undefined_flag_F77=
13288 whole_archive_flag_spec_F77=
13289 enable_shared_with_static_runtimes_F77=no
13291 # Source file extension for f77 test sources.
13294 # Object file extension for compiled f77 test sources.
13298 # Code to be used in simple compile tests
13299 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13301 # Code to be used in simple link tests
13302 lt_simple_link_test_code=" program t\n end\n"
13304 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13306 # If no C compiler was specified, use CC.
13309 # Allow CC to be a program name with arguments.
13313 # Allow CC to be a program name with arguments.
13318 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13320 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13321 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13322 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13323 echo "${ECHO_T}$can_build_shared" >&6
13325 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13326 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13327 test "$can_build_shared" = "no" && enable_shared=no
13329 # On AIX, shared libraries and static libraries use the same namespace, and
13330 # are all built from PIC.
13333 test "$enable_shared" = yes && enable_static=no
13334 if test -n "$RANLIB"; then
13335 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13336 postinstall_cmds='$RANLIB $lib'
13340 test "$enable_shared" = yes && enable_static=no
13343 echo "$as_me:$LINENO: result: $enable_shared" >&5
13344 echo "${ECHO_T}$enable_shared" >&6
13346 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13347 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13348 # Make sure either enable_shared or enable_static is yes.
13349 test "$enable_shared" = yes || enable_static=yes
13350 echo "$as_me:$LINENO: result: $enable_static" >&5
13351 echo "${ECHO_T}$enable_static" >&6
13353 test "$ld_shlibs_F77" = no && can_build_shared=no
13358 lt_prog_compiler_wl_F77=
13359 lt_prog_compiler_pic_F77=
13360 lt_prog_compiler_static_F77=
13362 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13363 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13365 if test "$GCC" = yes; then
13366 lt_prog_compiler_wl_F77='-Wl,'
13367 lt_prog_compiler_static_F77='-static'
13371 # All AIX code is PIC.
13372 if test "$host_cpu" = ia64; then
13373 # AIX 5 now supports IA64 processor
13374 lt_prog_compiler_static_F77='-Bstatic'
13379 # FIXME: we need at least 68020 code to build shared libraries, but
13380 # adding the `-m68020' flag to GCC prevents building anything better,
13382 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13385 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13386 # PIC is the default for these OSes.
13389 mingw* | pw32* | os2*)
13390 # This hack is so that the source file can tell whether it is being
13391 # built for inclusion in a dll (and should export symbols for example).
13392 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13395 darwin* | rhapsody*)
13396 # PIC is the default on this platform
13397 # Common symbols not allowed in MH_DYLIB files
13398 lt_prog_compiler_pic_F77='-fno-common'
13402 # Just because we use GCC doesn't mean we suddenly get shared libraries
13403 # on systems that don't support them.
13404 lt_prog_compiler_can_build_shared_F77=no
13409 if test -d /usr/nec; then
13410 lt_prog_compiler_pic_F77=-Kconform_pic
13415 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13416 # not for PA HP-UX.
13417 case "$host_cpu" in
13422 lt_prog_compiler_pic_F77='-fPIC'
13428 lt_prog_compiler_pic_F77='-fPIC'
13432 # PORTME Check for flag to pass linker flags through the system compiler.
13435 lt_prog_compiler_wl_F77='-Wl,'
13436 if test "$host_cpu" = ia64; then
13437 # AIX 5 now supports IA64 processor
13438 lt_prog_compiler_static_F77='-Bstatic'
13440 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13444 # PIC is the default on this platform
13445 # Common symbols not allowed in MH_DYLIB files
13446 case "$cc_basename" in
13448 lt_prog_compiler_pic_F77='-qnocommon'
13449 lt_prog_compiler_wl_F77='-Wl,'
13454 mingw* | pw32* | os2*)
13455 # This hack is so that the source file can tell whether it is being
13456 # built for inclusion in a dll (and should export symbols for example).
13457 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13460 hpux9* | hpux10* | hpux11*)
13461 lt_prog_compiler_wl_F77='-Wl,'
13462 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13463 # not for PA HP-UX.
13464 case "$host_cpu" in
13469 lt_prog_compiler_pic_F77='+Z'
13472 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13473 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13476 irix5* | irix6* | nonstopux*)
13477 lt_prog_compiler_wl_F77='-Wl,'
13478 # PIC (with -KPIC) is the default.
13479 lt_prog_compiler_static_F77='-non_shared'
13483 lt_prog_compiler_pic_F77='-KPIC'
13484 lt_prog_compiler_static_F77='-Bstatic'
13488 case $cc_basename in
13490 lt_prog_compiler_wl_F77='-Wl,'
13491 lt_prog_compiler_pic_F77='-KPIC'
13492 lt_prog_compiler_static_F77='-static'
13494 pgcc | pgf77 | pgf90)
13495 # Portland Group compilers (*not* the Pentium gcc compiler,
13496 # which looks to be a dead project)
13497 lt_prog_compiler_wl_F77='-Wl,'
13498 lt_prog_compiler_pic_F77='-fpic'
13499 lt_prog_compiler_static_F77='-static'
13502 lt_prog_compiler_wl_F77='-Wl,'
13503 # All Alpha code is PIC.
13504 lt_prog_compiler_static_F77='-non_shared'
13509 osf3* | osf4* | osf5*)
13510 lt_prog_compiler_wl_F77='-Wl,'
13511 # All OSF/1 code is PIC.
13512 lt_prog_compiler_static_F77='-non_shared'
13516 lt_prog_compiler_pic_F77='-Kpic'
13517 lt_prog_compiler_static_F77='-dn'
13521 lt_prog_compiler_wl_F77='-Wl,'
13522 lt_prog_compiler_pic_F77='-KPIC'
13523 lt_prog_compiler_static_F77='-Bstatic'
13527 lt_prog_compiler_wl_F77='-Qoption ld '
13528 lt_prog_compiler_pic_F77='-PIC'
13529 lt_prog_compiler_static_F77='-Bstatic'
13532 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13533 lt_prog_compiler_wl_F77='-Wl,'
13534 lt_prog_compiler_pic_F77='-KPIC'
13535 lt_prog_compiler_static_F77='-Bstatic'
13539 if test -d /usr/nec ;then
13540 lt_prog_compiler_pic_F77='-Kconform_pic'
13541 lt_prog_compiler_static_F77='-Bstatic'
13546 lt_prog_compiler_wl_F77='-Wl,'
13547 lt_prog_compiler_can_build_shared_F77=no
13551 lt_prog_compiler_pic_F77='-pic'
13552 lt_prog_compiler_static_F77='-Bstatic'
13556 lt_prog_compiler_can_build_shared_F77=no
13561 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13562 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13565 # Check to make sure the PIC flag actually works.
13567 if test -n "$lt_prog_compiler_pic_F77"; then
13569 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13570 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13571 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13572 echo $ECHO_N "(cached) $ECHO_C" >&6
13574 lt_prog_compiler_pic_works_F77=no
13575 ac_outfile=conftest.$ac_objext
13576 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13577 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13578 # Insert the option either (1) after the last *FLAGS variable, or
13579 # (2) before a word containing "conftest.", or (3) at the end.
13580 # Note that $ac_compile itself does not contain backslashes and begins
13581 # with a dollar sign (not a hyphen), so the echo should work correctly.
13582 # The option is referenced via a variable to avoid confusing sed.
13583 lt_compile=`echo "$ac_compile" | $SED \
13584 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13585 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13586 -e 's:$: $lt_compiler_flag:'`
13587 (eval echo "\"\$as_me:13587: $lt_compile\"" >&5)
13588 (eval "$lt_compile" 2>conftest.err)
13590 cat conftest.err >&5
13591 echo "$as_me:13591: \$? = $ac_status" >&5
13592 if (exit $ac_status) && test -s "$ac_outfile"; then
13593 # The compiler can only warn and ignore the option if not recognized
13594 # So say no if there are warnings
13595 if test ! -s conftest.err; then
13596 lt_prog_compiler_pic_works_F77=yes
13602 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13603 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13605 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13606 case $lt_prog_compiler_pic_F77 in
13608 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13611 lt_prog_compiler_pic_F77=
13612 lt_prog_compiler_can_build_shared_F77=no
13617 # For platforms which do not support PIC, -DPIC is meaningless:
13619 lt_prog_compiler_pic_F77=
13622 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13626 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13627 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13628 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13629 echo $ECHO_N "(cached) $ECHO_C" >&6
13631 lt_cv_prog_compiler_c_o_F77=no
13632 $rm -r conftest 2>/dev/null
13636 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13638 lt_compiler_flag="-o out/conftest2.$ac_objext"
13639 # Insert the option either (1) after the last *FLAGS variable, or
13640 # (2) before a word containing "conftest.", or (3) at the end.
13641 # Note that $ac_compile itself does not contain backslashes and begins
13642 # with a dollar sign (not a hyphen), so the echo should work correctly.
13643 lt_compile=`echo "$ac_compile" | $SED \
13644 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13645 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13646 -e 's:$: $lt_compiler_flag:'`
13647 (eval echo "\"\$as_me:13647: $lt_compile\"" >&5)
13648 (eval "$lt_compile" 2>out/conftest.err)
13650 cat out/conftest.err >&5
13651 echo "$as_me:13651: \$? = $ac_status" >&5
13652 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13654 # The compiler can only warn and ignore the option if not recognized
13655 # So say no if there are warnings
13656 if test ! -s out/conftest.err; then
13657 lt_cv_prog_compiler_c_o_F77=yes
13662 # SGI C++ compiler will create directory out/ii_files/ for
13663 # template instantiation
13664 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13665 $rm out/* && rmdir out
13671 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13672 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13675 hard_links="nottested"
13676 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13677 # do not overwrite the value of need_locks provided by the user
13678 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13679 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13682 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13684 ln conftest.a conftest.b 2>&5 || hard_links=no
13685 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13686 echo "$as_me:$LINENO: result: $hard_links" >&5
13687 echo "${ECHO_T}$hard_links" >&6
13688 if test "$hard_links" = no; then
13689 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13690 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13697 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13698 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13701 allow_undefined_flag_F77=
13702 enable_shared_with_static_runtimes_F77=no
13704 archive_expsym_cmds_F77=
13705 old_archive_From_new_cmds_F77=
13706 old_archive_from_expsyms_cmds_F77=
13707 export_dynamic_flag_spec_F77=
13708 whole_archive_flag_spec_F77=
13709 thread_safe_flag_spec_F77=
13710 hardcode_libdir_flag_spec_F77=
13711 hardcode_libdir_flag_spec_ld_F77=
13712 hardcode_libdir_separator_F77=
13713 hardcode_direct_F77=no
13714 hardcode_minus_L_F77=no
13715 hardcode_shlibpath_var_F77=unsupported
13716 link_all_deplibs_F77=unknown
13717 hardcode_automatic_F77=no
13719 module_expsym_cmds_F77=
13720 always_export_symbols_F77=no
13721 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13722 # include_expsyms should be a list of space-separated symbols to be *always*
13723 # included in the symbol list
13724 include_expsyms_F77=
13725 # exclude_expsyms can be an extended regexp of symbols to exclude
13726 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13727 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13728 # as well as any symbol that contains `d'.
13729 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13730 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13731 # platforms (ab)use it in PIC code, but their linkers get confused if
13732 # the symbol is explicitly referenced. Since portable code cannot
13733 # rely on this symbol name, it's probably fine to never include it in
13734 # preloaded symbol tables.
13735 extract_expsyms_cmds=
13738 cygwin* | mingw* | pw32*)
13739 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13740 # When not using gcc, we currently assume that we are using
13741 # Microsoft Visual C++.
13742 if test "$GCC" != yes; then
13752 if test "$with_gnu_ld" = yes; then
13753 # If archive_cmds runs LD, not CC, wlarc should be empty
13756 # See if GNU ld supports shared libraries.
13758 aix3* | aix4* | aix5*)
13759 # On AIX/PPC, the GNU linker is very broken
13760 if test "$host_cpu" != ia64; then
13764 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13765 *** to be unable to reliably create shared libraries on AIX.
13766 *** Therefore, libtool is disabling shared libraries support. If you
13767 *** really care for shared libraries, you may want to modify your PATH
13768 *** so that a non-GNU linker is found, and then restart.
13775 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)'
13776 hardcode_libdir_flag_spec_F77='-L$libdir'
13777 hardcode_minus_L_F77=yes
13779 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13780 # that the semantics of dynamic libraries on AmigaOS, at least up
13781 # to version 4, is to share data among multiple programs linked
13782 # with the same dynamic library. Since this doesn't match the
13783 # behavior of shared libraries on other platforms, we can't use
13789 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13790 allow_undefined_flag_F77=unsupported
13791 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13792 # support --undefined. This deserves some investigation. FIXME
13793 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13799 cygwin* | mingw* | pw32*)
13800 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13801 # as there is no search path for DLLs.
13802 hardcode_libdir_flag_spec_F77='-L$libdir'
13803 allow_undefined_flag_F77=unsupported
13804 always_export_symbols_F77=no
13805 enable_shared_with_static_runtimes_F77=yes
13806 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13808 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13809 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13810 # If the export-symbols file already is a .def file (1st line
13811 # is EXPORTS), use it as is; otherwise, prepend...
13812 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13813 cp $export_symbols $output_objdir/$soname.def;
13815 echo EXPORTS > $output_objdir/$soname.def;
13816 cat $export_symbols >> $output_objdir/$soname.def;
13818 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13825 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13826 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13829 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13830 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13835 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13839 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13840 *** create shared libraries on Solaris systems. Therefore, libtool
13841 *** is disabling shared libraries support. We urge you to upgrade GNU
13842 *** binutils to release 2.9.1 or newer. Another option is to modify
13843 *** your PATH or compiler configuration so that the native linker is
13844 *** used, and then restart.
13847 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13848 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13849 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13856 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13858 hardcode_direct_F77=yes
13859 hardcode_shlibpath_var_F77=no
13863 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13865 case $CC,$host_cpu in
13866 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
13867 tmp_addflag=' -fpic' ;;
13868 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13869 tmp_addflag=' -i_dynamic' ;;
13870 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13871 tmp_addflag=' -i_dynamic -nofor_main' ;;
13872 ifc* | ifort*) # Intel Fortran compiler
13873 tmp_addflag=' -nofor_main' ;;
13875 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13876 supports_anon_versioning=no
13877 case `$LD -v 2>/dev/null` in
13878 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13879 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13880 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13881 *\ 2.11.*) ;; # other 2.11 versions
13882 *) supports_anon_versioning=yes ;;
13884 if test $supports_anon_versioning = yes; then
13885 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13886 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13887 $echo "local: *; };" >> $output_objdir/$libname.ver~
13888 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13890 archive_expsym_cmds_F77=$archive_cmds_F77
13898 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13899 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13900 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13907 if test "$ld_shlibs_F77" = yes; then
13908 runpath_var=LD_RUN_PATH
13909 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13910 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13911 # ancient GNU ld didn't support --whole-archive et. al.
13912 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13913 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13915 whole_archive_flag_spec_F77=
13919 # PORTME fill in a description of your system's linker (not GNU ld)
13922 allow_undefined_flag_F77=unsupported
13923 always_export_symbols_F77=yes
13924 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'
13925 # Note: this linker hardcodes the directories in LIBPATH if there
13926 # are no directories specified by -L.
13927 hardcode_minus_L_F77=yes
13928 if test "$GCC" = yes && test -z "$link_static_flag"; then
13929 # Neither direct hardcoding nor static linking is supported with a
13931 hardcode_direct_F77=unsupported
13936 if test "$host_cpu" = ia64; then
13937 # On IA64, the linker does run time linking by default, so we don't
13938 # have to do anything special.
13939 aix_use_runtimelinking=no
13940 exp_sym_flag='-Bexport'
13943 # If we're using GNU nm, then we don't want the "-C" option.
13944 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13945 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13946 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'
13948 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'
13950 aix_use_runtimelinking=no
13952 # Test if we are trying to use run time linking or normal
13953 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13954 # need to do runtime linking.
13955 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13956 for ld_flag in $LDFLAGS; do
13957 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13958 aix_use_runtimelinking=yes
13964 exp_sym_flag='-bexport'
13965 no_entry_flag='-bnoentry'
13968 # When large executables or shared objects are built, AIX ld can
13969 # have problems creating the table of contents. If linking a library
13970 # or program results in "error TOC overflow" add -mminimal-toc to
13971 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13972 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13974 archive_cmds_F77=''
13975 hardcode_direct_F77=yes
13976 hardcode_libdir_separator_F77=':'
13977 link_all_deplibs_F77=yes
13979 if test "$GCC" = yes; then
13980 case $host_os in aix4.[012]|aix4.[012].*)
13981 # We only want to do this on AIX 4.2 and lower, the check
13982 # below for broken collect2 doesn't work under 4.3+
13983 collect2name=`${CC} -print-prog-name=collect2`
13984 if test -f "$collect2name" && \
13985 strings "$collect2name" | grep resolve_lib_name >/dev/null
13987 # We have reworked collect2
13988 hardcode_direct_F77=yes
13990 # We have old collect2
13991 hardcode_direct_F77=unsupported
13992 # It fails to find uninstalled libraries when the uninstalled
13993 # path is not listed in the libpath. Setting hardcode_minus_L
13994 # to unsupported forces relinking
13995 hardcode_minus_L_F77=yes
13996 hardcode_libdir_flag_spec_F77='-L$libdir'
13997 hardcode_libdir_separator_F77=
14000 shared_flag='-shared'
14001 if test "$aix_use_runtimelinking" = yes; then
14002 shared_flag="$shared_flag "'${wl}-G'
14006 if test "$host_cpu" = ia64; then
14007 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14008 # chokes on -Wl,-G. The following line is correct:
14011 if test "$aix_use_runtimelinking" = yes; then
14012 shared_flag='${wl}-G'
14014 shared_flag='${wl}-bM:SRE'
14019 # It seems that -bexpall does not export symbols beginning with
14020 # underscore (_), so it is better to generate a list of symbols to export.
14021 always_export_symbols_F77=yes
14022 if test "$aix_use_runtimelinking" = yes; then
14023 # Warning - without using the other runtime loading flags (-brtl),
14024 # -berok will link without error, but may produce a broken library.
14025 allow_undefined_flag_F77='-berok'
14026 # Determine the default libpath from the value encoded in an empty executable.
14027 cat >conftest.$ac_ext <<_ACEOF
14032 rm -f conftest.$ac_objext conftest$ac_exeext
14033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14034 (eval $ac_link) 2>conftest.er1
14036 grep -v '^ *+' conftest.er1 >conftest.err
14038 cat conftest.err >&5
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); } &&
14041 { ac_try='test -z "$ac_f77_werror_flag"
14042 || test ! -s conftest.err'
14043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14044 (eval $ac_try) 2>&5
14046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047 (exit $ac_status); }; } &&
14048 { ac_try='test -s conftest$ac_exeext'
14049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14050 (eval $ac_try) 2>&5
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); }; }; then
14055 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14057 # Check for a 64-bit object if we didn't find anything.
14058 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; }
14061 echo "$as_me: failed program was:" >&5
14062 sed 's/^/| /' conftest.$ac_ext >&5
14065 rm -f conftest.err conftest.$ac_objext \
14066 conftest$ac_exeext conftest.$ac_ext
14067 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14069 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14070 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"
14072 if test "$host_cpu" = ia64; then
14073 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14074 allow_undefined_flag_F77="-z nodefs"
14075 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"
14077 # Determine the default libpath from the value encoded in an empty executable.
14078 cat >conftest.$ac_ext <<_ACEOF
14083 rm -f conftest.$ac_objext conftest$ac_exeext
14084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14085 (eval $ac_link) 2>conftest.er1
14087 grep -v '^ *+' conftest.er1 >conftest.err
14089 cat conftest.err >&5
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); } &&
14092 { ac_try='test -z "$ac_f77_werror_flag"
14093 || test ! -s conftest.err'
14094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14095 (eval $ac_try) 2>&5
14097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); }; } &&
14099 { ac_try='test -s conftest$ac_exeext'
14100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14101 (eval $ac_try) 2>&5
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); }; }; then
14106 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14108 # Check for a 64-bit object if we didn't find anything.
14109 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; }
14112 echo "$as_me: failed program was:" >&5
14113 sed 's/^/| /' conftest.$ac_ext >&5
14116 rm -f conftest.err conftest.$ac_objext \
14117 conftest$ac_exeext conftest.$ac_ext
14118 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14120 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14121 # Warning - without using the other run time loading flags,
14122 # -berok will link without error, but may produce a broken library.
14123 no_undefined_flag_F77=' ${wl}-bernotok'
14124 allow_undefined_flag_F77=' ${wl}-berok'
14125 # -bexpall does not export symbols beginning with underscore (_)
14126 always_export_symbols_F77=yes
14127 # Exported symbols can be pulled into shared objects from archives
14128 whole_archive_flag_spec_F77=' '
14129 archive_cmds_need_lc_F77=yes
14130 # This is similar to how AIX traditionally builds it's shared libraries.
14131 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'
14137 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)'
14138 hardcode_libdir_flag_spec_F77='-L$libdir'
14139 hardcode_minus_L_F77=yes
14140 # see comment about different semantics on the GNU ld section
14145 export_dynamic_flag_spec_F77=-rdynamic
14148 cygwin* | mingw* | pw32*)
14149 # When not using gcc, we currently assume that we are using
14150 # Microsoft Visual C++.
14151 # hardcode_libdir_flag_spec is actually meaningless, as there is
14152 # no search path for DLLs.
14153 hardcode_libdir_flag_spec_F77=' '
14154 allow_undefined_flag_F77=unsupported
14155 # Tell ltmain to make .lib files, not .a files.
14157 # Tell ltmain to make .dll files, not .so files.
14159 # FIXME: Setting linknames here is a bad hack.
14160 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14161 # The linker will automatically build a .lib file if we build a DLL.
14162 old_archive_From_new_cmds_F77='true'
14163 # FIXME: Should let the user specify the lib program.
14164 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14165 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14166 enable_shared_with_static_runtimes_F77=yes
14169 darwin* | rhapsody*)
14171 rhapsody* | darwin1.[012])
14172 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14175 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14176 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14178 case ${MACOSX_DEPLOYMENT_TARGET} in
14180 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14183 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14189 archive_cmds_need_lc_F77=no
14190 hardcode_direct_F77=no
14191 hardcode_automatic_F77=yes
14192 hardcode_shlibpath_var_F77=unsupported
14193 whole_archive_flag_spec_F77=''
14194 link_all_deplibs_F77=yes
14195 if test "$GCC" = yes ; then
14196 output_verbose_link_cmd='echo'
14197 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14198 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14199 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14200 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}'
14201 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}'
14203 case "$cc_basename" in
14205 output_verbose_link_cmd='echo'
14206 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14207 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14208 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14209 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}'
14210 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}'
14220 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14221 hardcode_libdir_flag_spec_F77='-L$libdir'
14222 hardcode_shlibpath_var_F77=no
14229 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14230 # support. Future versions do this automatically, but an explicit c++rt0.o
14231 # does not break anything, and helps significantly (at the cost of a little
14234 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14235 hardcode_libdir_flag_spec_F77='-R$libdir'
14236 hardcode_direct_F77=yes
14237 hardcode_shlibpath_var_F77=no
14240 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14242 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14243 hardcode_direct_F77=yes
14244 hardcode_minus_L_F77=yes
14245 hardcode_shlibpath_var_F77=no
14248 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14249 freebsd* | kfreebsd*-gnu | dragonfly*)
14250 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14251 hardcode_libdir_flag_spec_F77='-R$libdir'
14252 hardcode_direct_F77=yes
14253 hardcode_shlibpath_var_F77=no
14257 if test "$GCC" = yes; then
14258 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'
14260 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'
14262 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14263 hardcode_libdir_separator_F77=:
14264 hardcode_direct_F77=yes
14266 # hardcode_minus_L: Not really in the search PATH,
14267 # but as the default location of the library.
14268 hardcode_minus_L_F77=yes
14269 export_dynamic_flag_spec_F77='${wl}-E'
14273 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14274 case "$host_cpu" in
14276 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14279 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14283 case "$host_cpu" in
14285 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14288 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14292 if test "$with_gnu_ld" = no; then
14293 case "$host_cpu" in
14295 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14296 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14297 hardcode_libdir_separator_F77=:
14298 hardcode_direct_F77=no
14299 hardcode_shlibpath_var_F77=no
14302 hardcode_libdir_flag_spec_F77='-L$libdir'
14303 hardcode_direct_F77=no
14304 hardcode_shlibpath_var_F77=no
14306 # hardcode_minus_L: Not really in the search PATH,
14307 # but as the default location of the library.
14308 hardcode_minus_L_F77=yes
14311 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14312 hardcode_libdir_separator_F77=:
14313 hardcode_direct_F77=yes
14314 export_dynamic_flag_spec_F77='${wl}-E'
14316 # hardcode_minus_L: Not really in the search PATH,
14317 # but as the default location of the library.
14318 hardcode_minus_L_F77=yes
14324 irix5* | irix6* | nonstopux*)
14325 if test "$GCC" = yes; then
14326 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'
14328 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'
14329 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14331 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14332 hardcode_libdir_separator_F77=:
14333 link_all_deplibs_F77=yes
14337 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14338 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14340 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14342 hardcode_libdir_flag_spec_F77='-R$libdir'
14343 hardcode_direct_F77=yes
14344 hardcode_shlibpath_var_F77=no
14348 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14349 hardcode_direct_F77=yes
14350 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14351 hardcode_libdir_separator_F77=:
14352 hardcode_shlibpath_var_F77=no
14356 hardcode_direct_F77=yes
14357 hardcode_shlibpath_var_F77=no
14358 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14359 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14360 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14361 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14362 export_dynamic_flag_spec_F77='${wl}-E'
14365 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14366 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14367 hardcode_libdir_flag_spec_F77='-R$libdir'
14370 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14371 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14378 hardcode_libdir_flag_spec_F77='-L$libdir'
14379 hardcode_minus_L_F77=yes
14380 allow_undefined_flag_F77=unsupported
14381 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'
14382 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14386 if test "$GCC" = yes; then
14387 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14388 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'
14390 allow_undefined_flag_F77=' -expect_unresolved \*'
14391 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'
14393 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14394 hardcode_libdir_separator_F77=:
14397 osf4* | osf5*) # as osf3* with the addition of -msym flag
14398 if test "$GCC" = yes; then
14399 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14400 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'
14401 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14403 allow_undefined_flag_F77=' -expect_unresolved \*'
14404 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'
14405 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~
14406 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14408 # Both c and cxx compiler support -rpath directly
14409 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14411 hardcode_libdir_separator_F77=:
14415 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14416 hardcode_shlibpath_var_F77=no
14417 export_dynamic_flag_spec_F77='${wl}-Bexport'
14418 runpath_var=LD_RUN_PATH
14419 hardcode_runpath_var=yes
14423 no_undefined_flag_F77=' -z text'
14424 if test "$GCC" = yes; then
14425 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14426 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14427 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14429 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14430 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14431 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14433 hardcode_libdir_flag_spec_F77='-R$libdir'
14434 hardcode_shlibpath_var_F77=no
14436 solaris2.[0-5] | solaris2.[0-5].*) ;;
14437 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14438 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
14440 link_all_deplibs_F77=yes
14444 if test "x$host_vendor" = xsequent; then
14445 # Use $CC to link under sequent, because it throws in some extra .o
14446 # files that make .init and .fini sections work.
14447 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14449 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14451 hardcode_libdir_flag_spec_F77='-L$libdir'
14452 hardcode_direct_F77=yes
14453 hardcode_minus_L_F77=yes
14454 hardcode_shlibpath_var_F77=no
14458 case $host_vendor in
14460 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14461 hardcode_direct_F77=yes # is this really true???
14464 ## LD is ld it makes a PLAMLIB
14465 ## CC just makes a GrossModule.
14466 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14467 reload_cmds_F77='$CC -r -o $output$reload_objs'
14468 hardcode_direct_F77=no
14471 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14472 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14475 runpath_var='LD_RUN_PATH'
14476 hardcode_shlibpath_var_F77=no
14480 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14481 hardcode_shlibpath_var_F77=no
14482 export_dynamic_flag_spec_F77='-Bexport'
14486 if test -d /usr/nec; then
14487 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14488 hardcode_shlibpath_var_F77=no
14489 runpath_var=LD_RUN_PATH
14490 hardcode_runpath_var=yes
14496 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14497 hardcode_direct_F77=yes
14498 hardcode_minus_L_F77=no
14499 hardcode_shlibpath_var_F77=no
14500 hardcode_runpath_var=yes
14501 runpath_var=LD_RUN_PATH
14504 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14505 no_undefined_flag_F77='${wl}-z ${wl}text'
14506 if test "$GCC" = yes; then
14507 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14509 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14511 runpath_var='LD_RUN_PATH'
14512 hardcode_shlibpath_var_F77=no
14516 no_undefined_flag_F77=' -z text'
14517 # $CC -shared without GNU ld will not create a library from C++
14518 # object files and a static libstdc++, better avoid it by now
14519 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14520 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14521 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14522 hardcode_libdir_flag_spec_F77=
14523 hardcode_shlibpath_var_F77=no
14524 runpath_var='LD_RUN_PATH'
14528 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14529 hardcode_libdir_flag_spec_F77='-L$libdir'
14530 hardcode_shlibpath_var_F77=no
14539 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14540 echo "${ECHO_T}$ld_shlibs_F77" >&6
14541 test "$ld_shlibs_F77" = no && can_build_shared=no
14543 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14544 if test "$GCC" = yes; then
14545 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14549 # Do we need to explicitly link libc?
14551 case "x$archive_cmds_need_lc_F77" in
14553 # Assume -lc should be added
14554 archive_cmds_need_lc_F77=yes
14556 if test "$enable_shared" = yes && test "$GCC" = yes; then
14557 case $archive_cmds_F77 in
14559 # FIXME: we may have to deal with multi-command sequences.
14562 # Test whether the compiler implicitly links with -lc since on some
14563 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14564 # to ld, don't add -lc before -lgcc.
14565 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14566 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14568 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14571 (eval $ac_compile) 2>&5
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); } 2>conftest.err; then
14577 libobjs=conftest.$ac_objext
14579 wl=$lt_prog_compiler_wl_F77
14585 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14586 allow_undefined_flag_F77=
14587 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14588 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); }
14593 archive_cmds_need_lc_F77=no
14595 archive_cmds_need_lc_F77=yes
14597 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14599 cat conftest.err 1>&5
14602 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14603 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14610 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14611 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14612 library_names_spec=
14613 libname_spec='lib$name'
14617 postuninstall_cmds=
14621 shlibpath_overrides_runpath=unknown
14623 dynamic_linker="$host_os ld.so"
14624 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14625 if test "$GCC" = yes; then
14626 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14627 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14628 # if the path contains ";" then we assume it to be the separator
14629 # otherwise default to the standard path separator (i.e. ":") - it is
14630 # assumed that no part of a normal pathname contains ";" but that should
14631 # okay in the real world where ";" in dirpaths is itself problematic.
14632 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14634 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14637 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14639 need_lib_prefix=unknown
14640 hardcode_into_libs=no
14642 # when you set need_version to no, make sure it does not cause -set_version
14643 # flags to be left without arguments
14644 need_version=unknown
14649 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14650 shlibpath_var=LIBPATH
14652 # AIX 3 has no versioning support, so we append a major version to the name.
14653 soname_spec='${libname}${release}${shared_ext}$major'
14660 hardcode_into_libs=yes
14661 if test "$host_cpu" = ia64; then
14662 # AIX 5 supports IA64
14663 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14664 shlibpath_var=LD_LIBRARY_PATH
14666 # With GCC up to 2.95.x, collect2 would create an import file
14667 # for dependence libraries. The import file would start with
14668 # the line `#! .'. This would cause the generated library to
14669 # depend on `.', always an invalid library. This was fixed in
14670 # development snapshots of GCC prior to 3.0.
14672 aix4 | aix4.[01] | aix4.[01].*)
14673 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14675 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14678 can_build_shared=no
14682 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14683 # soname into executable. Probably we can add versioning support to
14684 # collect2, so additional links can be useful in future.
14685 if test "$aix_use_runtimelinking" = yes; then
14686 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14687 # instead of lib<name>.a to let people know that these are not
14688 # typical AIX shared libraries.
14689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14691 # We preserve .a as extension for shared libraries through AIX4.2
14692 # and later when we are not doing run time linking.
14693 library_names_spec='${libname}${release}.a $libname.a'
14694 soname_spec='${libname}${release}${shared_ext}$major'
14696 shlibpath_var=LIBPATH
14701 library_names_spec='$libname.ixlibrary $libname.a'
14702 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14703 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'
14707 library_names_spec='${libname}${shared_ext}'
14708 dynamic_linker="$host_os ld.so"
14709 shlibpath_var=LIBRARY_PATH
14715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14716 soname_spec='${libname}${release}${shared_ext}$major'
14717 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14718 shlibpath_var=LD_LIBRARY_PATH
14719 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14720 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14721 # the default ld.so.conf also contains /usr/contrib/lib and
14722 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14723 # libtool to hard-code these into programs
14726 cygwin* | mingw* | pw32*)
14727 version_type=windows
14732 case $GCC,$host_os in
14733 yes,cygwin* | yes,mingw* | yes,pw32*)
14734 library_names_spec='$libname.dll.a'
14735 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14736 postinstall_cmds='base_file=`basename \${file}`~
14737 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14738 dldir=$destdir/`dirname \$dlpath`~
14739 test -d \$dldir || mkdir -p \$dldir~
14740 $install_prog $dir/$dlname \$dldir/$dlname'
14741 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14742 dlpath=$dir/\$dldll~
14744 shlibpath_overrides_runpath=yes
14748 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14749 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14750 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14753 # MinGW DLLs use traditional 'lib' prefix
14754 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14755 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14756 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14757 # It is most probably a Windows format PATH printed by
14758 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14759 # path with ; separators, and with drive letters. We can handle the
14760 # drive letters (cygwin fileutils understands them), so leave them,
14761 # especially as we might pass files found there to a mingw objdump,
14762 # which wouldn't understand a cygwinified path. Ahh.
14763 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14765 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14769 # pw32 DLLs use 'pw' prefix rather than 'lib'
14770 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14776 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14779 dynamic_linker='Win32 ld.exe'
14780 # FIXME: first we should search . and the directory the executable is in
14784 darwin* | rhapsody*)
14785 dynamic_linker="$host_os dyld"
14786 version_type=darwin
14789 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14790 soname_spec='${libname}${release}${major}$shared_ext'
14791 shlibpath_overrides_runpath=yes
14792 shlibpath_var=DYLD_LIBRARY_PATH
14793 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14794 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14795 if test "$GCC" = yes; then
14796 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"`
14798 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14800 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14808 soname_spec='${libname}${release}${shared_ext}$major'
14809 shlibpath_var=LD_LIBRARY_PATH
14820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14821 soname_spec='${libname}${release}${shared_ext}$major'
14822 shlibpath_var=LD_LIBRARY_PATH
14823 shlibpath_overrides_runpath=no
14824 hardcode_into_libs=yes
14825 dynamic_linker='GNU ld.so'
14828 freebsd* | dragonfly*)
14829 # DragonFly does not have aout. When/if they implement a new
14830 # versioning mechanism, adjust this.
14831 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14832 version_type=freebsd-$objformat
14833 case $version_type in
14835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14840 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14844 shlibpath_var=LD_LIBRARY_PATH
14847 shlibpath_overrides_runpath=yes
14849 freebsd3.[01]* | freebsdelf3.[01]*)
14850 shlibpath_overrides_runpath=yes
14851 hardcode_into_libs=yes
14854 shlibpath_overrides_runpath=no
14855 hardcode_into_libs=yes
14864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14865 soname_spec='${libname}${release}${shared_ext}$major'
14866 shlibpath_var=LD_LIBRARY_PATH
14867 hardcode_into_libs=yes
14870 hpux9* | hpux10* | hpux11*)
14871 # Give a soname corresponding to the major version so that dld.sl refuses to
14872 # link against other versions.
14876 case "$host_cpu" in
14879 hardcode_into_libs=yes
14880 dynamic_linker="$host_os dld.so"
14881 shlibpath_var=LD_LIBRARY_PATH
14882 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14884 soname_spec='${libname}${release}${shared_ext}$major'
14885 if test "X$HPUX_IA64_MODE" = X32; then
14886 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14888 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14890 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14894 hardcode_into_libs=yes
14895 dynamic_linker="$host_os dld.sl"
14896 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14897 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14899 soname_spec='${libname}${release}${shared_ext}$major'
14900 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14901 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14905 dynamic_linker="$host_os dld.sl"
14906 shlibpath_var=SHLIB_PATH
14907 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14909 soname_spec='${libname}${release}${shared_ext}$major'
14912 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14913 postinstall_cmds='chmod 555 $lib'
14916 irix5* | irix6* | nonstopux*)
14918 nonstopux*) version_type=nonstopux ;;
14920 if test "$lt_cv_prog_gnu_ld" = yes; then
14928 soname_spec='${libname}${release}${shared_ext}$major'
14929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14931 irix5* | nonstopux*)
14932 libsuff= shlibsuff=
14935 case $LD in # libtool.m4 will add one of these switches to LD
14936 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14937 libsuff= shlibsuff= libmagic=32-bit;;
14938 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14939 libsuff=32 shlibsuff=N32 libmagic=N32;;
14940 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14941 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14942 *) libsuff= shlibsuff= libmagic=never-match;;
14946 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14947 shlibpath_overrides_runpath=no
14948 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14949 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14950 hardcode_into_libs=yes
14953 # No shared lib support for Linux oldld, aout, or coff.
14954 linux*oldld* | linux*aout* | linux*coff*)
14958 # This must be Linux ELF.
14963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14964 soname_spec='${libname}${release}${shared_ext}$major'
14965 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14966 shlibpath_var=LD_LIBRARY_PATH
14967 shlibpath_overrides_runpath=no
14968 # This implies no fast_install, which is unacceptable.
14969 # Some rework will be needed to allow for fast_install
14970 # before this can be enabled.
14971 hardcode_into_libs=yes
14973 # Append ld.so.conf contents to the search path
14974 if test -f /etc/ld.so.conf; then
14975 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' ' '`
14976 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14979 # We used to test for /lib/ld.so.1 and disable shared libraries on
14980 # powerpc, because MkLinux only supported shared libraries with the
14981 # GNU dynamic linker. Since this was broken with cross compilers,
14982 # most powerpc-linux boxes support dynamic linking these days and
14983 # people can always --disable-shared, the test was removed, and we
14984 # assume the GNU/Linux dynamic linker is in use.
14985 dynamic_linker='GNU/Linux ld.so'
14992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14993 soname_spec='${libname}${release}${shared_ext}$major'
14994 shlibpath_var=LD_LIBRARY_PATH
14995 shlibpath_overrides_runpath=no
14996 hardcode_into_libs=yes
14997 dynamic_linker='GNU ld.so'
15004 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15006 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15007 dynamic_linker='NetBSD (a.out) ld.so'
15009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15010 soname_spec='${libname}${release}${shared_ext}$major'
15011 dynamic_linker='NetBSD ld.elf_so'
15013 shlibpath_var=LD_LIBRARY_PATH
15014 shlibpath_overrides_runpath=yes
15015 hardcode_into_libs=yes
15020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15021 shlibpath_var=LD_LIBRARY_PATH
15022 shlibpath_overrides_runpath=yes
15029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15030 soname_spec='${libname}${release}${shared_ext}$major'
15031 shlibpath_var=LD_LIBRARY_PATH
15032 shlibpath_overrides_runpath=yes
15039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15040 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15041 shlibpath_var=LD_LIBRARY_PATH
15042 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15044 openbsd2.[89] | openbsd2.[89].*)
15045 shlibpath_overrides_runpath=no
15048 shlibpath_overrides_runpath=yes
15052 shlibpath_overrides_runpath=yes
15057 libname_spec='$name'
15060 library_names_spec='$libname${shared_ext} $libname.a'
15061 dynamic_linker='OS/2 ld.exe'
15062 shlibpath_var=LIBPATH
15065 osf3* | osf4* | osf5*)
15069 soname_spec='${libname}${release}${shared_ext}$major'
15070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15071 shlibpath_var=LD_LIBRARY_PATH
15072 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15073 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15078 soname_spec='${libname}${release}${shared_ext}$major'
15079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15080 shlibpath_var=LD_LIBRARY_PATH
15087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15088 soname_spec='${libname}${release}${shared_ext}$major'
15089 shlibpath_var=LD_LIBRARY_PATH
15090 shlibpath_overrides_runpath=yes
15091 hardcode_into_libs=yes
15092 # ldd complains unless libraries are executable
15093 postinstall_cmds='chmod +x $lib'
15098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15099 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15100 shlibpath_var=LD_LIBRARY_PATH
15101 shlibpath_overrides_runpath=yes
15102 if test "$with_gnu_ld" = yes; then
15108 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15111 soname_spec='${libname}${release}${shared_ext}$major'
15112 shlibpath_var=LD_LIBRARY_PATH
15113 case $host_vendor in
15115 shlibpath_overrides_runpath=no
15117 export_dynamic_flag_spec='${wl}-Blargedynsym'
15118 runpath_var=LD_RUN_PATH
15126 shlibpath_overrides_runpath=no
15127 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15133 if test -d /usr/nec ;then
15135 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15136 soname_spec='$libname${shared_ext}.$major'
15137 shlibpath_var=LD_LIBRARY_PATH
15143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15144 soname_spec='${libname}${release}${shared_ext}$major'
15145 shlibpath_var=LD_LIBRARY_PATH
15152 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15153 echo "${ECHO_T}$dynamic_linker" >&6
15154 test "$dynamic_linker" = no && can_build_shared=no
15156 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15157 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15158 hardcode_action_F77=
15159 if test -n "$hardcode_libdir_flag_spec_F77" || \
15160 test -n "$runpath_var_F77" || \
15161 test "X$hardcode_automatic_F77" = "Xyes" ; then
15163 # We can hardcode non-existant directories.
15164 if test "$hardcode_direct_F77" != no &&
15165 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15166 # have to relink, otherwise we might link with an installed library
15167 # when we should be linking with a yet-to-be-installed one
15168 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15169 test "$hardcode_minus_L_F77" != no; then
15170 # Linking always hardcodes the temporary library directory.
15171 hardcode_action_F77=relink
15173 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15174 hardcode_action_F77=immediate
15177 # We cannot hardcode anything, or else we can only hardcode existing
15179 hardcode_action_F77=unsupported
15181 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15182 echo "${ECHO_T}$hardcode_action_F77" >&6
15184 if test "$hardcode_action_F77" = relink; then
15185 # Fast installation is not supported
15186 enable_fast_install=no
15187 elif test "$shlibpath_overrides_runpath" = yes ||
15188 test "$enable_shared" = no; then
15189 # Fast installation is not necessary
15190 enable_fast_install=needless
15195 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15196 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15197 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15198 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15199 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15200 echo "$as_me:$LINENO: result: yes" >&5
15201 echo "${ECHO_T}yes" >&6
15203 # FIXME - insert some real tests, host_os isn't really good enough
15206 if test -n "$STRIP" ; then
15207 striplib="$STRIP -x"
15208 echo "$as_me:$LINENO: result: yes" >&5
15209 echo "${ECHO_T}yes" >&6
15211 echo "$as_me:$LINENO: result: no" >&5
15212 echo "${ECHO_T}no" >&6
15216 echo "$as_me:$LINENO: result: no" >&5
15217 echo "${ECHO_T}no" >&6
15224 # The else clause should only fire when bootstrapping the
15225 # libtool distribution, otherwise you forgot to ship ltmain.sh
15226 # with your package, and you will get complaints that there are
15227 # no rules to generate ltmain.sh.
15228 if test -f "$ltmain"; then
15229 # See if we are running on zsh, and set the options which allow our commands through
15230 # without removal of \ escapes.
15231 if test -n "${ZSH_VERSION+set}" ; then
15232 setopt NO_GLOB_SUBST
15234 # Now quote all the things that may contain metacharacters while being
15235 # careful not to overquote the AC_SUBSTed values. We take copies of the
15236 # variables and quote the copies for generation of the libtool script.
15237 for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \
15239 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15240 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15241 deplibs_check_method reload_flag reload_cmds need_locks \
15242 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15243 lt_cv_sys_global_symbol_to_c_name_address \
15244 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15245 old_postinstall_cmds old_postuninstall_cmds \
15249 lt_prog_compiler_wl_F77 \
15250 lt_prog_compiler_pic_F77 \
15251 lt_prog_compiler_static_F77 \
15252 lt_prog_compiler_no_builtin_flag_F77 \
15253 export_dynamic_flag_spec_F77 \
15254 thread_safe_flag_spec_F77 \
15255 whole_archive_flag_spec_F77 \
15256 enable_shared_with_static_runtimes_F77 \
15257 old_archive_cmds_F77 \
15258 old_archive_from_new_cmds_F77 \
15259 predep_objects_F77 \
15260 postdep_objects_F77 \
15263 compiler_lib_search_path_F77 \
15265 archive_expsym_cmds_F77 \
15266 postinstall_cmds_F77 \
15267 postuninstall_cmds_F77 \
15268 old_archive_from_expsyms_cmds_F77 \
15269 allow_undefined_flag_F77 \
15270 no_undefined_flag_F77 \
15271 export_symbols_cmds_F77 \
15272 hardcode_libdir_flag_spec_F77 \
15273 hardcode_libdir_flag_spec_ld_F77 \
15274 hardcode_libdir_separator_F77 \
15275 hardcode_automatic_F77 \
15277 module_expsym_cmds_F77 \
15278 lt_cv_prog_compiler_c_o_F77 \
15279 exclude_expsyms_F77 \
15280 include_expsyms_F77; do
15283 old_archive_cmds_F77 | \
15284 old_archive_from_new_cmds_F77 | \
15285 archive_cmds_F77 | \
15286 archive_expsym_cmds_F77 | \
15287 module_cmds_F77 | \
15288 module_expsym_cmds_F77 | \
15289 old_archive_from_expsyms_cmds_F77 | \
15290 export_symbols_cmds_F77 | \
15291 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15292 postinstall_cmds | postuninstall_cmds | \
15293 old_postinstall_cmds | old_postuninstall_cmds | \
15294 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15295 # Double-quote double-evaled strings.
15296 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15299 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15305 *'\$0 --fallback-echo"')
15306 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15312 cat <<__EOF__ >> "$cfgfile"
15313 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15315 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15317 # Shell to use when invoking shell scripts.
15320 # Whether or not to build shared libraries.
15321 build_libtool_libs=$enable_shared
15323 # Whether or not to build static libraries.
15324 build_old_libs=$enable_static
15326 # Whether or not to add -lc for building shared libraries.
15327 build_libtool_need_lc=$archive_cmds_need_lc_F77
15329 # Whether or not to disallow shared libs when runtime libs are static
15330 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15332 # Whether or not to optimize for fast installation.
15333 fast_install=$enable_fast_install
15336 host_alias=$host_alias
15340 # The build system.
15341 build_alias=$build_alias
15345 # An echo program that does not interpret backslashes.
15350 AR_FLAGS=$lt_AR_FLAGS
15355 # A language-specific compiler.
15356 CC=$lt_compiler_F77
15358 # Is the compiler the GNU C compiler?
15364 # The linker used to build libraries.
15367 # Whether we need hard or soft links.
15370 # A BSD-compatible nm program.
15373 # A symbol stripping program
15376 # Used to examine libraries when file_magic_cmd begins "file"
15377 MAGIC_CMD=$MAGIC_CMD
15379 # Used on cygwin: DLL creation program.
15382 # Used on cygwin: object dumper.
15385 # Used on cygwin: assembler.
15388 # The name of the directory that contains temporary libtool files.
15391 # How to create reloadable object files.
15392 reload_flag=$lt_reload_flag
15393 reload_cmds=$lt_reload_cmds
15395 # How to pass a linker flag through the compiler.
15396 wl=$lt_lt_prog_compiler_wl_F77
15398 # Object file suffix (normally "o").
15399 objext="$ac_objext"
15401 # Old archive suffix (normally "a").
15404 # Shared library suffix (normally ".so").
15405 shrext_cmds='$shrext_cmds'
15407 # Executable file suffix (normally "").
15410 # Additional compiler flags for building library objects.
15411 pic_flag=$lt_lt_prog_compiler_pic_F77
15414 # What is the maximum length of a command?
15415 max_cmd_len=$lt_cv_sys_max_cmd_len
15417 # Does compiler simultaneously support -c and -o options?
15418 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15420 # Must we lock files when doing compilation ?
15421 need_locks=$lt_need_locks
15423 # Do we need the lib prefix for modules?
15424 need_lib_prefix=$need_lib_prefix
15426 # Do we need a version for libraries?
15427 need_version=$need_version
15429 # Whether dlopen is supported.
15430 dlopen_support=$enable_dlopen
15432 # Whether dlopen of programs is supported.
15433 dlopen_self=$enable_dlopen_self
15435 # Whether dlopen of statically linked programs is supported.
15436 dlopen_self_static=$enable_dlopen_self_static
15438 # Compiler flag to prevent dynamic linking.
15439 link_static_flag=$lt_lt_prog_compiler_static_F77
15441 # Compiler flag to turn off builtin functions.
15442 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15444 # Compiler flag to allow reflexive dlopens.
15445 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15447 # Compiler flag to generate shared objects directly from archives.
15448 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15450 # Compiler flag to generate thread-safe objects.
15451 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15453 # Library versioning type.
15454 version_type=$version_type
15456 # Format of library name prefix.
15457 libname_spec=$lt_libname_spec
15459 # List of archive names. First name is the real one, the rest are links.
15460 # The last name is the one that the linker finds with -lNAME.
15461 library_names_spec=$lt_library_names_spec
15463 # The coded name of the library, if different from the real name.
15464 soname_spec=$lt_soname_spec
15466 # Commands used to build and install an old-style archive.
15468 old_archive_cmds=$lt_old_archive_cmds_F77
15469 old_postinstall_cmds=$lt_old_postinstall_cmds
15470 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15472 # Create an old-style archive from a shared archive.
15473 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15475 # Create a temporary old-style archive to link instead of a shared archive.
15476 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15478 # Commands used to build and install a shared archive.
15479 archive_cmds=$lt_archive_cmds_F77
15480 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15481 postinstall_cmds=$lt_postinstall_cmds
15482 postuninstall_cmds=$lt_postuninstall_cmds
15484 # Commands used to build a loadable module (assumed same as above if empty)
15485 module_cmds=$lt_module_cmds_F77
15486 module_expsym_cmds=$lt_module_expsym_cmds_F77
15488 # Commands to strip libraries.
15489 old_striplib=$lt_old_striplib
15490 striplib=$lt_striplib
15492 # Dependencies to place before the objects being linked to create a
15494 predep_objects=$lt_predep_objects_F77
15496 # Dependencies to place after the objects being linked to create a
15498 postdep_objects=$lt_postdep_objects_F77
15500 # Dependencies to place before the objects being linked to create a
15502 predeps=$lt_predeps_F77
15504 # Dependencies to place after the objects being linked to create a
15506 postdeps=$lt_postdeps_F77
15508 # The library search path used internally by the compiler when linking
15509 # a shared library.
15510 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15512 # Method to check whether dependent libraries are shared objects.
15513 deplibs_check_method=$lt_deplibs_check_method
15515 # Command to use when deplibs_check_method == file_magic.
15516 file_magic_cmd=$lt_file_magic_cmd
15518 # Flag that allows shared libraries with undefined symbols to be built.
15519 allow_undefined_flag=$lt_allow_undefined_flag_F77
15521 # Flag that forces no undefined symbols.
15522 no_undefined_flag=$lt_no_undefined_flag_F77
15524 # Commands used to finish a libtool library installation in a directory.
15525 finish_cmds=$lt_finish_cmds
15527 # Same as above, but a single script fragment to be evaled but not shown.
15528 finish_eval=$lt_finish_eval
15530 # Take the output of nm and produce a listing of raw symbols and C names.
15531 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15533 # Transform the output of nm in a proper C declaration
15534 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15536 # Transform the output of nm in a C name address pair
15537 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15539 # This is the shared library runtime path variable.
15540 runpath_var=$runpath_var
15542 # This is the shared library path variable.
15543 shlibpath_var=$shlibpath_var
15545 # Is shlibpath searched before the hard-coded library search path?
15546 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15548 # How to hardcode a shared library path into an executable.
15549 hardcode_action=$hardcode_action_F77
15551 # Whether we should hardcode library paths into libraries.
15552 hardcode_into_libs=$hardcode_into_libs
15554 # Flag to hardcode \$libdir into a binary during linking.
15555 # This must work even if \$libdir does not exist.
15556 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15558 # If ld is used when linking, flag to hardcode \$libdir into
15559 # a binary during linking. This must work even if \$libdir does
15561 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15563 # Whether we need a single -rpath flag with a separated argument.
15564 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15566 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15567 # resulting binary.
15568 hardcode_direct=$hardcode_direct_F77
15570 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15571 # resulting binary.
15572 hardcode_minus_L=$hardcode_minus_L_F77
15574 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15575 # the resulting binary.
15576 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15578 # Set to yes if building a shared library automatically hardcodes DIR into the library
15579 # and all subsequent libraries and executables linked against it.
15580 hardcode_automatic=$hardcode_automatic_F77
15582 # Variables whose values should be saved in libtool wrapper scripts and
15583 # restored at relink time.
15584 variables_saved_for_relink="$variables_saved_for_relink"
15586 # Whether libtool must link a program against all its dependency libraries.
15587 link_all_deplibs=$link_all_deplibs_F77
15589 # Compile-time system search path for libraries
15590 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15592 # Run-time system search path for libraries
15593 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15595 # Fix the shell variable \$srcfile for the compiler.
15596 fix_srcfile_path="$fix_srcfile_path_F77"
15598 # Set to yes if exported symbols are required.
15599 always_export_symbols=$always_export_symbols_F77
15601 # The commands to list exported symbols.
15602 export_symbols_cmds=$lt_export_symbols_cmds_F77
15604 # The commands to extract the exported symbol list from a shared archive.
15605 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15607 # Symbols that should not be listed in the preloaded symbols.
15608 exclude_expsyms=$lt_exclude_expsyms_F77
15610 # Symbols that must always be exported.
15611 include_expsyms=$lt_include_expsyms_F77
15613 # ### END LIBTOOL TAG CONFIG: $tagname
15619 # If there is no Makefile yet, we rely on a make rule to execute
15620 # `config.status --recheck' to rerun these tests and create the
15621 # libtool script then.
15622 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15623 if test -f "$ltmain_in"; then
15624 test -f Makefile && make "$ltmain"
15630 ac_cpp='$CPP $CPPFLAGS'
15631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15643 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15647 # Source file extension for Java test sources.
15650 # Object file extension for compiled Java test sources.
15654 # Code to be used in simple compile tests
15655 lt_simple_compile_test_code="class foo {}\n"
15657 # Code to be used in simple link tests
15658 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15660 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15662 # If no C compiler was specified, use CC.
15665 # Allow CC to be a program name with arguments.
15669 # Allow CC to be a program name with arguments.
15675 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15676 archive_cmds_need_lc_GCJ=no
15679 lt_prog_compiler_no_builtin_flag_GCJ=
15681 if test "$GCC" = yes; then
15682 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15685 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15686 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15687 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15688 echo $ECHO_N "(cached) $ECHO_C" >&6
15690 lt_cv_prog_compiler_rtti_exceptions=no
15691 ac_outfile=conftest.$ac_objext
15692 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15693 lt_compiler_flag="-fno-rtti -fno-exceptions"
15694 # Insert the option either (1) after the last *FLAGS variable, or
15695 # (2) before a word containing "conftest.", or (3) at the end.
15696 # Note that $ac_compile itself does not contain backslashes and begins
15697 # with a dollar sign (not a hyphen), so the echo should work correctly.
15698 # The option is referenced via a variable to avoid confusing sed.
15699 lt_compile=`echo "$ac_compile" | $SED \
15700 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15701 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15702 -e 's:$: $lt_compiler_flag:'`
15703 (eval echo "\"\$as_me:15703: $lt_compile\"" >&5)
15704 (eval "$lt_compile" 2>conftest.err)
15706 cat conftest.err >&5
15707 echo "$as_me:15707: \$? = $ac_status" >&5
15708 if (exit $ac_status) && test -s "$ac_outfile"; then
15709 # The compiler can only warn and ignore the option if not recognized
15710 # So say no if there are warnings
15711 if test ! -s conftest.err; then
15712 lt_cv_prog_compiler_rtti_exceptions=yes
15718 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15719 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15721 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15722 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15729 lt_prog_compiler_wl_GCJ=
15730 lt_prog_compiler_pic_GCJ=
15731 lt_prog_compiler_static_GCJ=
15733 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15734 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15736 if test "$GCC" = yes; then
15737 lt_prog_compiler_wl_GCJ='-Wl,'
15738 lt_prog_compiler_static_GCJ='-static'
15742 # All AIX code is PIC.
15743 if test "$host_cpu" = ia64; then
15744 # AIX 5 now supports IA64 processor
15745 lt_prog_compiler_static_GCJ='-Bstatic'
15750 # FIXME: we need at least 68020 code to build shared libraries, but
15751 # adding the `-m68020' flag to GCC prevents building anything better,
15753 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15756 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15757 # PIC is the default for these OSes.
15760 mingw* | pw32* | os2*)
15761 # This hack is so that the source file can tell whether it is being
15762 # built for inclusion in a dll (and should export symbols for example).
15763 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15766 darwin* | rhapsody*)
15767 # PIC is the default on this platform
15768 # Common symbols not allowed in MH_DYLIB files
15769 lt_prog_compiler_pic_GCJ='-fno-common'
15773 # Just because we use GCC doesn't mean we suddenly get shared libraries
15774 # on systems that don't support them.
15775 lt_prog_compiler_can_build_shared_GCJ=no
15780 if test -d /usr/nec; then
15781 lt_prog_compiler_pic_GCJ=-Kconform_pic
15786 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15787 # not for PA HP-UX.
15788 case "$host_cpu" in
15793 lt_prog_compiler_pic_GCJ='-fPIC'
15799 lt_prog_compiler_pic_GCJ='-fPIC'
15803 # PORTME Check for flag to pass linker flags through the system compiler.
15806 lt_prog_compiler_wl_GCJ='-Wl,'
15807 if test "$host_cpu" = ia64; then
15808 # AIX 5 now supports IA64 processor
15809 lt_prog_compiler_static_GCJ='-Bstatic'
15811 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15815 # PIC is the default on this platform
15816 # Common symbols not allowed in MH_DYLIB files
15817 case "$cc_basename" in
15819 lt_prog_compiler_pic_GCJ='-qnocommon'
15820 lt_prog_compiler_wl_GCJ='-Wl,'
15825 mingw* | pw32* | os2*)
15826 # This hack is so that the source file can tell whether it is being
15827 # built for inclusion in a dll (and should export symbols for example).
15828 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15831 hpux9* | hpux10* | hpux11*)
15832 lt_prog_compiler_wl_GCJ='-Wl,'
15833 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15834 # not for PA HP-UX.
15835 case "$host_cpu" in
15840 lt_prog_compiler_pic_GCJ='+Z'
15843 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15844 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15847 irix5* | irix6* | nonstopux*)
15848 lt_prog_compiler_wl_GCJ='-Wl,'
15849 # PIC (with -KPIC) is the default.
15850 lt_prog_compiler_static_GCJ='-non_shared'
15854 lt_prog_compiler_pic_GCJ='-KPIC'
15855 lt_prog_compiler_static_GCJ='-Bstatic'
15859 case $cc_basename in
15861 lt_prog_compiler_wl_GCJ='-Wl,'
15862 lt_prog_compiler_pic_GCJ='-KPIC'
15863 lt_prog_compiler_static_GCJ='-static'
15865 pgcc | pgf77 | pgf90)
15866 # Portland Group compilers (*not* the Pentium gcc compiler,
15867 # which looks to be a dead project)
15868 lt_prog_compiler_wl_GCJ='-Wl,'
15869 lt_prog_compiler_pic_GCJ='-fpic'
15870 lt_prog_compiler_static_GCJ='-static'
15873 lt_prog_compiler_wl_GCJ='-Wl,'
15874 # All Alpha code is PIC.
15875 lt_prog_compiler_static_GCJ='-non_shared'
15880 osf3* | osf4* | osf5*)
15881 lt_prog_compiler_wl_GCJ='-Wl,'
15882 # All OSF/1 code is PIC.
15883 lt_prog_compiler_static_GCJ='-non_shared'
15887 lt_prog_compiler_pic_GCJ='-Kpic'
15888 lt_prog_compiler_static_GCJ='-dn'
15892 lt_prog_compiler_wl_GCJ='-Wl,'
15893 lt_prog_compiler_pic_GCJ='-KPIC'
15894 lt_prog_compiler_static_GCJ='-Bstatic'
15898 lt_prog_compiler_wl_GCJ='-Qoption ld '
15899 lt_prog_compiler_pic_GCJ='-PIC'
15900 lt_prog_compiler_static_GCJ='-Bstatic'
15903 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15904 lt_prog_compiler_wl_GCJ='-Wl,'
15905 lt_prog_compiler_pic_GCJ='-KPIC'
15906 lt_prog_compiler_static_GCJ='-Bstatic'
15910 if test -d /usr/nec ;then
15911 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15912 lt_prog_compiler_static_GCJ='-Bstatic'
15917 lt_prog_compiler_wl_GCJ='-Wl,'
15918 lt_prog_compiler_can_build_shared_GCJ=no
15922 lt_prog_compiler_pic_GCJ='-pic'
15923 lt_prog_compiler_static_GCJ='-Bstatic'
15927 lt_prog_compiler_can_build_shared_GCJ=no
15932 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15933 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15936 # Check to make sure the PIC flag actually works.
15938 if test -n "$lt_prog_compiler_pic_GCJ"; then
15940 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15941 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15942 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15943 echo $ECHO_N "(cached) $ECHO_C" >&6
15945 lt_prog_compiler_pic_works_GCJ=no
15946 ac_outfile=conftest.$ac_objext
15947 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15948 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15949 # Insert the option either (1) after the last *FLAGS variable, or
15950 # (2) before a word containing "conftest.", or (3) at the end.
15951 # Note that $ac_compile itself does not contain backslashes and begins
15952 # with a dollar sign (not a hyphen), so the echo should work correctly.
15953 # The option is referenced via a variable to avoid confusing sed.
15954 lt_compile=`echo "$ac_compile" | $SED \
15955 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15956 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15957 -e 's:$: $lt_compiler_flag:'`
15958 (eval echo "\"\$as_me:15958: $lt_compile\"" >&5)
15959 (eval "$lt_compile" 2>conftest.err)
15961 cat conftest.err >&5
15962 echo "$as_me:15962: \$? = $ac_status" >&5
15963 if (exit $ac_status) && test -s "$ac_outfile"; then
15964 # The compiler can only warn and ignore the option if not recognized
15965 # So say no if there are warnings
15966 if test ! -s conftest.err; then
15967 lt_prog_compiler_pic_works_GCJ=yes
15973 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15974 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15976 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15977 case $lt_prog_compiler_pic_GCJ in
15979 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15982 lt_prog_compiler_pic_GCJ=
15983 lt_prog_compiler_can_build_shared_GCJ=no
15988 # For platforms which do not support PIC, -DPIC is meaningless:
15990 lt_prog_compiler_pic_GCJ=
15993 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15997 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15998 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15999 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16000 echo $ECHO_N "(cached) $ECHO_C" >&6
16002 lt_cv_prog_compiler_c_o_GCJ=no
16003 $rm -r conftest 2>/dev/null
16007 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16009 lt_compiler_flag="-o out/conftest2.$ac_objext"
16010 # Insert the option either (1) after the last *FLAGS variable, or
16011 # (2) before a word containing "conftest.", or (3) at the end.
16012 # Note that $ac_compile itself does not contain backslashes and begins
16013 # with a dollar sign (not a hyphen), so the echo should work correctly.
16014 lt_compile=`echo "$ac_compile" | $SED \
16015 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16016 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16017 -e 's:$: $lt_compiler_flag:'`
16018 (eval echo "\"\$as_me:16018: $lt_compile\"" >&5)
16019 (eval "$lt_compile" 2>out/conftest.err)
16021 cat out/conftest.err >&5
16022 echo "$as_me:16022: \$? = $ac_status" >&5
16023 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16025 # The compiler can only warn and ignore the option if not recognized
16026 # So say no if there are warnings
16027 if test ! -s out/conftest.err; then
16028 lt_cv_prog_compiler_c_o_GCJ=yes
16033 # SGI C++ compiler will create directory out/ii_files/ for
16034 # template instantiation
16035 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16036 $rm out/* && rmdir out
16042 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16043 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16046 hard_links="nottested"
16047 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16048 # do not overwrite the value of need_locks provided by the user
16049 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16050 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16053 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16055 ln conftest.a conftest.b 2>&5 || hard_links=no
16056 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16057 echo "$as_me:$LINENO: result: $hard_links" >&5
16058 echo "${ECHO_T}$hard_links" >&6
16059 if test "$hard_links" = no; then
16060 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16061 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16068 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16069 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16072 allow_undefined_flag_GCJ=
16073 enable_shared_with_static_runtimes_GCJ=no
16075 archive_expsym_cmds_GCJ=
16076 old_archive_From_new_cmds_GCJ=
16077 old_archive_from_expsyms_cmds_GCJ=
16078 export_dynamic_flag_spec_GCJ=
16079 whole_archive_flag_spec_GCJ=
16080 thread_safe_flag_spec_GCJ=
16081 hardcode_libdir_flag_spec_GCJ=
16082 hardcode_libdir_flag_spec_ld_GCJ=
16083 hardcode_libdir_separator_GCJ=
16084 hardcode_direct_GCJ=no
16085 hardcode_minus_L_GCJ=no
16086 hardcode_shlibpath_var_GCJ=unsupported
16087 link_all_deplibs_GCJ=unknown
16088 hardcode_automatic_GCJ=no
16090 module_expsym_cmds_GCJ=
16091 always_export_symbols_GCJ=no
16092 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16093 # include_expsyms should be a list of space-separated symbols to be *always*
16094 # included in the symbol list
16095 include_expsyms_GCJ=
16096 # exclude_expsyms can be an extended regexp of symbols to exclude
16097 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16098 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16099 # as well as any symbol that contains `d'.
16100 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16101 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16102 # platforms (ab)use it in PIC code, but their linkers get confused if
16103 # the symbol is explicitly referenced. Since portable code cannot
16104 # rely on this symbol name, it's probably fine to never include it in
16105 # preloaded symbol tables.
16106 extract_expsyms_cmds=
16109 cygwin* | mingw* | pw32*)
16110 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16111 # When not using gcc, we currently assume that we are using
16112 # Microsoft Visual C++.
16113 if test "$GCC" != yes; then
16123 if test "$with_gnu_ld" = yes; then
16124 # If archive_cmds runs LD, not CC, wlarc should be empty
16127 # See if GNU ld supports shared libraries.
16129 aix3* | aix4* | aix5*)
16130 # On AIX/PPC, the GNU linker is very broken
16131 if test "$host_cpu" != ia64; then
16135 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16136 *** to be unable to reliably create shared libraries on AIX.
16137 *** Therefore, libtool is disabling shared libraries support. If you
16138 *** really care for shared libraries, you may want to modify your PATH
16139 *** so that a non-GNU linker is found, and then restart.
16146 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)'
16147 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16148 hardcode_minus_L_GCJ=yes
16150 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16151 # that the semantics of dynamic libraries on AmigaOS, at least up
16152 # to version 4, is to share data among multiple programs linked
16153 # with the same dynamic library. Since this doesn't match the
16154 # behavior of shared libraries on other platforms, we can't use
16160 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16161 allow_undefined_flag_GCJ=unsupported
16162 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16163 # support --undefined. This deserves some investigation. FIXME
16164 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16170 cygwin* | mingw* | pw32*)
16171 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16172 # as there is no search path for DLLs.
16173 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16174 allow_undefined_flag_GCJ=unsupported
16175 always_export_symbols_GCJ=no
16176 enable_shared_with_static_runtimes_GCJ=yes
16177 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16179 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16180 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16181 # If the export-symbols file already is a .def file (1st line
16182 # is EXPORTS), use it as is; otherwise, prepend...
16183 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16184 cp $export_symbols $output_objdir/$soname.def;
16186 echo EXPORTS > $output_objdir/$soname.def;
16187 cat $export_symbols >> $output_objdir/$soname.def;
16189 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16196 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16197 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16200 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16201 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16206 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16210 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16211 *** create shared libraries on Solaris systems. Therefore, libtool
16212 *** is disabling shared libraries support. We urge you to upgrade GNU
16213 *** binutils to release 2.9.1 or newer. Another option is to modify
16214 *** your PATH or compiler configuration so that the native linker is
16215 *** used, and then restart.
16218 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16219 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16220 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16227 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16229 hardcode_direct_GCJ=yes
16230 hardcode_shlibpath_var_GCJ=no
16234 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16236 case $CC,$host_cpu in
16237 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
16238 tmp_addflag=' -fpic' ;;
16239 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16240 tmp_addflag=' -i_dynamic' ;;
16241 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16242 tmp_addflag=' -i_dynamic -nofor_main' ;;
16243 ifc* | ifort*) # Intel Fortran compiler
16244 tmp_addflag=' -nofor_main' ;;
16246 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16247 supports_anon_versioning=no
16248 case `$LD -v 2>/dev/null` in
16249 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16250 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16251 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16252 *\ 2.11.*) ;; # other 2.11 versions
16253 *) supports_anon_versioning=yes ;;
16255 if test $supports_anon_versioning = yes; then
16256 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16257 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16258 $echo "local: *; };" >> $output_objdir/$libname.ver~
16259 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16261 archive_expsym_cmds_GCJ=$archive_cmds_GCJ
16269 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16270 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16271 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16278 if test "$ld_shlibs_GCJ" = yes; then
16279 runpath_var=LD_RUN_PATH
16280 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16281 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16282 # ancient GNU ld didn't support --whole-archive et. al.
16283 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16284 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16286 whole_archive_flag_spec_GCJ=
16290 # PORTME fill in a description of your system's linker (not GNU ld)
16293 allow_undefined_flag_GCJ=unsupported
16294 always_export_symbols_GCJ=yes
16295 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'
16296 # Note: this linker hardcodes the directories in LIBPATH if there
16297 # are no directories specified by -L.
16298 hardcode_minus_L_GCJ=yes
16299 if test "$GCC" = yes && test -z "$link_static_flag"; then
16300 # Neither direct hardcoding nor static linking is supported with a
16302 hardcode_direct_GCJ=unsupported
16307 if test "$host_cpu" = ia64; then
16308 # On IA64, the linker does run time linking by default, so we don't
16309 # have to do anything special.
16310 aix_use_runtimelinking=no
16311 exp_sym_flag='-Bexport'
16314 # If we're using GNU nm, then we don't want the "-C" option.
16315 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16316 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16317 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'
16319 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'
16321 aix_use_runtimelinking=no
16323 # Test if we are trying to use run time linking or normal
16324 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16325 # need to do runtime linking.
16326 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16327 for ld_flag in $LDFLAGS; do
16328 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16329 aix_use_runtimelinking=yes
16335 exp_sym_flag='-bexport'
16336 no_entry_flag='-bnoentry'
16339 # When large executables or shared objects are built, AIX ld can
16340 # have problems creating the table of contents. If linking a library
16341 # or program results in "error TOC overflow" add -mminimal-toc to
16342 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16343 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16345 archive_cmds_GCJ=''
16346 hardcode_direct_GCJ=yes
16347 hardcode_libdir_separator_GCJ=':'
16348 link_all_deplibs_GCJ=yes
16350 if test "$GCC" = yes; then
16351 case $host_os in aix4.[012]|aix4.[012].*)
16352 # We only want to do this on AIX 4.2 and lower, the check
16353 # below for broken collect2 doesn't work under 4.3+
16354 collect2name=`${CC} -print-prog-name=collect2`
16355 if test -f "$collect2name" && \
16356 strings "$collect2name" | grep resolve_lib_name >/dev/null
16358 # We have reworked collect2
16359 hardcode_direct_GCJ=yes
16361 # We have old collect2
16362 hardcode_direct_GCJ=unsupported
16363 # It fails to find uninstalled libraries when the uninstalled
16364 # path is not listed in the libpath. Setting hardcode_minus_L
16365 # to unsupported forces relinking
16366 hardcode_minus_L_GCJ=yes
16367 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16368 hardcode_libdir_separator_GCJ=
16371 shared_flag='-shared'
16372 if test "$aix_use_runtimelinking" = yes; then
16373 shared_flag="$shared_flag "'${wl}-G'
16377 if test "$host_cpu" = ia64; then
16378 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16379 # chokes on -Wl,-G. The following line is correct:
16382 if test "$aix_use_runtimelinking" = yes; then
16383 shared_flag='${wl}-G'
16385 shared_flag='${wl}-bM:SRE'
16390 # It seems that -bexpall does not export symbols beginning with
16391 # underscore (_), so it is better to generate a list of symbols to export.
16392 always_export_symbols_GCJ=yes
16393 if test "$aix_use_runtimelinking" = yes; then
16394 # Warning - without using the other runtime loading flags (-brtl),
16395 # -berok will link without error, but may produce a broken library.
16396 allow_undefined_flag_GCJ='-berok'
16397 # Determine the default libpath from the value encoded in an empty executable.
16398 cat >conftest.$ac_ext <<_ACEOF
16401 cat confdefs.h >>conftest.$ac_ext
16402 cat >>conftest.$ac_ext <<_ACEOF
16403 /* end confdefs.h. */
16413 rm -f conftest.$ac_objext conftest$ac_exeext
16414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16415 (eval $ac_link) 2>conftest.er1
16417 grep -v '^ *+' conftest.er1 >conftest.err
16419 cat conftest.err >&5
16420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421 (exit $ac_status); } &&
16422 { ac_try='test -z "$ac_c_werror_flag"
16423 || test ! -s conftest.err'
16424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16425 (eval $ac_try) 2>&5
16427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428 (exit $ac_status); }; } &&
16429 { ac_try='test -s conftest$ac_exeext'
16430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16431 (eval $ac_try) 2>&5
16433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434 (exit $ac_status); }; }; then
16436 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16438 # Check for a 64-bit object if we didn't find anything.
16439 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; }
16442 echo "$as_me: failed program was:" >&5
16443 sed 's/^/| /' conftest.$ac_ext >&5
16446 rm -f conftest.err conftest.$ac_objext \
16447 conftest$ac_exeext conftest.$ac_ext
16448 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16450 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16451 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"
16453 if test "$host_cpu" = ia64; then
16454 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16455 allow_undefined_flag_GCJ="-z nodefs"
16456 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"
16458 # Determine the default libpath from the value encoded in an empty executable.
16459 cat >conftest.$ac_ext <<_ACEOF
16462 cat confdefs.h >>conftest.$ac_ext
16463 cat >>conftest.$ac_ext <<_ACEOF
16464 /* end confdefs.h. */
16474 rm -f conftest.$ac_objext conftest$ac_exeext
16475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16476 (eval $ac_link) 2>conftest.er1
16478 grep -v '^ *+' conftest.er1 >conftest.err
16480 cat conftest.err >&5
16481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482 (exit $ac_status); } &&
16483 { ac_try='test -z "$ac_c_werror_flag"
16484 || test ! -s conftest.err'
16485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16486 (eval $ac_try) 2>&5
16488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489 (exit $ac_status); }; } &&
16490 { ac_try='test -s conftest$ac_exeext'
16491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16492 (eval $ac_try) 2>&5
16494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495 (exit $ac_status); }; }; then
16497 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16499 # Check for a 64-bit object if we didn't find anything.
16500 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; }
16503 echo "$as_me: failed program was:" >&5
16504 sed 's/^/| /' conftest.$ac_ext >&5
16507 rm -f conftest.err conftest.$ac_objext \
16508 conftest$ac_exeext conftest.$ac_ext
16509 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16511 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16512 # Warning - without using the other run time loading flags,
16513 # -berok will link without error, but may produce a broken library.
16514 no_undefined_flag_GCJ=' ${wl}-bernotok'
16515 allow_undefined_flag_GCJ=' ${wl}-berok'
16516 # -bexpall does not export symbols beginning with underscore (_)
16517 always_export_symbols_GCJ=yes
16518 # Exported symbols can be pulled into shared objects from archives
16519 whole_archive_flag_spec_GCJ=' '
16520 archive_cmds_need_lc_GCJ=yes
16521 # This is similar to how AIX traditionally builds it's shared libraries.
16522 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'
16528 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)'
16529 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16530 hardcode_minus_L_GCJ=yes
16531 # see comment about different semantics on the GNU ld section
16536 export_dynamic_flag_spec_GCJ=-rdynamic
16539 cygwin* | mingw* | pw32*)
16540 # When not using gcc, we currently assume that we are using
16541 # Microsoft Visual C++.
16542 # hardcode_libdir_flag_spec is actually meaningless, as there is
16543 # no search path for DLLs.
16544 hardcode_libdir_flag_spec_GCJ=' '
16545 allow_undefined_flag_GCJ=unsupported
16546 # Tell ltmain to make .lib files, not .a files.
16548 # Tell ltmain to make .dll files, not .so files.
16550 # FIXME: Setting linknames here is a bad hack.
16551 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16552 # The linker will automatically build a .lib file if we build a DLL.
16553 old_archive_From_new_cmds_GCJ='true'
16554 # FIXME: Should let the user specify the lib program.
16555 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16556 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16557 enable_shared_with_static_runtimes_GCJ=yes
16560 darwin* | rhapsody*)
16562 rhapsody* | darwin1.[012])
16563 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16566 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16567 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16569 case ${MACOSX_DEPLOYMENT_TARGET} in
16571 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16574 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16580 archive_cmds_need_lc_GCJ=no
16581 hardcode_direct_GCJ=no
16582 hardcode_automatic_GCJ=yes
16583 hardcode_shlibpath_var_GCJ=unsupported
16584 whole_archive_flag_spec_GCJ=''
16585 link_all_deplibs_GCJ=yes
16586 if test "$GCC" = yes ; then
16587 output_verbose_link_cmd='echo'
16588 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16589 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16590 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16591 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}'
16592 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}'
16594 case "$cc_basename" in
16596 output_verbose_link_cmd='echo'
16597 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16598 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16599 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16600 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}'
16601 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}'
16611 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16612 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16613 hardcode_shlibpath_var_GCJ=no
16620 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16621 # support. Future versions do this automatically, but an explicit c++rt0.o
16622 # does not break anything, and helps significantly (at the cost of a little
16625 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16626 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16627 hardcode_direct_GCJ=yes
16628 hardcode_shlibpath_var_GCJ=no
16631 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16633 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16634 hardcode_direct_GCJ=yes
16635 hardcode_minus_L_GCJ=yes
16636 hardcode_shlibpath_var_GCJ=no
16639 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16640 freebsd* | kfreebsd*-gnu | dragonfly*)
16641 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16642 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16643 hardcode_direct_GCJ=yes
16644 hardcode_shlibpath_var_GCJ=no
16648 if test "$GCC" = yes; then
16649 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'
16651 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'
16653 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16654 hardcode_libdir_separator_GCJ=:
16655 hardcode_direct_GCJ=yes
16657 # hardcode_minus_L: Not really in the search PATH,
16658 # but as the default location of the library.
16659 hardcode_minus_L_GCJ=yes
16660 export_dynamic_flag_spec_GCJ='${wl}-E'
16664 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16665 case "$host_cpu" in
16667 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16670 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16674 case "$host_cpu" in
16676 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16679 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16683 if test "$with_gnu_ld" = no; then
16684 case "$host_cpu" in
16686 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16687 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16688 hardcode_libdir_separator_GCJ=:
16689 hardcode_direct_GCJ=no
16690 hardcode_shlibpath_var_GCJ=no
16693 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16694 hardcode_direct_GCJ=no
16695 hardcode_shlibpath_var_GCJ=no
16697 # hardcode_minus_L: Not really in the search PATH,
16698 # but as the default location of the library.
16699 hardcode_minus_L_GCJ=yes
16702 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16703 hardcode_libdir_separator_GCJ=:
16704 hardcode_direct_GCJ=yes
16705 export_dynamic_flag_spec_GCJ='${wl}-E'
16707 # hardcode_minus_L: Not really in the search PATH,
16708 # but as the default location of the library.
16709 hardcode_minus_L_GCJ=yes
16715 irix5* | irix6* | nonstopux*)
16716 if test "$GCC" = yes; then
16717 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'
16719 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'
16720 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16722 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16723 hardcode_libdir_separator_GCJ=:
16724 link_all_deplibs_GCJ=yes
16728 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16729 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16731 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16733 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16734 hardcode_direct_GCJ=yes
16735 hardcode_shlibpath_var_GCJ=no
16739 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16740 hardcode_direct_GCJ=yes
16741 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16742 hardcode_libdir_separator_GCJ=:
16743 hardcode_shlibpath_var_GCJ=no
16747 hardcode_direct_GCJ=yes
16748 hardcode_shlibpath_var_GCJ=no
16749 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16750 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16751 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16752 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16753 export_dynamic_flag_spec_GCJ='${wl}-E'
16756 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16757 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16758 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16761 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16762 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16769 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16770 hardcode_minus_L_GCJ=yes
16771 allow_undefined_flag_GCJ=unsupported
16772 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'
16773 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16777 if test "$GCC" = yes; then
16778 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16779 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'
16781 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16782 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'
16784 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16785 hardcode_libdir_separator_GCJ=:
16788 osf4* | osf5*) # as osf3* with the addition of -msym flag
16789 if test "$GCC" = yes; then
16790 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16791 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'
16792 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16794 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16795 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'
16796 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~
16797 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16799 # Both c and cxx compiler support -rpath directly
16800 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16802 hardcode_libdir_separator_GCJ=:
16806 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16807 hardcode_shlibpath_var_GCJ=no
16808 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16809 runpath_var=LD_RUN_PATH
16810 hardcode_runpath_var=yes
16814 no_undefined_flag_GCJ=' -z text'
16815 if test "$GCC" = yes; then
16816 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16817 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16818 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16820 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16821 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16822 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16824 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16825 hardcode_shlibpath_var_GCJ=no
16827 solaris2.[0-5] | solaris2.[0-5].*) ;;
16828 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16829 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
16831 link_all_deplibs_GCJ=yes
16835 if test "x$host_vendor" = xsequent; then
16836 # Use $CC to link under sequent, because it throws in some extra .o
16837 # files that make .init and .fini sections work.
16838 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16840 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16842 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16843 hardcode_direct_GCJ=yes
16844 hardcode_minus_L_GCJ=yes
16845 hardcode_shlibpath_var_GCJ=no
16849 case $host_vendor in
16851 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16852 hardcode_direct_GCJ=yes # is this really true???
16855 ## LD is ld it makes a PLAMLIB
16856 ## CC just makes a GrossModule.
16857 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16858 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16859 hardcode_direct_GCJ=no
16862 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16863 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16866 runpath_var='LD_RUN_PATH'
16867 hardcode_shlibpath_var_GCJ=no
16871 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16872 hardcode_shlibpath_var_GCJ=no
16873 export_dynamic_flag_spec_GCJ='-Bexport'
16877 if test -d /usr/nec; then
16878 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16879 hardcode_shlibpath_var_GCJ=no
16880 runpath_var=LD_RUN_PATH
16881 hardcode_runpath_var=yes
16887 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16888 hardcode_direct_GCJ=yes
16889 hardcode_minus_L_GCJ=no
16890 hardcode_shlibpath_var_GCJ=no
16891 hardcode_runpath_var=yes
16892 runpath_var=LD_RUN_PATH
16895 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16896 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16897 if test "$GCC" = yes; then
16898 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16900 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16902 runpath_var='LD_RUN_PATH'
16903 hardcode_shlibpath_var_GCJ=no
16907 no_undefined_flag_GCJ=' -z text'
16908 # $CC -shared without GNU ld will not create a library from C++
16909 # object files and a static libstdc++, better avoid it by now
16910 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16911 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16912 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16913 hardcode_libdir_flag_spec_GCJ=
16914 hardcode_shlibpath_var_GCJ=no
16915 runpath_var='LD_RUN_PATH'
16919 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16920 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16921 hardcode_shlibpath_var_GCJ=no
16930 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16931 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16932 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16934 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16935 if test "$GCC" = yes; then
16936 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16940 # Do we need to explicitly link libc?
16942 case "x$archive_cmds_need_lc_GCJ" in
16944 # Assume -lc should be added
16945 archive_cmds_need_lc_GCJ=yes
16947 if test "$enable_shared" = yes && test "$GCC" = yes; then
16948 case $archive_cmds_GCJ in
16950 # FIXME: we may have to deal with multi-command sequences.
16953 # Test whether the compiler implicitly links with -lc since on some
16954 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16955 # to ld, don't add -lc before -lgcc.
16956 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16957 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16959 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16962 (eval $ac_compile) 2>&5
16964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965 (exit $ac_status); } 2>conftest.err; then
16968 libobjs=conftest.$ac_objext
16970 wl=$lt_prog_compiler_wl_GCJ
16976 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16977 allow_undefined_flag_GCJ=
16978 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16979 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982 (exit $ac_status); }
16984 archive_cmds_need_lc_GCJ=no
16986 archive_cmds_need_lc_GCJ=yes
16988 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16990 cat conftest.err 1>&5
16993 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16994 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17001 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17002 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17003 library_names_spec=
17004 libname_spec='lib$name'
17008 postuninstall_cmds=
17012 shlibpath_overrides_runpath=unknown
17014 dynamic_linker="$host_os ld.so"
17015 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17016 if test "$GCC" = yes; then
17017 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17018 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17019 # if the path contains ";" then we assume it to be the separator
17020 # otherwise default to the standard path separator (i.e. ":") - it is
17021 # assumed that no part of a normal pathname contains ";" but that should
17022 # okay in the real world where ";" in dirpaths is itself problematic.
17023 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17025 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17028 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17030 need_lib_prefix=unknown
17031 hardcode_into_libs=no
17033 # when you set need_version to no, make sure it does not cause -set_version
17034 # flags to be left without arguments
17035 need_version=unknown
17040 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17041 shlibpath_var=LIBPATH
17043 # AIX 3 has no versioning support, so we append a major version to the name.
17044 soname_spec='${libname}${release}${shared_ext}$major'
17051 hardcode_into_libs=yes
17052 if test "$host_cpu" = ia64; then
17053 # AIX 5 supports IA64
17054 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17055 shlibpath_var=LD_LIBRARY_PATH
17057 # With GCC up to 2.95.x, collect2 would create an import file
17058 # for dependence libraries. The import file would start with
17059 # the line `#! .'. This would cause the generated library to
17060 # depend on `.', always an invalid library. This was fixed in
17061 # development snapshots of GCC prior to 3.0.
17063 aix4 | aix4.[01] | aix4.[01].*)
17064 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17066 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17069 can_build_shared=no
17073 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17074 # soname into executable. Probably we can add versioning support to
17075 # collect2, so additional links can be useful in future.
17076 if test "$aix_use_runtimelinking" = yes; then
17077 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17078 # instead of lib<name>.a to let people know that these are not
17079 # typical AIX shared libraries.
17080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17082 # We preserve .a as extension for shared libraries through AIX4.2
17083 # and later when we are not doing run time linking.
17084 library_names_spec='${libname}${release}.a $libname.a'
17085 soname_spec='${libname}${release}${shared_ext}$major'
17087 shlibpath_var=LIBPATH
17092 library_names_spec='$libname.ixlibrary $libname.a'
17093 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17094 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'
17098 library_names_spec='${libname}${shared_ext}'
17099 dynamic_linker="$host_os ld.so"
17100 shlibpath_var=LIBRARY_PATH
17106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17107 soname_spec='${libname}${release}${shared_ext}$major'
17108 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17109 shlibpath_var=LD_LIBRARY_PATH
17110 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17111 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17112 # the default ld.so.conf also contains /usr/contrib/lib and
17113 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17114 # libtool to hard-code these into programs
17117 cygwin* | mingw* | pw32*)
17118 version_type=windows
17123 case $GCC,$host_os in
17124 yes,cygwin* | yes,mingw* | yes,pw32*)
17125 library_names_spec='$libname.dll.a'
17126 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17127 postinstall_cmds='base_file=`basename \${file}`~
17128 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17129 dldir=$destdir/`dirname \$dlpath`~
17130 test -d \$dldir || mkdir -p \$dldir~
17131 $install_prog $dir/$dlname \$dldir/$dlname'
17132 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17133 dlpath=$dir/\$dldll~
17135 shlibpath_overrides_runpath=yes
17139 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17140 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17141 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17144 # MinGW DLLs use traditional 'lib' prefix
17145 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17146 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17147 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17148 # It is most probably a Windows format PATH printed by
17149 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17150 # path with ; separators, and with drive letters. We can handle the
17151 # drive letters (cygwin fileutils understands them), so leave them,
17152 # especially as we might pass files found there to a mingw objdump,
17153 # which wouldn't understand a cygwinified path. Ahh.
17154 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17156 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17160 # pw32 DLLs use 'pw' prefix rather than 'lib'
17161 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17167 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17170 dynamic_linker='Win32 ld.exe'
17171 # FIXME: first we should search . and the directory the executable is in
17175 darwin* | rhapsody*)
17176 dynamic_linker="$host_os dyld"
17177 version_type=darwin
17180 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17181 soname_spec='${libname}${release}${major}$shared_ext'
17182 shlibpath_overrides_runpath=yes
17183 shlibpath_var=DYLD_LIBRARY_PATH
17184 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17185 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17186 if test "$GCC" = yes; then
17187 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"`
17189 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17191 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17199 soname_spec='${libname}${release}${shared_ext}$major'
17200 shlibpath_var=LD_LIBRARY_PATH
17211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17212 soname_spec='${libname}${release}${shared_ext}$major'
17213 shlibpath_var=LD_LIBRARY_PATH
17214 shlibpath_overrides_runpath=no
17215 hardcode_into_libs=yes
17216 dynamic_linker='GNU ld.so'
17219 freebsd* | dragonfly*)
17220 # DragonFly does not have aout. When/if they implement a new
17221 # versioning mechanism, adjust this.
17222 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17223 version_type=freebsd-$objformat
17224 case $version_type in
17226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17231 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17235 shlibpath_var=LD_LIBRARY_PATH
17238 shlibpath_overrides_runpath=yes
17240 freebsd3.[01]* | freebsdelf3.[01]*)
17241 shlibpath_overrides_runpath=yes
17242 hardcode_into_libs=yes
17245 shlibpath_overrides_runpath=no
17246 hardcode_into_libs=yes
17255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17256 soname_spec='${libname}${release}${shared_ext}$major'
17257 shlibpath_var=LD_LIBRARY_PATH
17258 hardcode_into_libs=yes
17261 hpux9* | hpux10* | hpux11*)
17262 # Give a soname corresponding to the major version so that dld.sl refuses to
17263 # link against other versions.
17267 case "$host_cpu" in
17270 hardcode_into_libs=yes
17271 dynamic_linker="$host_os dld.so"
17272 shlibpath_var=LD_LIBRARY_PATH
17273 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17275 soname_spec='${libname}${release}${shared_ext}$major'
17276 if test "X$HPUX_IA64_MODE" = X32; then
17277 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17279 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17281 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17285 hardcode_into_libs=yes
17286 dynamic_linker="$host_os dld.sl"
17287 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17288 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17290 soname_spec='${libname}${release}${shared_ext}$major'
17291 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17292 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17296 dynamic_linker="$host_os dld.sl"
17297 shlibpath_var=SHLIB_PATH
17298 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17300 soname_spec='${libname}${release}${shared_ext}$major'
17303 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17304 postinstall_cmds='chmod 555 $lib'
17307 irix5* | irix6* | nonstopux*)
17309 nonstopux*) version_type=nonstopux ;;
17311 if test "$lt_cv_prog_gnu_ld" = yes; then
17319 soname_spec='${libname}${release}${shared_ext}$major'
17320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17322 irix5* | nonstopux*)
17323 libsuff= shlibsuff=
17326 case $LD in # libtool.m4 will add one of these switches to LD
17327 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17328 libsuff= shlibsuff= libmagic=32-bit;;
17329 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17330 libsuff=32 shlibsuff=N32 libmagic=N32;;
17331 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17332 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17333 *) libsuff= shlibsuff= libmagic=never-match;;
17337 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17338 shlibpath_overrides_runpath=no
17339 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17340 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17341 hardcode_into_libs=yes
17344 # No shared lib support for Linux oldld, aout, or coff.
17345 linux*oldld* | linux*aout* | linux*coff*)
17349 # This must be Linux ELF.
17354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17355 soname_spec='${libname}${release}${shared_ext}$major'
17356 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17357 shlibpath_var=LD_LIBRARY_PATH
17358 shlibpath_overrides_runpath=no
17359 # This implies no fast_install, which is unacceptable.
17360 # Some rework will be needed to allow for fast_install
17361 # before this can be enabled.
17362 hardcode_into_libs=yes
17364 # Append ld.so.conf contents to the search path
17365 if test -f /etc/ld.so.conf; then
17366 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' ' '`
17367 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17370 # We used to test for /lib/ld.so.1 and disable shared libraries on
17371 # powerpc, because MkLinux only supported shared libraries with the
17372 # GNU dynamic linker. Since this was broken with cross compilers,
17373 # most powerpc-linux boxes support dynamic linking these days and
17374 # people can always --disable-shared, the test was removed, and we
17375 # assume the GNU/Linux dynamic linker is in use.
17376 dynamic_linker='GNU/Linux ld.so'
17383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17384 soname_spec='${libname}${release}${shared_ext}$major'
17385 shlibpath_var=LD_LIBRARY_PATH
17386 shlibpath_overrides_runpath=no
17387 hardcode_into_libs=yes
17388 dynamic_linker='GNU ld.so'
17395 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17397 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17398 dynamic_linker='NetBSD (a.out) ld.so'
17400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17401 soname_spec='${libname}${release}${shared_ext}$major'
17402 dynamic_linker='NetBSD ld.elf_so'
17404 shlibpath_var=LD_LIBRARY_PATH
17405 shlibpath_overrides_runpath=yes
17406 hardcode_into_libs=yes
17411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17412 shlibpath_var=LD_LIBRARY_PATH
17413 shlibpath_overrides_runpath=yes
17420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17421 soname_spec='${libname}${release}${shared_ext}$major'
17422 shlibpath_var=LD_LIBRARY_PATH
17423 shlibpath_overrides_runpath=yes
17430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17431 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17432 shlibpath_var=LD_LIBRARY_PATH
17433 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17435 openbsd2.[89] | openbsd2.[89].*)
17436 shlibpath_overrides_runpath=no
17439 shlibpath_overrides_runpath=yes
17443 shlibpath_overrides_runpath=yes
17448 libname_spec='$name'
17451 library_names_spec='$libname${shared_ext} $libname.a'
17452 dynamic_linker='OS/2 ld.exe'
17453 shlibpath_var=LIBPATH
17456 osf3* | osf4* | osf5*)
17460 soname_spec='${libname}${release}${shared_ext}$major'
17461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17462 shlibpath_var=LD_LIBRARY_PATH
17463 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17464 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17469 soname_spec='${libname}${release}${shared_ext}$major'
17470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17471 shlibpath_var=LD_LIBRARY_PATH
17478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17479 soname_spec='${libname}${release}${shared_ext}$major'
17480 shlibpath_var=LD_LIBRARY_PATH
17481 shlibpath_overrides_runpath=yes
17482 hardcode_into_libs=yes
17483 # ldd complains unless libraries are executable
17484 postinstall_cmds='chmod +x $lib'
17489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17490 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17491 shlibpath_var=LD_LIBRARY_PATH
17492 shlibpath_overrides_runpath=yes
17493 if test "$with_gnu_ld" = yes; then
17499 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17502 soname_spec='${libname}${release}${shared_ext}$major'
17503 shlibpath_var=LD_LIBRARY_PATH
17504 case $host_vendor in
17506 shlibpath_overrides_runpath=no
17508 export_dynamic_flag_spec='${wl}-Blargedynsym'
17509 runpath_var=LD_RUN_PATH
17517 shlibpath_overrides_runpath=no
17518 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17524 if test -d /usr/nec ;then
17526 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17527 soname_spec='$libname${shared_ext}.$major'
17528 shlibpath_var=LD_LIBRARY_PATH
17534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17535 soname_spec='${libname}${release}${shared_ext}$major'
17536 shlibpath_var=LD_LIBRARY_PATH
17543 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17544 echo "${ECHO_T}$dynamic_linker" >&6
17545 test "$dynamic_linker" = no && can_build_shared=no
17547 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17548 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17549 hardcode_action_GCJ=
17550 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17551 test -n "$runpath_var_GCJ" || \
17552 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17554 # We can hardcode non-existant directories.
17555 if test "$hardcode_direct_GCJ" != no &&
17556 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17557 # have to relink, otherwise we might link with an installed library
17558 # when we should be linking with a yet-to-be-installed one
17559 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17560 test "$hardcode_minus_L_GCJ" != no; then
17561 # Linking always hardcodes the temporary library directory.
17562 hardcode_action_GCJ=relink
17564 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17565 hardcode_action_GCJ=immediate
17568 # We cannot hardcode anything, or else we can only hardcode existing
17570 hardcode_action_GCJ=unsupported
17572 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17573 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17575 if test "$hardcode_action_GCJ" = relink; then
17576 # Fast installation is not supported
17577 enable_fast_install=no
17578 elif test "$shlibpath_overrides_runpath" = yes ||
17579 test "$enable_shared" = no; then
17580 # Fast installation is not necessary
17581 enable_fast_install=needless
17586 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17587 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17588 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17589 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17590 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17591 echo "$as_me:$LINENO: result: yes" >&5
17592 echo "${ECHO_T}yes" >&6
17594 # FIXME - insert some real tests, host_os isn't really good enough
17597 if test -n "$STRIP" ; then
17598 striplib="$STRIP -x"
17599 echo "$as_me:$LINENO: result: yes" >&5
17600 echo "${ECHO_T}yes" >&6
17602 echo "$as_me:$LINENO: result: no" >&5
17603 echo "${ECHO_T}no" >&6
17607 echo "$as_me:$LINENO: result: no" >&5
17608 echo "${ECHO_T}no" >&6
17613 if test "x$enable_dlopen" != xyes; then
17614 enable_dlopen=unknown
17615 enable_dlopen_self=unknown
17616 enable_dlopen_self_static=unknown
17623 lt_cv_dlopen="load_add_on"
17625 lt_cv_dlopen_self=yes
17629 lt_cv_dlopen="LoadLibrary"
17634 lt_cv_dlopen="dlopen"
17639 # if libdl is installed we need to link against it
17640 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17641 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17642 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17643 echo $ECHO_N "(cached) $ECHO_C" >&6
17645 ac_check_lib_save_LIBS=$LIBS
17647 cat >conftest.$ac_ext <<_ACEOF
17650 cat confdefs.h >>conftest.$ac_ext
17651 cat >>conftest.$ac_ext <<_ACEOF
17652 /* end confdefs.h. */
17654 /* Override any gcc2 internal prototype to avoid an error. */
17658 /* We use char because int might match the return type of a gcc2
17659 builtin and then its argument prototype would still apply. */
17669 rm -f conftest.$ac_objext conftest$ac_exeext
17670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17671 (eval $ac_link) 2>conftest.er1
17673 grep -v '^ *+' conftest.er1 >conftest.err
17675 cat conftest.err >&5
17676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677 (exit $ac_status); } &&
17678 { ac_try='test -z "$ac_c_werror_flag"
17679 || test ! -s conftest.err'
17680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17681 (eval $ac_try) 2>&5
17683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684 (exit $ac_status); }; } &&
17685 { ac_try='test -s conftest$ac_exeext'
17686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17687 (eval $ac_try) 2>&5
17689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 (exit $ac_status); }; }; then
17691 ac_cv_lib_dl_dlopen=yes
17693 echo "$as_me: failed program was:" >&5
17694 sed 's/^/| /' conftest.$ac_ext >&5
17696 ac_cv_lib_dl_dlopen=no
17698 rm -f conftest.err conftest.$ac_objext \
17699 conftest$ac_exeext conftest.$ac_ext
17700 LIBS=$ac_check_lib_save_LIBS
17702 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17703 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17704 if test $ac_cv_lib_dl_dlopen = yes; then
17705 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17708 lt_cv_dlopen="dyld"
17710 lt_cv_dlopen_self=yes
17717 echo "$as_me:$LINENO: checking for shl_load" >&5
17718 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17719 if test "${ac_cv_func_shl_load+set}" = set; then
17720 echo $ECHO_N "(cached) $ECHO_C" >&6
17722 cat >conftest.$ac_ext <<_ACEOF
17725 cat confdefs.h >>conftest.$ac_ext
17726 cat >>conftest.$ac_ext <<_ACEOF
17727 /* end confdefs.h. */
17728 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17730 #define shl_load innocuous_shl_load
17732 /* System header to define __stub macros and hopefully few prototypes,
17733 which can conflict with char shl_load (); below.
17734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17735 <limits.h> exists even on freestanding compilers. */
17738 # include <limits.h>
17740 # include <assert.h>
17745 /* Override any gcc2 internal prototype to avoid an error. */
17750 /* We use char because int might match the return type of a gcc2
17751 builtin and then its argument prototype would still apply. */
17753 /* The GNU C library defines this for functions which it implements
17754 to always fail with ENOSYS. Some functions are actually named
17755 something starting with __ and the normal name is an alias. */
17756 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17759 char (*f) () = shl_load;
17768 return f != shl_load;
17773 rm -f conftest.$ac_objext conftest$ac_exeext
17774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17775 (eval $ac_link) 2>conftest.er1
17777 grep -v '^ *+' conftest.er1 >conftest.err
17779 cat conftest.err >&5
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); } &&
17782 { ac_try='test -z "$ac_c_werror_flag"
17783 || test ! -s conftest.err'
17784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17785 (eval $ac_try) 2>&5
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); }; } &&
17789 { ac_try='test -s conftest$ac_exeext'
17790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17791 (eval $ac_try) 2>&5
17793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794 (exit $ac_status); }; }; then
17795 ac_cv_func_shl_load=yes
17797 echo "$as_me: failed program was:" >&5
17798 sed 's/^/| /' conftest.$ac_ext >&5
17800 ac_cv_func_shl_load=no
17802 rm -f conftest.err conftest.$ac_objext \
17803 conftest$ac_exeext conftest.$ac_ext
17805 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17806 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17807 if test $ac_cv_func_shl_load = yes; then
17808 lt_cv_dlopen="shl_load"
17810 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17811 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17812 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17813 echo $ECHO_N "(cached) $ECHO_C" >&6
17815 ac_check_lib_save_LIBS=$LIBS
17817 cat >conftest.$ac_ext <<_ACEOF
17820 cat confdefs.h >>conftest.$ac_ext
17821 cat >>conftest.$ac_ext <<_ACEOF
17822 /* end confdefs.h. */
17824 /* Override any gcc2 internal prototype to avoid an error. */
17828 /* We use char because int might match the return type of a gcc2
17829 builtin and then its argument prototype would still apply. */
17839 rm -f conftest.$ac_objext conftest$ac_exeext
17840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17841 (eval $ac_link) 2>conftest.er1
17843 grep -v '^ *+' conftest.er1 >conftest.err
17845 cat conftest.err >&5
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); } &&
17848 { ac_try='test -z "$ac_c_werror_flag"
17849 || test ! -s conftest.err'
17850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17851 (eval $ac_try) 2>&5
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); }; } &&
17855 { ac_try='test -s conftest$ac_exeext'
17856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17857 (eval $ac_try) 2>&5
17859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860 (exit $ac_status); }; }; then
17861 ac_cv_lib_dld_shl_load=yes
17863 echo "$as_me: failed program was:" >&5
17864 sed 's/^/| /' conftest.$ac_ext >&5
17866 ac_cv_lib_dld_shl_load=no
17868 rm -f conftest.err conftest.$ac_objext \
17869 conftest$ac_exeext conftest.$ac_ext
17870 LIBS=$ac_check_lib_save_LIBS
17872 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17873 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17874 if test $ac_cv_lib_dld_shl_load = yes; then
17875 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17877 echo "$as_me:$LINENO: checking for dlopen" >&5
17878 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17879 if test "${ac_cv_func_dlopen+set}" = set; then
17880 echo $ECHO_N "(cached) $ECHO_C" >&6
17882 cat >conftest.$ac_ext <<_ACEOF
17885 cat confdefs.h >>conftest.$ac_ext
17886 cat >>conftest.$ac_ext <<_ACEOF
17887 /* end confdefs.h. */
17888 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17890 #define dlopen innocuous_dlopen
17892 /* System header to define __stub macros and hopefully few prototypes,
17893 which can conflict with char dlopen (); below.
17894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17895 <limits.h> exists even on freestanding compilers. */
17898 # include <limits.h>
17900 # include <assert.h>
17905 /* Override any gcc2 internal prototype to avoid an error. */
17910 /* We use char because int might match the return type of a gcc2
17911 builtin and then its argument prototype would still apply. */
17913 /* The GNU C library defines this for functions which it implements
17914 to always fail with ENOSYS. Some functions are actually named
17915 something starting with __ and the normal name is an alias. */
17916 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17919 char (*f) () = dlopen;
17928 return f != dlopen;
17933 rm -f conftest.$ac_objext conftest$ac_exeext
17934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17935 (eval $ac_link) 2>conftest.er1
17937 grep -v '^ *+' conftest.er1 >conftest.err
17939 cat conftest.err >&5
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); } &&
17942 { ac_try='test -z "$ac_c_werror_flag"
17943 || test ! -s conftest.err'
17944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17945 (eval $ac_try) 2>&5
17947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948 (exit $ac_status); }; } &&
17949 { ac_try='test -s conftest$ac_exeext'
17950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17951 (eval $ac_try) 2>&5
17953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954 (exit $ac_status); }; }; then
17955 ac_cv_func_dlopen=yes
17957 echo "$as_me: failed program was:" >&5
17958 sed 's/^/| /' conftest.$ac_ext >&5
17960 ac_cv_func_dlopen=no
17962 rm -f conftest.err conftest.$ac_objext \
17963 conftest$ac_exeext conftest.$ac_ext
17965 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17966 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17967 if test $ac_cv_func_dlopen = yes; then
17968 lt_cv_dlopen="dlopen"
17970 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17971 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17972 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17973 echo $ECHO_N "(cached) $ECHO_C" >&6
17975 ac_check_lib_save_LIBS=$LIBS
17977 cat >conftest.$ac_ext <<_ACEOF
17980 cat confdefs.h >>conftest.$ac_ext
17981 cat >>conftest.$ac_ext <<_ACEOF
17982 /* end confdefs.h. */
17984 /* Override any gcc2 internal prototype to avoid an error. */
17988 /* We use char because int might match the return type of a gcc2
17989 builtin and then its argument prototype would still apply. */
17999 rm -f conftest.$ac_objext conftest$ac_exeext
18000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18001 (eval $ac_link) 2>conftest.er1
18003 grep -v '^ *+' conftest.er1 >conftest.err
18005 cat conftest.err >&5
18006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007 (exit $ac_status); } &&
18008 { ac_try='test -z "$ac_c_werror_flag"
18009 || test ! -s conftest.err'
18010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18011 (eval $ac_try) 2>&5
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); }; } &&
18015 { ac_try='test -s conftest$ac_exeext'
18016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18017 (eval $ac_try) 2>&5
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); }; }; then
18021 ac_cv_lib_dl_dlopen=yes
18023 echo "$as_me: failed program was:" >&5
18024 sed 's/^/| /' conftest.$ac_ext >&5
18026 ac_cv_lib_dl_dlopen=no
18028 rm -f conftest.err conftest.$ac_objext \
18029 conftest$ac_exeext conftest.$ac_ext
18030 LIBS=$ac_check_lib_save_LIBS
18032 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18033 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18034 if test $ac_cv_lib_dl_dlopen = yes; then
18035 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18037 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18038 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18039 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18040 echo $ECHO_N "(cached) $ECHO_C" >&6
18042 ac_check_lib_save_LIBS=$LIBS
18043 LIBS="-lsvld $LIBS"
18044 cat >conftest.$ac_ext <<_ACEOF
18047 cat confdefs.h >>conftest.$ac_ext
18048 cat >>conftest.$ac_ext <<_ACEOF
18049 /* end confdefs.h. */
18051 /* Override any gcc2 internal prototype to avoid an error. */
18055 /* We use char because int might match the return type of a gcc2
18056 builtin and then its argument prototype would still apply. */
18066 rm -f conftest.$ac_objext conftest$ac_exeext
18067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18068 (eval $ac_link) 2>conftest.er1
18070 grep -v '^ *+' conftest.er1 >conftest.err
18072 cat conftest.err >&5
18073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074 (exit $ac_status); } &&
18075 { ac_try='test -z "$ac_c_werror_flag"
18076 || test ! -s conftest.err'
18077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18078 (eval $ac_try) 2>&5
18080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081 (exit $ac_status); }; } &&
18082 { ac_try='test -s conftest$ac_exeext'
18083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18084 (eval $ac_try) 2>&5
18086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087 (exit $ac_status); }; }; then
18088 ac_cv_lib_svld_dlopen=yes
18090 echo "$as_me: failed program was:" >&5
18091 sed 's/^/| /' conftest.$ac_ext >&5
18093 ac_cv_lib_svld_dlopen=no
18095 rm -f conftest.err conftest.$ac_objext \
18096 conftest$ac_exeext conftest.$ac_ext
18097 LIBS=$ac_check_lib_save_LIBS
18099 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18100 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18101 if test $ac_cv_lib_svld_dlopen = yes; then
18102 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18104 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18105 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18106 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18107 echo $ECHO_N "(cached) $ECHO_C" >&6
18109 ac_check_lib_save_LIBS=$LIBS
18111 cat >conftest.$ac_ext <<_ACEOF
18114 cat confdefs.h >>conftest.$ac_ext
18115 cat >>conftest.$ac_ext <<_ACEOF
18116 /* end confdefs.h. */
18118 /* Override any gcc2 internal prototype to avoid an error. */
18122 /* We use char because int might match the return type of a gcc2
18123 builtin and then its argument prototype would still apply. */
18133 rm -f conftest.$ac_objext conftest$ac_exeext
18134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18135 (eval $ac_link) 2>conftest.er1
18137 grep -v '^ *+' conftest.er1 >conftest.err
18139 cat conftest.err >&5
18140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141 (exit $ac_status); } &&
18142 { ac_try='test -z "$ac_c_werror_flag"
18143 || test ! -s conftest.err'
18144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18145 (eval $ac_try) 2>&5
18147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148 (exit $ac_status); }; } &&
18149 { ac_try='test -s conftest$ac_exeext'
18150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18151 (eval $ac_try) 2>&5
18153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154 (exit $ac_status); }; }; then
18155 ac_cv_lib_dld_dld_link=yes
18157 echo "$as_me: failed program was:" >&5
18158 sed 's/^/| /' conftest.$ac_ext >&5
18160 ac_cv_lib_dld_dld_link=no
18162 rm -f conftest.err conftest.$ac_objext \
18163 conftest$ac_exeext conftest.$ac_ext
18164 LIBS=$ac_check_lib_save_LIBS
18166 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18167 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18168 if test $ac_cv_lib_dld_dld_link = yes; then
18169 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18190 if test "x$lt_cv_dlopen" != xno; then
18196 case $lt_cv_dlopen in
18198 save_CPPFLAGS="$CPPFLAGS"
18199 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18201 save_LDFLAGS="$LDFLAGS"
18202 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18205 LIBS="$lt_cv_dlopen_libs $LIBS"
18207 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18208 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18209 if test "${lt_cv_dlopen_self+set}" = set; then
18210 echo $ECHO_N "(cached) $ECHO_C" >&6
18212 if test "$cross_compiling" = yes; then :
18213 lt_cv_dlopen_self=cross
18215 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18216 lt_status=$lt_dlunknown
18217 cat > conftest.$ac_ext <<EOF
18218 #line 18218 "configure"
18219 #include "confdefs.h"
18228 # define LT_DLGLOBAL RTLD_GLOBAL
18231 # define LT_DLGLOBAL DL_GLOBAL
18233 # define LT_DLGLOBAL 0
18237 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18238 find out it does not work in some platform. */
18239 #ifndef LT_DLLAZY_OR_NOW
18241 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18244 # define LT_DLLAZY_OR_NOW DL_LAZY
18247 # define LT_DLLAZY_OR_NOW RTLD_NOW
18250 # define LT_DLLAZY_OR_NOW DL_NOW
18252 # define LT_DLLAZY_OR_NOW 0
18260 extern "C" void exit (int);
18263 void fnord() { int i=42;}
18266 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18267 int status = $lt_dlunknown;
18271 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18272 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18273 /* dlclose (self); */
18279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18280 (eval $ac_link) 2>&5
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18284 (./conftest; exit; ) 2>/dev/null
18286 case x$lt_status in
18287 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18288 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18289 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18292 # compilation failed
18293 lt_cv_dlopen_self=no
18300 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18301 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18303 if test "x$lt_cv_dlopen_self" = xyes; then
18304 LDFLAGS="$LDFLAGS $link_static_flag"
18305 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18306 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18307 if test "${lt_cv_dlopen_self_static+set}" = set; then
18308 echo $ECHO_N "(cached) $ECHO_C" >&6
18310 if test "$cross_compiling" = yes; then :
18311 lt_cv_dlopen_self_static=cross
18313 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18314 lt_status=$lt_dlunknown
18315 cat > conftest.$ac_ext <<EOF
18316 #line 18316 "configure"
18317 #include "confdefs.h"
18326 # define LT_DLGLOBAL RTLD_GLOBAL
18329 # define LT_DLGLOBAL DL_GLOBAL
18331 # define LT_DLGLOBAL 0
18335 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18336 find out it does not work in some platform. */
18337 #ifndef LT_DLLAZY_OR_NOW
18339 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18342 # define LT_DLLAZY_OR_NOW DL_LAZY
18345 # define LT_DLLAZY_OR_NOW RTLD_NOW
18348 # define LT_DLLAZY_OR_NOW DL_NOW
18350 # define LT_DLLAZY_OR_NOW 0
18358 extern "C" void exit (int);
18361 void fnord() { int i=42;}
18364 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18365 int status = $lt_dlunknown;
18369 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18370 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18371 /* dlclose (self); */
18377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18378 (eval $ac_link) 2>&5
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18382 (./conftest; exit; ) 2>/dev/null
18384 case x$lt_status in
18385 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18386 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18387 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18390 # compilation failed
18391 lt_cv_dlopen_self_static=no
18398 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18399 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18402 CPPFLAGS="$save_CPPFLAGS"
18403 LDFLAGS="$save_LDFLAGS"
18408 case $lt_cv_dlopen_self in
18409 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18410 *) enable_dlopen_self=unknown ;;
18413 case $lt_cv_dlopen_self_static in
18414 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18415 *) enable_dlopen_self_static=unknown ;;
18420 # The else clause should only fire when bootstrapping the
18421 # libtool distribution, otherwise you forgot to ship ltmain.sh
18422 # with your package, and you will get complaints that there are
18423 # no rules to generate ltmain.sh.
18424 if test -f "$ltmain"; then
18425 # See if we are running on zsh, and set the options which allow our commands through
18426 # without removal of \ escapes.
18427 if test -n "${ZSH_VERSION+set}" ; then
18428 setopt NO_GLOB_SUBST
18430 # Now quote all the things that may contain metacharacters while being
18431 # careful not to overquote the AC_SUBSTed values. We take copies of the
18432 # variables and quote the copies for generation of the libtool script.
18433 for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \
18435 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18436 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18437 deplibs_check_method reload_flag reload_cmds need_locks \
18438 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18439 lt_cv_sys_global_symbol_to_c_name_address \
18440 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18441 old_postinstall_cmds old_postuninstall_cmds \
18445 lt_prog_compiler_wl_GCJ \
18446 lt_prog_compiler_pic_GCJ \
18447 lt_prog_compiler_static_GCJ \
18448 lt_prog_compiler_no_builtin_flag_GCJ \
18449 export_dynamic_flag_spec_GCJ \
18450 thread_safe_flag_spec_GCJ \
18451 whole_archive_flag_spec_GCJ \
18452 enable_shared_with_static_runtimes_GCJ \
18453 old_archive_cmds_GCJ \
18454 old_archive_from_new_cmds_GCJ \
18455 predep_objects_GCJ \
18456 postdep_objects_GCJ \
18459 compiler_lib_search_path_GCJ \
18461 archive_expsym_cmds_GCJ \
18462 postinstall_cmds_GCJ \
18463 postuninstall_cmds_GCJ \
18464 old_archive_from_expsyms_cmds_GCJ \
18465 allow_undefined_flag_GCJ \
18466 no_undefined_flag_GCJ \
18467 export_symbols_cmds_GCJ \
18468 hardcode_libdir_flag_spec_GCJ \
18469 hardcode_libdir_flag_spec_ld_GCJ \
18470 hardcode_libdir_separator_GCJ \
18471 hardcode_automatic_GCJ \
18473 module_expsym_cmds_GCJ \
18474 lt_cv_prog_compiler_c_o_GCJ \
18475 exclude_expsyms_GCJ \
18476 include_expsyms_GCJ; do
18479 old_archive_cmds_GCJ | \
18480 old_archive_from_new_cmds_GCJ | \
18481 archive_cmds_GCJ | \
18482 archive_expsym_cmds_GCJ | \
18483 module_cmds_GCJ | \
18484 module_expsym_cmds_GCJ | \
18485 old_archive_from_expsyms_cmds_GCJ | \
18486 export_symbols_cmds_GCJ | \
18487 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18488 postinstall_cmds | postuninstall_cmds | \
18489 old_postinstall_cmds | old_postuninstall_cmds | \
18490 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18491 # Double-quote double-evaled strings.
18492 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18495 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18501 *'\$0 --fallback-echo"')
18502 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18508 cat <<__EOF__ >> "$cfgfile"
18509 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18511 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18513 # Shell to use when invoking shell scripts.
18516 # Whether or not to build shared libraries.
18517 build_libtool_libs=$enable_shared
18519 # Whether or not to build static libraries.
18520 build_old_libs=$enable_static
18522 # Whether or not to add -lc for building shared libraries.
18523 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18525 # Whether or not to disallow shared libs when runtime libs are static
18526 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18528 # Whether or not to optimize for fast installation.
18529 fast_install=$enable_fast_install
18532 host_alias=$host_alias
18536 # The build system.
18537 build_alias=$build_alias
18541 # An echo program that does not interpret backslashes.
18546 AR_FLAGS=$lt_AR_FLAGS
18551 # A language-specific compiler.
18552 CC=$lt_compiler_GCJ
18554 # Is the compiler the GNU C compiler?
18560 # The linker used to build libraries.
18563 # Whether we need hard or soft links.
18566 # A BSD-compatible nm program.
18569 # A symbol stripping program
18572 # Used to examine libraries when file_magic_cmd begins "file"
18573 MAGIC_CMD=$MAGIC_CMD
18575 # Used on cygwin: DLL creation program.
18578 # Used on cygwin: object dumper.
18581 # Used on cygwin: assembler.
18584 # The name of the directory that contains temporary libtool files.
18587 # How to create reloadable object files.
18588 reload_flag=$lt_reload_flag
18589 reload_cmds=$lt_reload_cmds
18591 # How to pass a linker flag through the compiler.
18592 wl=$lt_lt_prog_compiler_wl_GCJ
18594 # Object file suffix (normally "o").
18595 objext="$ac_objext"
18597 # Old archive suffix (normally "a").
18600 # Shared library suffix (normally ".so").
18601 shrext_cmds='$shrext_cmds'
18603 # Executable file suffix (normally "").
18606 # Additional compiler flags for building library objects.
18607 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18610 # What is the maximum length of a command?
18611 max_cmd_len=$lt_cv_sys_max_cmd_len
18613 # Does compiler simultaneously support -c and -o options?
18614 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18616 # Must we lock files when doing compilation ?
18617 need_locks=$lt_need_locks
18619 # Do we need the lib prefix for modules?
18620 need_lib_prefix=$need_lib_prefix
18622 # Do we need a version for libraries?
18623 need_version=$need_version
18625 # Whether dlopen is supported.
18626 dlopen_support=$enable_dlopen
18628 # Whether dlopen of programs is supported.
18629 dlopen_self=$enable_dlopen_self
18631 # Whether dlopen of statically linked programs is supported.
18632 dlopen_self_static=$enable_dlopen_self_static
18634 # Compiler flag to prevent dynamic linking.
18635 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18637 # Compiler flag to turn off builtin functions.
18638 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18640 # Compiler flag to allow reflexive dlopens.
18641 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18643 # Compiler flag to generate shared objects directly from archives.
18644 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18646 # Compiler flag to generate thread-safe objects.
18647 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18649 # Library versioning type.
18650 version_type=$version_type
18652 # Format of library name prefix.
18653 libname_spec=$lt_libname_spec
18655 # List of archive names. First name is the real one, the rest are links.
18656 # The last name is the one that the linker finds with -lNAME.
18657 library_names_spec=$lt_library_names_spec
18659 # The coded name of the library, if different from the real name.
18660 soname_spec=$lt_soname_spec
18662 # Commands used to build and install an old-style archive.
18664 old_archive_cmds=$lt_old_archive_cmds_GCJ
18665 old_postinstall_cmds=$lt_old_postinstall_cmds
18666 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18668 # Create an old-style archive from a shared archive.
18669 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18671 # Create a temporary old-style archive to link instead of a shared archive.
18672 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18674 # Commands used to build and install a shared archive.
18675 archive_cmds=$lt_archive_cmds_GCJ
18676 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18677 postinstall_cmds=$lt_postinstall_cmds
18678 postuninstall_cmds=$lt_postuninstall_cmds
18680 # Commands used to build a loadable module (assumed same as above if empty)
18681 module_cmds=$lt_module_cmds_GCJ
18682 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18684 # Commands to strip libraries.
18685 old_striplib=$lt_old_striplib
18686 striplib=$lt_striplib
18688 # Dependencies to place before the objects being linked to create a
18690 predep_objects=$lt_predep_objects_GCJ
18692 # Dependencies to place after the objects being linked to create a
18694 postdep_objects=$lt_postdep_objects_GCJ
18696 # Dependencies to place before the objects being linked to create a
18698 predeps=$lt_predeps_GCJ
18700 # Dependencies to place after the objects being linked to create a
18702 postdeps=$lt_postdeps_GCJ
18704 # The library search path used internally by the compiler when linking
18705 # a shared library.
18706 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18708 # Method to check whether dependent libraries are shared objects.
18709 deplibs_check_method=$lt_deplibs_check_method
18711 # Command to use when deplibs_check_method == file_magic.
18712 file_magic_cmd=$lt_file_magic_cmd
18714 # Flag that allows shared libraries with undefined symbols to be built.
18715 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18717 # Flag that forces no undefined symbols.
18718 no_undefined_flag=$lt_no_undefined_flag_GCJ
18720 # Commands used to finish a libtool library installation in a directory.
18721 finish_cmds=$lt_finish_cmds
18723 # Same as above, but a single script fragment to be evaled but not shown.
18724 finish_eval=$lt_finish_eval
18726 # Take the output of nm and produce a listing of raw symbols and C names.
18727 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18729 # Transform the output of nm in a proper C declaration
18730 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18732 # Transform the output of nm in a C name address pair
18733 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18735 # This is the shared library runtime path variable.
18736 runpath_var=$runpath_var
18738 # This is the shared library path variable.
18739 shlibpath_var=$shlibpath_var
18741 # Is shlibpath searched before the hard-coded library search path?
18742 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18744 # How to hardcode a shared library path into an executable.
18745 hardcode_action=$hardcode_action_GCJ
18747 # Whether we should hardcode library paths into libraries.
18748 hardcode_into_libs=$hardcode_into_libs
18750 # Flag to hardcode \$libdir into a binary during linking.
18751 # This must work even if \$libdir does not exist.
18752 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18754 # If ld is used when linking, flag to hardcode \$libdir into
18755 # a binary during linking. This must work even if \$libdir does
18757 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18759 # Whether we need a single -rpath flag with a separated argument.
18760 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18762 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18763 # resulting binary.
18764 hardcode_direct=$hardcode_direct_GCJ
18766 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18767 # resulting binary.
18768 hardcode_minus_L=$hardcode_minus_L_GCJ
18770 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18771 # the resulting binary.
18772 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18774 # Set to yes if building a shared library automatically hardcodes DIR into the library
18775 # and all subsequent libraries and executables linked against it.
18776 hardcode_automatic=$hardcode_automatic_GCJ
18778 # Variables whose values should be saved in libtool wrapper scripts and
18779 # restored at relink time.
18780 variables_saved_for_relink="$variables_saved_for_relink"
18782 # Whether libtool must link a program against all its dependency libraries.
18783 link_all_deplibs=$link_all_deplibs_GCJ
18785 # Compile-time system search path for libraries
18786 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18788 # Run-time system search path for libraries
18789 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18791 # Fix the shell variable \$srcfile for the compiler.
18792 fix_srcfile_path="$fix_srcfile_path_GCJ"
18794 # Set to yes if exported symbols are required.
18795 always_export_symbols=$always_export_symbols_GCJ
18797 # The commands to list exported symbols.
18798 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18800 # The commands to extract the exported symbol list from a shared archive.
18801 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18803 # Symbols that should not be listed in the preloaded symbols.
18804 exclude_expsyms=$lt_exclude_expsyms_GCJ
18806 # Symbols that must always be exported.
18807 include_expsyms=$lt_include_expsyms_GCJ
18809 # ### END LIBTOOL TAG CONFIG: $tagname
18815 # If there is no Makefile yet, we rely on a make rule to execute
18816 # `config.status --recheck' to rerun these tests and create the
18817 # libtool script then.
18818 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18819 if test -f "$ltmain_in"; then
18820 test -f Makefile && make "$ltmain"
18826 ac_cpp='$CPP $CPPFLAGS'
18827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18842 # Source file extension for RC test sources.
18845 # Object file extension for compiled RC test sources.
18849 # Code to be used in simple compile tests
18850 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18852 # Code to be used in simple link tests
18853 lt_simple_link_test_code="$lt_simple_compile_test_code"
18855 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18857 # If no C compiler was specified, use CC.
18860 # Allow CC to be a program name with arguments.
18864 # Allow CC to be a program name with arguments.
18869 lt_cv_prog_compiler_c_o_RC=yes
18871 # The else clause should only fire when bootstrapping the
18872 # libtool distribution, otherwise you forgot to ship ltmain.sh
18873 # with your package, and you will get complaints that there are
18874 # no rules to generate ltmain.sh.
18875 if test -f "$ltmain"; then
18876 # See if we are running on zsh, and set the options which allow our commands through
18877 # without removal of \ escapes.
18878 if test -n "${ZSH_VERSION+set}" ; then
18879 setopt NO_GLOB_SUBST
18881 # Now quote all the things that may contain metacharacters while being
18882 # careful not to overquote the AC_SUBSTed values. We take copies of the
18883 # variables and quote the copies for generation of the libtool script.
18884 for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \
18886 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18887 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18888 deplibs_check_method reload_flag reload_cmds need_locks \
18889 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18890 lt_cv_sys_global_symbol_to_c_name_address \
18891 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18892 old_postinstall_cmds old_postuninstall_cmds \
18896 lt_prog_compiler_wl_RC \
18897 lt_prog_compiler_pic_RC \
18898 lt_prog_compiler_static_RC \
18899 lt_prog_compiler_no_builtin_flag_RC \
18900 export_dynamic_flag_spec_RC \
18901 thread_safe_flag_spec_RC \
18902 whole_archive_flag_spec_RC \
18903 enable_shared_with_static_runtimes_RC \
18904 old_archive_cmds_RC \
18905 old_archive_from_new_cmds_RC \
18906 predep_objects_RC \
18907 postdep_objects_RC \
18910 compiler_lib_search_path_RC \
18912 archive_expsym_cmds_RC \
18913 postinstall_cmds_RC \
18914 postuninstall_cmds_RC \
18915 old_archive_from_expsyms_cmds_RC \
18916 allow_undefined_flag_RC \
18917 no_undefined_flag_RC \
18918 export_symbols_cmds_RC \
18919 hardcode_libdir_flag_spec_RC \
18920 hardcode_libdir_flag_spec_ld_RC \
18921 hardcode_libdir_separator_RC \
18922 hardcode_automatic_RC \
18924 module_expsym_cmds_RC \
18925 lt_cv_prog_compiler_c_o_RC \
18926 exclude_expsyms_RC \
18927 include_expsyms_RC; do
18930 old_archive_cmds_RC | \
18931 old_archive_from_new_cmds_RC | \
18932 archive_cmds_RC | \
18933 archive_expsym_cmds_RC | \
18935 module_expsym_cmds_RC | \
18936 old_archive_from_expsyms_cmds_RC | \
18937 export_symbols_cmds_RC | \
18938 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18939 postinstall_cmds | postuninstall_cmds | \
18940 old_postinstall_cmds | old_postuninstall_cmds | \
18941 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18942 # Double-quote double-evaled strings.
18943 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18946 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18952 *'\$0 --fallback-echo"')
18953 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18959 cat <<__EOF__ >> "$cfgfile"
18960 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18962 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18964 # Shell to use when invoking shell scripts.
18967 # Whether or not to build shared libraries.
18968 build_libtool_libs=$enable_shared
18970 # Whether or not to build static libraries.
18971 build_old_libs=$enable_static
18973 # Whether or not to add -lc for building shared libraries.
18974 build_libtool_need_lc=$archive_cmds_need_lc_RC
18976 # Whether or not to disallow shared libs when runtime libs are static
18977 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18979 # Whether or not to optimize for fast installation.
18980 fast_install=$enable_fast_install
18983 host_alias=$host_alias
18987 # The build system.
18988 build_alias=$build_alias
18992 # An echo program that does not interpret backslashes.
18997 AR_FLAGS=$lt_AR_FLAGS
19002 # A language-specific compiler.
19005 # Is the compiler the GNU C compiler?
19011 # The linker used to build libraries.
19014 # Whether we need hard or soft links.
19017 # A BSD-compatible nm program.
19020 # A symbol stripping program
19023 # Used to examine libraries when file_magic_cmd begins "file"
19024 MAGIC_CMD=$MAGIC_CMD
19026 # Used on cygwin: DLL creation program.
19029 # Used on cygwin: object dumper.
19032 # Used on cygwin: assembler.
19035 # The name of the directory that contains temporary libtool files.
19038 # How to create reloadable object files.
19039 reload_flag=$lt_reload_flag
19040 reload_cmds=$lt_reload_cmds
19042 # How to pass a linker flag through the compiler.
19043 wl=$lt_lt_prog_compiler_wl_RC
19045 # Object file suffix (normally "o").
19046 objext="$ac_objext"
19048 # Old archive suffix (normally "a").
19051 # Shared library suffix (normally ".so").
19052 shrext_cmds='$shrext_cmds'
19054 # Executable file suffix (normally "").
19057 # Additional compiler flags for building library objects.
19058 pic_flag=$lt_lt_prog_compiler_pic_RC
19061 # What is the maximum length of a command?
19062 max_cmd_len=$lt_cv_sys_max_cmd_len
19064 # Does compiler simultaneously support -c and -o options?
19065 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19067 # Must we lock files when doing compilation ?
19068 need_locks=$lt_need_locks
19070 # Do we need the lib prefix for modules?
19071 need_lib_prefix=$need_lib_prefix
19073 # Do we need a version for libraries?
19074 need_version=$need_version
19076 # Whether dlopen is supported.
19077 dlopen_support=$enable_dlopen
19079 # Whether dlopen of programs is supported.
19080 dlopen_self=$enable_dlopen_self
19082 # Whether dlopen of statically linked programs is supported.
19083 dlopen_self_static=$enable_dlopen_self_static
19085 # Compiler flag to prevent dynamic linking.
19086 link_static_flag=$lt_lt_prog_compiler_static_RC
19088 # Compiler flag to turn off builtin functions.
19089 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19091 # Compiler flag to allow reflexive dlopens.
19092 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19094 # Compiler flag to generate shared objects directly from archives.
19095 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19097 # Compiler flag to generate thread-safe objects.
19098 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19100 # Library versioning type.
19101 version_type=$version_type
19103 # Format of library name prefix.
19104 libname_spec=$lt_libname_spec
19106 # List of archive names. First name is the real one, the rest are links.
19107 # The last name is the one that the linker finds with -lNAME.
19108 library_names_spec=$lt_library_names_spec
19110 # The coded name of the library, if different from the real name.
19111 soname_spec=$lt_soname_spec
19113 # Commands used to build and install an old-style archive.
19115 old_archive_cmds=$lt_old_archive_cmds_RC
19116 old_postinstall_cmds=$lt_old_postinstall_cmds
19117 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19119 # Create an old-style archive from a shared archive.
19120 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19122 # Create a temporary old-style archive to link instead of a shared archive.
19123 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19125 # Commands used to build and install a shared archive.
19126 archive_cmds=$lt_archive_cmds_RC
19127 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19128 postinstall_cmds=$lt_postinstall_cmds
19129 postuninstall_cmds=$lt_postuninstall_cmds
19131 # Commands used to build a loadable module (assumed same as above if empty)
19132 module_cmds=$lt_module_cmds_RC
19133 module_expsym_cmds=$lt_module_expsym_cmds_RC
19135 # Commands to strip libraries.
19136 old_striplib=$lt_old_striplib
19137 striplib=$lt_striplib
19139 # Dependencies to place before the objects being linked to create a
19141 predep_objects=$lt_predep_objects_RC
19143 # Dependencies to place after the objects being linked to create a
19145 postdep_objects=$lt_postdep_objects_RC
19147 # Dependencies to place before the objects being linked to create a
19149 predeps=$lt_predeps_RC
19151 # Dependencies to place after the objects being linked to create a
19153 postdeps=$lt_postdeps_RC
19155 # The library search path used internally by the compiler when linking
19156 # a shared library.
19157 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19159 # Method to check whether dependent libraries are shared objects.
19160 deplibs_check_method=$lt_deplibs_check_method
19162 # Command to use when deplibs_check_method == file_magic.
19163 file_magic_cmd=$lt_file_magic_cmd
19165 # Flag that allows shared libraries with undefined symbols to be built.
19166 allow_undefined_flag=$lt_allow_undefined_flag_RC
19168 # Flag that forces no undefined symbols.
19169 no_undefined_flag=$lt_no_undefined_flag_RC
19171 # Commands used to finish a libtool library installation in a directory.
19172 finish_cmds=$lt_finish_cmds
19174 # Same as above, but a single script fragment to be evaled but not shown.
19175 finish_eval=$lt_finish_eval
19177 # Take the output of nm and produce a listing of raw symbols and C names.
19178 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19180 # Transform the output of nm in a proper C declaration
19181 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19183 # Transform the output of nm in a C name address pair
19184 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19186 # This is the shared library runtime path variable.
19187 runpath_var=$runpath_var
19189 # This is the shared library path variable.
19190 shlibpath_var=$shlibpath_var
19192 # Is shlibpath searched before the hard-coded library search path?
19193 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19195 # How to hardcode a shared library path into an executable.
19196 hardcode_action=$hardcode_action_RC
19198 # Whether we should hardcode library paths into libraries.
19199 hardcode_into_libs=$hardcode_into_libs
19201 # Flag to hardcode \$libdir into a binary during linking.
19202 # This must work even if \$libdir does not exist.
19203 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19205 # If ld is used when linking, flag to hardcode \$libdir into
19206 # a binary during linking. This must work even if \$libdir does
19208 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19210 # Whether we need a single -rpath flag with a separated argument.
19211 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19213 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19214 # resulting binary.
19215 hardcode_direct=$hardcode_direct_RC
19217 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19218 # resulting binary.
19219 hardcode_minus_L=$hardcode_minus_L_RC
19221 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19222 # the resulting binary.
19223 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19225 # Set to yes if building a shared library automatically hardcodes DIR into the library
19226 # and all subsequent libraries and executables linked against it.
19227 hardcode_automatic=$hardcode_automatic_RC
19229 # Variables whose values should be saved in libtool wrapper scripts and
19230 # restored at relink time.
19231 variables_saved_for_relink="$variables_saved_for_relink"
19233 # Whether libtool must link a program against all its dependency libraries.
19234 link_all_deplibs=$link_all_deplibs_RC
19236 # Compile-time system search path for libraries
19237 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19239 # Run-time system search path for libraries
19240 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19242 # Fix the shell variable \$srcfile for the compiler.
19243 fix_srcfile_path="$fix_srcfile_path_RC"
19245 # Set to yes if exported symbols are required.
19246 always_export_symbols=$always_export_symbols_RC
19248 # The commands to list exported symbols.
19249 export_symbols_cmds=$lt_export_symbols_cmds_RC
19251 # The commands to extract the exported symbol list from a shared archive.
19252 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19254 # Symbols that should not be listed in the preloaded symbols.
19255 exclude_expsyms=$lt_exclude_expsyms_RC
19257 # Symbols that must always be exported.
19258 include_expsyms=$lt_include_expsyms_RC
19260 # ### END LIBTOOL TAG CONFIG: $tagname
19266 # If there is no Makefile yet, we rely on a make rule to execute
19267 # `config.status --recheck' to rerun these tests and create the
19268 # libtool script then.
19269 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19270 if test -f "$ltmain_in"; then
19271 test -f Makefile && make "$ltmain"
19277 ac_cpp='$CPP $CPPFLAGS'
19278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19287 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19288 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19289 { (exit 1); exit 1; }; }
19293 # Append the new tag name to the list of available tags.
19294 if test -n "$tagname" ; then
19295 available_tags="$available_tags $tagname"
19301 # Now substitute the updated list of available tags.
19302 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19303 mv "${ofile}T" "$ofile"
19307 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19308 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19309 { (exit 1); exit 1; }; }
19315 # This can be used to rebuild libtool when needed
19316 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19318 # Always use our own libtool.
19319 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19321 # Prevent multiple expansion
19342 # Check whether --enable-debug or --disable-debug was given.
19343 if test "${enable_debug+set}" = set; then
19344 enableval="$enable_debug"
19346 CXXFLAGS="-g -O0 -Wall"
19347 cat >>confdefs.h <<\_ACEOF
19348 #define WITH_DEBUG 1
19360 # Check whether --with-libldap or --without-libldap was given.
19361 if test "${with_libldap+set}" = set; then
19362 withval="$with_libldap"
19364 LIBS="-L$with_libldap $LIBS "
19368 LIBS="-L/usr/local/lib $LIBS "
19374 # Check whether --with-ldap-includes or --without-ldap-includes was given.
19375 if test "${with_ldap_includes+set}" = set; then
19376 withval="$with_ldap_includes"
19378 CPPFLAGS="-I$with_ldap_includes $CPPFLAGS "
19382 CPPFLAGS="-I/usr/local/include $CPPFLAGS "
19387 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
19388 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
19389 if test "${ac_cv_lib_resolv_main+set}" = set; then
19390 echo $ECHO_N "(cached) $ECHO_C" >&6
19392 ac_check_lib_save_LIBS=$LIBS
19393 LIBS="-lresolv $LIBS"
19394 cat >conftest.$ac_ext <<_ACEOF
19397 cat confdefs.h >>conftest.$ac_ext
19398 cat >>conftest.$ac_ext <<_ACEOF
19399 /* end confdefs.h. */
19410 rm -f conftest.$ac_objext conftest$ac_exeext
19411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19412 (eval $ac_link) 2>conftest.er1
19414 grep -v '^ *+' conftest.er1 >conftest.err
19416 cat conftest.err >&5
19417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418 (exit $ac_status); } &&
19419 { ac_try='test -z "$ac_c_werror_flag"
19420 || test ! -s conftest.err'
19421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19422 (eval $ac_try) 2>&5
19424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425 (exit $ac_status); }; } &&
19426 { ac_try='test -s conftest$ac_exeext'
19427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19428 (eval $ac_try) 2>&5
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); }; }; then
19432 ac_cv_lib_resolv_main=yes
19434 echo "$as_me: failed program was:" >&5
19435 sed 's/^/| /' conftest.$ac_ext >&5
19437 ac_cv_lib_resolv_main=no
19439 rm -f conftest.err conftest.$ac_objext \
19440 conftest$ac_exeext conftest.$ac_ext
19441 LIBS=$ac_check_lib_save_LIBS
19443 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
19444 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
19445 if test $ac_cv_lib_resolv_main = yes; then
19446 cat >>confdefs.h <<_ACEOF
19447 #define HAVE_LIBRESOLV 1
19450 LIBS="-lresolv $LIBS"
19454 echo "$as_me:$LINENO: checking for ber_strdup in -llber" >&5
19455 echo $ECHO_N "checking for ber_strdup in -llber... $ECHO_C" >&6
19456 if test "${ac_cv_lib_lber_ber_strdup+set}" = set; then
19457 echo $ECHO_N "(cached) $ECHO_C" >&6
19459 ac_check_lib_save_LIBS=$LIBS
19460 LIBS="-llber $LIBS"
19461 cat >conftest.$ac_ext <<_ACEOF
19464 cat confdefs.h >>conftest.$ac_ext
19465 cat >>conftest.$ac_ext <<_ACEOF
19466 /* end confdefs.h. */
19468 /* Override any gcc2 internal prototype to avoid an error. */
19472 /* We use char because int might match the return type of a gcc2
19473 builtin and then its argument prototype would still apply. */
19474 char ber_strdup ();
19483 rm -f conftest.$ac_objext conftest$ac_exeext
19484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19485 (eval $ac_link) 2>conftest.er1
19487 grep -v '^ *+' conftest.er1 >conftest.err
19489 cat conftest.err >&5
19490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 (exit $ac_status); } &&
19492 { ac_try='test -z "$ac_c_werror_flag"
19493 || test ! -s conftest.err'
19494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19495 (eval $ac_try) 2>&5
19497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498 (exit $ac_status); }; } &&
19499 { ac_try='test -s conftest$ac_exeext'
19500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19501 (eval $ac_try) 2>&5
19503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); }; }; then
19505 ac_cv_lib_lber_ber_strdup=yes
19507 echo "$as_me: failed program was:" >&5
19508 sed 's/^/| /' conftest.$ac_ext >&5
19510 ac_cv_lib_lber_ber_strdup=no
19512 rm -f conftest.err conftest.$ac_objext \
19513 conftest$ac_exeext conftest.$ac_ext
19514 LIBS=$ac_check_lib_save_LIBS
19516 echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_strdup" >&5
19517 echo "${ECHO_T}$ac_cv_lib_lber_ber_strdup" >&6
19518 if test $ac_cv_lib_lber_ber_strdup = yes; then
19524 echo " didn't find ber_strdup in liblber !";
19525 echo " Check for the right version (>= 2.0) of the OpenLDAP libraries";
19526 echo " or try the --with-libldap option.";
19531 echo "$as_me:$LINENO: checking for ldap_add_ext in -lldap" >&5
19532 echo $ECHO_N "checking for ldap_add_ext in -lldap... $ECHO_C" >&6
19533 if test "${ac_cv_lib_ldap_ldap_add_ext+set}" = set; then
19534 echo $ECHO_N "(cached) $ECHO_C" >&6
19536 ac_check_lib_save_LIBS=$LIBS
19540 cat >conftest.$ac_ext <<_ACEOF
19543 cat confdefs.h >>conftest.$ac_ext
19544 cat >>conftest.$ac_ext <<_ACEOF
19545 /* end confdefs.h. */
19547 /* Override any gcc2 internal prototype to avoid an error. */
19551 /* We use char because int might match the return type of a gcc2
19552 builtin and then its argument prototype would still apply. */
19553 char ldap_add_ext ();
19562 rm -f conftest.$ac_objext conftest$ac_exeext
19563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19564 (eval $ac_link) 2>conftest.er1
19566 grep -v '^ *+' conftest.er1 >conftest.err
19568 cat conftest.err >&5
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); } &&
19571 { ac_try='test -z "$ac_c_werror_flag"
19572 || test ! -s conftest.err'
19573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19574 (eval $ac_try) 2>&5
19576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577 (exit $ac_status); }; } &&
19578 { ac_try='test -s conftest$ac_exeext'
19579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19580 (eval $ac_try) 2>&5
19582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583 (exit $ac_status); }; }; then
19584 ac_cv_lib_ldap_ldap_add_ext=yes
19586 echo "$as_me: failed program was:" >&5
19587 sed 's/^/| /' conftest.$ac_ext >&5
19589 ac_cv_lib_ldap_ldap_add_ext=no
19591 rm -f conftest.err conftest.$ac_objext \
19592 conftest$ac_exeext conftest.$ac_ext
19593 LIBS=$ac_check_lib_save_LIBS
19595 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_add_ext" >&5
19596 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_add_ext" >&6
19597 if test $ac_cv_lib_ldap_ldap_add_ext = yes; then
19603 echo " didn't find ldap_add_ext in libldap !";
19604 echo " Check for the right version (>= 2.0) of the OpenLDAP libraries";
19605 echo " or try the --with-libldap option.";
19610 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19611 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19612 if test "${ac_cv_header_time+set}" = set; then
19613 echo $ECHO_N "(cached) $ECHO_C" >&6
19615 cat >conftest.$ac_ext <<_ACEOF
19618 cat confdefs.h >>conftest.$ac_ext
19619 cat >>conftest.$ac_ext <<_ACEOF
19620 /* end confdefs.h. */
19621 #include <sys/types.h>
19622 #include <sys/time.h>
19628 if ((struct tm *) 0)
19634 rm -f conftest.$ac_objext
19635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19636 (eval $ac_compile) 2>conftest.er1
19638 grep -v '^ *+' conftest.er1 >conftest.err
19640 cat conftest.err >&5
19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); } &&
19643 { ac_try='test -z "$ac_c_werror_flag"
19644 || test ! -s conftest.err'
19645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19646 (eval $ac_try) 2>&5
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); }; } &&
19650 { ac_try='test -s conftest.$ac_objext'
19651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19652 (eval $ac_try) 2>&5
19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); }; }; then
19656 ac_cv_header_time=yes
19658 echo "$as_me: failed program was:" >&5
19659 sed 's/^/| /' conftest.$ac_ext >&5
19661 ac_cv_header_time=no
19663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19665 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19666 echo "${ECHO_T}$ac_cv_header_time" >&6
19667 if test $ac_cv_header_time = yes; then
19669 cat >>confdefs.h <<\_ACEOF
19670 #define TIME_WITH_SYS_TIME 1
19675 if test "${ac_cv_header_ldap_h+set}" = set; then
19676 echo "$as_me:$LINENO: checking for ldap.h" >&5
19677 echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6
19678 if test "${ac_cv_header_ldap_h+set}" = set; then
19679 echo $ECHO_N "(cached) $ECHO_C" >&6
19681 echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
19682 echo "${ECHO_T}$ac_cv_header_ldap_h" >&6
19684 # Is the header compilable?
19685 echo "$as_me:$LINENO: checking ldap.h usability" >&5
19686 echo $ECHO_N "checking ldap.h usability... $ECHO_C" >&6
19687 cat >conftest.$ac_ext <<_ACEOF
19690 cat confdefs.h >>conftest.$ac_ext
19691 cat >>conftest.$ac_ext <<_ACEOF
19692 /* end confdefs.h. */
19693 $ac_includes_default
19696 rm -f conftest.$ac_objext
19697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19698 (eval $ac_compile) 2>conftest.er1
19700 grep -v '^ *+' conftest.er1 >conftest.err
19702 cat conftest.err >&5
19703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704 (exit $ac_status); } &&
19705 { ac_try='test -z "$ac_c_werror_flag"
19706 || test ! -s conftest.err'
19707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19708 (eval $ac_try) 2>&5
19710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711 (exit $ac_status); }; } &&
19712 { ac_try='test -s conftest.$ac_objext'
19713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19714 (eval $ac_try) 2>&5
19716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717 (exit $ac_status); }; }; then
19718 ac_header_compiler=yes
19720 echo "$as_me: failed program was:" >&5
19721 sed 's/^/| /' conftest.$ac_ext >&5
19723 ac_header_compiler=no
19725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19726 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19727 echo "${ECHO_T}$ac_header_compiler" >&6
19729 # Is the header present?
19730 echo "$as_me:$LINENO: checking ldap.h presence" >&5
19731 echo $ECHO_N "checking ldap.h presence... $ECHO_C" >&6
19732 cat >conftest.$ac_ext <<_ACEOF
19735 cat confdefs.h >>conftest.$ac_ext
19736 cat >>conftest.$ac_ext <<_ACEOF
19737 /* end confdefs.h. */
19740 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19741 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19743 grep -v '^ *+' conftest.er1 >conftest.err
19745 cat conftest.err >&5
19746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747 (exit $ac_status); } >/dev/null; then
19748 if test -s conftest.err; then
19749 ac_cpp_err=$ac_c_preproc_warn_flag
19750 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19757 if test -z "$ac_cpp_err"; then
19758 ac_header_preproc=yes
19760 echo "$as_me: failed program was:" >&5
19761 sed 's/^/| /' conftest.$ac_ext >&5
19763 ac_header_preproc=no
19765 rm -f conftest.err conftest.$ac_ext
19766 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19767 echo "${ECHO_T}$ac_header_preproc" >&6
19769 # So? What about this header?
19770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19772 { echo "$as_me:$LINENO: WARNING: ldap.h: accepted by the compiler, rejected by the preprocessor!" >&5
19773 echo "$as_me: WARNING: ldap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19774 { echo "$as_me:$LINENO: WARNING: ldap.h: proceeding with the compiler's result" >&5
19775 echo "$as_me: WARNING: ldap.h: proceeding with the compiler's result" >&2;}
19776 ac_header_preproc=yes
19779 { echo "$as_me:$LINENO: WARNING: ldap.h: present but cannot be compiled" >&5
19780 echo "$as_me: WARNING: ldap.h: present but cannot be compiled" >&2;}
19781 { echo "$as_me:$LINENO: WARNING: ldap.h: check for missing prerequisite headers?" >&5
19782 echo "$as_me: WARNING: ldap.h: check for missing prerequisite headers?" >&2;}
19783 { echo "$as_me:$LINENO: WARNING: ldap.h: see the Autoconf documentation" >&5
19784 echo "$as_me: WARNING: ldap.h: see the Autoconf documentation" >&2;}
19785 { echo "$as_me:$LINENO: WARNING: ldap.h: section \"Present But Cannot Be Compiled\"" >&5
19786 echo "$as_me: WARNING: ldap.h: section \"Present But Cannot Be Compiled\"" >&2;}
19787 { echo "$as_me:$LINENO: WARNING: ldap.h: proceeding with the preprocessor's result" >&5
19788 echo "$as_me: WARNING: ldap.h: proceeding with the preprocessor's result" >&2;}
19789 { echo "$as_me:$LINENO: WARNING: ldap.h: in the future, the compiler will take precedence" >&5
19790 echo "$as_me: WARNING: ldap.h: in the future, the compiler will take precedence" >&2;}
19793 ## ------------------------------------------ ##
19794 ## Report this to the AC_PACKAGE_NAME lists. ##
19795 ## ------------------------------------------ ##
19798 sed "s/^/$as_me: WARNING: /" >&2
19801 echo "$as_me:$LINENO: checking for ldap.h" >&5
19802 echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6
19803 if test "${ac_cv_header_ldap_h+set}" = set; then
19804 echo $ECHO_N "(cached) $ECHO_C" >&6
19806 ac_cv_header_ldap_h=$ac_header_preproc
19808 echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
19809 echo "${ECHO_T}$ac_cv_header_ldap_h" >&6
19814 cat >conftest.$ac_ext <<_ACEOF
19817 cat confdefs.h >>conftest.$ac_ext
19818 cat >>conftest.$ac_ext <<_ACEOF
19819 /* end confdefs.h. */
19823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19824 $EGREP "ldap_add_ext" >/dev/null 2>&1; then
19830 echo " didn't find ldap_add_ext in ldap.h!";
19831 echo " Check for the right version (>= 2.0) of the OpenLDAP includes";
19832 echo " or try --with-ldap-includes option.";
19838 if test "${ac_cv_header_lber_h+set}" = set; then
19839 echo "$as_me:$LINENO: checking for lber.h" >&5
19840 echo $ECHO_N "checking for lber.h... $ECHO_C" >&6
19841 if test "${ac_cv_header_lber_h+set}" = set; then
19842 echo $ECHO_N "(cached) $ECHO_C" >&6
19844 echo "$as_me:$LINENO: result: $ac_cv_header_lber_h" >&5
19845 echo "${ECHO_T}$ac_cv_header_lber_h" >&6
19847 # Is the header compilable?
19848 echo "$as_me:$LINENO: checking lber.h usability" >&5
19849 echo $ECHO_N "checking lber.h usability... $ECHO_C" >&6
19850 cat >conftest.$ac_ext <<_ACEOF
19853 cat confdefs.h >>conftest.$ac_ext
19854 cat >>conftest.$ac_ext <<_ACEOF
19855 /* end confdefs.h. */
19856 $ac_includes_default
19859 rm -f conftest.$ac_objext
19860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19861 (eval $ac_compile) 2>conftest.er1
19863 grep -v '^ *+' conftest.er1 >conftest.err
19865 cat conftest.err >&5
19866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); } &&
19868 { ac_try='test -z "$ac_c_werror_flag"
19869 || test ! -s conftest.err'
19870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19871 (eval $ac_try) 2>&5
19873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874 (exit $ac_status); }; } &&
19875 { ac_try='test -s conftest.$ac_objext'
19876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19877 (eval $ac_try) 2>&5
19879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880 (exit $ac_status); }; }; then
19881 ac_header_compiler=yes
19883 echo "$as_me: failed program was:" >&5
19884 sed 's/^/| /' conftest.$ac_ext >&5
19886 ac_header_compiler=no
19888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19889 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19890 echo "${ECHO_T}$ac_header_compiler" >&6
19892 # Is the header present?
19893 echo "$as_me:$LINENO: checking lber.h presence" >&5
19894 echo $ECHO_N "checking lber.h presence... $ECHO_C" >&6
19895 cat >conftest.$ac_ext <<_ACEOF
19898 cat confdefs.h >>conftest.$ac_ext
19899 cat >>conftest.$ac_ext <<_ACEOF
19900 /* end confdefs.h. */
19903 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19904 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19906 grep -v '^ *+' conftest.er1 >conftest.err
19908 cat conftest.err >&5
19909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910 (exit $ac_status); } >/dev/null; then
19911 if test -s conftest.err; then
19912 ac_cpp_err=$ac_c_preproc_warn_flag
19913 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19920 if test -z "$ac_cpp_err"; then
19921 ac_header_preproc=yes
19923 echo "$as_me: failed program was:" >&5
19924 sed 's/^/| /' conftest.$ac_ext >&5
19926 ac_header_preproc=no
19928 rm -f conftest.err conftest.$ac_ext
19929 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19930 echo "${ECHO_T}$ac_header_preproc" >&6
19932 # So? What about this header?
19933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19935 { echo "$as_me:$LINENO: WARNING: lber.h: accepted by the compiler, rejected by the preprocessor!" >&5
19936 echo "$as_me: WARNING: lber.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19937 { echo "$as_me:$LINENO: WARNING: lber.h: proceeding with the compiler's result" >&5
19938 echo "$as_me: WARNING: lber.h: proceeding with the compiler's result" >&2;}
19939 ac_header_preproc=yes
19942 { echo "$as_me:$LINENO: WARNING: lber.h: present but cannot be compiled" >&5
19943 echo "$as_me: WARNING: lber.h: present but cannot be compiled" >&2;}
19944 { echo "$as_me:$LINENO: WARNING: lber.h: check for missing prerequisite headers?" >&5
19945 echo "$as_me: WARNING: lber.h: check for missing prerequisite headers?" >&2;}
19946 { echo "$as_me:$LINENO: WARNING: lber.h: see the Autoconf documentation" >&5
19947 echo "$as_me: WARNING: lber.h: see the Autoconf documentation" >&2;}
19948 { echo "$as_me:$LINENO: WARNING: lber.h: section \"Present But Cannot Be Compiled\"" >&5
19949 echo "$as_me: WARNING: lber.h: section \"Present But Cannot Be Compiled\"" >&2;}
19950 { echo "$as_me:$LINENO: WARNING: lber.h: proceeding with the preprocessor's result" >&5
19951 echo "$as_me: WARNING: lber.h: proceeding with the preprocessor's result" >&2;}
19952 { echo "$as_me:$LINENO: WARNING: lber.h: in the future, the compiler will take precedence" >&5
19953 echo "$as_me: WARNING: lber.h: in the future, the compiler will take precedence" >&2;}
19956 ## ------------------------------------------ ##
19957 ## Report this to the AC_PACKAGE_NAME lists. ##
19958 ## ------------------------------------------ ##
19961 sed "s/^/$as_me: WARNING: /" >&2
19964 echo "$as_me:$LINENO: checking for lber.h" >&5
19965 echo $ECHO_N "checking for lber.h... $ECHO_C" >&6
19966 if test "${ac_cv_header_lber_h+set}" = set; then
19967 echo $ECHO_N "(cached) $ECHO_C" >&6
19969 ac_cv_header_lber_h=$ac_header_preproc
19971 echo "$as_me:$LINENO: result: $ac_cv_header_lber_h" >&5
19972 echo "${ECHO_T}$ac_cv_header_lber_h" >&6
19977 cat >conftest.$ac_ext <<_ACEOF
19980 cat confdefs.h >>conftest.$ac_ext
19981 cat >>conftest.$ac_ext <<_ACEOF
19982 /* end confdefs.h. */
19986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19987 $EGREP "ber_strdup" >/dev/null 2>&1; then
19993 echo " didn't find ber_strdup in lber.h!";
19994 echo " Check for the right version (>= 2.0) of the OpenLDAP includes";
19995 echo " or try --with-ldap-includes option.";
20004 ac_config_files="$ac_config_files Makefile src/Makefile examples/Makefile"
20005 cat >confcache <<\_ACEOF
20006 # This file is a shell script that caches the results of configure
20007 # tests run on this system so they can be shared between configure
20008 # scripts and configure runs, see configure's option --config-cache.
20009 # It is not useful on other systems. If it contains results you don't
20010 # want to keep, you may remove or edit it.
20012 # config.status only pays attention to the cache file if you give it
20013 # the --recheck option to rerun configure.
20015 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20016 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20017 # following values.
20021 # The following way of writing the cache mishandles newlines in values,
20022 # but we know of no workaround that is simple, portable, and efficient.
20023 # So, don't put newlines in cache variables' values.
20024 # Ultrix sh set writes to stderr and can't be redirected directly,
20025 # and sets the high bit in the cache file unless we assign to the vars.
20028 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20030 # `set' does not quote correctly, so add quotes (double-quote
20031 # substitution turns \\\\ into \\, and sed turns \\ into \).
20034 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20037 # `set' quotes correctly as required by POSIX, so do not add quotes.
20039 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20046 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20048 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20050 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20051 if test -w $cache_file; then
20052 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20053 cat confcache >$cache_file
20055 echo "not updating unwritable cache $cache_file"
20060 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20061 # Let make expand exec_prefix.
20062 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20064 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20065 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20066 # trailing colons and then remove the whole line if VPATH becomes empty
20067 # (actually we leave an empty line to preserve line numbers).
20068 if test "x$srcdir" = x.; then
20069 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20070 s/:*\$(srcdir):*/:/;
20071 s/:*\${srcdir}:*/:/;
20073 s/^\([^=]*=[ ]*\):*/\1/;
20079 DEFS=-DHAVE_CONFIG_H
20083 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20084 # 1. Remove the extension, and $U if already installed.
20085 ac_i=`echo "$ac_i" |
20086 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20088 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20089 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20091 LIBOBJS=$ac_libobjs
20093 LTLIBOBJS=$ac_ltlibobjs
20096 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20097 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20098 Usually this means the macro was only invoked conditionally." >&5
20099 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20100 Usually this means the macro was only invoked conditionally." >&2;}
20101 { (exit 1); exit 1; }; }
20103 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20104 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20105 Usually this means the macro was only invoked conditionally." >&5
20106 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20107 Usually this means the macro was only invoked conditionally." >&2;}
20108 { (exit 1); exit 1; }; }
20110 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20111 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20112 Usually this means the macro was only invoked conditionally." >&5
20113 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20114 Usually this means the macro was only invoked conditionally." >&2;}
20115 { (exit 1); exit 1; }; }
20118 : ${CONFIG_STATUS=./config.status}
20119 ac_clean_files_save=$ac_clean_files
20120 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20121 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20122 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20123 cat >$CONFIG_STATUS <<_ACEOF
20125 # Generated by $as_me.
20126 # Run this file to recreate the current configuration.
20127 # Compiler output produced by configure, useful for debugging
20128 # configure, is in config.log if it exists.
20131 ac_cs_recheck=false
20133 SHELL=\${CONFIG_SHELL-$SHELL}
20136 cat >>$CONFIG_STATUS <<\_ACEOF
20137 ## --------------------- ##
20138 ## M4sh Initialization. ##
20139 ## --------------------- ##
20141 # Be Bourne compatible
20142 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20145 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20146 # is contrary to our usage. Disable this feature.
20147 alias -g '${1+"$@"}'='"$@"'
20148 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20151 DUALCASE=1; export DUALCASE # for MKS sh
20153 # Support unset when possible.
20154 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20161 # Work around bugs in pre-3.0 UWIN ksh.
20162 $as_unset ENV MAIL MAILPATH
20169 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20170 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20171 LC_TELEPHONE LC_TIME
20173 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20174 eval $as_var=C; export $as_var
20180 # Required to use basename.
20181 if expr a : '\(a\)' >/dev/null 2>&1; then
20187 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20188 as_basename=basename
20194 # Name of the executable.
20195 as_me=`$as_basename "$0" ||
20196 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20197 X"$0" : 'X\(//\)$' \| \
20198 X"$0" : 'X\(/\)$' \| \
20199 . : '\(.\)' 2>/dev/null ||
20201 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20202 /^X\/\(\/\/\)$/{ s//\1/; q; }
20203 /^X\/\(\/\).*/{ s//\1/; q; }
20207 # PATH needs CR, and LINENO needs CR and PATH.
20208 # Avoid depending upon Character Ranges.
20209 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20210 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20211 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20212 as_cr_digits='0123456789'
20213 as_cr_alnum=$as_cr_Letters$as_cr_digits
20215 # The user is always right.
20216 if test "${PATH_SEPARATOR+set}" != set; then
20217 echo "#! /bin/sh" >conf$$.sh
20218 echo "exit 0" >>conf$$.sh
20220 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20229 as_lineno_1=$LINENO
20230 as_lineno_2=$LINENO
20231 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20232 test "x$as_lineno_1" != "x$as_lineno_2" &&
20233 test "x$as_lineno_3" = "x$as_lineno_2" || {
20234 # Find who we are. Look in the path if we contain no path at all
20237 *[\\/]* ) as_myself=$0 ;;
20238 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20239 for as_dir in $PATH
20242 test -z "$as_dir" && as_dir=.
20243 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20248 # We did not find ourselves, most probably we were run as `sh COMMAND'
20249 # in which case we are not to be found in the path.
20250 if test "x$as_myself" = x; then
20253 if test ! -f "$as_myself"; then
20254 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20255 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20256 { (exit 1); exit 1; }; }
20258 case $CONFIG_SHELL in
20260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20261 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20264 test -z "$as_dir" && as_dir=.
20265 for as_base in sh bash ksh sh5; do
20268 if ("$as_dir/$as_base" -c '
20269 as_lineno_1=$LINENO
20270 as_lineno_2=$LINENO
20271 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20272 test "x$as_lineno_1" != "x$as_lineno_2" &&
20273 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20274 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20275 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20276 CONFIG_SHELL=$as_dir/$as_base
20277 export CONFIG_SHELL
20278 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20286 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20287 # uniformly replaced by the line number. The first 'sed' inserts a
20288 # line-number line before each line; the second 'sed' does the real
20289 # work. The second script uses 'N' to pair each line-number line
20290 # with the numbered line, and appends trailing '-' during
20291 # substitution so that $LINENO is not a special case at line end.
20292 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20293 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20294 sed '=' <$as_myself |
20299 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20302 s,^['$as_cr_digits']*\n,,
20303 ' >$as_me.lineno &&
20304 chmod +x $as_me.lineno ||
20305 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20306 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20307 { (exit 1); exit 1; }; }
20309 # Don't try to exec as it changes $[0], causing all sort of problems
20310 # (the dirname of $[0] is not the place where we might find the
20311 # original and so on. Autoconf is especially sensible to this).
20313 # Exit status is that of the last command.
20318 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20319 *c*,-n*) ECHO_N= ECHO_C='
20321 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20322 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20325 if expr a : '\(a\)' >/dev/null 2>&1; then
20331 rm -f conf$$ conf$$.exe conf$$.file
20333 if ln -s conf$$.file conf$$ 2>/dev/null; then
20334 # We could just check for DJGPP; but this test a) works b) is more generic
20335 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20336 if test -f conf$$.exe; then
20337 # Don't use ln at all; we don't have any links
20342 elif ln conf$$.file conf$$ 2>/dev/null; then
20347 rm -f conf$$ conf$$.exe conf$$.file
20349 if mkdir -p . 2>/dev/null; then
20352 test -d ./-p && rmdir ./-p
20356 as_executable_p="test -f"
20358 # Sed expression to map a string onto a valid CPP name.
20359 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20361 # Sed expression to map a string onto a valid variable name.
20362 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20366 # We need space, tab and new line, in precisely that order.
20376 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20377 # report actual input values of CONFIG_FILES etc. instead of their
20378 # values after options handling. Logging --version etc. is OK.
20382 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20383 ## Running $as_me. ##
20388 This file was extended by $as_me, which was
20389 generated by GNU Autoconf 2.59. Invocation command line was
20391 CONFIG_FILES = $CONFIG_FILES
20392 CONFIG_HEADERS = $CONFIG_HEADERS
20393 CONFIG_LINKS = $CONFIG_LINKS
20394 CONFIG_COMMANDS = $CONFIG_COMMANDS
20398 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20402 # Files that config.status was made for.
20403 if test -n "$ac_config_files"; then
20404 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20407 if test -n "$ac_config_headers"; then
20408 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20411 if test -n "$ac_config_links"; then
20412 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20415 if test -n "$ac_config_commands"; then
20416 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20419 cat >>$CONFIG_STATUS <<\_ACEOF
20422 \`$as_me' instantiates files from templates according to the
20423 current configuration.
20425 Usage: $0 [OPTIONS] [FILE]...
20427 -h, --help print this help, then exit
20428 -V, --version print version number, then exit
20429 -q, --quiet do not print progress messages
20430 -d, --debug don't remove temporary files
20431 --recheck update $as_me by reconfiguring in the same conditions
20432 --file=FILE[:TEMPLATE]
20433 instantiate the configuration file FILE
20434 --header=FILE[:TEMPLATE]
20435 instantiate the configuration header FILE
20437 Configuration files:
20440 Configuration headers:
20443 Configuration commands:
20446 Report bugs to <bug-autoconf@gnu.org>."
20449 cat >>$CONFIG_STATUS <<_ACEOF
20452 configured by $0, generated by GNU Autoconf 2.59,
20453 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20455 Copyright (C) 2003 Free Software Foundation, Inc.
20456 This config.status script is free software; the Free Software Foundation
20457 gives unlimited permission to copy, distribute and modify it."
20462 cat >>$CONFIG_STATUS <<\_ACEOF
20463 # If no file are specified by the user, then we need to provide default
20464 # value. By we need to know if files were specified by the user.
20470 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20471 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20479 *) # This is not an option, so the user has probably given explicit
20482 ac_need_defaults=false;;
20486 # Handling of the options.
20488 cat >>$CONFIG_STATUS <<\_ACEOF
20489 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20491 --version | --vers* | -V )
20492 echo "$ac_cs_version"; exit 0 ;;
20494 # Conflict between --help and --header
20495 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20496 Try \`$0 --help' for more information." >&5
20497 echo "$as_me: error: ambiguous option: $1
20498 Try \`$0 --help' for more information." >&2;}
20499 { (exit 1); exit 1; }; };;
20500 --help | --hel | -h )
20501 echo "$ac_cs_usage"; exit 0 ;;
20502 --debug | --d* | -d )
20504 --file | --fil | --fi | --f )
20506 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20507 ac_need_defaults=false;;
20508 --header | --heade | --head | --hea )
20510 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20511 ac_need_defaults=false;;
20512 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20513 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20516 # This is an error.
20517 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20518 Try \`$0 --help' for more information." >&5
20519 echo "$as_me: error: unrecognized option: $1
20520 Try \`$0 --help' for more information." >&2;}
20521 { (exit 1); exit 1; }; } ;;
20523 *) ac_config_targets="$ac_config_targets $1" ;;
20529 ac_configure_extra_args=
20531 if $ac_cs_silent; then
20533 ac_configure_extra_args="$ac_configure_extra_args --silent"
20537 cat >>$CONFIG_STATUS <<_ACEOF
20538 if \$ac_cs_recheck; then
20539 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20540 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20545 cat >>$CONFIG_STATUS <<_ACEOF
20547 # INIT-COMMANDS section.
20550 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20556 cat >>$CONFIG_STATUS <<\_ACEOF
20557 for ac_config_target in $ac_config_targets
20559 case "$ac_config_target" in
20560 # Handling of arguments.
20561 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20562 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20563 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
20564 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20565 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
20566 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20567 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20568 { (exit 1); exit 1; }; };;
20572 # If the user did not use the arguments to specify the items to instantiate,
20573 # then the envvar interface is used. Set only those that are not.
20574 # We use the long form for the default assignment because of an extremely
20575 # bizarre bug on SunOS 4.1.3.
20576 if $ac_need_defaults; then
20577 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20578 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20579 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20582 # Have a temporary directory for convenience. Make it in the build tree
20583 # simply because there is no reason to put it here, and in addition,
20584 # creating and moving files from /tmp can sometimes cause problems.
20585 # Create a temporary directory, and hook for its removal unless debugging.
20588 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20589 trap '{ (exit 1); exit 1; }' 1 2 13 15
20592 # Create a (secure) tmp directory for tmp files.
20595 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20596 test -n "$tmp" && test -d "$tmp"
20599 tmp=./confstat$$-$RANDOM
20600 (umask 077 && mkdir $tmp)
20603 echo "$me: cannot create a temporary directory in ." >&2
20604 { (exit 1); exit 1; }
20609 cat >>$CONFIG_STATUS <<_ACEOF
20612 # CONFIG_FILES section.
20615 # No need to generate the scripts if there are no CONFIG_FILES.
20616 # This happens for instance when ./config.status config.h
20617 if test -n "\$CONFIG_FILES"; then
20618 # Protect against being on the right side of a sed subst in config.status.
20619 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20620 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20621 s,@SHELL@,$SHELL,;t t
20622 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20623 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20624 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20625 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20626 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20627 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20628 s,@exec_prefix@,$exec_prefix,;t t
20629 s,@prefix@,$prefix,;t t
20630 s,@program_transform_name@,$program_transform_name,;t t
20631 s,@bindir@,$bindir,;t t
20632 s,@sbindir@,$sbindir,;t t
20633 s,@libexecdir@,$libexecdir,;t t
20634 s,@datadir@,$datadir,;t t
20635 s,@sysconfdir@,$sysconfdir,;t t
20636 s,@sharedstatedir@,$sharedstatedir,;t t
20637 s,@localstatedir@,$localstatedir,;t t
20638 s,@libdir@,$libdir,;t t
20639 s,@includedir@,$includedir,;t t
20640 s,@oldincludedir@,$oldincludedir,;t t
20641 s,@infodir@,$infodir,;t t
20642 s,@mandir@,$mandir,;t t
20643 s,@build_alias@,$build_alias,;t t
20644 s,@host_alias@,$host_alias,;t t
20645 s,@target_alias@,$target_alias,;t t
20646 s,@DEFS@,$DEFS,;t t
20647 s,@ECHO_C@,$ECHO_C,;t t
20648 s,@ECHO_N@,$ECHO_N,;t t
20649 s,@ECHO_T@,$ECHO_T,;t t
20650 s,@LIBS@,$LIBS,;t t
20651 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20652 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20653 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20654 s,@CYGPATH_W@,$CYGPATH_W,;t t
20655 s,@PACKAGE@,$PACKAGE,;t t
20656 s,@VERSION@,$VERSION,;t t
20657 s,@ACLOCAL@,$ACLOCAL,;t t
20658 s,@AUTOCONF@,$AUTOCONF,;t t
20659 s,@AUTOMAKE@,$AUTOMAKE,;t t
20660 s,@AUTOHEADER@,$AUTOHEADER,;t t
20661 s,@MAKEINFO@,$MAKEINFO,;t t
20662 s,@install_sh@,$install_sh,;t t
20663 s,@STRIP@,$STRIP,;t t
20664 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20665 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20666 s,@mkdir_p@,$mkdir_p,;t t
20668 s,@SET_MAKE@,$SET_MAKE,;t t
20669 s,@am__leading_dot@,$am__leading_dot,;t t
20670 s,@AMTAR@,$AMTAR,;t t
20671 s,@am__tar@,$am__tar,;t t
20672 s,@am__untar@,$am__untar,;t t
20674 s,@CXXFLAGS@,$CXXFLAGS,;t t
20675 s,@LDFLAGS@,$LDFLAGS,;t t
20676 s,@CPPFLAGS@,$CPPFLAGS,;t t
20677 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20678 s,@EXEEXT@,$EXEEXT,;t t
20679 s,@OBJEXT@,$OBJEXT,;t t
20680 s,@DEPDIR@,$DEPDIR,;t t
20681 s,@am__include@,$am__include,;t t
20682 s,@am__quote@,$am__quote,;t t
20683 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20684 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20685 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20686 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20687 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20688 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20689 s,@build@,$build,;t t
20690 s,@build_cpu@,$build_cpu,;t t
20691 s,@build_vendor@,$build_vendor,;t t
20692 s,@build_os@,$build_os,;t t
20693 s,@host@,$host,;t t
20694 s,@host_cpu@,$host_cpu,;t t
20695 s,@host_vendor@,$host_vendor,;t t
20696 s,@host_os@,$host_os,;t t
20698 s,@CFLAGS@,$CFLAGS,;t t
20699 s,@ac_ct_CC@,$ac_ct_CC,;t t
20700 s,@CCDEPMODE@,$CCDEPMODE,;t t
20701 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20702 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20703 s,@EGREP@,$EGREP,;t t
20704 s,@LN_S@,$LN_S,;t t
20705 s,@ECHO@,$ECHO,;t t
20707 s,@ac_ct_AR@,$ac_ct_AR,;t t
20708 s,@RANLIB@,$RANLIB,;t t
20709 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20711 s,@CXXCPP@,$CXXCPP,;t t
20713 s,@FFLAGS@,$FFLAGS,;t t
20714 s,@ac_ct_F77@,$ac_ct_F77,;t t
20715 s,@LIBTOOL@,$LIBTOOL,;t t
20716 s,@LIBOBJS@,$LIBOBJS,;t t
20717 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20722 cat >>$CONFIG_STATUS <<\_ACEOF
20723 # Split the substitutions into bite-sized pieces for seds with
20724 # small command number limits, like on Digital OSF/1 and HP-UX.
20725 ac_max_sed_lines=48
20726 ac_sed_frag=1 # Number of current file.
20727 ac_beg=1 # First line for current file.
20728 ac_end=$ac_max_sed_lines # Line after last line for current file.
20731 while $ac_more_lines; do
20732 if test $ac_beg -gt 1; then
20733 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20735 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20737 if test ! -s $tmp/subs.frag; then
20738 ac_more_lines=false
20740 # The purpose of the label and of the branching condition is to
20741 # speed up the sed processing (if there are no `@' at all, there
20742 # is no need to browse any of the substitutions).
20743 # These are the two extra sed commands mentioned above.
20745 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20746 if test -z "$ac_sed_cmds"; then
20747 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20749 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20751 ac_sed_frag=`expr $ac_sed_frag + 1`
20753 ac_end=`expr $ac_end + $ac_max_sed_lines`
20756 if test -z "$ac_sed_cmds"; then
20759 fi # test -n "$CONFIG_FILES"
20762 cat >>$CONFIG_STATUS <<\_ACEOF
20763 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20764 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20766 - | *:- | *:-:* ) # input from stdin
20768 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20769 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20770 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20771 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20772 * ) ac_file_in=$ac_file.in ;;
20775 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20776 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20777 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20778 X"$ac_file" : 'X\(//\)[^/]' \| \
20779 X"$ac_file" : 'X\(//\)$' \| \
20780 X"$ac_file" : 'X\(/\)' \| \
20781 . : '\(.\)' 2>/dev/null ||
20783 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20784 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20785 /^X\(\/\/\)$/{ s//\1/; q; }
20786 /^X\(\/\).*/{ s//\1/; q; }
20788 { if $as_mkdir_p; then
20793 while test ! -d "$as_dir"; do
20794 as_dirs="$as_dir $as_dirs"
20795 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20796 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20797 X"$as_dir" : 'X\(//\)[^/]' \| \
20798 X"$as_dir" : 'X\(//\)$' \| \
20799 X"$as_dir" : 'X\(/\)' \| \
20800 . : '\(.\)' 2>/dev/null ||
20802 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20803 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20804 /^X\(\/\/\)$/{ s//\1/; q; }
20805 /^X\(\/\).*/{ s//\1/; q; }
20808 test ! -n "$as_dirs" || mkdir $as_dirs
20809 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20810 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20811 { (exit 1); exit 1; }; }; }
20815 if test "$ac_dir" != .; then
20816 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20817 # A "../" for each directory in $ac_dir_suffix.
20818 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20820 ac_dir_suffix= ac_top_builddir=
20824 .) # No --srcdir option. We are building in place.
20826 if test -z "$ac_top_builddir"; then
20829 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20831 [\\/]* | ?:[\\/]* ) # Absolute path.
20832 ac_srcdir=$srcdir$ac_dir_suffix;
20833 ac_top_srcdir=$srcdir ;;
20834 *) # Relative path.
20835 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20836 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20839 # Do not use `cd foo && pwd` to compute absolute paths, because
20840 # the directories may not exist.
20842 .) ac_abs_builddir="$ac_dir";;
20845 .) ac_abs_builddir=`pwd`;;
20846 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20847 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20850 case $ac_abs_builddir in
20851 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20853 case ${ac_top_builddir}. in
20854 .) ac_abs_top_builddir=$ac_abs_builddir;;
20855 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20856 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20859 case $ac_abs_builddir in
20860 .) ac_abs_srcdir=$ac_srcdir;;
20863 .) ac_abs_srcdir=$ac_abs_builddir;;
20864 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20865 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20868 case $ac_abs_builddir in
20869 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20871 case $ac_top_srcdir in
20872 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20873 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20874 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20880 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20881 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20884 if test x"$ac_file" != x-; then
20885 { echo "$as_me:$LINENO: creating $ac_file" >&5
20886 echo "$as_me: creating $ac_file" >&6;}
20889 # Let's still pretend it is `configure' which instantiates (i.e., don't
20890 # use $as_me), people would be surprised to read:
20891 # /* config.h. Generated by config.status. */
20892 if test x"$ac_file" = x-; then
20895 configure_input="$ac_file. "
20897 configure_input=$configure_input"Generated from `echo $ac_file_in |
20898 sed 's,.*/,,'` by configure."
20900 # First look for the input files in the build tree, otherwise in the
20902 ac_file_inputs=`IFS=:
20903 for f in $ac_file_in; do
20905 -) echo $tmp/stdin ;;
20907 # Absolute (can't be DOS-style, as IFS=:)
20908 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20909 echo "$as_me: error: cannot find input file: $f" >&2;}
20910 { (exit 1); exit 1; }; }
20913 if test -f "$f"; then
20916 elif test -f "$srcdir/$f"; then
20921 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20922 echo "$as_me: error: cannot find input file: $f" >&2;}
20923 { (exit 1); exit 1; }; }
20926 done` || { (exit 1); exit 1; }
20928 cat >>$CONFIG_STATUS <<_ACEOF
20932 cat >>$CONFIG_STATUS <<\_ACEOF
20934 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20935 s,@configure_input@,$configure_input,;t t
20936 s,@srcdir@,$ac_srcdir,;t t
20937 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20938 s,@top_srcdir@,$ac_top_srcdir,;t t
20939 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20940 s,@builddir@,$ac_builddir,;t t
20941 s,@abs_builddir@,$ac_abs_builddir,;t t
20942 s,@top_builddir@,$ac_top_builddir,;t t
20943 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20944 s,@INSTALL@,$ac_INSTALL,;t t
20945 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20947 if test x"$ac_file" != x-; then
20948 mv $tmp/out $ac_file
20956 cat >>$CONFIG_STATUS <<\_ACEOF
20959 # CONFIG_HEADER section.
20962 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20963 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20965 # ac_d sets the value in "#define NAME VALUE" lines.
20966 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20967 ac_dB='[ ].*$,\1#\2'
20970 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20971 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20972 ac_uB='$,\1#\2define\3'
20976 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20977 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20979 - | *:- | *:-:* ) # input from stdin
20981 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20982 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20983 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20984 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20985 * ) ac_file_in=$ac_file.in ;;
20988 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20989 echo "$as_me: creating $ac_file" >&6;}
20991 # First look for the input files in the build tree, otherwise in the
20993 ac_file_inputs=`IFS=:
20994 for f in $ac_file_in; do
20996 -) echo $tmp/stdin ;;
20998 # Absolute (can't be DOS-style, as IFS=:)
20999 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21000 echo "$as_me: error: cannot find input file: $f" >&2;}
21001 { (exit 1); exit 1; }; }
21002 # Do quote $f, to prevent DOS paths from being IFS'd.
21005 if test -f "$f"; then
21008 elif test -f "$srcdir/$f"; then
21013 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21014 echo "$as_me: error: cannot find input file: $f" >&2;}
21015 { (exit 1); exit 1; }; }
21018 done` || { (exit 1); exit 1; }
21019 # Remove the trailing spaces.
21020 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21024 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21025 # `conftest.undefs', that substitutes the proper values into
21026 # config.h.in to produce config.h. The first handles `#define'
21027 # templates, and the second `#undef' templates.
21028 # And first: Protect against being on the right side of a sed subst in
21029 # config.status. Protect against being in an unquoted here document
21030 # in config.status.
21031 rm -f conftest.defines conftest.undefs
21032 # Using a here document instead of a string reduces the quoting nightmare.
21033 # Putting comments in sed scripts is not portable.
21035 # `end' is used to avoid that the second main sed command (meant for
21036 # 0-ary CPP macros) applies to n-ary macro definitions.
21037 # See the Autoconf documentation for `clear'.
21038 cat >confdef2sed.sed <<\_ACEOF
21043 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21045 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21048 # If some macros were called several times there might be several times
21049 # the same #defines, which is useless. Nevertheless, we may not want to
21050 # sort them, since we want the *last* AC-DEFINE to be honored.
21051 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21052 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21053 rm -f confdef2sed.sed
21055 # This sed command replaces #undef with comments. This is necessary, for
21056 # example, in the case of _POSIX_SOURCE, which is predefined and required
21057 # on some systems where configure will not decide to define it.
21058 cat >>conftest.undefs <<\_ACEOF
21059 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21062 # Break up conftest.defines because some shells have a limit on the size
21063 # of here documents, and old seds have small limits too (100 cmds).
21064 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21065 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21066 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21067 echo ' :' >>$CONFIG_STATUS
21068 rm -f conftest.tail
21069 while grep . conftest.defines >/dev/null
21071 # Write a limited-size here document to $tmp/defines.sed.
21072 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21073 # Speed up: don't consider the non `#define' lines.
21074 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21075 # Work around the forget-to-reset-the-flag bug.
21076 echo 't clr' >>$CONFIG_STATUS
21077 echo ': clr' >>$CONFIG_STATUS
21078 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21080 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21082 mv $tmp/out $tmp/in
21084 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21085 rm -f conftest.defines
21086 mv conftest.tail conftest.defines
21088 rm -f conftest.defines
21089 echo ' fi # grep' >>$CONFIG_STATUS
21090 echo >>$CONFIG_STATUS
21092 # Break up conftest.undefs because some shells have a limit on the size
21093 # of here documents, and old seds have small limits too (100 cmds).
21094 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21095 rm -f conftest.tail
21096 while grep . conftest.undefs >/dev/null
21098 # Write a limited-size here document to $tmp/undefs.sed.
21099 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21100 # Speed up: don't consider the non `#undef'
21101 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21102 # Work around the forget-to-reset-the-flag bug.
21103 echo 't clr' >>$CONFIG_STATUS
21104 echo ': clr' >>$CONFIG_STATUS
21105 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21107 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21109 mv $tmp/out $tmp/in
21111 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21112 rm -f conftest.undefs
21113 mv conftest.tail conftest.undefs
21115 rm -f conftest.undefs
21117 cat >>$CONFIG_STATUS <<\_ACEOF
21118 # Let's still pretend it is `configure' which instantiates (i.e., don't
21119 # use $as_me), people would be surprised to read:
21120 # /* config.h. Generated by config.status. */
21121 if test x"$ac_file" = x-; then
21122 echo "/* Generated by configure. */" >$tmp/config.h
21124 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21126 cat $tmp/in >>$tmp/config.h
21128 if test x"$ac_file" != x-; then
21129 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21130 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21131 echo "$as_me: $ac_file is unchanged" >&6;}
21133 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21134 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21135 X"$ac_file" : 'X\(//\)[^/]' \| \
21136 X"$ac_file" : 'X\(//\)$' \| \
21137 X"$ac_file" : 'X\(/\)' \| \
21138 . : '\(.\)' 2>/dev/null ||
21140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21141 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21142 /^X\(\/\/\)$/{ s//\1/; q; }
21143 /^X\(\/\).*/{ s//\1/; q; }
21145 { if $as_mkdir_p; then
21150 while test ! -d "$as_dir"; do
21151 as_dirs="$as_dir $as_dirs"
21152 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21153 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21154 X"$as_dir" : 'X\(//\)[^/]' \| \
21155 X"$as_dir" : 'X\(//\)$' \| \
21156 X"$as_dir" : 'X\(/\)' \| \
21157 . : '\(.\)' 2>/dev/null ||
21159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21160 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21161 /^X\(\/\/\)$/{ s//\1/; q; }
21162 /^X\(\/\).*/{ s//\1/; q; }
21165 test ! -n "$as_dirs" || mkdir $as_dirs
21166 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21167 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21168 { (exit 1); exit 1; }; }; }
21171 mv $tmp/config.h $ac_file
21175 rm -f $tmp/config.h
21177 # Compute $ac_file's index in $config_headers.
21179 for _am_header in $config_headers :; do
21180 case $_am_header in
21181 $ac_file | $ac_file:* )
21184 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21187 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21188 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21189 X$ac_file : 'X\(//\)[^/]' \| \
21190 X$ac_file : 'X\(//\)$' \| \
21191 X$ac_file : 'X\(/\)' \| \
21192 . : '\(.\)' 2>/dev/null ||
21194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21195 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21196 /^X\(\/\/\)$/{ s//\1/; q; }
21197 /^X\(\/\).*/{ s//\1/; q; }
21198 s/.*/./; q'`/stamp-h$_am_stamp_count
21201 cat >>$CONFIG_STATUS <<\_ACEOF
21204 # CONFIG_COMMANDS section.
21206 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21207 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21208 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21209 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21210 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21211 X"$ac_dest" : 'X\(//\)[^/]' \| \
21212 X"$ac_dest" : 'X\(//\)$' \| \
21213 X"$ac_dest" : 'X\(/\)' \| \
21214 . : '\(.\)' 2>/dev/null ||
21216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21217 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21218 /^X\(\/\/\)$/{ s//\1/; q; }
21219 /^X\(\/\).*/{ s//\1/; q; }
21221 { if $as_mkdir_p; then
21226 while test ! -d "$as_dir"; do
21227 as_dirs="$as_dir $as_dirs"
21228 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21229 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21230 X"$as_dir" : 'X\(//\)[^/]' \| \
21231 X"$as_dir" : 'X\(//\)$' \| \
21232 X"$as_dir" : 'X\(/\)' \| \
21233 . : '\(.\)' 2>/dev/null ||
21235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21236 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21237 /^X\(\/\/\)$/{ s//\1/; q; }
21238 /^X\(\/\).*/{ s//\1/; q; }
21241 test ! -n "$as_dirs" || mkdir $as_dirs
21242 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21243 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21244 { (exit 1); exit 1; }; }; }
21248 if test "$ac_dir" != .; then
21249 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21250 # A "../" for each directory in $ac_dir_suffix.
21251 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21253 ac_dir_suffix= ac_top_builddir=
21257 .) # No --srcdir option. We are building in place.
21259 if test -z "$ac_top_builddir"; then
21262 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21264 [\\/]* | ?:[\\/]* ) # Absolute path.
21265 ac_srcdir=$srcdir$ac_dir_suffix;
21266 ac_top_srcdir=$srcdir ;;
21267 *) # Relative path.
21268 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21269 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21272 # Do not use `cd foo && pwd` to compute absolute paths, because
21273 # the directories may not exist.
21275 .) ac_abs_builddir="$ac_dir";;
21278 .) ac_abs_builddir=`pwd`;;
21279 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21280 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21283 case $ac_abs_builddir in
21284 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21286 case ${ac_top_builddir}. in
21287 .) ac_abs_top_builddir=$ac_abs_builddir;;
21288 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21289 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21292 case $ac_abs_builddir in
21293 .) ac_abs_srcdir=$ac_srcdir;;
21296 .) ac_abs_srcdir=$ac_abs_builddir;;
21297 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21298 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21301 case $ac_abs_builddir in
21302 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21304 case $ac_top_srcdir in
21305 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21306 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21307 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21312 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21313 echo "$as_me: executing $ac_dest commands" >&6;}
21315 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21316 # Strip MF so we end up with the name of the file.
21317 mf=`echo "$mf" | sed -e 's/:.*$//'`
21318 # Check whether this is an Automake generated Makefile or not.
21319 # We used to match only the files named `Makefile.in', but
21320 # some people rename them; so instead we look at the file content.
21321 # Grep'ing the first line is not enough: some people post-process
21322 # each Makefile.in and add a new line on top of each file to say so.
21323 # So let's grep whole file.
21324 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21325 dirpart=`(dirname "$mf") 2>/dev/null ||
21326 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21327 X"$mf" : 'X\(//\)[^/]' \| \
21328 X"$mf" : 'X\(//\)$' \| \
21329 X"$mf" : 'X\(/\)' \| \
21330 . : '\(.\)' 2>/dev/null ||
21332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21333 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21334 /^X\(\/\/\)$/{ s//\1/; q; }
21335 /^X\(\/\).*/{ s//\1/; q; }
21340 # Extract the definition of DEPDIR, am__include, and am__quote
21341 # from the Makefile without running `make'.
21342 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21343 test -z "$DEPDIR" && continue
21344 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21345 test -z "am__include" && continue
21346 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21347 # When using ansi2knr, U may be empty or an underscore; expand it
21348 U=`sed -n 's/^U = //p' < "$mf"`
21349 # Find all dependency output files, they are included files with
21350 # $(DEPDIR) in their names. We invoke sed twice because it is the
21351 # simplest approach to changing $(DEPDIR) to its actual value in the
21353 for file in `sed -n "
21354 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21355 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21356 # Make sure the directory exists.
21357 test -f "$dirpart/$file" && continue
21358 fdir=`(dirname "$file") 2>/dev/null ||
21359 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21360 X"$file" : 'X\(//\)[^/]' \| \
21361 X"$file" : 'X\(//\)$' \| \
21362 X"$file" : 'X\(/\)' \| \
21363 . : '\(.\)' 2>/dev/null ||
21365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21366 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21367 /^X\(\/\/\)$/{ s//\1/; q; }
21368 /^X\(\/\).*/{ s//\1/; q; }
21370 { if $as_mkdir_p; then
21371 mkdir -p $dirpart/$fdir
21373 as_dir=$dirpart/$fdir
21375 while test ! -d "$as_dir"; do
21376 as_dirs="$as_dir $as_dirs"
21377 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21378 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21379 X"$as_dir" : 'X\(//\)[^/]' \| \
21380 X"$as_dir" : 'X\(//\)$' \| \
21381 X"$as_dir" : 'X\(/\)' \| \
21382 . : '\(.\)' 2>/dev/null ||
21384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21385 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21386 /^X\(\/\/\)$/{ s//\1/; q; }
21387 /^X\(\/\).*/{ s//\1/; q; }
21390 test ! -n "$as_dirs" || mkdir $as_dirs
21391 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21392 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21393 { (exit 1); exit 1; }; }; }
21395 # echo "creating $dirpart/$file"
21396 echo '# dummy' > "$dirpart/$file"
21404 cat >>$CONFIG_STATUS <<\_ACEOF
21406 { (exit 0); exit 0; }
21408 chmod +x $CONFIG_STATUS
21409 ac_clean_files=$ac_clean_files_save
21412 # configure is writing to config.log, and then calls config.status.
21413 # config.status does its own redirection, appending to config.log.
21414 # Unfortunately, on DOS this fails, as config.log is still kept open
21415 # by configure, so config.status won't be able to write to it; its
21416 # output is simply discarded. So we exec the FD to /dev/null,
21417 # effectively closing config.log, so it can be properly (re)opened and
21418 # appended to by config.status. When coming back to configure, we
21419 # need to make the FD available again.
21420 if test "$no_create" != yes; then
21422 ac_config_status_args=
21423 test "$silent" = yes &&
21424 ac_config_status_args="$ac_config_status_args --quiet"
21426 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21428 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21429 # would make configure fail if this is the last instruction.
21430 $ac_cs_success || { (exit 1); exit 1; }