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`
5510 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5513 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5514 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5515 # nice to cause kernel panics so lets avoid the loop below.
5516 # First set a reasonable default.
5517 lt_cv_sys_max_cmd_len=16384
5519 if test -x /sbin/sysconfig; then
5520 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5521 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5526 # If test is not a shell built-in, we'll probably end up computing a
5527 # maximum length that is only half of the actual maximum length, but
5529 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5530 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5531 = "XX$teststring") >/dev/null 2>&1 &&
5532 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5533 lt_cv_sys_max_cmd_len=$new_result &&
5534 test $i != 17 # 1/2 MB should be enough
5537 teststring=$teststring$teststring
5540 # Add a significant safety factor because C++ compilers can tack on massive
5541 # amounts of additional arguments before passing them to the linker.
5542 # It appears as though 1/2 is a usable value.
5543 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5549 if test -n $lt_cv_sys_max_cmd_len ; then
5550 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5551 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5553 echo "$as_me:$LINENO: result: none" >&5
5554 echo "${ECHO_T}none" >&6
5560 # Check for command to grab the raw symbol name followed by C symbol from nm.
5561 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5562 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5563 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5564 echo $ECHO_N "(cached) $ECHO_C" >&6
5567 # These are sane defaults that work on at least a few old systems.
5568 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5570 # Character class describing NM global symbol codes.
5571 symcode='[BCDEGRST]'
5573 # Regexp to match symbols that can be accessed directly from C.
5574 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5576 # Transform an extracted symbol line into a proper C declaration
5577 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5579 # Transform an extracted symbol line into symbol name and symbol address
5580 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'"
5582 # Define system-specific variables.
5587 cygwin* | mingw* | pw32*)
5588 symcode='[ABCDGISTW]'
5590 hpux*) # Its linker distinguishes data from code symbols
5591 if test "$host_cpu" = ia64; then
5592 symcode='[ABCDEGRST]'
5594 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5595 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'"
5598 if test "$host_cpu" = ia64; then
5599 symcode='[ABCDGIRSTW]'
5600 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5601 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'"
5605 symcode='[BCDEGRST]'
5608 symcode='[BCDEGQRST]'
5618 # Handle CRLF in mingw tool chain
5622 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5626 # If we're using GNU nm, then use its standard symbol codes.
5627 case `$NM -V 2>&1` in
5628 *GNU* | *'with BFD'*)
5629 symcode='[ABCDGIRSTW]' ;;
5632 # Try without a prefix undercore, then with it.
5633 for ac_symprfx in "" "_"; do
5635 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5636 symxfrm="\\1 $ac_symprfx\\2 \\2"
5638 # Write the raw and C identifiers.
5639 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5641 # Check to see that the pipe works correctly.
5645 cat > conftest.$ac_ext <<EOF
5650 void nm_test_func(){}
5654 int main(){nm_test_var='a';nm_test_func();return(0);}
5657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5658 (eval $ac_compile) 2>&5
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); }; then
5662 # Now try to grab the symbols.
5664 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5665 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } && test -s "$nlist"; then
5669 # Try sorting and uniquifying the output.
5670 if sort "$nlist" | uniq > "$nlist"T; then
5671 mv -f "$nlist"T "$nlist"
5676 # Make sure that we snagged all the symbols we need.
5677 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5678 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5679 cat <<EOF > conftest.$ac_ext
5685 # Now generate the symbol file.
5686 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5688 cat <<EOF >> conftest.$ac_ext
5689 #if defined (__STDC__) && __STDC__
5690 # define lt_ptr_t void *
5692 # define lt_ptr_t char *
5696 /* The mapping between symbol names and symbols. */
5701 lt_preloaded_symbols[] =
5704 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5705 cat <<\EOF >> conftest.$ac_ext
5713 # Now try linking the two files.
5714 mv conftest.$ac_objext conftstm.$ac_objext
5715 lt_save_LIBS="$LIBS"
5716 lt_save_CFLAGS="$CFLAGS"
5717 LIBS="conftstm.$ac_objext"
5718 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5720 (eval $ac_link) 2>&5
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5726 LIBS="$lt_save_LIBS"
5727 CFLAGS="$lt_save_CFLAGS"
5729 echo "cannot find nm_test_func in $nlist" >&5
5732 echo "cannot find nm_test_var in $nlist" >&5
5735 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5738 echo "$progname: failed program was:" >&5
5739 cat conftest.$ac_ext >&5
5741 rm -f conftest* conftst*
5743 # Do not use the global_symbol_pipe unless it works.
5744 if test "$pipe_works" = yes; then
5747 lt_cv_sys_global_symbol_pipe=
5753 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5754 lt_cv_sys_global_symbol_to_cdecl=
5756 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5757 echo "$as_me:$LINENO: result: failed" >&5
5758 echo "${ECHO_T}failed" >&6
5760 echo "$as_me:$LINENO: result: ok" >&5
5761 echo "${ECHO_T}ok" >&6
5764 echo "$as_me:$LINENO: checking for objdir" >&5
5765 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5766 if test "${lt_cv_objdir+set}" = set; then
5767 echo $ECHO_N "(cached) $ECHO_C" >&6
5769 rm -f .libs 2>/dev/null
5770 mkdir .libs 2>/dev/null
5771 if test -d .libs; then
5774 # MS-DOS does not allow filenames that begin with a dot.
5777 rmdir .libs 2>/dev/null
5779 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5780 echo "${ECHO_T}$lt_cv_objdir" >&6
5781 objdir=$lt_cv_objdir
5789 # AIX sometimes has problems with the GCC collect2 program. For some
5790 # reason, if we set the COLLECT_NAMES environment variable, the problems
5791 # vanish in a puff of smoke.
5792 if test "X${COLLECT_NAMES+set}" != Xset; then
5794 export COLLECT_NAMES
5799 # Sed substitution that helps us do robust quoting. It backslashifies
5800 # metacharacters that are still active within double-quoted strings.
5801 Xsed='sed -e 1s/^X//'
5802 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5804 # Same as above, but do not quote variable references.
5805 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5807 # Sed substitution to delay expansion of an escaped shell variable in a
5808 # double_quote_subst'ed string.
5809 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5811 # Sed substitution to avoid accidental globbing in evaled expressions
5812 no_glob_subst='s/\*/\\\*/g'
5818 default_ofile=libtool
5819 can_build_shared=yes
5821 # All known linkers require a `.a' archive for static linking (except M$VC,
5822 # which needs '.lib').
5824 ltmain="$ac_aux_dir/ltmain.sh"
5825 ofile="$default_ofile"
5826 with_gnu_ld="$lt_cv_prog_gnu_ld"
5828 if test -n "$ac_tool_prefix"; then
5829 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5830 set dummy ${ac_tool_prefix}ar; ac_word=$2
5831 echo "$as_me:$LINENO: checking for $ac_word" >&5
5832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5833 if test "${ac_cv_prog_AR+set}" = set; then
5834 echo $ECHO_N "(cached) $ECHO_C" >&6
5836 if test -n "$AR"; then
5837 ac_cv_prog_AR="$AR" # Let the user override the test.
5839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843 test -z "$as_dir" && as_dir=.
5844 for ac_exec_ext in '' $ac_executable_extensions; do
5845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5846 ac_cv_prog_AR="${ac_tool_prefix}ar"
5847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5856 if test -n "$AR"; then
5857 echo "$as_me:$LINENO: result: $AR" >&5
5858 echo "${ECHO_T}$AR" >&6
5860 echo "$as_me:$LINENO: result: no" >&5
5861 echo "${ECHO_T}no" >&6
5865 if test -z "$ac_cv_prog_AR"; then
5867 # Extract the first word of "ar", so it can be a program name with args.
5868 set dummy ar; ac_word=$2
5869 echo "$as_me:$LINENO: checking for $ac_word" >&5
5870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5871 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5872 echo $ECHO_N "(cached) $ECHO_C" >&6
5874 if test -n "$ac_ct_AR"; then
5875 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881 test -z "$as_dir" && as_dir=.
5882 for ac_exec_ext in '' $ac_executable_extensions; do
5883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5884 ac_cv_prog_ac_ct_AR="ar"
5885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5891 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5894 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5895 if test -n "$ac_ct_AR"; then
5896 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5897 echo "${ECHO_T}$ac_ct_AR" >&6
5899 echo "$as_me:$LINENO: result: no" >&5
5900 echo "${ECHO_T}no" >&6
5908 if test -n "$ac_tool_prefix"; then
5909 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5910 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5911 echo "$as_me:$LINENO: checking for $ac_word" >&5
5912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5913 if test "${ac_cv_prog_RANLIB+set}" = set; then
5914 echo $ECHO_N "(cached) $ECHO_C" >&6
5916 if test -n "$RANLIB"; then
5917 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923 test -z "$as_dir" && as_dir=.
5924 for ac_exec_ext in '' $ac_executable_extensions; do
5925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5926 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5935 RANLIB=$ac_cv_prog_RANLIB
5936 if test -n "$RANLIB"; then
5937 echo "$as_me:$LINENO: result: $RANLIB" >&5
5938 echo "${ECHO_T}$RANLIB" >&6
5940 echo "$as_me:$LINENO: result: no" >&5
5941 echo "${ECHO_T}no" >&6
5945 if test -z "$ac_cv_prog_RANLIB"; then
5946 ac_ct_RANLIB=$RANLIB
5947 # Extract the first word of "ranlib", so it can be a program name with args.
5948 set dummy ranlib; ac_word=$2
5949 echo "$as_me:$LINENO: checking for $ac_word" >&5
5950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5951 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5952 echo $ECHO_N "(cached) $ECHO_C" >&6
5954 if test -n "$ac_ct_RANLIB"; then
5955 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5961 test -z "$as_dir" && as_dir=.
5962 for ac_exec_ext in '' $ac_executable_extensions; do
5963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5964 ac_cv_prog_ac_ct_RANLIB="ranlib"
5965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5971 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5974 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5975 if test -n "$ac_ct_RANLIB"; then
5976 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5977 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5979 echo "$as_me:$LINENO: result: no" >&5
5980 echo "${ECHO_T}no" >&6
5983 RANLIB=$ac_ct_RANLIB
5985 RANLIB="$ac_cv_prog_RANLIB"
5988 if test -n "$ac_tool_prefix"; then
5989 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5990 set dummy ${ac_tool_prefix}strip; ac_word=$2
5991 echo "$as_me:$LINENO: checking for $ac_word" >&5
5992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5993 if test "${ac_cv_prog_STRIP+set}" = set; then
5994 echo $ECHO_N "(cached) $ECHO_C" >&6
5996 if test -n "$STRIP"; then
5997 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6003 test -z "$as_dir" && as_dir=.
6004 for ac_exec_ext in '' $ac_executable_extensions; do
6005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6006 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6015 STRIP=$ac_cv_prog_STRIP
6016 if test -n "$STRIP"; then
6017 echo "$as_me:$LINENO: result: $STRIP" >&5
6018 echo "${ECHO_T}$STRIP" >&6
6020 echo "$as_me:$LINENO: result: no" >&5
6021 echo "${ECHO_T}no" >&6
6025 if test -z "$ac_cv_prog_STRIP"; then
6027 # Extract the first word of "strip", so it can be a program name with args.
6028 set dummy strip; ac_word=$2
6029 echo "$as_me:$LINENO: checking for $ac_word" >&5
6030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6031 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6032 echo $ECHO_N "(cached) $ECHO_C" >&6
6034 if test -n "$ac_ct_STRIP"; then
6035 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6041 test -z "$as_dir" && as_dir=.
6042 for ac_exec_ext in '' $ac_executable_extensions; do
6043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6044 ac_cv_prog_ac_ct_STRIP="strip"
6045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6051 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6054 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6055 if test -n "$ac_ct_STRIP"; then
6056 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6057 echo "${ECHO_T}$ac_ct_STRIP" >&6
6059 echo "$as_me:$LINENO: result: no" >&5
6060 echo "${ECHO_T}no" >&6
6065 STRIP="$ac_cv_prog_STRIP"
6070 old_CFLAGS="$CFLAGS"
6072 # Set sane defaults for various variables
6073 test -z "$AR" && AR=ar
6074 test -z "$AR_FLAGS" && AR_FLAGS=cru
6075 test -z "$AS" && AS=as
6076 test -z "$CC" && CC=cc
6077 test -z "$LTCC" && LTCC=$CC
6078 test -z "$DLLTOOL" && DLLTOOL=dlltool
6079 test -z "$LD" && LD=ld
6080 test -z "$LN_S" && LN_S="ln -s"
6081 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6082 test -z "$NM" && NM=nm
6083 test -z "$SED" && SED=sed
6084 test -z "$OBJDUMP" && OBJDUMP=objdump
6085 test -z "$RANLIB" && RANLIB=:
6086 test -z "$STRIP" && STRIP=:
6087 test -z "$ac_objext" && ac_objext=o
6089 # Determine commands to create old-style static archives.
6090 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6091 old_postinstall_cmds='chmod 644 $oldlib'
6092 old_postuninstall_cmds=
6094 if test -n "$RANLIB"; then
6097 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6100 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6103 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6106 for cc_temp in $compiler""; do
6108 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6109 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6114 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6117 # Only perform the check for file, if the check method requires it
6118 case $deplibs_check_method in
6120 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6121 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6122 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6123 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6128 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6131 lt_save_MAGIC_CMD="$MAGIC_CMD"
6132 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6133 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6134 for ac_dir in $ac_dummy; do
6136 test -z "$ac_dir" && ac_dir=.
6137 if test -f $ac_dir/${ac_tool_prefix}file; then
6138 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6139 if test -n "$file_magic_test_file"; then
6140 case $deplibs_check_method in
6142 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6143 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6144 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6145 $EGREP "$file_magic_regex" > /dev/null; then
6150 *** Warning: the command libtool uses to detect shared libraries,
6151 *** $file_magic_cmd, produces output that libtool cannot recognize.
6152 *** The result is that libtool may fail to recognize shared libraries
6153 *** as such. This will affect the creation of libtool libraries that
6154 *** depend on shared libraries, but programs linked with such libtool
6155 *** libraries will work regardless of this problem. Nevertheless, you
6156 *** may want to report the problem to your system manager and/or to
6157 *** bug-libtool@gnu.org
6167 MAGIC_CMD="$lt_save_MAGIC_CMD"
6172 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6173 if test -n "$MAGIC_CMD"; then
6174 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6175 echo "${ECHO_T}$MAGIC_CMD" >&6
6177 echo "$as_me:$LINENO: result: no" >&5
6178 echo "${ECHO_T}no" >&6
6181 if test -z "$lt_cv_path_MAGIC_CMD"; then
6182 if test -n "$ac_tool_prefix"; then
6183 echo "$as_me:$LINENO: checking for file" >&5
6184 echo $ECHO_N "checking for file... $ECHO_C" >&6
6185 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6186 echo $ECHO_N "(cached) $ECHO_C" >&6
6190 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6193 lt_save_MAGIC_CMD="$MAGIC_CMD"
6194 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6195 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6196 for ac_dir in $ac_dummy; do
6198 test -z "$ac_dir" && ac_dir=.
6199 if test -f $ac_dir/file; then
6200 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6201 if test -n "$file_magic_test_file"; then
6202 case $deplibs_check_method in
6204 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6205 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6206 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6207 $EGREP "$file_magic_regex" > /dev/null; then
6212 *** Warning: the command libtool uses to detect shared libraries,
6213 *** $file_magic_cmd, produces output that libtool cannot recognize.
6214 *** The result is that libtool may fail to recognize shared libraries
6215 *** as such. This will affect the creation of libtool libraries that
6216 *** depend on shared libraries, but programs linked with such libtool
6217 *** libraries will work regardless of this problem. Nevertheless, you
6218 *** may want to report the problem to your system manager and/or to
6219 *** bug-libtool@gnu.org
6229 MAGIC_CMD="$lt_save_MAGIC_CMD"
6234 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6235 if test -n "$MAGIC_CMD"; then
6236 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6237 echo "${ECHO_T}$MAGIC_CMD" >&6
6239 echo "$as_me:$LINENO: result: no" >&5
6240 echo "${ECHO_T}no" >&6
6255 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6256 if test "${enable_libtool_lock+set}" = set; then
6257 enableval="$enable_libtool_lock"
6260 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6263 # Check whether --with-pic or --without-pic was given.
6264 if test "${with_pic+set}" = set; then
6270 test -z "$pic_mode" && pic_mode=default
6272 # Use C for the default configuration in the libtool script
6276 ac_cpp='$CPP $CPPFLAGS'
6277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6282 # Source file extension for C test sources.
6285 # Object file extension for compiled C test sources.
6289 # Code to be used in simple compile tests
6290 lt_simple_compile_test_code="int some_variable = 0;\n"
6292 # Code to be used in simple link tests
6293 lt_simple_link_test_code='int main(){return(0);}\n'
6296 # If no C compiler was specified, use CC.
6299 # Allow CC to be a program name with arguments.
6303 # save warnings/boilerplate of simple test code
6304 ac_outfile=conftest.$ac_objext
6305 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6306 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6307 _lt_compiler_boilerplate=`cat conftest.err`
6310 ac_outfile=conftest.$ac_objext
6311 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6312 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6313 _lt_linker_boilerplate=`cat conftest.err`
6318 # Check for any special shared library compilation flags.
6321 if test "$GCC" = no; then
6324 lt_prog_cc_shlib='-belf'
6328 if test -n "$lt_prog_cc_shlib"; then
6329 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6330 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6331 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6333 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6334 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6335 lt_cv_prog_cc_can_build_shared=no
6341 # Check to make sure the static flag actually works.
6343 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6344 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6345 if test "${lt_prog_compiler_static_works+set}" = set; then
6346 echo $ECHO_N "(cached) $ECHO_C" >&6
6348 lt_prog_compiler_static_works=no
6349 save_LDFLAGS="$LDFLAGS"
6350 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6351 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6352 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6353 # The compiler can only warn and ignore the option if not recognized
6354 # So say no if there are warnings
6355 if test -s conftest.err; then
6356 # Append any errors to the config.log.
6357 cat conftest.err 1>&5
6358 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6359 $SED '/^$/d' conftest.err >conftest.er2
6360 if diff conftest.exp conftest.er2 >/dev/null; then
6361 lt_prog_compiler_static_works=yes
6364 lt_prog_compiler_static_works=yes
6368 LDFLAGS="$save_LDFLAGS"
6371 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6372 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6374 if test x"$lt_prog_compiler_static_works" = xyes; then
6377 lt_prog_compiler_static=
6383 lt_prog_compiler_no_builtin_flag=
6385 if test "$GCC" = yes; then
6386 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6389 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6390 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6391 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6392 echo $ECHO_N "(cached) $ECHO_C" >&6
6394 lt_cv_prog_compiler_rtti_exceptions=no
6395 ac_outfile=conftest.$ac_objext
6396 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6397 lt_compiler_flag="-fno-rtti -fno-exceptions"
6398 # Insert the option either (1) after the last *FLAGS variable, or
6399 # (2) before a word containing "conftest.", or (3) at the end.
6400 # Note that $ac_compile itself does not contain backslashes and begins
6401 # with a dollar sign (not a hyphen), so the echo should work correctly.
6402 # The option is referenced via a variable to avoid confusing sed.
6403 lt_compile=`echo "$ac_compile" | $SED \
6404 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6405 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6406 -e 's:$: $lt_compiler_flag:'`
6407 (eval echo "\"\$as_me:6407: $lt_compile\"" >&5)
6408 (eval "$lt_compile" 2>conftest.err)
6410 cat conftest.err >&5
6411 echo "$as_me:6411: \$? = $ac_status" >&5
6412 if (exit $ac_status) && test -s "$ac_outfile"; then
6413 # The compiler can only warn and ignore the option if not recognized
6414 # So say no if there are warnings other than the usual output.
6415 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6416 $SED '/^$/d' conftest.err >conftest.er2
6417 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6418 lt_cv_prog_compiler_rtti_exceptions=yes
6424 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6425 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6427 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6428 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6435 lt_prog_compiler_wl=
6436 lt_prog_compiler_pic=
6437 lt_prog_compiler_static=
6439 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6440 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6442 if test "$GCC" = yes; then
6443 lt_prog_compiler_wl='-Wl,'
6444 lt_prog_compiler_static='-static'
6448 # All AIX code is PIC.
6449 if test "$host_cpu" = ia64; then
6450 # AIX 5 now supports IA64 processor
6451 lt_prog_compiler_static='-Bstatic'
6456 # FIXME: we need at least 68020 code to build shared libraries, but
6457 # adding the `-m68020' flag to GCC prevents building anything better,
6459 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6462 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6463 # PIC is the default for these OSes.
6466 mingw* | pw32* | os2*)
6467 # This hack is so that the source file can tell whether it is being
6468 # built for inclusion in a dll (and should export symbols for example).
6469 lt_prog_compiler_pic='-DDLL_EXPORT'
6472 darwin* | rhapsody*)
6473 # PIC is the default on this platform
6474 # Common symbols not allowed in MH_DYLIB files
6475 lt_prog_compiler_pic='-fno-common'
6479 # Just because we use GCC doesn't mean we suddenly get shared libraries
6480 # on systems that don't support them.
6481 lt_prog_compiler_can_build_shared=no
6486 if test -d /usr/nec; then
6487 lt_prog_compiler_pic=-Kconform_pic
6492 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6499 lt_prog_compiler_pic='-fPIC'
6505 lt_prog_compiler_pic='-fPIC'
6509 # PORTME Check for flag to pass linker flags through the system compiler.
6512 lt_prog_compiler_wl='-Wl,'
6513 if test "$host_cpu" = ia64; then
6514 # AIX 5 now supports IA64 processor
6515 lt_prog_compiler_static='-Bstatic'
6517 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6521 # PIC is the default on this platform
6522 # Common symbols not allowed in MH_DYLIB files
6523 case $cc_basename in
6525 lt_prog_compiler_pic='-qnocommon'
6526 lt_prog_compiler_wl='-Wl,'
6531 mingw* | pw32* | os2*)
6532 # This hack is so that the source file can tell whether it is being
6533 # built for inclusion in a dll (and should export symbols for example).
6534 lt_prog_compiler_pic='-DDLL_EXPORT'
6537 hpux9* | hpux10* | hpux11*)
6538 lt_prog_compiler_wl='-Wl,'
6539 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6546 lt_prog_compiler_pic='+Z'
6549 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6550 lt_prog_compiler_static='${wl}-a ${wl}archive'
6553 irix5* | irix6* | nonstopux*)
6554 lt_prog_compiler_wl='-Wl,'
6555 # PIC (with -KPIC) is the default.
6556 lt_prog_compiler_static='-non_shared'
6560 lt_prog_compiler_pic='-KPIC'
6561 lt_prog_compiler_static='-Bstatic'
6565 case $cc_basename in
6567 lt_prog_compiler_wl='-Wl,'
6568 lt_prog_compiler_pic='-KPIC'
6569 lt_prog_compiler_static='-static'
6571 pgcc* | pgf77* | pgf90*)
6572 # Portland Group compilers (*not* the Pentium gcc compiler,
6573 # which looks to be a dead project)
6574 lt_prog_compiler_wl='-Wl,'
6575 lt_prog_compiler_pic='-fpic'
6576 lt_prog_compiler_static='-static'
6579 lt_prog_compiler_wl='-Wl,'
6580 # All Alpha code is PIC.
6581 lt_prog_compiler_static='-non_shared'
6586 osf3* | osf4* | osf5*)
6587 lt_prog_compiler_wl='-Wl,'
6588 # All OSF/1 code is PIC.
6589 lt_prog_compiler_static='-non_shared'
6593 lt_prog_compiler_pic='-Kpic'
6594 lt_prog_compiler_static='-dn'
6598 lt_prog_compiler_pic='-KPIC'
6599 lt_prog_compiler_static='-Bstatic'
6600 case $cc_basename in
6602 lt_prog_compiler_wl='-Qoption ld ';;
6604 lt_prog_compiler_wl='-Wl,';;
6609 lt_prog_compiler_wl='-Qoption ld '
6610 lt_prog_compiler_pic='-PIC'
6611 lt_prog_compiler_static='-Bstatic'
6614 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6615 lt_prog_compiler_wl='-Wl,'
6616 lt_prog_compiler_pic='-KPIC'
6617 lt_prog_compiler_static='-Bstatic'
6621 if test -d /usr/nec ;then
6622 lt_prog_compiler_pic='-Kconform_pic'
6623 lt_prog_compiler_static='-Bstatic'
6628 lt_prog_compiler_wl='-Wl,'
6629 lt_prog_compiler_can_build_shared=no
6633 lt_prog_compiler_pic='-pic'
6634 lt_prog_compiler_static='-Bstatic'
6638 lt_prog_compiler_can_build_shared=no
6643 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6644 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6647 # Check to make sure the PIC flag actually works.
6649 if test -n "$lt_prog_compiler_pic"; then
6651 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6652 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6653 if test "${lt_prog_compiler_pic_works+set}" = set; then
6654 echo $ECHO_N "(cached) $ECHO_C" >&6
6656 lt_prog_compiler_pic_works=no
6657 ac_outfile=conftest.$ac_objext
6658 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6659 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6660 # Insert the option either (1) after the last *FLAGS variable, or
6661 # (2) before a word containing "conftest.", or (3) at the end.
6662 # Note that $ac_compile itself does not contain backslashes and begins
6663 # with a dollar sign (not a hyphen), so the echo should work correctly.
6664 # The option is referenced via a variable to avoid confusing sed.
6665 lt_compile=`echo "$ac_compile" | $SED \
6666 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6667 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6668 -e 's:$: $lt_compiler_flag:'`
6669 (eval echo "\"\$as_me:6669: $lt_compile\"" >&5)
6670 (eval "$lt_compile" 2>conftest.err)
6672 cat conftest.err >&5
6673 echo "$as_me:6673: \$? = $ac_status" >&5
6674 if (exit $ac_status) && test -s "$ac_outfile"; then
6675 # The compiler can only warn and ignore the option if not recognized
6676 # So say no if there are warnings other than the usual output.
6677 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6678 $SED '/^$/d' conftest.err >conftest.er2
6679 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6680 lt_prog_compiler_pic_works=yes
6686 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6687 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6689 if test x"$lt_prog_compiler_pic_works" = xyes; then
6690 case $lt_prog_compiler_pic in
6692 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6695 lt_prog_compiler_pic=
6696 lt_prog_compiler_can_build_shared=no
6701 # For platforms which do not support PIC, -DPIC is meaningless:
6703 lt_prog_compiler_pic=
6706 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6710 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6711 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6712 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6713 echo $ECHO_N "(cached) $ECHO_C" >&6
6715 lt_cv_prog_compiler_c_o=no
6716 $rm -r conftest 2>/dev/null
6720 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6722 lt_compiler_flag="-o out/conftest2.$ac_objext"
6723 # Insert the option either (1) after the last *FLAGS variable, or
6724 # (2) before a word containing "conftest.", or (3) at the end.
6725 # Note that $ac_compile itself does not contain backslashes and begins
6726 # with a dollar sign (not a hyphen), so the echo should work correctly.
6727 lt_compile=`echo "$ac_compile" | $SED \
6728 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6729 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6730 -e 's:$: $lt_compiler_flag:'`
6731 (eval echo "\"\$as_me:6731: $lt_compile\"" >&5)
6732 (eval "$lt_compile" 2>out/conftest.err)
6734 cat out/conftest.err >&5
6735 echo "$as_me:6735: \$? = $ac_status" >&5
6736 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6738 # The compiler can only warn and ignore the option if not recognized
6739 # So say no if there are warnings
6740 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
6741 $SED '/^$/d' out/conftest.err >out/conftest.er2
6742 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6743 lt_cv_prog_compiler_c_o=yes
6748 # SGI C++ compiler will create directory out/ii_files/ for
6749 # template instantiation
6750 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6751 $rm out/* && rmdir out
6757 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6758 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6761 hard_links="nottested"
6762 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6763 # do not overwrite the value of need_locks provided by the user
6764 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6765 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6768 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6770 ln conftest.a conftest.b 2>&5 || hard_links=no
6771 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6772 echo "$as_me:$LINENO: result: $hard_links" >&5
6773 echo "${ECHO_T}$hard_links" >&6
6774 if test "$hard_links" = no; then
6775 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6776 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6783 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6784 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6787 allow_undefined_flag=
6788 enable_shared_with_static_runtimes=no
6790 archive_expsym_cmds=
6791 old_archive_From_new_cmds=
6792 old_archive_from_expsyms_cmds=
6793 export_dynamic_flag_spec=
6794 whole_archive_flag_spec=
6795 thread_safe_flag_spec=
6796 hardcode_libdir_flag_spec=
6797 hardcode_libdir_flag_spec_ld=
6798 hardcode_libdir_separator=
6801 hardcode_shlibpath_var=unsupported
6802 link_all_deplibs=unknown
6803 hardcode_automatic=no
6806 always_export_symbols=no
6807 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6808 # include_expsyms should be a list of space-separated symbols to be *always*
6809 # included in the symbol list
6811 # exclude_expsyms can be an extended regexp of symbols to exclude
6812 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6813 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6814 # as well as any symbol that contains `d'.
6815 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6816 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6817 # platforms (ab)use it in PIC code, but their linkers get confused if
6818 # the symbol is explicitly referenced. Since portable code cannot
6819 # rely on this symbol name, it's probably fine to never include it in
6820 # preloaded symbol tables.
6821 extract_expsyms_cmds=
6822 # Just being paranoid about ensuring that cc_basename is set.
6823 for cc_temp in $compiler""; do
6825 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6826 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6831 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6834 cygwin* | mingw* | pw32*)
6835 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6836 # When not using gcc, we currently assume that we are using
6837 # Microsoft Visual C++.
6838 if test "$GCC" != yes; then
6848 if test "$with_gnu_ld" = yes; then
6849 # If archive_cmds runs LD, not CC, wlarc should be empty
6852 # Set some defaults for GNU ld with shared library support. These
6853 # are reset later if shared libraries are not supported. Putting them
6854 # here allows them to be overridden if necessary.
6855 runpath_var=LD_RUN_PATH
6856 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6857 export_dynamic_flag_spec='${wl}--export-dynamic'
6858 # ancient GNU ld didn't support --whole-archive et. al.
6859 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6860 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6862 whole_archive_flag_spec=
6864 supports_anon_versioning=no
6865 case `$LD -v 2>/dev/null` in
6866 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6867 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6868 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6869 *\ 2.11.*) ;; # other 2.11 versions
6870 *) supports_anon_versioning=yes ;;
6873 # See if GNU ld supports shared libraries.
6875 aix3* | aix4* | aix5*)
6876 # On AIX/PPC, the GNU linker is very broken
6877 if test "$host_cpu" != ia64; then
6881 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6882 *** to be unable to reliably create shared libraries on AIX.
6883 *** Therefore, libtool is disabling shared libraries support. If you
6884 *** really care for shared libraries, you may want to modify your PATH
6885 *** so that a non-GNU linker is found, and then restart.
6892 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)'
6893 hardcode_libdir_flag_spec='-L$libdir'
6894 hardcode_minus_L=yes
6896 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6897 # that the semantics of dynamic libraries on AmigaOS, at least up
6898 # to version 4, is to share data among multiple programs linked
6899 # with the same dynamic library. Since this doesn't match the
6900 # behavior of shared libraries on other platforms, we can't use
6906 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6907 allow_undefined_flag=unsupported
6908 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6909 # support --undefined. This deserves some investigation. FIXME
6910 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6916 cygwin* | mingw* | pw32*)
6917 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6918 # as there is no search path for DLLs.
6919 hardcode_libdir_flag_spec='-L$libdir'
6920 allow_undefined_flag=unsupported
6921 always_export_symbols=no
6922 enable_shared_with_static_runtimes=yes
6923 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6925 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6926 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6927 # If the export-symbols file already is a .def file (1st line
6928 # is EXPORTS), use it as is; otherwise, prepend...
6929 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6930 cp $export_symbols $output_objdir/$soname.def;
6932 echo EXPORTS > $output_objdir/$soname.def;
6933 cat $export_symbols >> $output_objdir/$soname.def;
6935 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6942 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6944 case $cc_basename,$host_cpu in
6945 pgcc*) # Portland Group C compiler
6946 whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6947 tmp_addflag=' $pic_flag'
6949 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
6950 whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6951 tmp_addflag=' $pic_flag -Mnomain' ;;
6952 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6953 tmp_addflag=' -i_dynamic' ;;
6954 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6955 tmp_addflag=' -i_dynamic -nofor_main' ;;
6956 ifc* | ifort*) # Intel Fortran compiler
6957 tmp_addflag=' -nofor_main' ;;
6959 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6961 if test $supports_anon_versioning = yes; then
6962 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6963 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6964 $echo "local: *; };" >> $output_objdir/$libname.ver~
6965 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6973 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6974 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6977 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6978 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6983 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6987 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6988 *** create shared libraries on Solaris systems. Therefore, libtool
6989 *** is disabling shared libraries support. We urge you to upgrade GNU
6990 *** binutils to release 2.9.1 or newer. Another option is to modify
6991 *** your PATH or compiler configuration so that the native linker is
6992 *** used, and then restart.
6995 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6996 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6997 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7004 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7007 hardcode_shlibpath_var=no
7011 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7012 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7013 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7020 if test "$ld_shlibs" = no; then
7022 hardcode_libdir_flag_spec=
7023 export_dynamic_flag_spec=
7024 whole_archive_flag_spec=
7027 # PORTME fill in a description of your system's linker (not GNU ld)
7030 allow_undefined_flag=unsupported
7031 always_export_symbols=yes
7032 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'
7033 # Note: this linker hardcodes the directories in LIBPATH if there
7034 # are no directories specified by -L.
7035 hardcode_minus_L=yes
7036 if test "$GCC" = yes && test -z "$link_static_flag"; then
7037 # Neither direct hardcoding nor static linking is supported with a
7039 hardcode_direct=unsupported
7044 if test "$host_cpu" = ia64; then
7045 # On IA64, the linker does run time linking by default, so we don't
7046 # have to do anything special.
7047 aix_use_runtimelinking=no
7048 exp_sym_flag='-Bexport'
7051 # If we're using GNU nm, then we don't want the "-C" option.
7052 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7053 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7054 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'
7056 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'
7058 aix_use_runtimelinking=no
7060 # Test if we are trying to use run time linking or normal
7061 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7062 # need to do runtime linking.
7063 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7064 for ld_flag in $LDFLAGS; do
7065 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7066 aix_use_runtimelinking=yes
7072 exp_sym_flag='-bexport'
7073 no_entry_flag='-bnoentry'
7076 # When large executables or shared objects are built, AIX ld can
7077 # have problems creating the table of contents. If linking a library
7078 # or program results in "error TOC overflow" add -mminimal-toc to
7079 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7080 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7084 hardcode_libdir_separator=':'
7085 link_all_deplibs=yes
7087 if test "$GCC" = yes; then
7088 case $host_os in aix4.[012]|aix4.[012].*)
7089 # We only want to do this on AIX 4.2 and lower, the check
7090 # below for broken collect2 doesn't work under 4.3+
7091 collect2name=`${CC} -print-prog-name=collect2`
7092 if test -f "$collect2name" && \
7093 strings "$collect2name" | grep resolve_lib_name >/dev/null
7095 # We have reworked collect2
7098 # We have old collect2
7099 hardcode_direct=unsupported
7100 # It fails to find uninstalled libraries when the uninstalled
7101 # path is not listed in the libpath. Setting hardcode_minus_L
7102 # to unsupported forces relinking
7103 hardcode_minus_L=yes
7104 hardcode_libdir_flag_spec='-L$libdir'
7105 hardcode_libdir_separator=
7108 shared_flag='-shared'
7109 if test "$aix_use_runtimelinking" = yes; then
7110 shared_flag="$shared_flag "'${wl}-G'
7114 if test "$host_cpu" = ia64; then
7115 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7116 # chokes on -Wl,-G. The following line is correct:
7119 if test "$aix_use_runtimelinking" = yes; then
7120 shared_flag='${wl}-G'
7122 shared_flag='${wl}-bM:SRE'
7127 # It seems that -bexpall does not export symbols beginning with
7128 # underscore (_), so it is better to generate a list of symbols to export.
7129 always_export_symbols=yes
7130 if test "$aix_use_runtimelinking" = yes; then
7131 # Warning - without using the other runtime loading flags (-brtl),
7132 # -berok will link without error, but may produce a broken library.
7133 allow_undefined_flag='-berok'
7134 # Determine the default libpath from the value encoded in an empty executable.
7135 cat >conftest.$ac_ext <<_ACEOF
7138 cat confdefs.h >>conftest.$ac_ext
7139 cat >>conftest.$ac_ext <<_ACEOF
7140 /* end confdefs.h. */
7150 rm -f conftest.$ac_objext conftest$ac_exeext
7151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7152 (eval $ac_link) 2>conftest.er1
7154 grep -v '^ *+' conftest.er1 >conftest.err
7156 cat conftest.err >&5
7157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158 (exit $ac_status); } &&
7159 { ac_try='test -z "$ac_c_werror_flag"
7160 || test ! -s conftest.err'
7161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); }; } &&
7166 { ac_try='test -s conftest$ac_exeext'
7167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); }; }; then
7173 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7175 # Check for a 64-bit object if we didn't find anything.
7176 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; }
7179 echo "$as_me: failed program was:" >&5
7180 sed 's/^/| /' conftest.$ac_ext >&5
7183 rm -f conftest.err conftest.$ac_objext \
7184 conftest$ac_exeext conftest.$ac_ext
7185 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7187 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7188 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"
7190 if test "$host_cpu" = ia64; then
7191 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7192 allow_undefined_flag="-z nodefs"
7193 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"
7195 # Determine the default libpath from the value encoded in an empty executable.
7196 cat >conftest.$ac_ext <<_ACEOF
7199 cat confdefs.h >>conftest.$ac_ext
7200 cat >>conftest.$ac_ext <<_ACEOF
7201 /* end confdefs.h. */
7211 rm -f conftest.$ac_objext conftest$ac_exeext
7212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7213 (eval $ac_link) 2>conftest.er1
7215 grep -v '^ *+' conftest.er1 >conftest.err
7217 cat conftest.err >&5
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); } &&
7220 { ac_try='test -z "$ac_c_werror_flag"
7221 || test ! -s conftest.err'
7222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); }; } &&
7227 { ac_try='test -s conftest$ac_exeext'
7228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); }; }; then
7234 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7236 # Check for a 64-bit object if we didn't find anything.
7237 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; }
7240 echo "$as_me: failed program was:" >&5
7241 sed 's/^/| /' conftest.$ac_ext >&5
7244 rm -f conftest.err conftest.$ac_objext \
7245 conftest$ac_exeext conftest.$ac_ext
7246 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7248 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7249 # Warning - without using the other run time loading flags,
7250 # -berok will link without error, but may produce a broken library.
7251 no_undefined_flag=' ${wl}-bernotok'
7252 allow_undefined_flag=' ${wl}-berok'
7253 # -bexpall does not export symbols beginning with underscore (_)
7254 always_export_symbols=yes
7255 # Exported symbols can be pulled into shared objects from archives
7256 whole_archive_flag_spec=' '
7257 archive_cmds_need_lc=yes
7258 # This is similar to how AIX traditionally builds it's shared libraries.
7259 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'
7265 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)'
7266 hardcode_libdir_flag_spec='-L$libdir'
7267 hardcode_minus_L=yes
7268 # see comment about different semantics on the GNU ld section
7273 export_dynamic_flag_spec=-rdynamic
7276 cygwin* | mingw* | pw32*)
7277 # When not using gcc, we currently assume that we are using
7278 # Microsoft Visual C++.
7279 # hardcode_libdir_flag_spec is actually meaningless, as there is
7280 # no search path for DLLs.
7281 hardcode_libdir_flag_spec=' '
7282 allow_undefined_flag=unsupported
7283 # Tell ltmain to make .lib files, not .a files.
7285 # Tell ltmain to make .dll files, not .so files.
7287 # FIXME: Setting linknames here is a bad hack.
7288 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7289 # The linker will automatically build a .lib file if we build a DLL.
7290 old_archive_From_new_cmds='true'
7291 # FIXME: Should let the user specify the lib program.
7292 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7293 fix_srcfile_path='`cygpath -w "$srcfile"`'
7294 enable_shared_with_static_runtimes=yes
7297 darwin* | rhapsody*)
7299 rhapsody* | darwin1.[012])
7300 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7303 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7304 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7306 case ${MACOSX_DEPLOYMENT_TARGET} in
7308 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7311 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7317 archive_cmds_need_lc=no
7319 hardcode_automatic=yes
7320 hardcode_shlibpath_var=unsupported
7321 whole_archive_flag_spec=''
7322 link_all_deplibs=yes
7323 if test "$GCC" = yes ; then
7324 output_verbose_link_cmd='echo'
7325 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7326 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7327 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7328 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}'
7329 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}'
7331 case $cc_basename in
7333 output_verbose_link_cmd='echo'
7334 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7335 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7336 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7337 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}'
7338 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}'
7348 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7349 hardcode_libdir_flag_spec='-L$libdir'
7350 hardcode_shlibpath_var=no
7357 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7358 # support. Future versions do this automatically, but an explicit c++rt0.o
7359 # does not break anything, and helps significantly (at the cost of a little
7362 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7363 hardcode_libdir_flag_spec='-R$libdir'
7365 hardcode_shlibpath_var=no
7368 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7370 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7372 hardcode_minus_L=yes
7373 hardcode_shlibpath_var=no
7376 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7377 freebsd* | kfreebsd*-gnu | dragonfly*)
7378 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7379 hardcode_libdir_flag_spec='-R$libdir'
7381 hardcode_shlibpath_var=no
7385 if test "$GCC" = yes; then
7386 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'
7388 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'
7390 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7391 hardcode_libdir_separator=:
7394 # hardcode_minus_L: Not really in the search PATH,
7395 # but as the default location of the library.
7396 hardcode_minus_L=yes
7397 export_dynamic_flag_spec='${wl}-E'
7401 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7404 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7407 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7413 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7416 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7420 if test "$with_gnu_ld" = no; then
7423 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7424 hardcode_libdir_flag_spec_ld='+b $libdir'
7425 hardcode_libdir_separator=:
7427 hardcode_shlibpath_var=no
7430 hardcode_libdir_flag_spec='-L$libdir'
7432 hardcode_shlibpath_var=no
7434 # hardcode_minus_L: Not really in the search PATH,
7435 # but as the default location of the library.
7436 hardcode_minus_L=yes
7439 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7440 hardcode_libdir_separator=:
7442 export_dynamic_flag_spec='${wl}-E'
7444 # hardcode_minus_L: Not really in the search PATH,
7445 # but as the default location of the library.
7446 hardcode_minus_L=yes
7452 irix5* | irix6* | nonstopux*)
7453 if test "$GCC" = yes; then
7454 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'
7456 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'
7457 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7459 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7460 hardcode_libdir_separator=:
7461 link_all_deplibs=yes
7465 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7466 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7468 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7470 hardcode_libdir_flag_spec='-R$libdir'
7472 hardcode_shlibpath_var=no
7476 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7478 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7479 hardcode_libdir_separator=:
7480 hardcode_shlibpath_var=no
7485 hardcode_shlibpath_var=no
7486 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7487 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7488 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7489 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7490 export_dynamic_flag_spec='${wl}-E'
7493 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7494 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7495 hardcode_libdir_flag_spec='-R$libdir'
7498 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7499 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7506 hardcode_libdir_flag_spec='-L$libdir'
7507 hardcode_minus_L=yes
7508 allow_undefined_flag=unsupported
7509 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'
7510 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7514 if test "$GCC" = yes; then
7515 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7516 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'
7518 allow_undefined_flag=' -expect_unresolved \*'
7519 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'
7521 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7522 hardcode_libdir_separator=:
7525 osf4* | osf5*) # as osf3* with the addition of -msym flag
7526 if test "$GCC" = yes; then
7527 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7528 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'
7529 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7531 allow_undefined_flag=' -expect_unresolved \*'
7532 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'
7533 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7534 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7536 # Both c and cxx compiler support -rpath directly
7537 hardcode_libdir_flag_spec='-rpath $libdir'
7539 hardcode_libdir_separator=:
7543 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7544 hardcode_shlibpath_var=no
7545 export_dynamic_flag_spec='${wl}-Bexport'
7546 runpath_var=LD_RUN_PATH
7547 hardcode_runpath_var=yes
7551 no_undefined_flag=' -z text'
7552 if test "$GCC" = yes; then
7554 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7555 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7556 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7559 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7560 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7561 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7563 hardcode_libdir_flag_spec='-R$libdir'
7564 hardcode_shlibpath_var=no
7566 solaris2.[0-5] | solaris2.[0-5].*) ;;
7568 # The compiler driver will combine linker options so we
7569 # cannot just pass the convience library names through
7570 # without $wl, iff we do not link with $LD.
7571 # Luckily, gcc supports the same syntax we need for Sun Studio.
7572 # Supported since Solaris 2.6 (maybe 2.5.1?)
7575 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7577 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7580 link_all_deplibs=yes
7584 if test "x$host_vendor" = xsequent; then
7585 # Use $CC to link under sequent, because it throws in some extra .o
7586 # files that make .init and .fini sections work.
7587 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7589 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7591 hardcode_libdir_flag_spec='-L$libdir'
7593 hardcode_minus_L=yes
7594 hardcode_shlibpath_var=no
7598 case $host_vendor in
7600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7601 hardcode_direct=yes # is this really true???
7604 ## LD is ld it makes a PLAMLIB
7605 ## CC just makes a GrossModule.
7606 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7607 reload_cmds='$CC -r -o $output$reload_objs'
7611 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7612 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7615 runpath_var='LD_RUN_PATH'
7616 hardcode_shlibpath_var=no
7620 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7621 hardcode_shlibpath_var=no
7622 export_dynamic_flag_spec='-Bexport'
7626 if test -d /usr/nec; then
7627 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7628 hardcode_shlibpath_var=no
7629 runpath_var=LD_RUN_PATH
7630 hardcode_runpath_var=yes
7636 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7639 hardcode_shlibpath_var=no
7640 hardcode_runpath_var=yes
7641 runpath_var=LD_RUN_PATH
7644 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7645 no_undefined_flag='${wl}-z ${wl}text'
7646 if test "$GCC" = yes; then
7647 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7649 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7651 runpath_var='LD_RUN_PATH'
7652 hardcode_shlibpath_var=no
7656 no_undefined_flag=' -z text'
7657 # $CC -shared without GNU ld will not create a library from C++
7658 # object files and a static libstdc++, better avoid it by now
7659 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7660 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7661 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7662 hardcode_libdir_flag_spec=
7663 hardcode_shlibpath_var=no
7664 runpath_var='LD_RUN_PATH'
7668 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7669 hardcode_libdir_flag_spec='-L$libdir'
7670 hardcode_shlibpath_var=no
7679 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7680 echo "${ECHO_T}$ld_shlibs" >&6
7681 test "$ld_shlibs" = no && can_build_shared=no
7683 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7684 if test "$GCC" = yes; then
7685 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7689 # Do we need to explicitly link libc?
7691 case "x$archive_cmds_need_lc" in
7693 # Assume -lc should be added
7694 archive_cmds_need_lc=yes
7696 if test "$enable_shared" = yes && test "$GCC" = yes; then
7697 case $archive_cmds in
7699 # FIXME: we may have to deal with multi-command sequences.
7702 # Test whether the compiler implicitly links with -lc since on some
7703 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7704 # to ld, don't add -lc before -lgcc.
7705 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7706 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7708 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7711 (eval $ac_compile) 2>&5
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); } 2>conftest.err; then
7717 libobjs=conftest.$ac_objext
7719 wl=$lt_prog_compiler_wl
7725 lt_save_allow_undefined_flag=$allow_undefined_flag
7726 allow_undefined_flag=
7727 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7728 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); }
7733 archive_cmds_need_lc=no
7735 archive_cmds_need_lc=yes
7737 allow_undefined_flag=$lt_save_allow_undefined_flag
7739 cat conftest.err 1>&5
7742 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7743 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7750 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7751 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7753 libname_spec='lib$name'
7761 shlibpath_overrides_runpath=unknown
7763 dynamic_linker="$host_os ld.so"
7764 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7765 if test "$GCC" = yes; then
7766 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7767 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7768 # if the path contains ";" then we assume it to be the separator
7769 # otherwise default to the standard path separator (i.e. ":") - it is
7770 # assumed that no part of a normal pathname contains ";" but that should
7771 # okay in the real world where ";" in dirpaths is itself problematic.
7772 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7774 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7777 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7779 need_lib_prefix=unknown
7780 hardcode_into_libs=no
7782 # when you set need_version to no, make sure it does not cause -set_version
7783 # flags to be left without arguments
7784 need_version=unknown
7789 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7790 shlibpath_var=LIBPATH
7792 # AIX 3 has no versioning support, so we append a major version to the name.
7793 soname_spec='${libname}${release}${shared_ext}$major'
7800 hardcode_into_libs=yes
7801 if test "$host_cpu" = ia64; then
7802 # AIX 5 supports IA64
7803 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7804 shlibpath_var=LD_LIBRARY_PATH
7806 # With GCC up to 2.95.x, collect2 would create an import file
7807 # for dependence libraries. The import file would start with
7808 # the line `#! .'. This would cause the generated library to
7809 # depend on `.', always an invalid library. This was fixed in
7810 # development snapshots of GCC prior to 3.0.
7812 aix4 | aix4.[01] | aix4.[01].*)
7813 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7815 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7822 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7823 # soname into executable. Probably we can add versioning support to
7824 # collect2, so additional links can be useful in future.
7825 if test "$aix_use_runtimelinking" = yes; then
7826 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7827 # instead of lib<name>.a to let people know that these are not
7828 # typical AIX shared libraries.
7829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7831 # We preserve .a as extension for shared libraries through AIX4.2
7832 # and later when we are not doing run time linking.
7833 library_names_spec='${libname}${release}.a $libname.a'
7834 soname_spec='${libname}${release}${shared_ext}$major'
7836 shlibpath_var=LIBPATH
7841 library_names_spec='$libname.ixlibrary $libname.a'
7842 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7843 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'
7847 library_names_spec='${libname}${shared_ext}'
7848 dynamic_linker="$host_os ld.so"
7849 shlibpath_var=LIBRARY_PATH
7855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7856 soname_spec='${libname}${release}${shared_ext}$major'
7857 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7858 shlibpath_var=LD_LIBRARY_PATH
7859 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7860 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7861 # the default ld.so.conf also contains /usr/contrib/lib and
7862 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7863 # libtool to hard-code these into programs
7866 cygwin* | mingw* | pw32*)
7867 version_type=windows
7872 case $GCC,$host_os in
7873 yes,cygwin* | yes,mingw* | yes,pw32*)
7874 library_names_spec='$libname.dll.a'
7875 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7876 postinstall_cmds='base_file=`basename \${file}`~
7877 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7878 dldir=$destdir/`dirname \$dlpath`~
7879 test -d \$dldir || mkdir -p \$dldir~
7880 $install_prog $dir/$dlname \$dldir/$dlname'
7881 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7882 dlpath=$dir/\$dldll~
7884 shlibpath_overrides_runpath=yes
7888 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7889 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7890 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7893 # MinGW DLLs use traditional 'lib' prefix
7894 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7895 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7896 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7897 # It is most probably a Windows format PATH printed by
7898 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7899 # path with ; separators, and with drive letters. We can handle the
7900 # drive letters (cygwin fileutils understands them), so leave them,
7901 # especially as we might pass files found there to a mingw objdump,
7902 # which wouldn't understand a cygwinified path. Ahh.
7903 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7905 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7909 # pw32 DLLs use 'pw' prefix rather than 'lib'
7910 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7916 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7919 dynamic_linker='Win32 ld.exe'
7920 # FIXME: first we should search . and the directory the executable is in
7924 darwin* | rhapsody*)
7925 dynamic_linker="$host_os dyld"
7929 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7930 soname_spec='${libname}${release}${major}$shared_ext'
7931 shlibpath_overrides_runpath=yes
7932 shlibpath_var=DYLD_LIBRARY_PATH
7933 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7934 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7935 if test "$GCC" = yes; then
7936 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"`
7938 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7940 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7948 soname_spec='${libname}${release}${shared_ext}$major'
7949 shlibpath_var=LD_LIBRARY_PATH
7960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7961 soname_spec='${libname}${release}${shared_ext}$major'
7962 shlibpath_var=LD_LIBRARY_PATH
7963 shlibpath_overrides_runpath=no
7964 hardcode_into_libs=yes
7965 dynamic_linker='GNU ld.so'
7968 freebsd* | dragonfly*)
7969 # DragonFly does not have aout. When/if they implement a new
7970 # versioning mechanism, adjust this.
7971 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7972 version_type=freebsd-$objformat
7973 case $version_type in
7975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7980 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7984 shlibpath_var=LD_LIBRARY_PATH
7987 shlibpath_overrides_runpath=yes
7989 freebsd3.[01]* | freebsdelf3.[01]*)
7990 shlibpath_overrides_runpath=yes
7991 hardcode_into_libs=yes
7994 shlibpath_overrides_runpath=no
7995 hardcode_into_libs=yes
8004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8005 soname_spec='${libname}${release}${shared_ext}$major'
8006 shlibpath_var=LD_LIBRARY_PATH
8007 hardcode_into_libs=yes
8010 hpux9* | hpux10* | hpux11*)
8011 # Give a soname corresponding to the major version so that dld.sl refuses to
8012 # link against other versions.
8019 hardcode_into_libs=yes
8020 dynamic_linker="$host_os dld.so"
8021 shlibpath_var=LD_LIBRARY_PATH
8022 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8024 soname_spec='${libname}${release}${shared_ext}$major'
8025 if test "X$HPUX_IA64_MODE" = X32; then
8026 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8028 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8030 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8034 hardcode_into_libs=yes
8035 dynamic_linker="$host_os dld.sl"
8036 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8037 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8039 soname_spec='${libname}${release}${shared_ext}$major'
8040 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8041 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8045 dynamic_linker="$host_os dld.sl"
8046 shlibpath_var=SHLIB_PATH
8047 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8049 soname_spec='${libname}${release}${shared_ext}$major'
8052 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8053 postinstall_cmds='chmod 555 $lib'
8056 irix5* | irix6* | nonstopux*)
8058 nonstopux*) version_type=nonstopux ;;
8060 if test "$lt_cv_prog_gnu_ld" = yes; then
8068 soname_spec='${libname}${release}${shared_ext}$major'
8069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8071 irix5* | nonstopux*)
8075 case $LD in # libtool.m4 will add one of these switches to LD
8076 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8077 libsuff= shlibsuff= libmagic=32-bit;;
8078 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8079 libsuff=32 shlibsuff=N32 libmagic=N32;;
8080 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8081 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8082 *) libsuff= shlibsuff= libmagic=never-match;;
8086 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8087 shlibpath_overrides_runpath=no
8088 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8089 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8090 hardcode_into_libs=yes
8093 # No shared lib support for Linux oldld, aout, or coff.
8094 linux*oldld* | linux*aout* | linux*coff*)
8098 # This must be Linux ELF.
8103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8104 soname_spec='${libname}${release}${shared_ext}$major'
8105 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8106 shlibpath_var=LD_LIBRARY_PATH
8107 shlibpath_overrides_runpath=no
8108 # This implies no fast_install, which is unacceptable.
8109 # Some rework will be needed to allow for fast_install
8110 # before this can be enabled.
8111 hardcode_into_libs=yes
8113 # Append ld.so.conf contents to the search path
8114 if test -f /etc/ld.so.conf; then
8115 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/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8116 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8119 # We used to test for /lib/ld.so.1 and disable shared libraries on
8120 # powerpc, because MkLinux only supported shared libraries with the
8121 # GNU dynamic linker. Since this was broken with cross compilers,
8122 # most powerpc-linux boxes support dynamic linking these days and
8123 # people can always --disable-shared, the test was removed, and we
8124 # assume the GNU/Linux dynamic linker is in use.
8125 dynamic_linker='GNU/Linux ld.so'
8132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8133 soname_spec='${libname}${release}${shared_ext}$major'
8134 shlibpath_var=LD_LIBRARY_PATH
8135 shlibpath_overrides_runpath=no
8136 hardcode_into_libs=yes
8137 dynamic_linker='GNU ld.so'
8144 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8146 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8147 dynamic_linker='NetBSD (a.out) ld.so'
8149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8150 soname_spec='${libname}${release}${shared_ext}$major'
8151 dynamic_linker='NetBSD ld.elf_so'
8153 shlibpath_var=LD_LIBRARY_PATH
8154 shlibpath_overrides_runpath=yes
8155 hardcode_into_libs=yes
8160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8161 shlibpath_var=LD_LIBRARY_PATH
8162 shlibpath_overrides_runpath=yes
8169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8170 soname_spec='${libname}${release}${shared_ext}$major'
8171 shlibpath_var=LD_LIBRARY_PATH
8172 shlibpath_overrides_runpath=yes
8178 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8180 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8181 *) need_version=no ;;
8183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8184 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8185 shlibpath_var=LD_LIBRARY_PATH
8186 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8188 openbsd2.[89] | openbsd2.[89].*)
8189 shlibpath_overrides_runpath=no
8192 shlibpath_overrides_runpath=yes
8196 shlibpath_overrides_runpath=yes
8201 libname_spec='$name'
8204 library_names_spec='$libname${shared_ext} $libname.a'
8205 dynamic_linker='OS/2 ld.exe'
8206 shlibpath_var=LIBPATH
8209 osf3* | osf4* | osf5*)
8213 soname_spec='${libname}${release}${shared_ext}$major'
8214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8215 shlibpath_var=LD_LIBRARY_PATH
8216 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8217 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8222 soname_spec='${libname}${release}${shared_ext}$major'
8223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8224 shlibpath_var=LD_LIBRARY_PATH
8231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8232 soname_spec='${libname}${release}${shared_ext}$major'
8233 shlibpath_var=LD_LIBRARY_PATH
8234 shlibpath_overrides_runpath=yes
8235 hardcode_into_libs=yes
8236 # ldd complains unless libraries are executable
8237 postinstall_cmds='chmod +x $lib'
8242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8243 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8244 shlibpath_var=LD_LIBRARY_PATH
8245 shlibpath_overrides_runpath=yes
8246 if test "$with_gnu_ld" = yes; then
8252 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8255 soname_spec='${libname}${release}${shared_ext}$major'
8256 shlibpath_var=LD_LIBRARY_PATH
8257 case $host_vendor in
8259 shlibpath_overrides_runpath=no
8261 export_dynamic_flag_spec='${wl}-Blargedynsym'
8262 runpath_var=LD_RUN_PATH
8270 shlibpath_overrides_runpath=no
8271 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8277 if test -d /usr/nec ;then
8279 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8280 soname_spec='$libname${shared_ext}.$major'
8281 shlibpath_var=LD_LIBRARY_PATH
8287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8288 soname_spec='${libname}${release}${shared_ext}$major'
8289 shlibpath_var=LD_LIBRARY_PATH
8296 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8297 echo "${ECHO_T}$dynamic_linker" >&6
8298 test "$dynamic_linker" = no && can_build_shared=no
8300 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8301 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8303 if test -n "$hardcode_libdir_flag_spec" || \
8304 test -n "$runpath_var" || \
8305 test "X$hardcode_automatic" = "Xyes" ; then
8307 # We can hardcode non-existant directories.
8308 if test "$hardcode_direct" != no &&
8309 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8310 # have to relink, otherwise we might link with an installed library
8311 # when we should be linking with a yet-to-be-installed one
8312 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8313 test "$hardcode_minus_L" != no; then
8314 # Linking always hardcodes the temporary library directory.
8315 hardcode_action=relink
8317 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8318 hardcode_action=immediate
8321 # We cannot hardcode anything, or else we can only hardcode existing
8323 hardcode_action=unsupported
8325 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8326 echo "${ECHO_T}$hardcode_action" >&6
8328 if test "$hardcode_action" = relink; then
8329 # Fast installation is not supported
8330 enable_fast_install=no
8331 elif test "$shlibpath_overrides_runpath" = yes ||
8332 test "$enable_shared" = no; then
8333 # Fast installation is not necessary
8334 enable_fast_install=needless
8339 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8340 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8341 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8342 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8343 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8344 echo "$as_me:$LINENO: result: yes" >&5
8345 echo "${ECHO_T}yes" >&6
8347 # FIXME - insert some real tests, host_os isn't really good enough
8350 if test -n "$STRIP" ; then
8351 striplib="$STRIP -x"
8352 echo "$as_me:$LINENO: result: yes" >&5
8353 echo "${ECHO_T}yes" >&6
8355 echo "$as_me:$LINENO: result: no" >&5
8356 echo "${ECHO_T}no" >&6
8360 echo "$as_me:$LINENO: result: no" >&5
8361 echo "${ECHO_T}no" >&6
8366 if test "x$enable_dlopen" != xyes; then
8367 enable_dlopen=unknown
8368 enable_dlopen_self=unknown
8369 enable_dlopen_self_static=unknown
8376 lt_cv_dlopen="load_add_on"
8378 lt_cv_dlopen_self=yes
8382 lt_cv_dlopen="LoadLibrary"
8387 lt_cv_dlopen="dlopen"
8392 # if libdl is installed we need to link against it
8393 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8394 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8395 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8396 echo $ECHO_N "(cached) $ECHO_C" >&6
8398 ac_check_lib_save_LIBS=$LIBS
8400 cat >conftest.$ac_ext <<_ACEOF
8403 cat confdefs.h >>conftest.$ac_ext
8404 cat >>conftest.$ac_ext <<_ACEOF
8405 /* end confdefs.h. */
8407 /* Override any gcc2 internal prototype to avoid an error. */
8411 /* We use char because int might match the return type of a gcc2
8412 builtin and then its argument prototype would still apply. */
8422 rm -f conftest.$ac_objext conftest$ac_exeext
8423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8424 (eval $ac_link) 2>conftest.er1
8426 grep -v '^ *+' conftest.er1 >conftest.err
8428 cat conftest.err >&5
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); } &&
8431 { ac_try='test -z "$ac_c_werror_flag"
8432 || test ! -s conftest.err'
8433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); }; } &&
8438 { ac_try='test -s conftest$ac_exeext'
8439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); }; }; then
8444 ac_cv_lib_dl_dlopen=yes
8446 echo "$as_me: failed program was:" >&5
8447 sed 's/^/| /' conftest.$ac_ext >&5
8449 ac_cv_lib_dl_dlopen=no
8451 rm -f conftest.err conftest.$ac_objext \
8452 conftest$ac_exeext conftest.$ac_ext
8453 LIBS=$ac_check_lib_save_LIBS
8455 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8456 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8457 if test $ac_cv_lib_dl_dlopen = yes; then
8458 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8463 lt_cv_dlopen_self=yes
8470 echo "$as_me:$LINENO: checking for shl_load" >&5
8471 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8472 if test "${ac_cv_func_shl_load+set}" = set; then
8473 echo $ECHO_N "(cached) $ECHO_C" >&6
8475 cat >conftest.$ac_ext <<_ACEOF
8478 cat confdefs.h >>conftest.$ac_ext
8479 cat >>conftest.$ac_ext <<_ACEOF
8480 /* end confdefs.h. */
8481 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8483 #define shl_load innocuous_shl_load
8485 /* System header to define __stub macros and hopefully few prototypes,
8486 which can conflict with char shl_load (); below.
8487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8488 <limits.h> exists even on freestanding compilers. */
8491 # include <limits.h>
8493 # include <assert.h>
8498 /* 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. */
8506 /* The GNU C library defines this for functions which it implements
8507 to always fail with ENOSYS. Some functions are actually named
8508 something starting with __ and the normal name is an alias. */
8509 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8512 char (*f) () = shl_load;
8521 return f != shl_load;
8526 rm -f conftest.$ac_objext conftest$ac_exeext
8527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8528 (eval $ac_link) 2>conftest.er1
8530 grep -v '^ *+' conftest.er1 >conftest.err
8532 cat conftest.err >&5
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); } &&
8535 { ac_try='test -z "$ac_c_werror_flag"
8536 || test ! -s conftest.err'
8537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); }; } &&
8542 { ac_try='test -s conftest$ac_exeext'
8543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); }; }; then
8548 ac_cv_func_shl_load=yes
8550 echo "$as_me: failed program was:" >&5
8551 sed 's/^/| /' conftest.$ac_ext >&5
8553 ac_cv_func_shl_load=no
8555 rm -f conftest.err conftest.$ac_objext \
8556 conftest$ac_exeext conftest.$ac_ext
8558 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8559 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8560 if test $ac_cv_func_shl_load = yes; then
8561 lt_cv_dlopen="shl_load"
8563 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8564 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8565 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8566 echo $ECHO_N "(cached) $ECHO_C" >&6
8568 ac_check_lib_save_LIBS=$LIBS
8570 cat >conftest.$ac_ext <<_ACEOF
8573 cat confdefs.h >>conftest.$ac_ext
8574 cat >>conftest.$ac_ext <<_ACEOF
8575 /* end confdefs.h. */
8577 /* Override any gcc2 internal prototype to avoid an error. */
8581 /* We use char because int might match the return type of a gcc2
8582 builtin and then its argument prototype would still apply. */
8592 rm -f conftest.$ac_objext conftest$ac_exeext
8593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8594 (eval $ac_link) 2>conftest.er1
8596 grep -v '^ *+' conftest.er1 >conftest.err
8598 cat conftest.err >&5
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); } &&
8601 { ac_try='test -z "$ac_c_werror_flag"
8602 || test ! -s conftest.err'
8603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); }; } &&
8608 { ac_try='test -s conftest$ac_exeext'
8609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); }; }; then
8614 ac_cv_lib_dld_shl_load=yes
8616 echo "$as_me: failed program was:" >&5
8617 sed 's/^/| /' conftest.$ac_ext >&5
8619 ac_cv_lib_dld_shl_load=no
8621 rm -f conftest.err conftest.$ac_objext \
8622 conftest$ac_exeext conftest.$ac_ext
8623 LIBS=$ac_check_lib_save_LIBS
8625 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8626 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8627 if test $ac_cv_lib_dld_shl_load = yes; then
8628 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8630 echo "$as_me:$LINENO: checking for dlopen" >&5
8631 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8632 if test "${ac_cv_func_dlopen+set}" = set; then
8633 echo $ECHO_N "(cached) $ECHO_C" >&6
8635 cat >conftest.$ac_ext <<_ACEOF
8638 cat confdefs.h >>conftest.$ac_ext
8639 cat >>conftest.$ac_ext <<_ACEOF
8640 /* end confdefs.h. */
8641 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8642 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8643 #define dlopen innocuous_dlopen
8645 /* System header to define __stub macros and hopefully few prototypes,
8646 which can conflict with char dlopen (); below.
8647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8648 <limits.h> exists even on freestanding compilers. */
8651 # include <limits.h>
8653 # include <assert.h>
8658 /* 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. */
8666 /* The GNU C library defines this for functions which it implements
8667 to always fail with ENOSYS. Some functions are actually named
8668 something starting with __ and the normal name is an alias. */
8669 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8672 char (*f) () = dlopen;
8686 rm -f conftest.$ac_objext conftest$ac_exeext
8687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8688 (eval $ac_link) 2>conftest.er1
8690 grep -v '^ *+' conftest.er1 >conftest.err
8692 cat conftest.err >&5
8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); } &&
8695 { ac_try='test -z "$ac_c_werror_flag"
8696 || test ! -s conftest.err'
8697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); }; } &&
8702 { ac_try='test -s conftest$ac_exeext'
8703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); }; }; then
8708 ac_cv_func_dlopen=yes
8710 echo "$as_me: failed program was:" >&5
8711 sed 's/^/| /' conftest.$ac_ext >&5
8713 ac_cv_func_dlopen=no
8715 rm -f conftest.err conftest.$ac_objext \
8716 conftest$ac_exeext conftest.$ac_ext
8718 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8719 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8720 if test $ac_cv_func_dlopen = yes; then
8721 lt_cv_dlopen="dlopen"
8723 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8724 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8725 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8726 echo $ECHO_N "(cached) $ECHO_C" >&6
8728 ac_check_lib_save_LIBS=$LIBS
8730 cat >conftest.$ac_ext <<_ACEOF
8733 cat confdefs.h >>conftest.$ac_ext
8734 cat >>conftest.$ac_ext <<_ACEOF
8735 /* end confdefs.h. */
8737 /* Override any gcc2 internal prototype to avoid an error. */
8741 /* We use char because int might match the return type of a gcc2
8742 builtin and then its argument prototype would still apply. */
8752 rm -f conftest.$ac_objext conftest$ac_exeext
8753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8754 (eval $ac_link) 2>conftest.er1
8756 grep -v '^ *+' conftest.er1 >conftest.err
8758 cat conftest.err >&5
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); } &&
8761 { ac_try='test -z "$ac_c_werror_flag"
8762 || test ! -s conftest.err'
8763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); }; } &&
8768 { ac_try='test -s conftest$ac_exeext'
8769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); }; }; then
8774 ac_cv_lib_dl_dlopen=yes
8776 echo "$as_me: failed program was:" >&5
8777 sed 's/^/| /' conftest.$ac_ext >&5
8779 ac_cv_lib_dl_dlopen=no
8781 rm -f conftest.err conftest.$ac_objext \
8782 conftest$ac_exeext conftest.$ac_ext
8783 LIBS=$ac_check_lib_save_LIBS
8785 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8786 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8787 if test $ac_cv_lib_dl_dlopen = yes; then
8788 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8790 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8791 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8792 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8793 echo $ECHO_N "(cached) $ECHO_C" >&6
8795 ac_check_lib_save_LIBS=$LIBS
8797 cat >conftest.$ac_ext <<_ACEOF
8800 cat confdefs.h >>conftest.$ac_ext
8801 cat >>conftest.$ac_ext <<_ACEOF
8802 /* end confdefs.h. */
8804 /* Override any gcc2 internal prototype to avoid an error. */
8808 /* We use char because int might match the return type of a gcc2
8809 builtin and then its argument prototype would still apply. */
8819 rm -f conftest.$ac_objext conftest$ac_exeext
8820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8821 (eval $ac_link) 2>conftest.er1
8823 grep -v '^ *+' conftest.er1 >conftest.err
8825 cat conftest.err >&5
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); } &&
8828 { ac_try='test -z "$ac_c_werror_flag"
8829 || test ! -s conftest.err'
8830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); }; } &&
8835 { ac_try='test -s conftest$ac_exeext'
8836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); }; }; then
8841 ac_cv_lib_svld_dlopen=yes
8843 echo "$as_me: failed program was:" >&5
8844 sed 's/^/| /' conftest.$ac_ext >&5
8846 ac_cv_lib_svld_dlopen=no
8848 rm -f conftest.err conftest.$ac_objext \
8849 conftest$ac_exeext conftest.$ac_ext
8850 LIBS=$ac_check_lib_save_LIBS
8852 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8853 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8854 if test $ac_cv_lib_svld_dlopen = yes; then
8855 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8857 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8858 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8859 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8860 echo $ECHO_N "(cached) $ECHO_C" >&6
8862 ac_check_lib_save_LIBS=$LIBS
8864 cat >conftest.$ac_ext <<_ACEOF
8867 cat confdefs.h >>conftest.$ac_ext
8868 cat >>conftest.$ac_ext <<_ACEOF
8869 /* end confdefs.h. */
8871 /* Override any gcc2 internal prototype to avoid an error. */
8875 /* We use char because int might match the return type of a gcc2
8876 builtin and then its argument prototype would still apply. */
8886 rm -f conftest.$ac_objext conftest$ac_exeext
8887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8888 (eval $ac_link) 2>conftest.er1
8890 grep -v '^ *+' conftest.er1 >conftest.err
8892 cat conftest.err >&5
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); } &&
8895 { ac_try='test -z "$ac_c_werror_flag"
8896 || test ! -s conftest.err'
8897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); }; } &&
8902 { ac_try='test -s conftest$ac_exeext'
8903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); }; }; then
8908 ac_cv_lib_dld_dld_link=yes
8910 echo "$as_me: failed program was:" >&5
8911 sed 's/^/| /' conftest.$ac_ext >&5
8913 ac_cv_lib_dld_dld_link=no
8915 rm -f conftest.err conftest.$ac_objext \
8916 conftest$ac_exeext conftest.$ac_ext
8917 LIBS=$ac_check_lib_save_LIBS
8919 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8920 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8921 if test $ac_cv_lib_dld_dld_link = yes; then
8922 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8943 if test "x$lt_cv_dlopen" != xno; then
8949 case $lt_cv_dlopen in
8951 save_CPPFLAGS="$CPPFLAGS"
8952 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8954 save_LDFLAGS="$LDFLAGS"
8955 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8958 LIBS="$lt_cv_dlopen_libs $LIBS"
8960 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8961 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8962 if test "${lt_cv_dlopen_self+set}" = set; then
8963 echo $ECHO_N "(cached) $ECHO_C" >&6
8965 if test "$cross_compiling" = yes; then :
8966 lt_cv_dlopen_self=cross
8968 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8969 lt_status=$lt_dlunknown
8970 cat > conftest.$ac_ext <<EOF
8971 #line 8971 "configure"
8972 #include "confdefs.h"
8981 # define LT_DLGLOBAL RTLD_GLOBAL
8984 # define LT_DLGLOBAL DL_GLOBAL
8986 # define LT_DLGLOBAL 0
8990 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8991 find out it does not work in some platform. */
8992 #ifndef LT_DLLAZY_OR_NOW
8994 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8997 # define LT_DLLAZY_OR_NOW DL_LAZY
9000 # define LT_DLLAZY_OR_NOW RTLD_NOW
9003 # define LT_DLLAZY_OR_NOW DL_NOW
9005 # define LT_DLLAZY_OR_NOW 0
9013 extern "C" void exit (int);
9016 void fnord() { int i=42;}
9019 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9020 int status = $lt_dlunknown;
9024 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9025 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9026 /* dlclose (self); */
9032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9033 (eval $ac_link) 2>&5
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9037 (./conftest; exit; ) 2>/dev/null
9040 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9041 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9042 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9045 # compilation failed
9046 lt_cv_dlopen_self=no
9053 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9054 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9056 if test "x$lt_cv_dlopen_self" = xyes; then
9057 LDFLAGS="$LDFLAGS $link_static_flag"
9058 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9059 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9060 if test "${lt_cv_dlopen_self_static+set}" = set; then
9061 echo $ECHO_N "(cached) $ECHO_C" >&6
9063 if test "$cross_compiling" = yes; then :
9064 lt_cv_dlopen_self_static=cross
9066 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9067 lt_status=$lt_dlunknown
9068 cat > conftest.$ac_ext <<EOF
9069 #line 9069 "configure"
9070 #include "confdefs.h"
9079 # define LT_DLGLOBAL RTLD_GLOBAL
9082 # define LT_DLGLOBAL DL_GLOBAL
9084 # define LT_DLGLOBAL 0
9088 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9089 find out it does not work in some platform. */
9090 #ifndef LT_DLLAZY_OR_NOW
9092 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9095 # define LT_DLLAZY_OR_NOW DL_LAZY
9098 # define LT_DLLAZY_OR_NOW RTLD_NOW
9101 # define LT_DLLAZY_OR_NOW DL_NOW
9103 # define LT_DLLAZY_OR_NOW 0
9111 extern "C" void exit (int);
9114 void fnord() { int i=42;}
9117 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9118 int status = $lt_dlunknown;
9122 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9123 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9124 /* dlclose (self); */
9130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9131 (eval $ac_link) 2>&5
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9135 (./conftest; exit; ) 2>/dev/null
9138 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9139 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9140 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9143 # compilation failed
9144 lt_cv_dlopen_self_static=no
9151 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9152 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9155 CPPFLAGS="$save_CPPFLAGS"
9156 LDFLAGS="$save_LDFLAGS"
9161 case $lt_cv_dlopen_self in
9162 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9163 *) enable_dlopen_self=unknown ;;
9166 case $lt_cv_dlopen_self_static in
9167 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9168 *) enable_dlopen_self_static=unknown ;;
9173 # Report which librarie types wil actually be built
9174 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9175 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9176 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9177 echo "${ECHO_T}$can_build_shared" >&6
9179 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9180 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9181 test "$can_build_shared" = "no" && enable_shared=no
9183 # On AIX, shared libraries and static libraries use the same namespace, and
9184 # are all built from PIC.
9187 test "$enable_shared" = yes && enable_static=no
9188 if test -n "$RANLIB"; then
9189 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9190 postinstall_cmds='$RANLIB $lib'
9195 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9196 test "$enable_shared" = yes && enable_static=no
9200 echo "$as_me:$LINENO: result: $enable_shared" >&5
9201 echo "${ECHO_T}$enable_shared" >&6
9203 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9204 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9205 # Make sure either enable_shared or enable_static is yes.
9206 test "$enable_shared" = yes || enable_static=yes
9207 echo "$as_me:$LINENO: result: $enable_static" >&5
9208 echo "${ECHO_T}$enable_static" >&6
9210 # The else clause should only fire when bootstrapping the
9211 # libtool distribution, otherwise you forgot to ship ltmain.sh
9212 # with your package, and you will get complaints that there are
9213 # no rules to generate ltmain.sh.
9214 if test -f "$ltmain"; then
9215 # See if we are running on zsh, and set the options which allow our commands through
9216 # without removal of \ escapes.
9217 if test -n "${ZSH_VERSION+set}" ; then
9218 setopt NO_GLOB_SUBST
9220 # Now quote all the things that may contain metacharacters while being
9221 # careful not to overquote the AC_SUBSTed values. We take copies of the
9222 # variables and quote the copies for generation of the libtool script.
9223 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9225 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9226 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9227 deplibs_check_method reload_flag reload_cmds need_locks \
9228 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9229 lt_cv_sys_global_symbol_to_c_name_address \
9230 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9231 old_postinstall_cmds old_postuninstall_cmds \
9235 lt_prog_compiler_wl \
9236 lt_prog_compiler_pic \
9237 lt_prog_compiler_static \
9238 lt_prog_compiler_no_builtin_flag \
9239 export_dynamic_flag_spec \
9240 thread_safe_flag_spec \
9241 whole_archive_flag_spec \
9242 enable_shared_with_static_runtimes \
9244 old_archive_from_new_cmds \
9249 compiler_lib_search_path \
9251 archive_expsym_cmds \
9253 postuninstall_cmds \
9254 old_archive_from_expsyms_cmds \
9255 allow_undefined_flag \
9257 export_symbols_cmds \
9258 hardcode_libdir_flag_spec \
9259 hardcode_libdir_flag_spec_ld \
9260 hardcode_libdir_separator \
9261 hardcode_automatic \
9263 module_expsym_cmds \
9264 lt_cv_prog_compiler_c_o \
9269 old_archive_cmds | \
9270 old_archive_from_new_cmds | \
9272 archive_expsym_cmds | \
9274 module_expsym_cmds | \
9275 old_archive_from_expsyms_cmds | \
9276 export_symbols_cmds | \
9277 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9278 postinstall_cmds | postuninstall_cmds | \
9279 old_postinstall_cmds | old_postuninstall_cmds | \
9280 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9281 # Double-quote double-evaled strings.
9282 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9285 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9291 *'\$0 --fallback-echo"')
9292 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9297 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9299 { echo "$as_me:$LINENO: creating $ofile" >&5
9300 echo "$as_me: creating $ofile" >&6;}
9302 cat <<__EOF__ >> "$cfgfile"
9305 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9306 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9307 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9309 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9310 # Free Software Foundation, Inc.
9312 # This file is part of GNU Libtool:
9313 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9315 # This program is free software; you can redistribute it and/or modify
9316 # it under the terms of the GNU General Public License as published by
9317 # the Free Software Foundation; either version 2 of the License, or
9318 # (at your option) any later version.
9320 # This program is distributed in the hope that it will be useful, but
9321 # WITHOUT ANY WARRANTY; without even the implied warranty of
9322 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9323 # General Public License for more details.
9325 # You should have received a copy of the GNU General Public License
9326 # along with this program; if not, write to the Free Software
9327 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9329 # As a special exception to the GNU General Public License, if you
9330 # distribute this file as part of a program that contains a
9331 # configuration script generated by Autoconf, you may include it under
9332 # the same distribution terms that you use for the rest of that program.
9334 # A sed program that does not truncate output.
9337 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9338 Xsed="$SED -e 1s/^X//"
9340 # The HP-UX ksh and POSIX shell print the target directory to stdout
9342 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9344 # The names of the tagged configurations supported by this script.
9347 # ### BEGIN LIBTOOL CONFIG
9349 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9351 # Shell to use when invoking shell scripts.
9354 # Whether or not to build shared libraries.
9355 build_libtool_libs=$enable_shared
9357 # Whether or not to build static libraries.
9358 build_old_libs=$enable_static
9360 # Whether or not to add -lc for building shared libraries.
9361 build_libtool_need_lc=$archive_cmds_need_lc
9363 # Whether or not to disallow shared libs when runtime libs are static
9364 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9366 # Whether or not to optimize for fast installation.
9367 fast_install=$enable_fast_install
9370 host_alias=$host_alias
9375 build_alias=$build_alias
9379 # An echo program that does not interpret backslashes.
9384 AR_FLAGS=$lt_AR_FLAGS
9389 # A language-specific compiler.
9392 # Is the compiler the GNU C compiler?
9398 # The linker used to build libraries.
9401 # Whether we need hard or soft links.
9404 # A BSD-compatible nm program.
9407 # A symbol stripping program
9410 # Used to examine libraries when file_magic_cmd begins "file"
9411 MAGIC_CMD=$MAGIC_CMD
9413 # Used on cygwin: DLL creation program.
9416 # Used on cygwin: object dumper.
9419 # Used on cygwin: assembler.
9422 # The name of the directory that contains temporary libtool files.
9425 # How to create reloadable object files.
9426 reload_flag=$lt_reload_flag
9427 reload_cmds=$lt_reload_cmds
9429 # How to pass a linker flag through the compiler.
9430 wl=$lt_lt_prog_compiler_wl
9432 # Object file suffix (normally "o").
9435 # Old archive suffix (normally "a").
9438 # Shared library suffix (normally ".so").
9439 shrext_cmds='$shrext_cmds'
9441 # Executable file suffix (normally "").
9444 # Additional compiler flags for building library objects.
9445 pic_flag=$lt_lt_prog_compiler_pic
9448 # What is the maximum length of a command?
9449 max_cmd_len=$lt_cv_sys_max_cmd_len
9451 # Does compiler simultaneously support -c and -o options?
9452 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9454 # Must we lock files when doing compilation?
9455 need_locks=$lt_need_locks
9457 # Do we need the lib prefix for modules?
9458 need_lib_prefix=$need_lib_prefix
9460 # Do we need a version for libraries?
9461 need_version=$need_version
9463 # Whether dlopen is supported.
9464 dlopen_support=$enable_dlopen
9466 # Whether dlopen of programs is supported.
9467 dlopen_self=$enable_dlopen_self
9469 # Whether dlopen of statically linked programs is supported.
9470 dlopen_self_static=$enable_dlopen_self_static
9472 # Compiler flag to prevent dynamic linking.
9473 link_static_flag=$lt_lt_prog_compiler_static
9475 # Compiler flag to turn off builtin functions.
9476 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9478 # Compiler flag to allow reflexive dlopens.
9479 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9481 # Compiler flag to generate shared objects directly from archives.
9482 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9484 # Compiler flag to generate thread-safe objects.
9485 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9487 # Library versioning type.
9488 version_type=$version_type
9490 # Format of library name prefix.
9491 libname_spec=$lt_libname_spec
9493 # List of archive names. First name is the real one, the rest are links.
9494 # The last name is the one that the linker finds with -lNAME.
9495 library_names_spec=$lt_library_names_spec
9497 # The coded name of the library, if different from the real name.
9498 soname_spec=$lt_soname_spec
9500 # Commands used to build and install an old-style archive.
9502 old_archive_cmds=$lt_old_archive_cmds
9503 old_postinstall_cmds=$lt_old_postinstall_cmds
9504 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9506 # Create an old-style archive from a shared archive.
9507 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9509 # Create a temporary old-style archive to link instead of a shared archive.
9510 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9512 # Commands used to build and install a shared archive.
9513 archive_cmds=$lt_archive_cmds
9514 archive_expsym_cmds=$lt_archive_expsym_cmds
9515 postinstall_cmds=$lt_postinstall_cmds
9516 postuninstall_cmds=$lt_postuninstall_cmds
9518 # Commands used to build a loadable module (assumed same as above if empty)
9519 module_cmds=$lt_module_cmds
9520 module_expsym_cmds=$lt_module_expsym_cmds
9522 # Commands to strip libraries.
9523 old_striplib=$lt_old_striplib
9524 striplib=$lt_striplib
9526 # Dependencies to place before the objects being linked to create a
9528 predep_objects=$lt_predep_objects
9530 # Dependencies to place after the objects being linked to create a
9532 postdep_objects=$lt_postdep_objects
9534 # Dependencies to place before the objects being linked to create a
9538 # Dependencies to place after the objects being linked to create a
9540 postdeps=$lt_postdeps
9542 # The library search path used internally by the compiler when linking
9544 compiler_lib_search_path=$lt_compiler_lib_search_path
9546 # Method to check whether dependent libraries are shared objects.
9547 deplibs_check_method=$lt_deplibs_check_method
9549 # Command to use when deplibs_check_method == file_magic.
9550 file_magic_cmd=$lt_file_magic_cmd
9552 # Flag that allows shared libraries with undefined symbols to be built.
9553 allow_undefined_flag=$lt_allow_undefined_flag
9555 # Flag that forces no undefined symbols.
9556 no_undefined_flag=$lt_no_undefined_flag
9558 # Commands used to finish a libtool library installation in a directory.
9559 finish_cmds=$lt_finish_cmds
9561 # Same as above, but a single script fragment to be evaled but not shown.
9562 finish_eval=$lt_finish_eval
9564 # Take the output of nm and produce a listing of raw symbols and C names.
9565 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9567 # Transform the output of nm in a proper C declaration
9568 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9570 # Transform the output of nm in a C name address pair
9571 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9573 # This is the shared library runtime path variable.
9574 runpath_var=$runpath_var
9576 # This is the shared library path variable.
9577 shlibpath_var=$shlibpath_var
9579 # Is shlibpath searched before the hard-coded library search path?
9580 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9582 # How to hardcode a shared library path into an executable.
9583 hardcode_action=$hardcode_action
9585 # Whether we should hardcode library paths into libraries.
9586 hardcode_into_libs=$hardcode_into_libs
9588 # Flag to hardcode \$libdir into a binary during linking.
9589 # This must work even if \$libdir does not exist.
9590 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9592 # If ld is used when linking, flag to hardcode \$libdir into
9593 # a binary during linking. This must work even if \$libdir does
9595 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9597 # Whether we need a single -rpath flag with a separated argument.
9598 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9600 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9602 hardcode_direct=$hardcode_direct
9604 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9606 hardcode_minus_L=$hardcode_minus_L
9608 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9609 # the resulting binary.
9610 hardcode_shlibpath_var=$hardcode_shlibpath_var
9612 # Set to yes if building a shared library automatically hardcodes DIR into the library
9613 # and all subsequent libraries and executables linked against it.
9614 hardcode_automatic=$hardcode_automatic
9616 # Variables whose values should be saved in libtool wrapper scripts and
9617 # restored at relink time.
9618 variables_saved_for_relink="$variables_saved_for_relink"
9620 # Whether libtool must link a program against all its dependency libraries.
9621 link_all_deplibs=$link_all_deplibs
9623 # Compile-time system search path for libraries
9624 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9626 # Run-time system search path for libraries
9627 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9629 # Fix the shell variable \$srcfile for the compiler.
9630 fix_srcfile_path="$fix_srcfile_path"
9632 # Set to yes if exported symbols are required.
9633 always_export_symbols=$always_export_symbols
9635 # The commands to list exported symbols.
9636 export_symbols_cmds=$lt_export_symbols_cmds
9638 # The commands to extract the exported symbol list from a shared archive.
9639 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9641 # Symbols that should not be listed in the preloaded symbols.
9642 exclude_expsyms=$lt_exclude_expsyms
9644 # Symbols that must always be exported.
9645 include_expsyms=$lt_include_expsyms
9647 # ### END LIBTOOL CONFIG
9654 cat <<\EOF >> "$cfgfile"
9656 # AIX sometimes has problems with the GCC collect2 program. For some
9657 # reason, if we set the COLLECT_NAMES environment variable, the problems
9658 # vanish in a puff of smoke.
9659 if test "X${COLLECT_NAMES+set}" != Xset; then
9661 export COLLECT_NAMES
9667 # We use sed instead of cat because bash on DJGPP gets confused if
9668 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9669 # text mode, it properly converts lines to CR/LF. This bash problem
9670 # is reportedly fixed, but why not run on old versions too?
9671 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9673 mv -f "$cfgfile" "$ofile" || \
9674 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9678 # If there is no Makefile yet, we rely on a make rule to execute
9679 # `config.status --recheck' to rerun these tests and create the
9680 # libtool script then.
9681 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9682 if test -f "$ltmain_in"; then
9683 test -f Makefile && make "$ltmain"
9689 ac_cpp='$CPP $CPPFLAGS'
9690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9697 # Check whether --with-tags or --without-tags was given.
9698 if test "${with_tags+set}" = set; then
9699 withval="$with_tags"
9703 if test -f "$ltmain" && test -n "$tagnames"; then
9704 if test ! -f "${ofile}"; then
9705 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9706 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9709 if test -z "$LTCC"; then
9710 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9711 if test -z "$LTCC"; then
9712 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9713 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9715 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9716 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9720 # Extract list of available tagged configurations in $ofile.
9721 # Note that this assumes the entire list is on one line.
9722 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9724 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9725 for tagname in $tagnames; do
9727 # Check whether tagname contains only valid characters
9728 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9730 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9731 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9732 { (exit 1); exit 1; }; }
9736 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9738 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9739 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9740 { (exit 1); exit 1; }; }
9743 # Update the list of available tags.
9744 if test -n "$tagname"; then
9745 echo appending configuration tag \"$tagname\" to $ofile
9749 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9750 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9751 (test "X$CXX" != "Xg++"))) ; then
9753 ac_cpp='$CXXCPP $CPPFLAGS'
9754 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9755 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9756 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9761 archive_cmds_need_lc_CXX=no
9762 allow_undefined_flag_CXX=
9763 always_export_symbols_CXX=no
9764 archive_expsym_cmds_CXX=
9765 export_dynamic_flag_spec_CXX=
9766 hardcode_direct_CXX=no
9767 hardcode_libdir_flag_spec_CXX=
9768 hardcode_libdir_flag_spec_ld_CXX=
9769 hardcode_libdir_separator_CXX=
9770 hardcode_minus_L_CXX=no
9771 hardcode_automatic_CXX=no
9773 module_expsym_cmds_CXX=
9774 link_all_deplibs_CXX=unknown
9775 old_archive_cmds_CXX=$old_archive_cmds
9776 no_undefined_flag_CXX=
9777 whole_archive_flag_spec_CXX=
9778 enable_shared_with_static_runtimes_CXX=no
9780 # Dependencies to place before and after the object being linked:
9782 postdep_objects_CXX=
9785 compiler_lib_search_path_CXX=
9787 # Source file extension for C++ test sources.
9790 # Object file extension for compiled C++ test sources.
9794 # Code to be used in simple compile tests
9795 lt_simple_compile_test_code="int some_variable = 0;\n"
9797 # Code to be used in simple link tests
9798 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9800 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9802 # If no C compiler was specified, use CC.
9805 # Allow CC to be a program name with arguments.
9809 # save warnings/boilerplate of simple test code
9810 ac_outfile=conftest.$ac_objext
9811 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9812 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9813 _lt_compiler_boilerplate=`cat conftest.err`
9816 ac_outfile=conftest.$ac_objext
9817 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9818 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9819 _lt_linker_boilerplate=`cat conftest.err`
9823 # Allow CC to be a program name with arguments.
9828 lt_save_with_gnu_ld=$with_gnu_ld
9829 lt_save_path_LD=$lt_cv_path_LD
9830 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9831 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9833 unset lt_cv_prog_gnu_ld
9835 if test -n "${lt_cv_path_LDCXX+set}"; then
9836 lt_cv_path_LD=$lt_cv_path_LDCXX
9840 test -z "${LDCXX+set}" || LD=$LDCXX
9844 for cc_temp in $compiler""; do
9846 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9847 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9852 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9855 # We don't want -fno-exception wen compiling C++ code, so set the
9856 # no_builtin_flag separately
9857 if test "$GXX" = yes; then
9858 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9860 lt_prog_compiler_no_builtin_flag_CXX=
9863 if test "$GXX" = yes; then
9864 # Set up default GNU C++ configuration
9867 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9868 if test "${with_gnu_ld+set}" = set; then
9869 withval="$with_gnu_ld"
9870 test "$withval" = no || with_gnu_ld=yes
9875 if test "$GCC" = yes; then
9876 # Check if gcc -print-prog-name=ld gives a path.
9877 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9878 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9881 # gcc leaves a trailing carriage return which upsets mingw
9882 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9884 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9887 # Accept absolute paths.
9889 re_direlt='/[^/][^/]*/\.\./'
9890 # Canonicalize the pathname of ld
9891 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9892 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9893 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9895 test -z "$LD" && LD="$ac_prog"
9898 # If it fails, then pretend we aren't using GCC.
9902 # If it is relative, then search for the first ld in PATH.
9906 elif test "$with_gnu_ld" = yes; then
9907 echo "$as_me:$LINENO: checking for GNU ld" >&5
9908 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9910 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9911 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9913 if test "${lt_cv_path_LD+set}" = set; then
9914 echo $ECHO_N "(cached) $ECHO_C" >&6
9916 if test -z "$LD"; then
9917 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9918 for ac_dir in $PATH; do
9920 test -z "$ac_dir" && ac_dir=.
9921 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9922 lt_cv_path_LD="$ac_dir/$ac_prog"
9923 # Check to see if the program is GNU ld. I'd rather use --version,
9924 # but apparently some GNU ld's only accept -v.
9925 # Break only if it was the GNU/non-GNU ld that we prefer.
9926 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9927 *GNU* | *'with BFD'*)
9928 test "$with_gnu_ld" != no && break
9931 test "$with_gnu_ld" != yes && break
9938 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9943 if test -n "$LD"; then
9944 echo "$as_me:$LINENO: result: $LD" >&5
9945 echo "${ECHO_T}$LD" >&6
9947 echo "$as_me:$LINENO: result: no" >&5
9948 echo "${ECHO_T}no" >&6
9950 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9951 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9952 { (exit 1); exit 1; }; }
9953 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9954 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9955 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9956 echo $ECHO_N "(cached) $ECHO_C" >&6
9958 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9959 case `$LD -v 2>&1 </dev/null` in
9960 *GNU* | *'with BFD'*)
9961 lt_cv_prog_gnu_ld=yes
9964 lt_cv_prog_gnu_ld=no
9968 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9969 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9970 with_gnu_ld=$lt_cv_prog_gnu_ld
9974 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9975 # archiving commands below assume that GNU ld is being used.
9976 if test "$with_gnu_ld" = yes; then
9977 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9978 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'
9980 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9981 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9983 # If archive_cmds runs LD, not CC, wlarc should be empty
9984 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9985 # investigate it a little bit more. (MM)
9988 # ancient GNU ld didn't support --whole-archive et. al.
9989 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9990 grep 'no-whole-archive' > /dev/null; then
9991 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9993 whole_archive_flag_spec_CXX=
9999 # A generic and very simple default shared library creation
10000 # command for GNU C++ for the case where it uses the native
10001 # linker, instead of GNU ld. If possible, this setting should
10002 # overridden to take advantage of the native linker features on
10003 # the platform it is being used on.
10004 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10007 # Commands to make compiler produce verbose output that lists
10008 # what "hidden" libraries, object files and flags are used when
10009 # linking a shared library.
10010 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10018 # PORTME: fill in a description of your system's C++ link characteristics
10019 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10020 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10024 # FIXME: insert proper C++ library support
10028 if test "$host_cpu" = ia64; then
10029 # On IA64, the linker does run time linking by default, so we don't
10030 # have to do anything special.
10031 aix_use_runtimelinking=no
10032 exp_sym_flag='-Bexport'
10035 aix_use_runtimelinking=no
10037 # Test if we are trying to use run time linking or normal
10038 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10039 # need to do runtime linking.
10040 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10041 for ld_flag in $LDFLAGS; do
10044 aix_use_runtimelinking=yes
10051 exp_sym_flag='-bexport'
10052 no_entry_flag='-bnoentry'
10055 # When large executables or shared objects are built, AIX ld can
10056 # have problems creating the table of contents. If linking a library
10057 # or program results in "error TOC overflow" add -mminimal-toc to
10058 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10059 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10061 archive_cmds_CXX=''
10062 hardcode_direct_CXX=yes
10063 hardcode_libdir_separator_CXX=':'
10064 link_all_deplibs_CXX=yes
10066 if test "$GXX" = yes; then
10067 case $host_os in aix4.[012]|aix4.[012].*)
10068 # We only want to do this on AIX 4.2 and lower, the check
10069 # below for broken collect2 doesn't work under 4.3+
10070 collect2name=`${CC} -print-prog-name=collect2`
10071 if test -f "$collect2name" && \
10072 strings "$collect2name" | grep resolve_lib_name >/dev/null
10074 # We have reworked collect2
10075 hardcode_direct_CXX=yes
10077 # We have old collect2
10078 hardcode_direct_CXX=unsupported
10079 # It fails to find uninstalled libraries when the uninstalled
10080 # path is not listed in the libpath. Setting hardcode_minus_L
10081 # to unsupported forces relinking
10082 hardcode_minus_L_CXX=yes
10083 hardcode_libdir_flag_spec_CXX='-L$libdir'
10084 hardcode_libdir_separator_CXX=
10087 shared_flag='-shared'
10088 if test "$aix_use_runtimelinking" = yes; then
10089 shared_flag="$shared_flag "'${wl}-G'
10093 if test "$host_cpu" = ia64; then
10094 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10095 # chokes on -Wl,-G. The following line is correct:
10098 if test "$aix_use_runtimelinking" = yes; then
10099 shared_flag='${wl}-G'
10101 shared_flag='${wl}-bM:SRE'
10106 # It seems that -bexpall does not export symbols beginning with
10107 # underscore (_), so it is better to generate a list of symbols to export.
10108 always_export_symbols_CXX=yes
10109 if test "$aix_use_runtimelinking" = yes; then
10110 # Warning - without using the other runtime loading flags (-brtl),
10111 # -berok will link without error, but may produce a broken library.
10112 allow_undefined_flag_CXX='-berok'
10113 # Determine the default libpath from the value encoded in an empty executable.
10114 cat >conftest.$ac_ext <<_ACEOF
10117 cat confdefs.h >>conftest.$ac_ext
10118 cat >>conftest.$ac_ext <<_ACEOF
10119 /* end confdefs.h. */
10129 rm -f conftest.$ac_objext conftest$ac_exeext
10130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10131 (eval $ac_link) 2>conftest.er1
10133 grep -v '^ *+' conftest.er1 >conftest.err
10135 cat conftest.err >&5
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); } &&
10138 { ac_try='test -z "$ac_cxx_werror_flag"
10139 || test ! -s conftest.err'
10140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10141 (eval $ac_try) 2>&5
10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); }; } &&
10145 { ac_try='test -s conftest$ac_exeext'
10146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10147 (eval $ac_try) 2>&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); }; }; then
10152 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10154 # Check for a 64-bit object if we didn't find anything.
10155 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; }
10158 echo "$as_me: failed program was:" >&5
10159 sed 's/^/| /' conftest.$ac_ext >&5
10162 rm -f conftest.err conftest.$ac_objext \
10163 conftest$ac_exeext conftest.$ac_ext
10164 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10166 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10168 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"
10170 if test "$host_cpu" = ia64; then
10171 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10172 allow_undefined_flag_CXX="-z nodefs"
10173 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"
10175 # Determine the default libpath from the value encoded in an empty executable.
10176 cat >conftest.$ac_ext <<_ACEOF
10179 cat confdefs.h >>conftest.$ac_ext
10180 cat >>conftest.$ac_ext <<_ACEOF
10181 /* end confdefs.h. */
10191 rm -f conftest.$ac_objext conftest$ac_exeext
10192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10193 (eval $ac_link) 2>conftest.er1
10195 grep -v '^ *+' conftest.er1 >conftest.err
10197 cat conftest.err >&5
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); } &&
10200 { ac_try='test -z "$ac_cxx_werror_flag"
10201 || test ! -s conftest.err'
10202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10203 (eval $ac_try) 2>&5
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); }; } &&
10207 { ac_try='test -s conftest$ac_exeext'
10208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10209 (eval $ac_try) 2>&5
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); }; }; then
10214 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10216 # Check for a 64-bit object if we didn't find anything.
10217 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; }
10220 echo "$as_me: failed program was:" >&5
10221 sed 's/^/| /' conftest.$ac_ext >&5
10224 rm -f conftest.err conftest.$ac_objext \
10225 conftest$ac_exeext conftest.$ac_ext
10226 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10228 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10229 # Warning - without using the other run time loading flags,
10230 # -berok will link without error, but may produce a broken library.
10231 no_undefined_flag_CXX=' ${wl}-bernotok'
10232 allow_undefined_flag_CXX=' ${wl}-berok'
10233 # -bexpall does not export symbols beginning with underscore (_)
10234 always_export_symbols_CXX=yes
10235 # Exported symbols can be pulled into shared objects from archives
10236 whole_archive_flag_spec_CXX=' '
10237 archive_cmds_need_lc_CXX=yes
10238 # This is similar to how AIX traditionally builds it's shared libraries.
10239 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'
10244 case $cc_basename in
10246 # FIXME: insert proper C++ library support
10253 cygwin* | mingw* | pw32*)
10254 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10255 # as there is no search path for DLLs.
10256 hardcode_libdir_flag_spec_CXX='-L$libdir'
10257 allow_undefined_flag_CXX=unsupported
10258 always_export_symbols_CXX=no
10259 enable_shared_with_static_runtimes_CXX=yes
10261 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10262 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'
10263 # If the export-symbols file already is a .def file (1st line
10264 # is EXPORTS), use it as is; otherwise, prepend...
10265 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10266 cp $export_symbols $output_objdir/$soname.def;
10268 echo EXPORTS > $output_objdir/$soname.def;
10269 cat $export_symbols >> $output_objdir/$soname.def;
10271 $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'
10276 darwin* | rhapsody*)
10278 rhapsody* | darwin1.[012])
10279 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10282 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10283 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10285 case ${MACOSX_DEPLOYMENT_TARGET} in
10287 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10290 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10296 archive_cmds_need_lc_CXX=no
10297 hardcode_direct_CXX=no
10298 hardcode_automatic_CXX=yes
10299 hardcode_shlibpath_var_CXX=unsupported
10300 whole_archive_flag_spec_CXX=''
10301 link_all_deplibs_CXX=yes
10303 if test "$GXX" = yes ; then
10304 lt_int_apple_cc_single_mod=no
10305 output_verbose_link_cmd='echo'
10306 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10307 lt_int_apple_cc_single_mod=yes
10309 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10310 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10312 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'
10314 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10315 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10316 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10317 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}'
10319 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}'
10321 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}'
10323 case $cc_basename in
10325 output_verbose_link_cmd='echo'
10326 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'
10327 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10328 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10329 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}'
10330 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}'
10340 case $cc_basename in
10342 # FIXME: insert proper C++ library support
10346 # Green Hills C++ Compiler
10347 # FIXME: insert proper C++ library support
10351 # FIXME: insert proper C++ library support
10357 # C++ shared libraries reported to be fairly broken before switch to ELF
10361 archive_cmds_need_lc_CXX=no
10363 freebsd* | kfreebsd*-gnu | dragonfly*)
10364 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10371 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10372 hardcode_libdir_separator_CXX=:
10373 export_dynamic_flag_spec_CXX='${wl}-E'
10374 hardcode_direct_CXX=yes
10375 hardcode_minus_L_CXX=yes # Not in the search PATH,
10376 # but as the default
10377 # location of the library.
10379 case $cc_basename in
10381 # FIXME: insert proper C++ library support
10385 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'
10386 # Commands to make compiler produce verbose output that lists
10387 # what "hidden" libraries, object files and flags are used when
10388 # linking a shared library.
10390 # There doesn't appear to be a way to prevent this compiler from
10391 # explicitly linking system object files so we need to strip them
10392 # from the output so that they don't get included in the library
10394 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'
10397 if test "$GXX" = yes; then
10398 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'
10400 # FIXME: insert proper C++ library support
10407 if test $with_gnu_ld = no; then
10408 case "$host_cpu" in
10410 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10411 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10412 hardcode_libdir_separator_CXX=:
10415 hardcode_libdir_flag_spec_CXX='-L$libdir'
10418 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10419 hardcode_libdir_separator_CXX=:
10420 export_dynamic_flag_spec_CXX='${wl}-E'
10424 case "$host_cpu" in
10426 hardcode_direct_CXX=no
10427 hardcode_shlibpath_var_CXX=no
10430 hardcode_direct_CXX=no
10431 hardcode_shlibpath_var_CXX=no
10432 hardcode_minus_L_CXX=yes # Not in the search PATH,
10433 # but as the default
10434 # location of the library.
10437 hardcode_direct_CXX=yes
10438 hardcode_minus_L_CXX=yes # Not in the search PATH,
10439 # but as the default
10440 # location of the library.
10444 case $cc_basename in
10446 # FIXME: insert proper C++ library support
10450 case "$host_cpu" in
10452 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10455 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10458 # Commands to make compiler produce verbose output that lists
10459 # what "hidden" libraries, object files and flags are used when
10460 # linking a shared library.
10462 # There doesn't appear to be a way to prevent this compiler from
10463 # explicitly linking system object files so we need to strip them
10464 # from the output so that they don't get included in the library
10466 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'
10469 if test "$GXX" = yes; then
10470 if test $with_gnu_ld = no; then
10471 case "$host_cpu" in
10473 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10476 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'
10481 # FIXME: insert proper C++ library support
10488 case $cc_basename in
10491 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10493 # Archives containing C++ object files must be created using
10494 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10495 # necessary to make sure instantiated templates are included
10497 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10500 if test "$GXX" = yes; then
10501 if test "$with_gnu_ld" = no; then
10502 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10504 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'
10507 link_all_deplibs_CXX=yes
10510 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10511 hardcode_libdir_separator_CXX=:
10514 case $cc_basename in
10516 # Kuck and Associates, Inc. (KAI) C++ Compiler
10518 # KCC will only create a shared library if the output file
10519 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10520 # to its proper name (with version) after linking.
10521 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'
10522 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'
10523 # Commands to make compiler produce verbose output that lists
10524 # what "hidden" libraries, object files and flags are used when
10525 # linking a shared library.
10527 # There doesn't appear to be a way to prevent this compiler from
10528 # explicitly linking system object files so we need to strip them
10529 # from the output so that they don't get included in the library
10531 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'
10533 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10534 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10536 # Archives containing C++ object files must be created using
10537 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10538 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10543 # version 8.0 and above of icpc choke on multiply defined symbols
10544 # if we add $predep_objects and $postdep_objects, however 7.1 and
10545 # earlier do not add the objects themselves.
10546 case `$CC -V 2>&1` in
10548 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10549 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'
10551 *) # Version 8.0 or newer
10554 ia64*) tmp_idyn=' -i_dynamic';;
10556 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10557 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'
10560 archive_cmds_need_lc_CXX=no
10561 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10562 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10563 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10566 # Portland Group C++ compiler
10567 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10568 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10570 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10571 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10572 whole_archive_flag_spec_CXX='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10576 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10577 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'
10579 runpath_var=LD_RUN_PATH
10580 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10581 hardcode_libdir_separator_CXX=:
10583 # Commands to make compiler produce verbose output that lists
10584 # what "hidden" libraries, object files and flags are used when
10585 # linking a shared library.
10587 # There doesn't appear to be a way to prevent this compiler from
10588 # explicitly linking system object files so we need to strip them
10589 # from the output so that they don't get included in the library
10591 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'
10596 # FIXME: insert proper C++ library support
10600 # FIXME: insert proper C++ library support
10604 case $cc_basename in
10606 # FIXME: insert proper C++ library support
10610 # FIXME: insert proper C++ library support
10616 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10617 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10619 hardcode_libdir_flag_spec_CXX='-R$libdir'
10620 hardcode_direct_CXX=yes
10621 hardcode_shlibpath_var_CXX=no
10623 # Workaround some broken pre-1.5 toolchains
10624 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10627 # C++ shared libraries are fairly broken
10631 hardcode_direct_CXX=yes
10632 hardcode_shlibpath_var_CXX=no
10633 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10634 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10635 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10636 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10637 export_dynamic_flag_spec_CXX='${wl}-E'
10638 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10640 output_verbose_link_cmd='echo'
10643 case $cc_basename in
10645 # Kuck and Associates, Inc. (KAI) C++ Compiler
10647 # KCC will only create a shared library if the output file
10648 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10649 # to its proper name (with version) after linking.
10650 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'
10652 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10653 hardcode_libdir_separator_CXX=:
10655 # Archives containing C++ object files must be created using
10656 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10657 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10661 # Rational C++ 2.4.1
10662 # FIXME: insert proper C++ library support
10666 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10667 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10669 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10670 hardcode_libdir_separator_CXX=:
10672 # Commands to make compiler produce verbose output that lists
10673 # what "hidden" libraries, object files and flags are used when
10674 # linking a shared library.
10676 # There doesn't appear to be a way to prevent this compiler from
10677 # explicitly linking system object files so we need to strip them
10678 # from the output so that they don't get included in the library
10680 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'
10683 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10684 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10685 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10687 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10688 hardcode_libdir_separator_CXX=:
10690 # Commands to make compiler produce verbose output that lists
10691 # what "hidden" libraries, object files and flags are used when
10692 # linking a shared library.
10693 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10696 # FIXME: insert proper C++ library support
10703 case $cc_basename in
10705 # Kuck and Associates, Inc. (KAI) C++ Compiler
10707 # KCC will only create a shared library if the output file
10708 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10709 # to its proper name (with version) after linking.
10710 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'
10712 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10713 hardcode_libdir_separator_CXX=:
10715 # Archives containing C++ object files must be created using
10716 # the KAI C++ compiler.
10717 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10720 # Rational C++ 2.4.1
10721 # FIXME: insert proper C++ library support
10725 allow_undefined_flag_CXX=' -expect_unresolved \*'
10726 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10727 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10728 echo "-hidden">> $lib.exp~
10729 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
10732 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10733 hardcode_libdir_separator_CXX=:
10735 # Commands to make compiler produce verbose output that lists
10736 # what "hidden" libraries, object files and flags are used when
10737 # linking a shared library.
10739 # There doesn't appear to be a way to prevent this compiler from
10740 # explicitly linking system object files so we need to strip them
10741 # from the output so that they don't get included in the library
10743 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'
10746 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10747 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10748 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10750 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10751 hardcode_libdir_separator_CXX=:
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"'
10759 # FIXME: insert proper C++ library support
10766 # FIXME: insert proper C++ library support
10770 archive_cmds_need_lc_CXX=no
10771 case $cc_basename in
10773 # FIXME: insert proper C++ library support
10777 # FIXME: insert proper C++ library support
10783 case $cc_basename in
10786 # FIXME: insert proper C++ library support
10791 # FIXME: insert proper C++ library support
10795 # FIXME: insert proper C++ library support
10801 case $cc_basename in
10803 # Sun C++ 4.2, 5.x and Centerline C++
10804 no_undefined_flag_CXX=' -zdefs'
10805 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10806 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10807 $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'
10809 hardcode_libdir_flag_spec_CXX='-R$libdir'
10810 hardcode_shlibpath_var_CXX=no
10812 solaris2.[0-5] | solaris2.[0-5].*) ;;
10814 # The C++ compiler is used as linker so we must use $wl
10815 # flag to pass the commands to the underlying system
10816 # linker. We must also pass each convience library through
10817 # to the system linker between allextract/defaultextract.
10818 # The C++ compiler will combine linker options so we
10819 # cannot just pass the convience library names through
10821 # Supported since Solaris 2.6 (maybe 2.5.1?)
10822 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
10825 link_all_deplibs_CXX=yes
10827 # Commands to make compiler produce verbose output that lists
10828 # what "hidden" libraries, object files and flags are used when
10829 # linking a shared library.
10831 # There doesn't appear to be a way to prevent this compiler from
10832 # explicitly linking system object files so we need to strip them
10833 # from the output so that they don't get included in the library
10835 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'
10837 # Archives containing C++ object files must be created using
10838 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10839 # necessary to make sure instantiated templates are included
10841 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10844 # Green Hills C++ Compiler
10845 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10847 # The C++ compiler must be used to create the archive.
10848 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10851 # GNU C++ compiler with Solaris linker
10852 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10853 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10854 if $CC --version | grep -v '^2\.7' > /dev/null; then
10855 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10856 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10857 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10859 # Commands to make compiler produce verbose output that lists
10860 # what "hidden" libraries, object files and flags are used when
10861 # linking a shared library.
10862 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10864 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10866 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10867 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10868 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10870 # Commands to make compiler produce verbose output that lists
10871 # what "hidden" libraries, object files and flags are used when
10872 # linking a shared library.
10873 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10876 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10881 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10882 archive_cmds_need_lc_CXX=no
10885 case $cc_basename in
10887 # NonStop-UX NCC 3.20
10888 # FIXME: insert proper C++ library support
10892 # FIXME: insert proper C++ library support
10898 # FIXME: insert proper C++ library support
10902 # FIXME: insert proper C++ library support
10906 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10907 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10908 test "$ld_shlibs_CXX" = no && can_build_shared=no
10914 cat > conftest.$ac_ext <<EOF
10918 Foo (void) { a = 0; }
10924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10925 (eval $ac_compile) 2>&5
10927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); }; then
10929 # Parse the compiler output and extract the necessary
10930 # objects, libraries and library flags.
10932 # Sentinel used to keep track of whether or not we are before
10933 # the conftest object file.
10934 pre_test_object_deps_done=no
10936 # The `*' in the case matches for architectures that use `case' in
10937 # $output_verbose_cmd can trigger glob expansion during the loop
10938 # eval without this substitution.
10939 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10941 for p in `eval $output_verbose_link_cmd`; do
10945 # Some compilers place space between "-{L,R}" and the path.
10946 # Remove the space.
10947 if test $p = "-L" \
10948 || test $p = "-R"; then
10955 if test "$pre_test_object_deps_done" = no; then
10958 # Internal compiler library paths should come after those
10959 # provided the user. The postdeps already come after the
10960 # user supplied libs so there is no need to process them.
10961 if test -z "$compiler_lib_search_path_CXX"; then
10962 compiler_lib_search_path_CXX="${prev}${p}"
10964 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10967 # The "-l" case would never come before the object being
10968 # linked, so don't bother handling this case.
10971 if test -z "$postdeps_CXX"; then
10972 postdeps_CXX="${prev}${p}"
10974 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10980 # This assumes that the test object file only shows up
10981 # once in the compiler output.
10982 if test "$p" = "conftest.$objext"; then
10983 pre_test_object_deps_done=yes
10987 if test "$pre_test_object_deps_done" = no; then
10988 if test -z "$predep_objects_CXX"; then
10989 predep_objects_CXX="$p"
10991 predep_objects_CXX="$predep_objects_CXX $p"
10994 if test -z "$postdep_objects_CXX"; then
10995 postdep_objects_CXX="$p"
10997 postdep_objects_CXX="$postdep_objects_CXX $p"
11002 *) ;; # Ignore the rest.
11010 echo "libtool.m4: error: problem compiling CXX test program"
11013 $rm -f confest.$objext
11015 case " $postdeps_CXX " in
11016 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11019 lt_prog_compiler_wl_CXX=
11020 lt_prog_compiler_pic_CXX=
11021 lt_prog_compiler_static_CXX=
11023 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11024 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11026 # C++ specific cases for pic, static, wl, etc.
11027 if test "$GXX" = yes; then
11028 lt_prog_compiler_wl_CXX='-Wl,'
11029 lt_prog_compiler_static_CXX='-static'
11033 # All AIX code is PIC.
11034 if test "$host_cpu" = ia64; then
11035 # AIX 5 now supports IA64 processor
11036 lt_prog_compiler_static_CXX='-Bstatic'
11040 # FIXME: we need at least 68020 code to build shared libraries, but
11041 # adding the `-m68020' flag to GCC prevents building anything better,
11043 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11045 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11046 # PIC is the default for these OSes.
11048 mingw* | os2* | pw32*)
11049 # This hack is so that the source file can tell whether it is being
11050 # built for inclusion in a dll (and should export symbols for example).
11051 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11053 darwin* | rhapsody*)
11054 # PIC is the default on this platform
11055 # Common symbols not allowed in MH_DYLIB files
11056 lt_prog_compiler_pic_CXX='-fno-common'
11059 # DJGPP does not support shared libraries at all
11060 lt_prog_compiler_pic_CXX=
11063 if test -d /usr/nec; then
11064 lt_prog_compiler_pic_CXX=-Kconform_pic
11068 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11069 # not for PA HP-UX.
11070 case "$host_cpu" in
11074 lt_prog_compiler_pic_CXX='-fPIC'
11079 lt_prog_compiler_pic_CXX='-fPIC'
11085 # All AIX code is PIC.
11086 if test "$host_cpu" = ia64; then
11087 # AIX 5 now supports IA64 processor
11088 lt_prog_compiler_static_CXX='-Bstatic'
11090 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11094 case $cc_basename in
11096 # Green Hills C++ Compiler
11097 # _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"
11102 # PIC is the default on this platform
11103 # Common symbols not allowed in MH_DYLIB files
11104 case $cc_basename in
11106 lt_prog_compiler_pic_CXX='-qnocommon'
11107 lt_prog_compiler_wl_CXX='-Wl,'
11112 case $cc_basename in
11114 lt_prog_compiler_pic_CXX='-KPIC'
11117 # Green Hills C++ Compiler
11118 lt_prog_compiler_pic_CXX='-pic'
11124 freebsd* | kfreebsd*-gnu | dragonfly*)
11125 # FreeBSD uses GNU C++
11127 hpux9* | hpux10* | hpux11*)
11128 case $cc_basename in
11130 lt_prog_compiler_wl_CXX='-Wl,'
11131 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11132 if test "$host_cpu" != ia64; then
11133 lt_prog_compiler_pic_CXX='+Z'
11137 lt_prog_compiler_wl_CXX='-Wl,'
11138 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11139 case "$host_cpu" in
11144 lt_prog_compiler_pic_CXX='+Z'
11152 irix5* | irix6* | nonstopux*)
11153 case $cc_basename in
11155 lt_prog_compiler_wl_CXX='-Wl,'
11156 lt_prog_compiler_static_CXX='-non_shared'
11157 # CC pic flag -KPIC is the default.
11164 case $cc_basename in
11167 lt_prog_compiler_wl_CXX='--backend -Wl,'
11168 lt_prog_compiler_pic_CXX='-fPIC'
11172 lt_prog_compiler_wl_CXX='-Wl,'
11173 lt_prog_compiler_pic_CXX='-KPIC'
11174 lt_prog_compiler_static_CXX='-static'
11177 # Portland Group C++ compiler.
11178 lt_prog_compiler_wl_CXX='-Wl,'
11179 lt_prog_compiler_pic_CXX='-fpic'
11180 lt_prog_compiler_static_CXX='-static'
11184 # Make sure the PIC flag is empty. It appears that all Alpha
11185 # Linux and Compaq Tru64 Unix objects are PIC.
11186 lt_prog_compiler_pic_CXX=
11187 lt_prog_compiler_static_CXX='-non_shared'
11198 case $cc_basename in
11200 lt_prog_compiler_pic_CXX='-W c,exportall'
11208 osf3* | osf4* | osf5*)
11209 case $cc_basename in
11211 lt_prog_compiler_wl_CXX='--backend -Wl,'
11214 # Rational C++ 2.4.1
11215 lt_prog_compiler_pic_CXX='-pic'
11218 # Digital/Compaq C++
11219 lt_prog_compiler_wl_CXX='-Wl,'
11220 # Make sure the PIC flag is empty. It appears that all Alpha
11221 # Linux and Compaq Tru64 Unix objects are PIC.
11222 lt_prog_compiler_pic_CXX=
11223 lt_prog_compiler_static_CXX='-non_shared'
11232 case $cc_basename in
11234 lt_prog_compiler_pic_CXX='-fPIC'
11241 case $cc_basename in
11243 # Sun C++ 4.2, 5.x and Centerline C++
11244 lt_prog_compiler_pic_CXX='-KPIC'
11245 lt_prog_compiler_static_CXX='-Bstatic'
11246 lt_prog_compiler_wl_CXX='-Qoption ld '
11249 # Green Hills C++ Compiler
11250 lt_prog_compiler_pic_CXX='-PIC'
11257 case $cc_basename in
11260 lt_prog_compiler_pic_CXX='-pic'
11261 lt_prog_compiler_static_CXX='-Bstatic'
11265 lt_prog_compiler_pic_CXX='-pic'
11272 case $cc_basename in
11274 # NonStop-UX NCC 3.20
11275 lt_prog_compiler_pic_CXX='-KPIC'
11286 lt_prog_compiler_can_build_shared_CXX=no
11291 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11292 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11295 # Check to make sure the PIC flag actually works.
11297 if test -n "$lt_prog_compiler_pic_CXX"; then
11299 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11300 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11301 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11302 echo $ECHO_N "(cached) $ECHO_C" >&6
11304 lt_prog_compiler_pic_works_CXX=no
11305 ac_outfile=conftest.$ac_objext
11306 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11307 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11308 # Insert the option either (1) after the last *FLAGS variable, or
11309 # (2) before a word containing "conftest.", or (3) at the end.
11310 # Note that $ac_compile itself does not contain backslashes and begins
11311 # with a dollar sign (not a hyphen), so the echo should work correctly.
11312 # The option is referenced via a variable to avoid confusing sed.
11313 lt_compile=`echo "$ac_compile" | $SED \
11314 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11315 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11316 -e 's:$: $lt_compiler_flag:'`
11317 (eval echo "\"\$as_me:11317: $lt_compile\"" >&5)
11318 (eval "$lt_compile" 2>conftest.err)
11320 cat conftest.err >&5
11321 echo "$as_me:11321: \$? = $ac_status" >&5
11322 if (exit $ac_status) && test -s "$ac_outfile"; then
11323 # The compiler can only warn and ignore the option if not recognized
11324 # So say no if there are warnings other than the usual output.
11325 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11326 $SED '/^$/d' conftest.err >conftest.er2
11327 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11328 lt_prog_compiler_pic_works_CXX=yes
11334 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11335 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11337 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11338 case $lt_prog_compiler_pic_CXX in
11340 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11343 lt_prog_compiler_pic_CXX=
11344 lt_prog_compiler_can_build_shared_CXX=no
11349 # For platforms which do not support PIC, -DPIC is meaningless:
11351 lt_prog_compiler_pic_CXX=
11354 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11358 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11359 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11360 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11361 echo $ECHO_N "(cached) $ECHO_C" >&6
11363 lt_cv_prog_compiler_c_o_CXX=no
11364 $rm -r conftest 2>/dev/null
11368 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11370 lt_compiler_flag="-o out/conftest2.$ac_objext"
11371 # Insert the option either (1) after the last *FLAGS variable, or
11372 # (2) before a word containing "conftest.", or (3) at the end.
11373 # Note that $ac_compile itself does not contain backslashes and begins
11374 # with a dollar sign (not a hyphen), so the echo should work correctly.
11375 lt_compile=`echo "$ac_compile" | $SED \
11376 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11377 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11378 -e 's:$: $lt_compiler_flag:'`
11379 (eval echo "\"\$as_me:11379: $lt_compile\"" >&5)
11380 (eval "$lt_compile" 2>out/conftest.err)
11382 cat out/conftest.err >&5
11383 echo "$as_me:11383: \$? = $ac_status" >&5
11384 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11386 # The compiler can only warn and ignore the option if not recognized
11387 # So say no if there are warnings
11388 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11389 $SED '/^$/d' out/conftest.err >out/conftest.er2
11390 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11391 lt_cv_prog_compiler_c_o_CXX=yes
11396 # SGI C++ compiler will create directory out/ii_files/ for
11397 # template instantiation
11398 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11399 $rm out/* && rmdir out
11405 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11406 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11409 hard_links="nottested"
11410 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11411 # do not overwrite the value of need_locks provided by the user
11412 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11413 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11416 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11418 ln conftest.a conftest.b 2>&5 || hard_links=no
11419 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11420 echo "$as_me:$LINENO: result: $hard_links" >&5
11421 echo "${ECHO_T}$hard_links" >&6
11422 if test "$hard_links" = no; then
11423 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11424 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11431 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11432 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11434 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11437 # If we're using GNU nm, then we don't want the "-C" option.
11438 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11439 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11440 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'
11442 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'
11446 export_symbols_cmds_CXX="$ltdll_cmds"
11449 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'
11452 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11456 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11457 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11458 test "$ld_shlibs_CXX" = no && can_build_shared=no
11460 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11461 if test "$GCC" = yes; then
11462 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11466 # Do we need to explicitly link libc?
11468 case "x$archive_cmds_need_lc_CXX" in
11470 # Assume -lc should be added
11471 archive_cmds_need_lc_CXX=yes
11473 if test "$enable_shared" = yes && test "$GCC" = yes; then
11474 case $archive_cmds_CXX in
11476 # FIXME: we may have to deal with multi-command sequences.
11479 # Test whether the compiler implicitly links with -lc since on some
11480 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11481 # to ld, don't add -lc before -lgcc.
11482 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11483 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11485 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11488 (eval $ac_compile) 2>&5
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); } 2>conftest.err; then
11494 libobjs=conftest.$ac_objext
11496 wl=$lt_prog_compiler_wl_CXX
11502 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11503 allow_undefined_flag_CXX=
11504 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11505 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); }
11510 archive_cmds_need_lc_CXX=no
11512 archive_cmds_need_lc_CXX=yes
11514 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11516 cat conftest.err 1>&5
11519 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11520 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11527 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11528 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11529 library_names_spec=
11530 libname_spec='lib$name'
11534 postuninstall_cmds=
11538 shlibpath_overrides_runpath=unknown
11540 dynamic_linker="$host_os ld.so"
11541 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11542 if test "$GCC" = yes; then
11543 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11544 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11545 # if the path contains ";" then we assume it to be the separator
11546 # otherwise default to the standard path separator (i.e. ":") - it is
11547 # assumed that no part of a normal pathname contains ";" but that should
11548 # okay in the real world where ";" in dirpaths is itself problematic.
11549 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11551 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11554 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11556 need_lib_prefix=unknown
11557 hardcode_into_libs=no
11559 # when you set need_version to no, make sure it does not cause -set_version
11560 # flags to be left without arguments
11561 need_version=unknown
11566 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11567 shlibpath_var=LIBPATH
11569 # AIX 3 has no versioning support, so we append a major version to the name.
11570 soname_spec='${libname}${release}${shared_ext}$major'
11577 hardcode_into_libs=yes
11578 if test "$host_cpu" = ia64; then
11579 # AIX 5 supports IA64
11580 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11581 shlibpath_var=LD_LIBRARY_PATH
11583 # With GCC up to 2.95.x, collect2 would create an import file
11584 # for dependence libraries. The import file would start with
11585 # the line `#! .'. This would cause the generated library to
11586 # depend on `.', always an invalid library. This was fixed in
11587 # development snapshots of GCC prior to 3.0.
11589 aix4 | aix4.[01] | aix4.[01].*)
11590 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11592 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11595 can_build_shared=no
11599 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11600 # soname into executable. Probably we can add versioning support to
11601 # collect2, so additional links can be useful in future.
11602 if test "$aix_use_runtimelinking" = yes; then
11603 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11604 # instead of lib<name>.a to let people know that these are not
11605 # typical AIX shared libraries.
11606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11608 # We preserve .a as extension for shared libraries through AIX4.2
11609 # and later when we are not doing run time linking.
11610 library_names_spec='${libname}${release}.a $libname.a'
11611 soname_spec='${libname}${release}${shared_ext}$major'
11613 shlibpath_var=LIBPATH
11618 library_names_spec='$libname.ixlibrary $libname.a'
11619 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11620 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'
11624 library_names_spec='${libname}${shared_ext}'
11625 dynamic_linker="$host_os ld.so"
11626 shlibpath_var=LIBRARY_PATH
11632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11633 soname_spec='${libname}${release}${shared_ext}$major'
11634 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11635 shlibpath_var=LD_LIBRARY_PATH
11636 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11637 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11638 # the default ld.so.conf also contains /usr/contrib/lib and
11639 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11640 # libtool to hard-code these into programs
11643 cygwin* | mingw* | pw32*)
11644 version_type=windows
11649 case $GCC,$host_os in
11650 yes,cygwin* | yes,mingw* | yes,pw32*)
11651 library_names_spec='$libname.dll.a'
11652 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11653 postinstall_cmds='base_file=`basename \${file}`~
11654 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11655 dldir=$destdir/`dirname \$dlpath`~
11656 test -d \$dldir || mkdir -p \$dldir~
11657 $install_prog $dir/$dlname \$dldir/$dlname'
11658 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11659 dlpath=$dir/\$dldll~
11661 shlibpath_overrides_runpath=yes
11665 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11666 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11667 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11670 # MinGW DLLs use traditional 'lib' prefix
11671 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11672 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11673 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11674 # It is most probably a Windows format PATH printed by
11675 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11676 # path with ; separators, and with drive letters. We can handle the
11677 # drive letters (cygwin fileutils understands them), so leave them,
11678 # especially as we might pass files found there to a mingw objdump,
11679 # which wouldn't understand a cygwinified path. Ahh.
11680 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11682 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11686 # pw32 DLLs use 'pw' prefix rather than 'lib'
11687 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11693 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11696 dynamic_linker='Win32 ld.exe'
11697 # FIXME: first we should search . and the directory the executable is in
11701 darwin* | rhapsody*)
11702 dynamic_linker="$host_os dyld"
11703 version_type=darwin
11706 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11707 soname_spec='${libname}${release}${major}$shared_ext'
11708 shlibpath_overrides_runpath=yes
11709 shlibpath_var=DYLD_LIBRARY_PATH
11710 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11711 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11712 if test "$GCC" = yes; then
11713 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"`
11715 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11717 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11725 soname_spec='${libname}${release}${shared_ext}$major'
11726 shlibpath_var=LD_LIBRARY_PATH
11737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11738 soname_spec='${libname}${release}${shared_ext}$major'
11739 shlibpath_var=LD_LIBRARY_PATH
11740 shlibpath_overrides_runpath=no
11741 hardcode_into_libs=yes
11742 dynamic_linker='GNU ld.so'
11745 freebsd* | dragonfly*)
11746 # DragonFly does not have aout. When/if they implement a new
11747 # versioning mechanism, adjust this.
11748 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11749 version_type=freebsd-$objformat
11750 case $version_type in
11752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11757 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11761 shlibpath_var=LD_LIBRARY_PATH
11764 shlibpath_overrides_runpath=yes
11766 freebsd3.[01]* | freebsdelf3.[01]*)
11767 shlibpath_overrides_runpath=yes
11768 hardcode_into_libs=yes
11771 shlibpath_overrides_runpath=no
11772 hardcode_into_libs=yes
11781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11782 soname_spec='${libname}${release}${shared_ext}$major'
11783 shlibpath_var=LD_LIBRARY_PATH
11784 hardcode_into_libs=yes
11787 hpux9* | hpux10* | hpux11*)
11788 # Give a soname corresponding to the major version so that dld.sl refuses to
11789 # link against other versions.
11793 case "$host_cpu" in
11796 hardcode_into_libs=yes
11797 dynamic_linker="$host_os dld.so"
11798 shlibpath_var=LD_LIBRARY_PATH
11799 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11801 soname_spec='${libname}${release}${shared_ext}$major'
11802 if test "X$HPUX_IA64_MODE" = X32; then
11803 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11805 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11807 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11811 hardcode_into_libs=yes
11812 dynamic_linker="$host_os dld.sl"
11813 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11814 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11816 soname_spec='${libname}${release}${shared_ext}$major'
11817 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11818 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11822 dynamic_linker="$host_os dld.sl"
11823 shlibpath_var=SHLIB_PATH
11824 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11826 soname_spec='${libname}${release}${shared_ext}$major'
11829 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11830 postinstall_cmds='chmod 555 $lib'
11833 irix5* | irix6* | nonstopux*)
11835 nonstopux*) version_type=nonstopux ;;
11837 if test "$lt_cv_prog_gnu_ld" = yes; then
11845 soname_spec='${libname}${release}${shared_ext}$major'
11846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11848 irix5* | nonstopux*)
11849 libsuff= shlibsuff=
11852 case $LD in # libtool.m4 will add one of these switches to LD
11853 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11854 libsuff= shlibsuff= libmagic=32-bit;;
11855 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11856 libsuff=32 shlibsuff=N32 libmagic=N32;;
11857 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11858 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11859 *) libsuff= shlibsuff= libmagic=never-match;;
11863 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11864 shlibpath_overrides_runpath=no
11865 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11866 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11867 hardcode_into_libs=yes
11870 # No shared lib support for Linux oldld, aout, or coff.
11871 linux*oldld* | linux*aout* | linux*coff*)
11875 # This must be Linux ELF.
11880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11881 soname_spec='${libname}${release}${shared_ext}$major'
11882 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11883 shlibpath_var=LD_LIBRARY_PATH
11884 shlibpath_overrides_runpath=no
11885 # This implies no fast_install, which is unacceptable.
11886 # Some rework will be needed to allow for fast_install
11887 # before this can be enabled.
11888 hardcode_into_libs=yes
11890 # Append ld.so.conf contents to the search path
11891 if test -f /etc/ld.so.conf; then
11892 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/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11893 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11896 # We used to test for /lib/ld.so.1 and disable shared libraries on
11897 # powerpc, because MkLinux only supported shared libraries with the
11898 # GNU dynamic linker. Since this was broken with cross compilers,
11899 # most powerpc-linux boxes support dynamic linking these days and
11900 # people can always --disable-shared, the test was removed, and we
11901 # assume the GNU/Linux dynamic linker is in use.
11902 dynamic_linker='GNU/Linux ld.so'
11909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11910 soname_spec='${libname}${release}${shared_ext}$major'
11911 shlibpath_var=LD_LIBRARY_PATH
11912 shlibpath_overrides_runpath=no
11913 hardcode_into_libs=yes
11914 dynamic_linker='GNU ld.so'
11921 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11923 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11924 dynamic_linker='NetBSD (a.out) ld.so'
11926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11927 soname_spec='${libname}${release}${shared_ext}$major'
11928 dynamic_linker='NetBSD ld.elf_so'
11930 shlibpath_var=LD_LIBRARY_PATH
11931 shlibpath_overrides_runpath=yes
11932 hardcode_into_libs=yes
11937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11938 shlibpath_var=LD_LIBRARY_PATH
11939 shlibpath_overrides_runpath=yes
11946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11947 soname_spec='${libname}${release}${shared_ext}$major'
11948 shlibpath_var=LD_LIBRARY_PATH
11949 shlibpath_overrides_runpath=yes
11955 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11957 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11958 *) need_version=no ;;
11960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11961 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11962 shlibpath_var=LD_LIBRARY_PATH
11963 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11965 openbsd2.[89] | openbsd2.[89].*)
11966 shlibpath_overrides_runpath=no
11969 shlibpath_overrides_runpath=yes
11973 shlibpath_overrides_runpath=yes
11978 libname_spec='$name'
11981 library_names_spec='$libname${shared_ext} $libname.a'
11982 dynamic_linker='OS/2 ld.exe'
11983 shlibpath_var=LIBPATH
11986 osf3* | osf4* | osf5*)
11990 soname_spec='${libname}${release}${shared_ext}$major'
11991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11992 shlibpath_var=LD_LIBRARY_PATH
11993 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11994 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11999 soname_spec='${libname}${release}${shared_ext}$major'
12000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12001 shlibpath_var=LD_LIBRARY_PATH
12008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12009 soname_spec='${libname}${release}${shared_ext}$major'
12010 shlibpath_var=LD_LIBRARY_PATH
12011 shlibpath_overrides_runpath=yes
12012 hardcode_into_libs=yes
12013 # ldd complains unless libraries are executable
12014 postinstall_cmds='chmod +x $lib'
12019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12020 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12021 shlibpath_var=LD_LIBRARY_PATH
12022 shlibpath_overrides_runpath=yes
12023 if test "$with_gnu_ld" = yes; then
12029 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12032 soname_spec='${libname}${release}${shared_ext}$major'
12033 shlibpath_var=LD_LIBRARY_PATH
12034 case $host_vendor in
12036 shlibpath_overrides_runpath=no
12038 export_dynamic_flag_spec='${wl}-Blargedynsym'
12039 runpath_var=LD_RUN_PATH
12047 shlibpath_overrides_runpath=no
12048 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12054 if test -d /usr/nec ;then
12056 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12057 soname_spec='$libname${shared_ext}.$major'
12058 shlibpath_var=LD_LIBRARY_PATH
12064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12065 soname_spec='${libname}${release}${shared_ext}$major'
12066 shlibpath_var=LD_LIBRARY_PATH
12073 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12074 echo "${ECHO_T}$dynamic_linker" >&6
12075 test "$dynamic_linker" = no && can_build_shared=no
12077 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12078 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12079 hardcode_action_CXX=
12080 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12081 test -n "$runpath_var_CXX" || \
12082 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12084 # We can hardcode non-existant directories.
12085 if test "$hardcode_direct_CXX" != no &&
12086 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12087 # have to relink, otherwise we might link with an installed library
12088 # when we should be linking with a yet-to-be-installed one
12089 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12090 test "$hardcode_minus_L_CXX" != no; then
12091 # Linking always hardcodes the temporary library directory.
12092 hardcode_action_CXX=relink
12094 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12095 hardcode_action_CXX=immediate
12098 # We cannot hardcode anything, or else we can only hardcode existing
12100 hardcode_action_CXX=unsupported
12102 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12103 echo "${ECHO_T}$hardcode_action_CXX" >&6
12105 if test "$hardcode_action_CXX" = relink; then
12106 # Fast installation is not supported
12107 enable_fast_install=no
12108 elif test "$shlibpath_overrides_runpath" = yes ||
12109 test "$enable_shared" = no; then
12110 # Fast installation is not necessary
12111 enable_fast_install=needless
12116 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12117 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12118 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12119 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12120 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12121 echo "$as_me:$LINENO: result: yes" >&5
12122 echo "${ECHO_T}yes" >&6
12124 # FIXME - insert some real tests, host_os isn't really good enough
12127 if test -n "$STRIP" ; then
12128 striplib="$STRIP -x"
12129 echo "$as_me:$LINENO: result: yes" >&5
12130 echo "${ECHO_T}yes" >&6
12132 echo "$as_me:$LINENO: result: no" >&5
12133 echo "${ECHO_T}no" >&6
12137 echo "$as_me:$LINENO: result: no" >&5
12138 echo "${ECHO_T}no" >&6
12143 if test "x$enable_dlopen" != xyes; then
12144 enable_dlopen=unknown
12145 enable_dlopen_self=unknown
12146 enable_dlopen_self_static=unknown
12153 lt_cv_dlopen="load_add_on"
12155 lt_cv_dlopen_self=yes
12159 lt_cv_dlopen="LoadLibrary"
12164 lt_cv_dlopen="dlopen"
12169 # if libdl is installed we need to link against it
12170 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12171 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12172 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12173 echo $ECHO_N "(cached) $ECHO_C" >&6
12175 ac_check_lib_save_LIBS=$LIBS
12177 cat >conftest.$ac_ext <<_ACEOF
12180 cat confdefs.h >>conftest.$ac_ext
12181 cat >>conftest.$ac_ext <<_ACEOF
12182 /* end confdefs.h. */
12184 /* Override any gcc2 internal prototype to avoid an error. */
12188 /* We use char because int might match the return type of a gcc2
12189 builtin and then its argument prototype would still apply. */
12199 rm -f conftest.$ac_objext conftest$ac_exeext
12200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12201 (eval $ac_link) 2>conftest.er1
12203 grep -v '^ *+' conftest.er1 >conftest.err
12205 cat conftest.err >&5
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); } &&
12208 { ac_try='test -z "$ac_cxx_werror_flag"
12209 || test ! -s conftest.err'
12210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12211 (eval $ac_try) 2>&5
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); }; } &&
12215 { ac_try='test -s conftest$ac_exeext'
12216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12217 (eval $ac_try) 2>&5
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); }; }; then
12221 ac_cv_lib_dl_dlopen=yes
12223 echo "$as_me: failed program was:" >&5
12224 sed 's/^/| /' conftest.$ac_ext >&5
12226 ac_cv_lib_dl_dlopen=no
12228 rm -f conftest.err conftest.$ac_objext \
12229 conftest$ac_exeext conftest.$ac_ext
12230 LIBS=$ac_check_lib_save_LIBS
12232 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12233 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12234 if test $ac_cv_lib_dl_dlopen = yes; then
12235 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12238 lt_cv_dlopen="dyld"
12240 lt_cv_dlopen_self=yes
12247 echo "$as_me:$LINENO: checking for shl_load" >&5
12248 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12249 if test "${ac_cv_func_shl_load+set}" = set; then
12250 echo $ECHO_N "(cached) $ECHO_C" >&6
12252 cat >conftest.$ac_ext <<_ACEOF
12255 cat confdefs.h >>conftest.$ac_ext
12256 cat >>conftest.$ac_ext <<_ACEOF
12257 /* end confdefs.h. */
12258 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12260 #define shl_load innocuous_shl_load
12262 /* System header to define __stub macros and hopefully few prototypes,
12263 which can conflict with char shl_load (); below.
12264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12265 <limits.h> exists even on freestanding compilers. */
12268 # include <limits.h>
12270 # include <assert.h>
12275 /* Override any gcc2 internal prototype to avoid an error. */
12280 /* We use char because int might match the return type of a gcc2
12281 builtin and then its argument prototype would still apply. */
12283 /* The GNU C library defines this for functions which it implements
12284 to always fail with ENOSYS. Some functions are actually named
12285 something starting with __ and the normal name is an alias. */
12286 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12289 char (*f) () = shl_load;
12298 return f != shl_load;
12303 rm -f conftest.$ac_objext conftest$ac_exeext
12304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12305 (eval $ac_link) 2>conftest.er1
12307 grep -v '^ *+' conftest.er1 >conftest.err
12309 cat conftest.err >&5
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); } &&
12312 { ac_try='test -z "$ac_cxx_werror_flag"
12313 || test ! -s conftest.err'
12314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12315 (eval $ac_try) 2>&5
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); }; } &&
12319 { ac_try='test -s conftest$ac_exeext'
12320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12321 (eval $ac_try) 2>&5
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); }; }; then
12325 ac_cv_func_shl_load=yes
12327 echo "$as_me: failed program was:" >&5
12328 sed 's/^/| /' conftest.$ac_ext >&5
12330 ac_cv_func_shl_load=no
12332 rm -f conftest.err conftest.$ac_objext \
12333 conftest$ac_exeext conftest.$ac_ext
12335 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12336 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12337 if test $ac_cv_func_shl_load = yes; then
12338 lt_cv_dlopen="shl_load"
12340 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12341 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12342 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12343 echo $ECHO_N "(cached) $ECHO_C" >&6
12345 ac_check_lib_save_LIBS=$LIBS
12347 cat >conftest.$ac_ext <<_ACEOF
12350 cat confdefs.h >>conftest.$ac_ext
12351 cat >>conftest.$ac_ext <<_ACEOF
12352 /* end confdefs.h. */
12354 /* Override any gcc2 internal prototype to avoid an error. */
12358 /* We use char because int might match the return type of a gcc2
12359 builtin and then its argument prototype would still apply. */
12369 rm -f conftest.$ac_objext conftest$ac_exeext
12370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12371 (eval $ac_link) 2>conftest.er1
12373 grep -v '^ *+' conftest.er1 >conftest.err
12375 cat conftest.err >&5
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); } &&
12378 { ac_try='test -z "$ac_cxx_werror_flag"
12379 || test ! -s conftest.err'
12380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12381 (eval $ac_try) 2>&5
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); }; } &&
12385 { ac_try='test -s conftest$ac_exeext'
12386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12387 (eval $ac_try) 2>&5
12389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390 (exit $ac_status); }; }; then
12391 ac_cv_lib_dld_shl_load=yes
12393 echo "$as_me: failed program was:" >&5
12394 sed 's/^/| /' conftest.$ac_ext >&5
12396 ac_cv_lib_dld_shl_load=no
12398 rm -f conftest.err conftest.$ac_objext \
12399 conftest$ac_exeext conftest.$ac_ext
12400 LIBS=$ac_check_lib_save_LIBS
12402 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12403 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12404 if test $ac_cv_lib_dld_shl_load = yes; then
12405 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12407 echo "$as_me:$LINENO: checking for dlopen" >&5
12408 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12409 if test "${ac_cv_func_dlopen+set}" = set; then
12410 echo $ECHO_N "(cached) $ECHO_C" >&6
12412 cat >conftest.$ac_ext <<_ACEOF
12415 cat confdefs.h >>conftest.$ac_ext
12416 cat >>conftest.$ac_ext <<_ACEOF
12417 /* end confdefs.h. */
12418 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12420 #define dlopen innocuous_dlopen
12422 /* System header to define __stub macros and hopefully few prototypes,
12423 which can conflict with char dlopen (); below.
12424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12425 <limits.h> exists even on freestanding compilers. */
12428 # include <limits.h>
12430 # include <assert.h>
12435 /* Override any gcc2 internal prototype to avoid an error. */
12440 /* We use char because int might match the return type of a gcc2
12441 builtin and then its argument prototype would still apply. */
12443 /* The GNU C library defines this for functions which it implements
12444 to always fail with ENOSYS. Some functions are actually named
12445 something starting with __ and the normal name is an alias. */
12446 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12449 char (*f) () = dlopen;
12458 return f != dlopen;
12463 rm -f conftest.$ac_objext conftest$ac_exeext
12464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12465 (eval $ac_link) 2>conftest.er1
12467 grep -v '^ *+' conftest.er1 >conftest.err
12469 cat conftest.err >&5
12470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471 (exit $ac_status); } &&
12472 { ac_try='test -z "$ac_cxx_werror_flag"
12473 || test ! -s conftest.err'
12474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12475 (eval $ac_try) 2>&5
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); }; } &&
12479 { ac_try='test -s conftest$ac_exeext'
12480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12481 (eval $ac_try) 2>&5
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); }; }; then
12485 ac_cv_func_dlopen=yes
12487 echo "$as_me: failed program was:" >&5
12488 sed 's/^/| /' conftest.$ac_ext >&5
12490 ac_cv_func_dlopen=no
12492 rm -f conftest.err conftest.$ac_objext \
12493 conftest$ac_exeext conftest.$ac_ext
12495 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12496 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12497 if test $ac_cv_func_dlopen = yes; then
12498 lt_cv_dlopen="dlopen"
12500 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12501 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12502 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12503 echo $ECHO_N "(cached) $ECHO_C" >&6
12505 ac_check_lib_save_LIBS=$LIBS
12507 cat >conftest.$ac_ext <<_ACEOF
12510 cat confdefs.h >>conftest.$ac_ext
12511 cat >>conftest.$ac_ext <<_ACEOF
12512 /* end confdefs.h. */
12514 /* Override any gcc2 internal prototype to avoid an error. */
12518 /* We use char because int might match the return type of a gcc2
12519 builtin and then its argument prototype would still apply. */
12529 rm -f conftest.$ac_objext conftest$ac_exeext
12530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12531 (eval $ac_link) 2>conftest.er1
12533 grep -v '^ *+' conftest.er1 >conftest.err
12535 cat conftest.err >&5
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); } &&
12538 { ac_try='test -z "$ac_cxx_werror_flag"
12539 || test ! -s conftest.err'
12540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12541 (eval $ac_try) 2>&5
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); }; } &&
12545 { ac_try='test -s conftest$ac_exeext'
12546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12547 (eval $ac_try) 2>&5
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); }; }; then
12551 ac_cv_lib_dl_dlopen=yes
12553 echo "$as_me: failed program was:" >&5
12554 sed 's/^/| /' conftest.$ac_ext >&5
12556 ac_cv_lib_dl_dlopen=no
12558 rm -f conftest.err conftest.$ac_objext \
12559 conftest$ac_exeext conftest.$ac_ext
12560 LIBS=$ac_check_lib_save_LIBS
12562 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12563 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12564 if test $ac_cv_lib_dl_dlopen = yes; then
12565 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12567 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12568 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12569 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12570 echo $ECHO_N "(cached) $ECHO_C" >&6
12572 ac_check_lib_save_LIBS=$LIBS
12573 LIBS="-lsvld $LIBS"
12574 cat >conftest.$ac_ext <<_ACEOF
12577 cat confdefs.h >>conftest.$ac_ext
12578 cat >>conftest.$ac_ext <<_ACEOF
12579 /* end confdefs.h. */
12581 /* Override any gcc2 internal prototype to avoid an error. */
12585 /* We use char because int might match the return type of a gcc2
12586 builtin and then its argument prototype would still apply. */
12596 rm -f conftest.$ac_objext conftest$ac_exeext
12597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12598 (eval $ac_link) 2>conftest.er1
12600 grep -v '^ *+' conftest.er1 >conftest.err
12602 cat conftest.err >&5
12603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604 (exit $ac_status); } &&
12605 { ac_try='test -z "$ac_cxx_werror_flag"
12606 || test ! -s conftest.err'
12607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12608 (eval $ac_try) 2>&5
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); }; } &&
12612 { ac_try='test -s conftest$ac_exeext'
12613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12614 (eval $ac_try) 2>&5
12616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617 (exit $ac_status); }; }; then
12618 ac_cv_lib_svld_dlopen=yes
12620 echo "$as_me: failed program was:" >&5
12621 sed 's/^/| /' conftest.$ac_ext >&5
12623 ac_cv_lib_svld_dlopen=no
12625 rm -f conftest.err conftest.$ac_objext \
12626 conftest$ac_exeext conftest.$ac_ext
12627 LIBS=$ac_check_lib_save_LIBS
12629 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12630 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12631 if test $ac_cv_lib_svld_dlopen = yes; then
12632 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12634 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12635 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12636 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12637 echo $ECHO_N "(cached) $ECHO_C" >&6
12639 ac_check_lib_save_LIBS=$LIBS
12641 cat >conftest.$ac_ext <<_ACEOF
12644 cat confdefs.h >>conftest.$ac_ext
12645 cat >>conftest.$ac_ext <<_ACEOF
12646 /* end confdefs.h. */
12648 /* Override any gcc2 internal prototype to avoid an error. */
12652 /* We use char because int might match the return type of a gcc2
12653 builtin and then its argument prototype would still apply. */
12663 rm -f conftest.$ac_objext conftest$ac_exeext
12664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12665 (eval $ac_link) 2>conftest.er1
12667 grep -v '^ *+' conftest.er1 >conftest.err
12669 cat conftest.err >&5
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); } &&
12672 { ac_try='test -z "$ac_cxx_werror_flag"
12673 || test ! -s conftest.err'
12674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12675 (eval $ac_try) 2>&5
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); }; } &&
12679 { ac_try='test -s conftest$ac_exeext'
12680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12681 (eval $ac_try) 2>&5
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); }; }; then
12685 ac_cv_lib_dld_dld_link=yes
12687 echo "$as_me: failed program was:" >&5
12688 sed 's/^/| /' conftest.$ac_ext >&5
12690 ac_cv_lib_dld_dld_link=no
12692 rm -f conftest.err conftest.$ac_objext \
12693 conftest$ac_exeext conftest.$ac_ext
12694 LIBS=$ac_check_lib_save_LIBS
12696 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12697 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12698 if test $ac_cv_lib_dld_dld_link = yes; then
12699 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12720 if test "x$lt_cv_dlopen" != xno; then
12726 case $lt_cv_dlopen in
12728 save_CPPFLAGS="$CPPFLAGS"
12729 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12731 save_LDFLAGS="$LDFLAGS"
12732 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12735 LIBS="$lt_cv_dlopen_libs $LIBS"
12737 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12738 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12739 if test "${lt_cv_dlopen_self+set}" = set; then
12740 echo $ECHO_N "(cached) $ECHO_C" >&6
12742 if test "$cross_compiling" = yes; then :
12743 lt_cv_dlopen_self=cross
12745 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12746 lt_status=$lt_dlunknown
12747 cat > conftest.$ac_ext <<EOF
12748 #line 12748 "configure"
12749 #include "confdefs.h"
12758 # define LT_DLGLOBAL RTLD_GLOBAL
12761 # define LT_DLGLOBAL DL_GLOBAL
12763 # define LT_DLGLOBAL 0
12767 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12768 find out it does not work in some platform. */
12769 #ifndef LT_DLLAZY_OR_NOW
12771 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12774 # define LT_DLLAZY_OR_NOW DL_LAZY
12777 # define LT_DLLAZY_OR_NOW RTLD_NOW
12780 # define LT_DLLAZY_OR_NOW DL_NOW
12782 # define LT_DLLAZY_OR_NOW 0
12790 extern "C" void exit (int);
12793 void fnord() { int i=42;}
12796 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12797 int status = $lt_dlunknown;
12801 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12802 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12803 /* dlclose (self); */
12809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12810 (eval $ac_link) 2>&5
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12814 (./conftest; exit; ) 2>/dev/null
12816 case x$lt_status in
12817 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12818 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12819 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12822 # compilation failed
12823 lt_cv_dlopen_self=no
12830 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12831 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12833 if test "x$lt_cv_dlopen_self" = xyes; then
12834 LDFLAGS="$LDFLAGS $link_static_flag"
12835 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12836 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12837 if test "${lt_cv_dlopen_self_static+set}" = set; then
12838 echo $ECHO_N "(cached) $ECHO_C" >&6
12840 if test "$cross_compiling" = yes; then :
12841 lt_cv_dlopen_self_static=cross
12843 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12844 lt_status=$lt_dlunknown
12845 cat > conftest.$ac_ext <<EOF
12846 #line 12846 "configure"
12847 #include "confdefs.h"
12856 # define LT_DLGLOBAL RTLD_GLOBAL
12859 # define LT_DLGLOBAL DL_GLOBAL
12861 # define LT_DLGLOBAL 0
12865 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12866 find out it does not work in some platform. */
12867 #ifndef LT_DLLAZY_OR_NOW
12869 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12872 # define LT_DLLAZY_OR_NOW DL_LAZY
12875 # define LT_DLLAZY_OR_NOW RTLD_NOW
12878 # define LT_DLLAZY_OR_NOW DL_NOW
12880 # define LT_DLLAZY_OR_NOW 0
12888 extern "C" void exit (int);
12891 void fnord() { int i=42;}
12894 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12895 int status = $lt_dlunknown;
12899 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12900 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12901 /* dlclose (self); */
12907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12908 (eval $ac_link) 2>&5
12910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12912 (./conftest; exit; ) 2>/dev/null
12914 case x$lt_status in
12915 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12916 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12917 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12920 # compilation failed
12921 lt_cv_dlopen_self_static=no
12928 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12929 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12932 CPPFLAGS="$save_CPPFLAGS"
12933 LDFLAGS="$save_LDFLAGS"
12938 case $lt_cv_dlopen_self in
12939 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12940 *) enable_dlopen_self=unknown ;;
12943 case $lt_cv_dlopen_self_static in
12944 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12945 *) enable_dlopen_self_static=unknown ;;
12950 # The else clause should only fire when bootstrapping the
12951 # libtool distribution, otherwise you forgot to ship ltmain.sh
12952 # with your package, and you will get complaints that there are
12953 # no rules to generate ltmain.sh.
12954 if test -f "$ltmain"; then
12955 # See if we are running on zsh, and set the options which allow our commands through
12956 # without removal of \ escapes.
12957 if test -n "${ZSH_VERSION+set}" ; then
12958 setopt NO_GLOB_SUBST
12960 # Now quote all the things that may contain metacharacters while being
12961 # careful not to overquote the AC_SUBSTed values. We take copies of the
12962 # variables and quote the copies for generation of the libtool script.
12963 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12965 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12966 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12967 deplibs_check_method reload_flag reload_cmds need_locks \
12968 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12969 lt_cv_sys_global_symbol_to_c_name_address \
12970 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12971 old_postinstall_cmds old_postuninstall_cmds \
12975 lt_prog_compiler_wl_CXX \
12976 lt_prog_compiler_pic_CXX \
12977 lt_prog_compiler_static_CXX \
12978 lt_prog_compiler_no_builtin_flag_CXX \
12979 export_dynamic_flag_spec_CXX \
12980 thread_safe_flag_spec_CXX \
12981 whole_archive_flag_spec_CXX \
12982 enable_shared_with_static_runtimes_CXX \
12983 old_archive_cmds_CXX \
12984 old_archive_from_new_cmds_CXX \
12985 predep_objects_CXX \
12986 postdep_objects_CXX \
12989 compiler_lib_search_path_CXX \
12991 archive_expsym_cmds_CXX \
12992 postinstall_cmds_CXX \
12993 postuninstall_cmds_CXX \
12994 old_archive_from_expsyms_cmds_CXX \
12995 allow_undefined_flag_CXX \
12996 no_undefined_flag_CXX \
12997 export_symbols_cmds_CXX \
12998 hardcode_libdir_flag_spec_CXX \
12999 hardcode_libdir_flag_spec_ld_CXX \
13000 hardcode_libdir_separator_CXX \
13001 hardcode_automatic_CXX \
13003 module_expsym_cmds_CXX \
13004 lt_cv_prog_compiler_c_o_CXX \
13005 exclude_expsyms_CXX \
13006 include_expsyms_CXX; do
13009 old_archive_cmds_CXX | \
13010 old_archive_from_new_cmds_CXX | \
13011 archive_cmds_CXX | \
13012 archive_expsym_cmds_CXX | \
13013 module_cmds_CXX | \
13014 module_expsym_cmds_CXX | \
13015 old_archive_from_expsyms_cmds_CXX | \
13016 export_symbols_cmds_CXX | \
13017 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13018 postinstall_cmds | postuninstall_cmds | \
13019 old_postinstall_cmds | old_postuninstall_cmds | \
13020 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13021 # Double-quote double-evaled strings.
13022 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13025 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13031 *'\$0 --fallback-echo"')
13032 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13038 cat <<__EOF__ >> "$cfgfile"
13039 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13041 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13043 # Shell to use when invoking shell scripts.
13046 # Whether or not to build shared libraries.
13047 build_libtool_libs=$enable_shared
13049 # Whether or not to build static libraries.
13050 build_old_libs=$enable_static
13052 # Whether or not to add -lc for building shared libraries.
13053 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13055 # Whether or not to disallow shared libs when runtime libs are static
13056 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13058 # Whether or not to optimize for fast installation.
13059 fast_install=$enable_fast_install
13062 host_alias=$host_alias
13066 # The build system.
13067 build_alias=$build_alias
13071 # An echo program that does not interpret backslashes.
13076 AR_FLAGS=$lt_AR_FLAGS
13081 # A language-specific compiler.
13082 CC=$lt_compiler_CXX
13084 # Is the compiler the GNU C compiler?
13090 # The linker used to build libraries.
13093 # Whether we need hard or soft links.
13096 # A BSD-compatible nm program.
13099 # A symbol stripping program
13102 # Used to examine libraries when file_magic_cmd begins "file"
13103 MAGIC_CMD=$MAGIC_CMD
13105 # Used on cygwin: DLL creation program.
13108 # Used on cygwin: object dumper.
13111 # Used on cygwin: assembler.
13114 # The name of the directory that contains temporary libtool files.
13117 # How to create reloadable object files.
13118 reload_flag=$lt_reload_flag
13119 reload_cmds=$lt_reload_cmds
13121 # How to pass a linker flag through the compiler.
13122 wl=$lt_lt_prog_compiler_wl_CXX
13124 # Object file suffix (normally "o").
13125 objext="$ac_objext"
13127 # Old archive suffix (normally "a").
13130 # Shared library suffix (normally ".so").
13131 shrext_cmds='$shrext_cmds'
13133 # Executable file suffix (normally "").
13136 # Additional compiler flags for building library objects.
13137 pic_flag=$lt_lt_prog_compiler_pic_CXX
13140 # What is the maximum length of a command?
13141 max_cmd_len=$lt_cv_sys_max_cmd_len
13143 # Does compiler simultaneously support -c and -o options?
13144 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13146 # Must we lock files when doing compilation?
13147 need_locks=$lt_need_locks
13149 # Do we need the lib prefix for modules?
13150 need_lib_prefix=$need_lib_prefix
13152 # Do we need a version for libraries?
13153 need_version=$need_version
13155 # Whether dlopen is supported.
13156 dlopen_support=$enable_dlopen
13158 # Whether dlopen of programs is supported.
13159 dlopen_self=$enable_dlopen_self
13161 # Whether dlopen of statically linked programs is supported.
13162 dlopen_self_static=$enable_dlopen_self_static
13164 # Compiler flag to prevent dynamic linking.
13165 link_static_flag=$lt_lt_prog_compiler_static_CXX
13167 # Compiler flag to turn off builtin functions.
13168 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13170 # Compiler flag to allow reflexive dlopens.
13171 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13173 # Compiler flag to generate shared objects directly from archives.
13174 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13176 # Compiler flag to generate thread-safe objects.
13177 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13179 # Library versioning type.
13180 version_type=$version_type
13182 # Format of library name prefix.
13183 libname_spec=$lt_libname_spec
13185 # List of archive names. First name is the real one, the rest are links.
13186 # The last name is the one that the linker finds with -lNAME.
13187 library_names_spec=$lt_library_names_spec
13189 # The coded name of the library, if different from the real name.
13190 soname_spec=$lt_soname_spec
13192 # Commands used to build and install an old-style archive.
13194 old_archive_cmds=$lt_old_archive_cmds_CXX
13195 old_postinstall_cmds=$lt_old_postinstall_cmds
13196 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13198 # Create an old-style archive from a shared archive.
13199 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13201 # Create a temporary old-style archive to link instead of a shared archive.
13202 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13204 # Commands used to build and install a shared archive.
13205 archive_cmds=$lt_archive_cmds_CXX
13206 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13207 postinstall_cmds=$lt_postinstall_cmds
13208 postuninstall_cmds=$lt_postuninstall_cmds
13210 # Commands used to build a loadable module (assumed same as above if empty)
13211 module_cmds=$lt_module_cmds_CXX
13212 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13214 # Commands to strip libraries.
13215 old_striplib=$lt_old_striplib
13216 striplib=$lt_striplib
13218 # Dependencies to place before the objects being linked to create a
13220 predep_objects=$lt_predep_objects_CXX
13222 # Dependencies to place after the objects being linked to create a
13224 postdep_objects=$lt_postdep_objects_CXX
13226 # Dependencies to place before the objects being linked to create a
13228 predeps=$lt_predeps_CXX
13230 # Dependencies to place after the objects being linked to create a
13232 postdeps=$lt_postdeps_CXX
13234 # The library search path used internally by the compiler when linking
13235 # a shared library.
13236 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13238 # Method to check whether dependent libraries are shared objects.
13239 deplibs_check_method=$lt_deplibs_check_method
13241 # Command to use when deplibs_check_method == file_magic.
13242 file_magic_cmd=$lt_file_magic_cmd
13244 # Flag that allows shared libraries with undefined symbols to be built.
13245 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13247 # Flag that forces no undefined symbols.
13248 no_undefined_flag=$lt_no_undefined_flag_CXX
13250 # Commands used to finish a libtool library installation in a directory.
13251 finish_cmds=$lt_finish_cmds
13253 # Same as above, but a single script fragment to be evaled but not shown.
13254 finish_eval=$lt_finish_eval
13256 # Take the output of nm and produce a listing of raw symbols and C names.
13257 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13259 # Transform the output of nm in a proper C declaration
13260 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13262 # Transform the output of nm in a C name address pair
13263 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13265 # This is the shared library runtime path variable.
13266 runpath_var=$runpath_var
13268 # This is the shared library path variable.
13269 shlibpath_var=$shlibpath_var
13271 # Is shlibpath searched before the hard-coded library search path?
13272 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13274 # How to hardcode a shared library path into an executable.
13275 hardcode_action=$hardcode_action_CXX
13277 # Whether we should hardcode library paths into libraries.
13278 hardcode_into_libs=$hardcode_into_libs
13280 # Flag to hardcode \$libdir into a binary during linking.
13281 # This must work even if \$libdir does not exist.
13282 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13284 # If ld is used when linking, flag to hardcode \$libdir into
13285 # a binary during linking. This must work even if \$libdir does
13287 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13289 # Whether we need a single -rpath flag with a separated argument.
13290 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13292 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13293 # resulting binary.
13294 hardcode_direct=$hardcode_direct_CXX
13296 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13297 # resulting binary.
13298 hardcode_minus_L=$hardcode_minus_L_CXX
13300 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13301 # the resulting binary.
13302 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13304 # Set to yes if building a shared library automatically hardcodes DIR into the library
13305 # and all subsequent libraries and executables linked against it.
13306 hardcode_automatic=$hardcode_automatic_CXX
13308 # Variables whose values should be saved in libtool wrapper scripts and
13309 # restored at relink time.
13310 variables_saved_for_relink="$variables_saved_for_relink"
13312 # Whether libtool must link a program against all its dependency libraries.
13313 link_all_deplibs=$link_all_deplibs_CXX
13315 # Compile-time system search path for libraries
13316 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13318 # Run-time system search path for libraries
13319 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13321 # Fix the shell variable \$srcfile for the compiler.
13322 fix_srcfile_path="$fix_srcfile_path_CXX"
13324 # Set to yes if exported symbols are required.
13325 always_export_symbols=$always_export_symbols_CXX
13327 # The commands to list exported symbols.
13328 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13330 # The commands to extract the exported symbol list from a shared archive.
13331 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13333 # Symbols that should not be listed in the preloaded symbols.
13334 exclude_expsyms=$lt_exclude_expsyms_CXX
13336 # Symbols that must always be exported.
13337 include_expsyms=$lt_include_expsyms_CXX
13339 # ### END LIBTOOL TAG CONFIG: $tagname
13345 # If there is no Makefile yet, we rely on a make rule to execute
13346 # `config.status --recheck' to rerun these tests and create the
13347 # libtool script then.
13348 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13349 if test -f "$ltmain_in"; then
13350 test -f Makefile && make "$ltmain"
13356 ac_cpp='$CPP $CPPFLAGS'
13357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13365 with_gnu_ldcxx=$with_gnu_ld
13366 with_gnu_ld=$lt_save_with_gnu_ld
13367 lt_cv_path_LDCXX=$lt_cv_path_LD
13368 lt_cv_path_LD=$lt_save_path_LD
13369 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13370 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13378 if test -n "$F77" && test "X$F77" != "Xno"; then
13381 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13382 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13383 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13386 archive_cmds_need_lc_F77=no
13387 allow_undefined_flag_F77=
13388 always_export_symbols_F77=no
13389 archive_expsym_cmds_F77=
13390 export_dynamic_flag_spec_F77=
13391 hardcode_direct_F77=no
13392 hardcode_libdir_flag_spec_F77=
13393 hardcode_libdir_flag_spec_ld_F77=
13394 hardcode_libdir_separator_F77=
13395 hardcode_minus_L_F77=no
13396 hardcode_automatic_F77=no
13398 module_expsym_cmds_F77=
13399 link_all_deplibs_F77=unknown
13400 old_archive_cmds_F77=$old_archive_cmds
13401 no_undefined_flag_F77=
13402 whole_archive_flag_spec_F77=
13403 enable_shared_with_static_runtimes_F77=no
13405 # Source file extension for f77 test sources.
13408 # Object file extension for compiled f77 test sources.
13412 # Code to be used in simple compile tests
13413 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13415 # Code to be used in simple link tests
13416 lt_simple_link_test_code=" program t\n end\n"
13418 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13420 # If no C compiler was specified, use CC.
13423 # Allow CC to be a program name with arguments.
13427 # save warnings/boilerplate of simple test code
13428 ac_outfile=conftest.$ac_objext
13429 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13430 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13431 _lt_compiler_boilerplate=`cat conftest.err`
13434 ac_outfile=conftest.$ac_objext
13435 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13436 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13437 _lt_linker_boilerplate=`cat conftest.err`
13441 # Allow CC to be a program name with arguments.
13446 for cc_temp in $compiler""; do
13448 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13449 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13454 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13457 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13458 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13459 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13460 echo "${ECHO_T}$can_build_shared" >&6
13462 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13463 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13464 test "$can_build_shared" = "no" && enable_shared=no
13466 # On AIX, shared libraries and static libraries use the same namespace, and
13467 # are all built from PIC.
13470 test "$enable_shared" = yes && enable_static=no
13471 if test -n "$RANLIB"; then
13472 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13473 postinstall_cmds='$RANLIB $lib'
13477 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13478 test "$enable_shared" = yes && enable_static=no
13482 echo "$as_me:$LINENO: result: $enable_shared" >&5
13483 echo "${ECHO_T}$enable_shared" >&6
13485 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13486 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13487 # Make sure either enable_shared or enable_static is yes.
13488 test "$enable_shared" = yes || enable_static=yes
13489 echo "$as_me:$LINENO: result: $enable_static" >&5
13490 echo "${ECHO_T}$enable_static" >&6
13492 test "$ld_shlibs_F77" = no && can_build_shared=no
13497 lt_prog_compiler_wl_F77=
13498 lt_prog_compiler_pic_F77=
13499 lt_prog_compiler_static_F77=
13501 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13502 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13504 if test "$GCC" = yes; then
13505 lt_prog_compiler_wl_F77='-Wl,'
13506 lt_prog_compiler_static_F77='-static'
13510 # All AIX code is PIC.
13511 if test "$host_cpu" = ia64; then
13512 # AIX 5 now supports IA64 processor
13513 lt_prog_compiler_static_F77='-Bstatic'
13518 # FIXME: we need at least 68020 code to build shared libraries, but
13519 # adding the `-m68020' flag to GCC prevents building anything better,
13521 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13524 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13525 # PIC is the default for these OSes.
13528 mingw* | pw32* | os2*)
13529 # This hack is so that the source file can tell whether it is being
13530 # built for inclusion in a dll (and should export symbols for example).
13531 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13534 darwin* | rhapsody*)
13535 # PIC is the default on this platform
13536 # Common symbols not allowed in MH_DYLIB files
13537 lt_prog_compiler_pic_F77='-fno-common'
13541 # Just because we use GCC doesn't mean we suddenly get shared libraries
13542 # on systems that don't support them.
13543 lt_prog_compiler_can_build_shared_F77=no
13548 if test -d /usr/nec; then
13549 lt_prog_compiler_pic_F77=-Kconform_pic
13554 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13555 # not for PA HP-UX.
13556 case "$host_cpu" in
13561 lt_prog_compiler_pic_F77='-fPIC'
13567 lt_prog_compiler_pic_F77='-fPIC'
13571 # PORTME Check for flag to pass linker flags through the system compiler.
13574 lt_prog_compiler_wl_F77='-Wl,'
13575 if test "$host_cpu" = ia64; then
13576 # AIX 5 now supports IA64 processor
13577 lt_prog_compiler_static_F77='-Bstatic'
13579 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13583 # PIC is the default on this platform
13584 # Common symbols not allowed in MH_DYLIB files
13585 case $cc_basename in
13587 lt_prog_compiler_pic_F77='-qnocommon'
13588 lt_prog_compiler_wl_F77='-Wl,'
13593 mingw* | pw32* | os2*)
13594 # This hack is so that the source file can tell whether it is being
13595 # built for inclusion in a dll (and should export symbols for example).
13596 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13599 hpux9* | hpux10* | hpux11*)
13600 lt_prog_compiler_wl_F77='-Wl,'
13601 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13602 # not for PA HP-UX.
13603 case "$host_cpu" in
13608 lt_prog_compiler_pic_F77='+Z'
13611 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13612 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13615 irix5* | irix6* | nonstopux*)
13616 lt_prog_compiler_wl_F77='-Wl,'
13617 # PIC (with -KPIC) is the default.
13618 lt_prog_compiler_static_F77='-non_shared'
13622 lt_prog_compiler_pic_F77='-KPIC'
13623 lt_prog_compiler_static_F77='-Bstatic'
13627 case $cc_basename in
13629 lt_prog_compiler_wl_F77='-Wl,'
13630 lt_prog_compiler_pic_F77='-KPIC'
13631 lt_prog_compiler_static_F77='-static'
13633 pgcc* | pgf77* | pgf90*)
13634 # Portland Group compilers (*not* the Pentium gcc compiler,
13635 # which looks to be a dead project)
13636 lt_prog_compiler_wl_F77='-Wl,'
13637 lt_prog_compiler_pic_F77='-fpic'
13638 lt_prog_compiler_static_F77='-static'
13641 lt_prog_compiler_wl_F77='-Wl,'
13642 # All Alpha code is PIC.
13643 lt_prog_compiler_static_F77='-non_shared'
13648 osf3* | osf4* | osf5*)
13649 lt_prog_compiler_wl_F77='-Wl,'
13650 # All OSF/1 code is PIC.
13651 lt_prog_compiler_static_F77='-non_shared'
13655 lt_prog_compiler_pic_F77='-Kpic'
13656 lt_prog_compiler_static_F77='-dn'
13660 lt_prog_compiler_pic_F77='-KPIC'
13661 lt_prog_compiler_static_F77='-Bstatic'
13662 case $cc_basename in
13663 f77* | f90* | f95*)
13664 lt_prog_compiler_wl_F77='-Qoption ld ';;
13666 lt_prog_compiler_wl_F77='-Wl,';;
13671 lt_prog_compiler_wl_F77='-Qoption ld '
13672 lt_prog_compiler_pic_F77='-PIC'
13673 lt_prog_compiler_static_F77='-Bstatic'
13676 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13677 lt_prog_compiler_wl_F77='-Wl,'
13678 lt_prog_compiler_pic_F77='-KPIC'
13679 lt_prog_compiler_static_F77='-Bstatic'
13683 if test -d /usr/nec ;then
13684 lt_prog_compiler_pic_F77='-Kconform_pic'
13685 lt_prog_compiler_static_F77='-Bstatic'
13690 lt_prog_compiler_wl_F77='-Wl,'
13691 lt_prog_compiler_can_build_shared_F77=no
13695 lt_prog_compiler_pic_F77='-pic'
13696 lt_prog_compiler_static_F77='-Bstatic'
13700 lt_prog_compiler_can_build_shared_F77=no
13705 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13706 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13709 # Check to make sure the PIC flag actually works.
13711 if test -n "$lt_prog_compiler_pic_F77"; then
13713 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13714 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13715 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13716 echo $ECHO_N "(cached) $ECHO_C" >&6
13718 lt_prog_compiler_pic_works_F77=no
13719 ac_outfile=conftest.$ac_objext
13720 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13721 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13722 # Insert the option either (1) after the last *FLAGS variable, or
13723 # (2) before a word containing "conftest.", or (3) at the end.
13724 # Note that $ac_compile itself does not contain backslashes and begins
13725 # with a dollar sign (not a hyphen), so the echo should work correctly.
13726 # The option is referenced via a variable to avoid confusing sed.
13727 lt_compile=`echo "$ac_compile" | $SED \
13728 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13729 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13730 -e 's:$: $lt_compiler_flag:'`
13731 (eval echo "\"\$as_me:13731: $lt_compile\"" >&5)
13732 (eval "$lt_compile" 2>conftest.err)
13734 cat conftest.err >&5
13735 echo "$as_me:13735: \$? = $ac_status" >&5
13736 if (exit $ac_status) && test -s "$ac_outfile"; then
13737 # The compiler can only warn and ignore the option if not recognized
13738 # So say no if there are warnings other than the usual output.
13739 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13740 $SED '/^$/d' conftest.err >conftest.er2
13741 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13742 lt_prog_compiler_pic_works_F77=yes
13748 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13749 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13751 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13752 case $lt_prog_compiler_pic_F77 in
13754 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13757 lt_prog_compiler_pic_F77=
13758 lt_prog_compiler_can_build_shared_F77=no
13763 # For platforms which do not support PIC, -DPIC is meaningless:
13765 lt_prog_compiler_pic_F77=
13768 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13772 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13773 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13774 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13775 echo $ECHO_N "(cached) $ECHO_C" >&6
13777 lt_cv_prog_compiler_c_o_F77=no
13778 $rm -r conftest 2>/dev/null
13782 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13784 lt_compiler_flag="-o out/conftest2.$ac_objext"
13785 # Insert the option either (1) after the last *FLAGS variable, or
13786 # (2) before a word containing "conftest.", or (3) at the end.
13787 # Note that $ac_compile itself does not contain backslashes and begins
13788 # with a dollar sign (not a hyphen), so the echo should work correctly.
13789 lt_compile=`echo "$ac_compile" | $SED \
13790 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13791 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13792 -e 's:$: $lt_compiler_flag:'`
13793 (eval echo "\"\$as_me:13793: $lt_compile\"" >&5)
13794 (eval "$lt_compile" 2>out/conftest.err)
13796 cat out/conftest.err >&5
13797 echo "$as_me:13797: \$? = $ac_status" >&5
13798 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13800 # The compiler can only warn and ignore the option if not recognized
13801 # So say no if there are warnings
13802 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13803 $SED '/^$/d' out/conftest.err >out/conftest.er2
13804 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13805 lt_cv_prog_compiler_c_o_F77=yes
13810 # SGI C++ compiler will create directory out/ii_files/ for
13811 # template instantiation
13812 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13813 $rm out/* && rmdir out
13819 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13820 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13823 hard_links="nottested"
13824 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13825 # do not overwrite the value of need_locks provided by the user
13826 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13827 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13830 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13832 ln conftest.a conftest.b 2>&5 || hard_links=no
13833 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13834 echo "$as_me:$LINENO: result: $hard_links" >&5
13835 echo "${ECHO_T}$hard_links" >&6
13836 if test "$hard_links" = no; then
13837 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13838 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13845 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13846 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13849 allow_undefined_flag_F77=
13850 enable_shared_with_static_runtimes_F77=no
13852 archive_expsym_cmds_F77=
13853 old_archive_From_new_cmds_F77=
13854 old_archive_from_expsyms_cmds_F77=
13855 export_dynamic_flag_spec_F77=
13856 whole_archive_flag_spec_F77=
13857 thread_safe_flag_spec_F77=
13858 hardcode_libdir_flag_spec_F77=
13859 hardcode_libdir_flag_spec_ld_F77=
13860 hardcode_libdir_separator_F77=
13861 hardcode_direct_F77=no
13862 hardcode_minus_L_F77=no
13863 hardcode_shlibpath_var_F77=unsupported
13864 link_all_deplibs_F77=unknown
13865 hardcode_automatic_F77=no
13867 module_expsym_cmds_F77=
13868 always_export_symbols_F77=no
13869 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13870 # include_expsyms should be a list of space-separated symbols to be *always*
13871 # included in the symbol list
13872 include_expsyms_F77=
13873 # exclude_expsyms can be an extended regexp of symbols to exclude
13874 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13875 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13876 # as well as any symbol that contains `d'.
13877 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13878 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13879 # platforms (ab)use it in PIC code, but their linkers get confused if
13880 # the symbol is explicitly referenced. Since portable code cannot
13881 # rely on this symbol name, it's probably fine to never include it in
13882 # preloaded symbol tables.
13883 extract_expsyms_cmds=
13884 # Just being paranoid about ensuring that cc_basename is set.
13885 for cc_temp in $compiler""; do
13887 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13888 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13893 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13896 cygwin* | mingw* | pw32*)
13897 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13898 # When not using gcc, we currently assume that we are using
13899 # Microsoft Visual C++.
13900 if test "$GCC" != yes; then
13910 if test "$with_gnu_ld" = yes; then
13911 # If archive_cmds runs LD, not CC, wlarc should be empty
13914 # Set some defaults for GNU ld with shared library support. These
13915 # are reset later if shared libraries are not supported. Putting them
13916 # here allows them to be overridden if necessary.
13917 runpath_var=LD_RUN_PATH
13918 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13919 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13920 # ancient GNU ld didn't support --whole-archive et. al.
13921 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13922 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13924 whole_archive_flag_spec_F77=
13926 supports_anon_versioning=no
13927 case `$LD -v 2>/dev/null` in
13928 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13929 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13930 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13931 *\ 2.11.*) ;; # other 2.11 versions
13932 *) supports_anon_versioning=yes ;;
13935 # See if GNU ld supports shared libraries.
13937 aix3* | aix4* | aix5*)
13938 # On AIX/PPC, the GNU linker is very broken
13939 if test "$host_cpu" != ia64; then
13943 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13944 *** to be unable to reliably create shared libraries on AIX.
13945 *** Therefore, libtool is disabling shared libraries support. If you
13946 *** really care for shared libraries, you may want to modify your PATH
13947 *** so that a non-GNU linker is found, and then restart.
13954 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)'
13955 hardcode_libdir_flag_spec_F77='-L$libdir'
13956 hardcode_minus_L_F77=yes
13958 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13959 # that the semantics of dynamic libraries on AmigaOS, at least up
13960 # to version 4, is to share data among multiple programs linked
13961 # with the same dynamic library. Since this doesn't match the
13962 # behavior of shared libraries on other platforms, we can't use
13968 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13969 allow_undefined_flag_F77=unsupported
13970 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13971 # support --undefined. This deserves some investigation. FIXME
13972 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13978 cygwin* | mingw* | pw32*)
13979 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13980 # as there is no search path for DLLs.
13981 hardcode_libdir_flag_spec_F77='-L$libdir'
13982 allow_undefined_flag_F77=unsupported
13983 always_export_symbols_F77=no
13984 enable_shared_with_static_runtimes_F77=yes
13985 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13987 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13988 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13989 # If the export-symbols file already is a .def file (1st line
13990 # is EXPORTS), use it as is; otherwise, prepend...
13991 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13992 cp $export_symbols $output_objdir/$soname.def;
13994 echo EXPORTS > $output_objdir/$soname.def;
13995 cat $export_symbols >> $output_objdir/$soname.def;
13997 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14004 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14006 case $cc_basename,$host_cpu in
14007 pgcc*) # Portland Group C compiler
14008 whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14009 tmp_addflag=' $pic_flag'
14011 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
14012 whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14013 tmp_addflag=' $pic_flag -Mnomain' ;;
14014 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14015 tmp_addflag=' -i_dynamic' ;;
14016 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14017 tmp_addflag=' -i_dynamic -nofor_main' ;;
14018 ifc* | ifort*) # Intel Fortran compiler
14019 tmp_addflag=' -nofor_main' ;;
14021 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14023 if test $supports_anon_versioning = yes; then
14024 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14025 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14026 $echo "local: *; };" >> $output_objdir/$libname.ver~
14027 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14035 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14036 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14039 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14040 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14045 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14049 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14050 *** create shared libraries on Solaris systems. Therefore, libtool
14051 *** is disabling shared libraries support. We urge you to upgrade GNU
14052 *** binutils to release 2.9.1 or newer. Another option is to modify
14053 *** your PATH or compiler configuration so that the native linker is
14054 *** used, and then restart.
14057 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14058 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14059 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14066 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14068 hardcode_direct_F77=yes
14069 hardcode_shlibpath_var_F77=no
14073 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14074 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14075 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14082 if test "$ld_shlibs_F77" = no; then
14084 hardcode_libdir_flag_spec_F77=
14085 export_dynamic_flag_spec_F77=
14086 whole_archive_flag_spec_F77=
14089 # PORTME fill in a description of your system's linker (not GNU ld)
14092 allow_undefined_flag_F77=unsupported
14093 always_export_symbols_F77=yes
14094 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'
14095 # Note: this linker hardcodes the directories in LIBPATH if there
14096 # are no directories specified by -L.
14097 hardcode_minus_L_F77=yes
14098 if test "$GCC" = yes && test -z "$link_static_flag"; then
14099 # Neither direct hardcoding nor static linking is supported with a
14101 hardcode_direct_F77=unsupported
14106 if test "$host_cpu" = ia64; then
14107 # On IA64, the linker does run time linking by default, so we don't
14108 # have to do anything special.
14109 aix_use_runtimelinking=no
14110 exp_sym_flag='-Bexport'
14113 # If we're using GNU nm, then we don't want the "-C" option.
14114 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14115 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14116 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'
14118 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'
14120 aix_use_runtimelinking=no
14122 # Test if we are trying to use run time linking or normal
14123 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14124 # need to do runtime linking.
14125 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14126 for ld_flag in $LDFLAGS; do
14127 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14128 aix_use_runtimelinking=yes
14134 exp_sym_flag='-bexport'
14135 no_entry_flag='-bnoentry'
14138 # When large executables or shared objects are built, AIX ld can
14139 # have problems creating the table of contents. If linking a library
14140 # or program results in "error TOC overflow" add -mminimal-toc to
14141 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14142 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14144 archive_cmds_F77=''
14145 hardcode_direct_F77=yes
14146 hardcode_libdir_separator_F77=':'
14147 link_all_deplibs_F77=yes
14149 if test "$GCC" = yes; then
14150 case $host_os in aix4.[012]|aix4.[012].*)
14151 # We only want to do this on AIX 4.2 and lower, the check
14152 # below for broken collect2 doesn't work under 4.3+
14153 collect2name=`${CC} -print-prog-name=collect2`
14154 if test -f "$collect2name" && \
14155 strings "$collect2name" | grep resolve_lib_name >/dev/null
14157 # We have reworked collect2
14158 hardcode_direct_F77=yes
14160 # We have old collect2
14161 hardcode_direct_F77=unsupported
14162 # It fails to find uninstalled libraries when the uninstalled
14163 # path is not listed in the libpath. Setting hardcode_minus_L
14164 # to unsupported forces relinking
14165 hardcode_minus_L_F77=yes
14166 hardcode_libdir_flag_spec_F77='-L$libdir'
14167 hardcode_libdir_separator_F77=
14170 shared_flag='-shared'
14171 if test "$aix_use_runtimelinking" = yes; then
14172 shared_flag="$shared_flag "'${wl}-G'
14176 if test "$host_cpu" = ia64; then
14177 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14178 # chokes on -Wl,-G. The following line is correct:
14181 if test "$aix_use_runtimelinking" = yes; then
14182 shared_flag='${wl}-G'
14184 shared_flag='${wl}-bM:SRE'
14189 # It seems that -bexpall does not export symbols beginning with
14190 # underscore (_), so it is better to generate a list of symbols to export.
14191 always_export_symbols_F77=yes
14192 if test "$aix_use_runtimelinking" = yes; then
14193 # Warning - without using the other runtime loading flags (-brtl),
14194 # -berok will link without error, but may produce a broken library.
14195 allow_undefined_flag_F77='-berok'
14196 # Determine the default libpath from the value encoded in an empty executable.
14197 cat >conftest.$ac_ext <<_ACEOF
14202 rm -f conftest.$ac_objext conftest$ac_exeext
14203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14204 (eval $ac_link) 2>conftest.er1
14206 grep -v '^ *+' conftest.er1 >conftest.err
14208 cat conftest.err >&5
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); } &&
14211 { ac_try='test -z "$ac_f77_werror_flag"
14212 || test ! -s conftest.err'
14213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14214 (eval $ac_try) 2>&5
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); }; } &&
14218 { ac_try='test -s conftest$ac_exeext'
14219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14220 (eval $ac_try) 2>&5
14222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223 (exit $ac_status); }; }; then
14225 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14227 # Check for a 64-bit object if we didn't find anything.
14228 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; }
14231 echo "$as_me: failed program was:" >&5
14232 sed 's/^/| /' conftest.$ac_ext >&5
14235 rm -f conftest.err conftest.$ac_objext \
14236 conftest$ac_exeext conftest.$ac_ext
14237 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14239 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14240 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"
14242 if test "$host_cpu" = ia64; then
14243 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14244 allow_undefined_flag_F77="-z nodefs"
14245 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"
14247 # Determine the default libpath from the value encoded in an empty executable.
14248 cat >conftest.$ac_ext <<_ACEOF
14253 rm -f conftest.$ac_objext conftest$ac_exeext
14254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14255 (eval $ac_link) 2>conftest.er1
14257 grep -v '^ *+' conftest.er1 >conftest.err
14259 cat conftest.err >&5
14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261 (exit $ac_status); } &&
14262 { ac_try='test -z "$ac_f77_werror_flag"
14263 || test ! -s conftest.err'
14264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14265 (eval $ac_try) 2>&5
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); }; } &&
14269 { ac_try='test -s conftest$ac_exeext'
14270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14271 (eval $ac_try) 2>&5
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); }; }; then
14276 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14278 # Check for a 64-bit object if we didn't find anything.
14279 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; }
14282 echo "$as_me: failed program was:" >&5
14283 sed 's/^/| /' conftest.$ac_ext >&5
14286 rm -f conftest.err conftest.$ac_objext \
14287 conftest$ac_exeext conftest.$ac_ext
14288 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14290 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14291 # Warning - without using the other run time loading flags,
14292 # -berok will link without error, but may produce a broken library.
14293 no_undefined_flag_F77=' ${wl}-bernotok'
14294 allow_undefined_flag_F77=' ${wl}-berok'
14295 # -bexpall does not export symbols beginning with underscore (_)
14296 always_export_symbols_F77=yes
14297 # Exported symbols can be pulled into shared objects from archives
14298 whole_archive_flag_spec_F77=' '
14299 archive_cmds_need_lc_F77=yes
14300 # This is similar to how AIX traditionally builds it's shared libraries.
14301 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'
14307 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)'
14308 hardcode_libdir_flag_spec_F77='-L$libdir'
14309 hardcode_minus_L_F77=yes
14310 # see comment about different semantics on the GNU ld section
14315 export_dynamic_flag_spec_F77=-rdynamic
14318 cygwin* | mingw* | pw32*)
14319 # When not using gcc, we currently assume that we are using
14320 # Microsoft Visual C++.
14321 # hardcode_libdir_flag_spec is actually meaningless, as there is
14322 # no search path for DLLs.
14323 hardcode_libdir_flag_spec_F77=' '
14324 allow_undefined_flag_F77=unsupported
14325 # Tell ltmain to make .lib files, not .a files.
14327 # Tell ltmain to make .dll files, not .so files.
14329 # FIXME: Setting linknames here is a bad hack.
14330 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14331 # The linker will automatically build a .lib file if we build a DLL.
14332 old_archive_From_new_cmds_F77='true'
14333 # FIXME: Should let the user specify the lib program.
14334 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14335 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14336 enable_shared_with_static_runtimes_F77=yes
14339 darwin* | rhapsody*)
14341 rhapsody* | darwin1.[012])
14342 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14345 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14346 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14348 case ${MACOSX_DEPLOYMENT_TARGET} in
14350 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14353 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14359 archive_cmds_need_lc_F77=no
14360 hardcode_direct_F77=no
14361 hardcode_automatic_F77=yes
14362 hardcode_shlibpath_var_F77=unsupported
14363 whole_archive_flag_spec_F77=''
14364 link_all_deplibs_F77=yes
14365 if test "$GCC" = yes ; then
14366 output_verbose_link_cmd='echo'
14367 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14368 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14369 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14370 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}'
14371 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}'
14373 case $cc_basename in
14375 output_verbose_link_cmd='echo'
14376 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14377 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14378 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14379 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}'
14380 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}'
14390 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14391 hardcode_libdir_flag_spec_F77='-L$libdir'
14392 hardcode_shlibpath_var_F77=no
14399 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14400 # support. Future versions do this automatically, but an explicit c++rt0.o
14401 # does not break anything, and helps significantly (at the cost of a little
14404 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14405 hardcode_libdir_flag_spec_F77='-R$libdir'
14406 hardcode_direct_F77=yes
14407 hardcode_shlibpath_var_F77=no
14410 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14412 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14413 hardcode_direct_F77=yes
14414 hardcode_minus_L_F77=yes
14415 hardcode_shlibpath_var_F77=no
14418 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14419 freebsd* | kfreebsd*-gnu | dragonfly*)
14420 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14421 hardcode_libdir_flag_spec_F77='-R$libdir'
14422 hardcode_direct_F77=yes
14423 hardcode_shlibpath_var_F77=no
14427 if test "$GCC" = yes; then
14428 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'
14430 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'
14432 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14433 hardcode_libdir_separator_F77=:
14434 hardcode_direct_F77=yes
14436 # hardcode_minus_L: Not really in the search PATH,
14437 # but as the default location of the library.
14438 hardcode_minus_L_F77=yes
14439 export_dynamic_flag_spec_F77='${wl}-E'
14443 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14444 case "$host_cpu" in
14446 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14449 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14453 case "$host_cpu" in
14455 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14458 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14462 if test "$with_gnu_ld" = no; then
14463 case "$host_cpu" in
14465 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14466 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14467 hardcode_libdir_separator_F77=:
14468 hardcode_direct_F77=no
14469 hardcode_shlibpath_var_F77=no
14472 hardcode_libdir_flag_spec_F77='-L$libdir'
14473 hardcode_direct_F77=no
14474 hardcode_shlibpath_var_F77=no
14476 # hardcode_minus_L: Not really in the search PATH,
14477 # but as the default location of the library.
14478 hardcode_minus_L_F77=yes
14481 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14482 hardcode_libdir_separator_F77=:
14483 hardcode_direct_F77=yes
14484 export_dynamic_flag_spec_F77='${wl}-E'
14486 # hardcode_minus_L: Not really in the search PATH,
14487 # but as the default location of the library.
14488 hardcode_minus_L_F77=yes
14494 irix5* | irix6* | nonstopux*)
14495 if test "$GCC" = yes; then
14496 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'
14498 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'
14499 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14501 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14502 hardcode_libdir_separator_F77=:
14503 link_all_deplibs_F77=yes
14507 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14508 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14510 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14512 hardcode_libdir_flag_spec_F77='-R$libdir'
14513 hardcode_direct_F77=yes
14514 hardcode_shlibpath_var_F77=no
14518 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14519 hardcode_direct_F77=yes
14520 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14521 hardcode_libdir_separator_F77=:
14522 hardcode_shlibpath_var_F77=no
14526 hardcode_direct_F77=yes
14527 hardcode_shlibpath_var_F77=no
14528 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14529 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14530 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14531 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14532 export_dynamic_flag_spec_F77='${wl}-E'
14535 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14536 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14537 hardcode_libdir_flag_spec_F77='-R$libdir'
14540 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14541 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14548 hardcode_libdir_flag_spec_F77='-L$libdir'
14549 hardcode_minus_L_F77=yes
14550 allow_undefined_flag_F77=unsupported
14551 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'
14552 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14556 if test "$GCC" = yes; then
14557 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14558 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'
14560 allow_undefined_flag_F77=' -expect_unresolved \*'
14561 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'
14563 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14564 hardcode_libdir_separator_F77=:
14567 osf4* | osf5*) # as osf3* with the addition of -msym flag
14568 if test "$GCC" = yes; then
14569 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14570 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'
14571 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14573 allow_undefined_flag_F77=' -expect_unresolved \*'
14574 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'
14575 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~
14576 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14578 # Both c and cxx compiler support -rpath directly
14579 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14581 hardcode_libdir_separator_F77=:
14585 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14586 hardcode_shlibpath_var_F77=no
14587 export_dynamic_flag_spec_F77='${wl}-Bexport'
14588 runpath_var=LD_RUN_PATH
14589 hardcode_runpath_var=yes
14593 no_undefined_flag_F77=' -z text'
14594 if test "$GCC" = yes; then
14596 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14597 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14598 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14601 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14602 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14603 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14605 hardcode_libdir_flag_spec_F77='-R$libdir'
14606 hardcode_shlibpath_var_F77=no
14608 solaris2.[0-5] | solaris2.[0-5].*) ;;
14610 # The compiler driver will combine linker options so we
14611 # cannot just pass the convience library names through
14612 # without $wl, iff we do not link with $LD.
14613 # Luckily, gcc supports the same syntax we need for Sun Studio.
14614 # Supported since Solaris 2.6 (maybe 2.5.1?)
14617 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14619 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14622 link_all_deplibs_F77=yes
14626 if test "x$host_vendor" = xsequent; then
14627 # Use $CC to link under sequent, because it throws in some extra .o
14628 # files that make .init and .fini sections work.
14629 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14631 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14633 hardcode_libdir_flag_spec_F77='-L$libdir'
14634 hardcode_direct_F77=yes
14635 hardcode_minus_L_F77=yes
14636 hardcode_shlibpath_var_F77=no
14640 case $host_vendor in
14642 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14643 hardcode_direct_F77=yes # is this really true???
14646 ## LD is ld it makes a PLAMLIB
14647 ## CC just makes a GrossModule.
14648 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14649 reload_cmds_F77='$CC -r -o $output$reload_objs'
14650 hardcode_direct_F77=no
14653 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14654 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14657 runpath_var='LD_RUN_PATH'
14658 hardcode_shlibpath_var_F77=no
14662 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14663 hardcode_shlibpath_var_F77=no
14664 export_dynamic_flag_spec_F77='-Bexport'
14668 if test -d /usr/nec; then
14669 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14670 hardcode_shlibpath_var_F77=no
14671 runpath_var=LD_RUN_PATH
14672 hardcode_runpath_var=yes
14678 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14679 hardcode_direct_F77=yes
14680 hardcode_minus_L_F77=no
14681 hardcode_shlibpath_var_F77=no
14682 hardcode_runpath_var=yes
14683 runpath_var=LD_RUN_PATH
14686 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14687 no_undefined_flag_F77='${wl}-z ${wl}text'
14688 if test "$GCC" = yes; then
14689 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14691 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14693 runpath_var='LD_RUN_PATH'
14694 hardcode_shlibpath_var_F77=no
14698 no_undefined_flag_F77=' -z text'
14699 # $CC -shared without GNU ld will not create a library from C++
14700 # object files and a static libstdc++, better avoid it by now
14701 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14702 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14703 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14704 hardcode_libdir_flag_spec_F77=
14705 hardcode_shlibpath_var_F77=no
14706 runpath_var='LD_RUN_PATH'
14710 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14711 hardcode_libdir_flag_spec_F77='-L$libdir'
14712 hardcode_shlibpath_var_F77=no
14721 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14722 echo "${ECHO_T}$ld_shlibs_F77" >&6
14723 test "$ld_shlibs_F77" = no && can_build_shared=no
14725 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14726 if test "$GCC" = yes; then
14727 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14731 # Do we need to explicitly link libc?
14733 case "x$archive_cmds_need_lc_F77" in
14735 # Assume -lc should be added
14736 archive_cmds_need_lc_F77=yes
14738 if test "$enable_shared" = yes && test "$GCC" = yes; then
14739 case $archive_cmds_F77 in
14741 # FIXME: we may have to deal with multi-command sequences.
14744 # Test whether the compiler implicitly links with -lc since on some
14745 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14746 # to ld, don't add -lc before -lgcc.
14747 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14748 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14750 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14753 (eval $ac_compile) 2>&5
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); } 2>conftest.err; then
14759 libobjs=conftest.$ac_objext
14761 wl=$lt_prog_compiler_wl_F77
14767 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14768 allow_undefined_flag_F77=
14769 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14770 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 (exit $ac_status); }
14775 archive_cmds_need_lc_F77=no
14777 archive_cmds_need_lc_F77=yes
14779 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14781 cat conftest.err 1>&5
14784 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14785 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14792 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14793 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14794 library_names_spec=
14795 libname_spec='lib$name'
14799 postuninstall_cmds=
14803 shlibpath_overrides_runpath=unknown
14805 dynamic_linker="$host_os ld.so"
14806 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14807 if test "$GCC" = yes; then
14808 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14809 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14810 # if the path contains ";" then we assume it to be the separator
14811 # otherwise default to the standard path separator (i.e. ":") - it is
14812 # assumed that no part of a normal pathname contains ";" but that should
14813 # okay in the real world where ";" in dirpaths is itself problematic.
14814 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14816 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14819 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14821 need_lib_prefix=unknown
14822 hardcode_into_libs=no
14824 # when you set need_version to no, make sure it does not cause -set_version
14825 # flags to be left without arguments
14826 need_version=unknown
14831 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14832 shlibpath_var=LIBPATH
14834 # AIX 3 has no versioning support, so we append a major version to the name.
14835 soname_spec='${libname}${release}${shared_ext}$major'
14842 hardcode_into_libs=yes
14843 if test "$host_cpu" = ia64; then
14844 # AIX 5 supports IA64
14845 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14846 shlibpath_var=LD_LIBRARY_PATH
14848 # With GCC up to 2.95.x, collect2 would create an import file
14849 # for dependence libraries. The import file would start with
14850 # the line `#! .'. This would cause the generated library to
14851 # depend on `.', always an invalid library. This was fixed in
14852 # development snapshots of GCC prior to 3.0.
14854 aix4 | aix4.[01] | aix4.[01].*)
14855 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14857 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14860 can_build_shared=no
14864 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14865 # soname into executable. Probably we can add versioning support to
14866 # collect2, so additional links can be useful in future.
14867 if test "$aix_use_runtimelinking" = yes; then
14868 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14869 # instead of lib<name>.a to let people know that these are not
14870 # typical AIX shared libraries.
14871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14873 # We preserve .a as extension for shared libraries through AIX4.2
14874 # and later when we are not doing run time linking.
14875 library_names_spec='${libname}${release}.a $libname.a'
14876 soname_spec='${libname}${release}${shared_ext}$major'
14878 shlibpath_var=LIBPATH
14883 library_names_spec='$libname.ixlibrary $libname.a'
14884 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14885 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'
14889 library_names_spec='${libname}${shared_ext}'
14890 dynamic_linker="$host_os ld.so"
14891 shlibpath_var=LIBRARY_PATH
14897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14898 soname_spec='${libname}${release}${shared_ext}$major'
14899 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14900 shlibpath_var=LD_LIBRARY_PATH
14901 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14902 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14903 # the default ld.so.conf also contains /usr/contrib/lib and
14904 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14905 # libtool to hard-code these into programs
14908 cygwin* | mingw* | pw32*)
14909 version_type=windows
14914 case $GCC,$host_os in
14915 yes,cygwin* | yes,mingw* | yes,pw32*)
14916 library_names_spec='$libname.dll.a'
14917 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14918 postinstall_cmds='base_file=`basename \${file}`~
14919 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14920 dldir=$destdir/`dirname \$dlpath`~
14921 test -d \$dldir || mkdir -p \$dldir~
14922 $install_prog $dir/$dlname \$dldir/$dlname'
14923 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14924 dlpath=$dir/\$dldll~
14926 shlibpath_overrides_runpath=yes
14930 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14931 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14932 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14935 # MinGW DLLs use traditional 'lib' prefix
14936 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14937 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14938 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14939 # It is most probably a Windows format PATH printed by
14940 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14941 # path with ; separators, and with drive letters. We can handle the
14942 # drive letters (cygwin fileutils understands them), so leave them,
14943 # especially as we might pass files found there to a mingw objdump,
14944 # which wouldn't understand a cygwinified path. Ahh.
14945 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14947 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14951 # pw32 DLLs use 'pw' prefix rather than 'lib'
14952 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14958 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14961 dynamic_linker='Win32 ld.exe'
14962 # FIXME: first we should search . and the directory the executable is in
14966 darwin* | rhapsody*)
14967 dynamic_linker="$host_os dyld"
14968 version_type=darwin
14971 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14972 soname_spec='${libname}${release}${major}$shared_ext'
14973 shlibpath_overrides_runpath=yes
14974 shlibpath_var=DYLD_LIBRARY_PATH
14975 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14976 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14977 if test "$GCC" = yes; then
14978 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"`
14980 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14982 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14990 soname_spec='${libname}${release}${shared_ext}$major'
14991 shlibpath_var=LD_LIBRARY_PATH
15002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15003 soname_spec='${libname}${release}${shared_ext}$major'
15004 shlibpath_var=LD_LIBRARY_PATH
15005 shlibpath_overrides_runpath=no
15006 hardcode_into_libs=yes
15007 dynamic_linker='GNU ld.so'
15010 freebsd* | dragonfly*)
15011 # DragonFly does not have aout. When/if they implement a new
15012 # versioning mechanism, adjust this.
15013 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15014 version_type=freebsd-$objformat
15015 case $version_type in
15017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15022 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15026 shlibpath_var=LD_LIBRARY_PATH
15029 shlibpath_overrides_runpath=yes
15031 freebsd3.[01]* | freebsdelf3.[01]*)
15032 shlibpath_overrides_runpath=yes
15033 hardcode_into_libs=yes
15036 shlibpath_overrides_runpath=no
15037 hardcode_into_libs=yes
15046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15047 soname_spec='${libname}${release}${shared_ext}$major'
15048 shlibpath_var=LD_LIBRARY_PATH
15049 hardcode_into_libs=yes
15052 hpux9* | hpux10* | hpux11*)
15053 # Give a soname corresponding to the major version so that dld.sl refuses to
15054 # link against other versions.
15058 case "$host_cpu" in
15061 hardcode_into_libs=yes
15062 dynamic_linker="$host_os dld.so"
15063 shlibpath_var=LD_LIBRARY_PATH
15064 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15066 soname_spec='${libname}${release}${shared_ext}$major'
15067 if test "X$HPUX_IA64_MODE" = X32; then
15068 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15070 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15072 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15076 hardcode_into_libs=yes
15077 dynamic_linker="$host_os dld.sl"
15078 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15079 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15081 soname_spec='${libname}${release}${shared_ext}$major'
15082 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15083 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15087 dynamic_linker="$host_os dld.sl"
15088 shlibpath_var=SHLIB_PATH
15089 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15091 soname_spec='${libname}${release}${shared_ext}$major'
15094 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15095 postinstall_cmds='chmod 555 $lib'
15098 irix5* | irix6* | nonstopux*)
15100 nonstopux*) version_type=nonstopux ;;
15102 if test "$lt_cv_prog_gnu_ld" = yes; then
15110 soname_spec='${libname}${release}${shared_ext}$major'
15111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15113 irix5* | nonstopux*)
15114 libsuff= shlibsuff=
15117 case $LD in # libtool.m4 will add one of these switches to LD
15118 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15119 libsuff= shlibsuff= libmagic=32-bit;;
15120 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15121 libsuff=32 shlibsuff=N32 libmagic=N32;;
15122 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15123 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15124 *) libsuff= shlibsuff= libmagic=never-match;;
15128 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15129 shlibpath_overrides_runpath=no
15130 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15131 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15132 hardcode_into_libs=yes
15135 # No shared lib support for Linux oldld, aout, or coff.
15136 linux*oldld* | linux*aout* | linux*coff*)
15140 # This must be Linux ELF.
15145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15146 soname_spec='${libname}${release}${shared_ext}$major'
15147 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15148 shlibpath_var=LD_LIBRARY_PATH
15149 shlibpath_overrides_runpath=no
15150 # This implies no fast_install, which is unacceptable.
15151 # Some rework will be needed to allow for fast_install
15152 # before this can be enabled.
15153 hardcode_into_libs=yes
15155 # Append ld.so.conf contents to the search path
15156 if test -f /etc/ld.so.conf; then
15157 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/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15158 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15161 # We used to test for /lib/ld.so.1 and disable shared libraries on
15162 # powerpc, because MkLinux only supported shared libraries with the
15163 # GNU dynamic linker. Since this was broken with cross compilers,
15164 # most powerpc-linux boxes support dynamic linking these days and
15165 # people can always --disable-shared, the test was removed, and we
15166 # assume the GNU/Linux dynamic linker is in use.
15167 dynamic_linker='GNU/Linux ld.so'
15174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15175 soname_spec='${libname}${release}${shared_ext}$major'
15176 shlibpath_var=LD_LIBRARY_PATH
15177 shlibpath_overrides_runpath=no
15178 hardcode_into_libs=yes
15179 dynamic_linker='GNU ld.so'
15186 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15188 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15189 dynamic_linker='NetBSD (a.out) ld.so'
15191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15192 soname_spec='${libname}${release}${shared_ext}$major'
15193 dynamic_linker='NetBSD ld.elf_so'
15195 shlibpath_var=LD_LIBRARY_PATH
15196 shlibpath_overrides_runpath=yes
15197 hardcode_into_libs=yes
15202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15203 shlibpath_var=LD_LIBRARY_PATH
15204 shlibpath_overrides_runpath=yes
15211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15212 soname_spec='${libname}${release}${shared_ext}$major'
15213 shlibpath_var=LD_LIBRARY_PATH
15214 shlibpath_overrides_runpath=yes
15220 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15222 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15223 *) need_version=no ;;
15225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15226 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15227 shlibpath_var=LD_LIBRARY_PATH
15228 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15230 openbsd2.[89] | openbsd2.[89].*)
15231 shlibpath_overrides_runpath=no
15234 shlibpath_overrides_runpath=yes
15238 shlibpath_overrides_runpath=yes
15243 libname_spec='$name'
15246 library_names_spec='$libname${shared_ext} $libname.a'
15247 dynamic_linker='OS/2 ld.exe'
15248 shlibpath_var=LIBPATH
15251 osf3* | osf4* | osf5*)
15255 soname_spec='${libname}${release}${shared_ext}$major'
15256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15257 shlibpath_var=LD_LIBRARY_PATH
15258 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15259 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15264 soname_spec='${libname}${release}${shared_ext}$major'
15265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15266 shlibpath_var=LD_LIBRARY_PATH
15273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15274 soname_spec='${libname}${release}${shared_ext}$major'
15275 shlibpath_var=LD_LIBRARY_PATH
15276 shlibpath_overrides_runpath=yes
15277 hardcode_into_libs=yes
15278 # ldd complains unless libraries are executable
15279 postinstall_cmds='chmod +x $lib'
15284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15285 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15286 shlibpath_var=LD_LIBRARY_PATH
15287 shlibpath_overrides_runpath=yes
15288 if test "$with_gnu_ld" = yes; then
15294 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15297 soname_spec='${libname}${release}${shared_ext}$major'
15298 shlibpath_var=LD_LIBRARY_PATH
15299 case $host_vendor in
15301 shlibpath_overrides_runpath=no
15303 export_dynamic_flag_spec='${wl}-Blargedynsym'
15304 runpath_var=LD_RUN_PATH
15312 shlibpath_overrides_runpath=no
15313 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15319 if test -d /usr/nec ;then
15321 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15322 soname_spec='$libname${shared_ext}.$major'
15323 shlibpath_var=LD_LIBRARY_PATH
15329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15330 soname_spec='${libname}${release}${shared_ext}$major'
15331 shlibpath_var=LD_LIBRARY_PATH
15338 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15339 echo "${ECHO_T}$dynamic_linker" >&6
15340 test "$dynamic_linker" = no && can_build_shared=no
15342 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15343 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15344 hardcode_action_F77=
15345 if test -n "$hardcode_libdir_flag_spec_F77" || \
15346 test -n "$runpath_var_F77" || \
15347 test "X$hardcode_automatic_F77" = "Xyes" ; then
15349 # We can hardcode non-existant directories.
15350 if test "$hardcode_direct_F77" != no &&
15351 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15352 # have to relink, otherwise we might link with an installed library
15353 # when we should be linking with a yet-to-be-installed one
15354 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15355 test "$hardcode_minus_L_F77" != no; then
15356 # Linking always hardcodes the temporary library directory.
15357 hardcode_action_F77=relink
15359 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15360 hardcode_action_F77=immediate
15363 # We cannot hardcode anything, or else we can only hardcode existing
15365 hardcode_action_F77=unsupported
15367 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15368 echo "${ECHO_T}$hardcode_action_F77" >&6
15370 if test "$hardcode_action_F77" = relink; then
15371 # Fast installation is not supported
15372 enable_fast_install=no
15373 elif test "$shlibpath_overrides_runpath" = yes ||
15374 test "$enable_shared" = no; then
15375 # Fast installation is not necessary
15376 enable_fast_install=needless
15381 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15382 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15383 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15384 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15385 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15386 echo "$as_me:$LINENO: result: yes" >&5
15387 echo "${ECHO_T}yes" >&6
15389 # FIXME - insert some real tests, host_os isn't really good enough
15392 if test -n "$STRIP" ; then
15393 striplib="$STRIP -x"
15394 echo "$as_me:$LINENO: result: yes" >&5
15395 echo "${ECHO_T}yes" >&6
15397 echo "$as_me:$LINENO: result: no" >&5
15398 echo "${ECHO_T}no" >&6
15402 echo "$as_me:$LINENO: result: no" >&5
15403 echo "${ECHO_T}no" >&6
15410 # The else clause should only fire when bootstrapping the
15411 # libtool distribution, otherwise you forgot to ship ltmain.sh
15412 # with your package, and you will get complaints that there are
15413 # no rules to generate ltmain.sh.
15414 if test -f "$ltmain"; then
15415 # See if we are running on zsh, and set the options which allow our commands through
15416 # without removal of \ escapes.
15417 if test -n "${ZSH_VERSION+set}" ; then
15418 setopt NO_GLOB_SUBST
15420 # Now quote all the things that may contain metacharacters while being
15421 # careful not to overquote the AC_SUBSTed values. We take copies of the
15422 # variables and quote the copies for generation of the libtool script.
15423 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15425 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15426 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15427 deplibs_check_method reload_flag reload_cmds need_locks \
15428 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15429 lt_cv_sys_global_symbol_to_c_name_address \
15430 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15431 old_postinstall_cmds old_postuninstall_cmds \
15435 lt_prog_compiler_wl_F77 \
15436 lt_prog_compiler_pic_F77 \
15437 lt_prog_compiler_static_F77 \
15438 lt_prog_compiler_no_builtin_flag_F77 \
15439 export_dynamic_flag_spec_F77 \
15440 thread_safe_flag_spec_F77 \
15441 whole_archive_flag_spec_F77 \
15442 enable_shared_with_static_runtimes_F77 \
15443 old_archive_cmds_F77 \
15444 old_archive_from_new_cmds_F77 \
15445 predep_objects_F77 \
15446 postdep_objects_F77 \
15449 compiler_lib_search_path_F77 \
15451 archive_expsym_cmds_F77 \
15452 postinstall_cmds_F77 \
15453 postuninstall_cmds_F77 \
15454 old_archive_from_expsyms_cmds_F77 \
15455 allow_undefined_flag_F77 \
15456 no_undefined_flag_F77 \
15457 export_symbols_cmds_F77 \
15458 hardcode_libdir_flag_spec_F77 \
15459 hardcode_libdir_flag_spec_ld_F77 \
15460 hardcode_libdir_separator_F77 \
15461 hardcode_automatic_F77 \
15463 module_expsym_cmds_F77 \
15464 lt_cv_prog_compiler_c_o_F77 \
15465 exclude_expsyms_F77 \
15466 include_expsyms_F77; do
15469 old_archive_cmds_F77 | \
15470 old_archive_from_new_cmds_F77 | \
15471 archive_cmds_F77 | \
15472 archive_expsym_cmds_F77 | \
15473 module_cmds_F77 | \
15474 module_expsym_cmds_F77 | \
15475 old_archive_from_expsyms_cmds_F77 | \
15476 export_symbols_cmds_F77 | \
15477 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15478 postinstall_cmds | postuninstall_cmds | \
15479 old_postinstall_cmds | old_postuninstall_cmds | \
15480 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15481 # Double-quote double-evaled strings.
15482 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15485 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15491 *'\$0 --fallback-echo"')
15492 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15498 cat <<__EOF__ >> "$cfgfile"
15499 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15501 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15503 # Shell to use when invoking shell scripts.
15506 # Whether or not to build shared libraries.
15507 build_libtool_libs=$enable_shared
15509 # Whether or not to build static libraries.
15510 build_old_libs=$enable_static
15512 # Whether or not to add -lc for building shared libraries.
15513 build_libtool_need_lc=$archive_cmds_need_lc_F77
15515 # Whether or not to disallow shared libs when runtime libs are static
15516 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15518 # Whether or not to optimize for fast installation.
15519 fast_install=$enable_fast_install
15522 host_alias=$host_alias
15526 # The build system.
15527 build_alias=$build_alias
15531 # An echo program that does not interpret backslashes.
15536 AR_FLAGS=$lt_AR_FLAGS
15541 # A language-specific compiler.
15542 CC=$lt_compiler_F77
15544 # Is the compiler the GNU C compiler?
15550 # The linker used to build libraries.
15553 # Whether we need hard or soft links.
15556 # A BSD-compatible nm program.
15559 # A symbol stripping program
15562 # Used to examine libraries when file_magic_cmd begins "file"
15563 MAGIC_CMD=$MAGIC_CMD
15565 # Used on cygwin: DLL creation program.
15568 # Used on cygwin: object dumper.
15571 # Used on cygwin: assembler.
15574 # The name of the directory that contains temporary libtool files.
15577 # How to create reloadable object files.
15578 reload_flag=$lt_reload_flag
15579 reload_cmds=$lt_reload_cmds
15581 # How to pass a linker flag through the compiler.
15582 wl=$lt_lt_prog_compiler_wl_F77
15584 # Object file suffix (normally "o").
15585 objext="$ac_objext"
15587 # Old archive suffix (normally "a").
15590 # Shared library suffix (normally ".so").
15591 shrext_cmds='$shrext_cmds'
15593 # Executable file suffix (normally "").
15596 # Additional compiler flags for building library objects.
15597 pic_flag=$lt_lt_prog_compiler_pic_F77
15600 # What is the maximum length of a command?
15601 max_cmd_len=$lt_cv_sys_max_cmd_len
15603 # Does compiler simultaneously support -c and -o options?
15604 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15606 # Must we lock files when doing compilation?
15607 need_locks=$lt_need_locks
15609 # Do we need the lib prefix for modules?
15610 need_lib_prefix=$need_lib_prefix
15612 # Do we need a version for libraries?
15613 need_version=$need_version
15615 # Whether dlopen is supported.
15616 dlopen_support=$enable_dlopen
15618 # Whether dlopen of programs is supported.
15619 dlopen_self=$enable_dlopen_self
15621 # Whether dlopen of statically linked programs is supported.
15622 dlopen_self_static=$enable_dlopen_self_static
15624 # Compiler flag to prevent dynamic linking.
15625 link_static_flag=$lt_lt_prog_compiler_static_F77
15627 # Compiler flag to turn off builtin functions.
15628 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15630 # Compiler flag to allow reflexive dlopens.
15631 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15633 # Compiler flag to generate shared objects directly from archives.
15634 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15636 # Compiler flag to generate thread-safe objects.
15637 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15639 # Library versioning type.
15640 version_type=$version_type
15642 # Format of library name prefix.
15643 libname_spec=$lt_libname_spec
15645 # List of archive names. First name is the real one, the rest are links.
15646 # The last name is the one that the linker finds with -lNAME.
15647 library_names_spec=$lt_library_names_spec
15649 # The coded name of the library, if different from the real name.
15650 soname_spec=$lt_soname_spec
15652 # Commands used to build and install an old-style archive.
15654 old_archive_cmds=$lt_old_archive_cmds_F77
15655 old_postinstall_cmds=$lt_old_postinstall_cmds
15656 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15658 # Create an old-style archive from a shared archive.
15659 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15661 # Create a temporary old-style archive to link instead of a shared archive.
15662 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15664 # Commands used to build and install a shared archive.
15665 archive_cmds=$lt_archive_cmds_F77
15666 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15667 postinstall_cmds=$lt_postinstall_cmds
15668 postuninstall_cmds=$lt_postuninstall_cmds
15670 # Commands used to build a loadable module (assumed same as above if empty)
15671 module_cmds=$lt_module_cmds_F77
15672 module_expsym_cmds=$lt_module_expsym_cmds_F77
15674 # Commands to strip libraries.
15675 old_striplib=$lt_old_striplib
15676 striplib=$lt_striplib
15678 # Dependencies to place before the objects being linked to create a
15680 predep_objects=$lt_predep_objects_F77
15682 # Dependencies to place after the objects being linked to create a
15684 postdep_objects=$lt_postdep_objects_F77
15686 # Dependencies to place before the objects being linked to create a
15688 predeps=$lt_predeps_F77
15690 # Dependencies to place after the objects being linked to create a
15692 postdeps=$lt_postdeps_F77
15694 # The library search path used internally by the compiler when linking
15695 # a shared library.
15696 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15698 # Method to check whether dependent libraries are shared objects.
15699 deplibs_check_method=$lt_deplibs_check_method
15701 # Command to use when deplibs_check_method == file_magic.
15702 file_magic_cmd=$lt_file_magic_cmd
15704 # Flag that allows shared libraries with undefined symbols to be built.
15705 allow_undefined_flag=$lt_allow_undefined_flag_F77
15707 # Flag that forces no undefined symbols.
15708 no_undefined_flag=$lt_no_undefined_flag_F77
15710 # Commands used to finish a libtool library installation in a directory.
15711 finish_cmds=$lt_finish_cmds
15713 # Same as above, but a single script fragment to be evaled but not shown.
15714 finish_eval=$lt_finish_eval
15716 # Take the output of nm and produce a listing of raw symbols and C names.
15717 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15719 # Transform the output of nm in a proper C declaration
15720 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15722 # Transform the output of nm in a C name address pair
15723 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15725 # This is the shared library runtime path variable.
15726 runpath_var=$runpath_var
15728 # This is the shared library path variable.
15729 shlibpath_var=$shlibpath_var
15731 # Is shlibpath searched before the hard-coded library search path?
15732 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15734 # How to hardcode a shared library path into an executable.
15735 hardcode_action=$hardcode_action_F77
15737 # Whether we should hardcode library paths into libraries.
15738 hardcode_into_libs=$hardcode_into_libs
15740 # Flag to hardcode \$libdir into a binary during linking.
15741 # This must work even if \$libdir does not exist.
15742 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15744 # If ld is used when linking, flag to hardcode \$libdir into
15745 # a binary during linking. This must work even if \$libdir does
15747 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15749 # Whether we need a single -rpath flag with a separated argument.
15750 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15752 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15753 # resulting binary.
15754 hardcode_direct=$hardcode_direct_F77
15756 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15757 # resulting binary.
15758 hardcode_minus_L=$hardcode_minus_L_F77
15760 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15761 # the resulting binary.
15762 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15764 # Set to yes if building a shared library automatically hardcodes DIR into the library
15765 # and all subsequent libraries and executables linked against it.
15766 hardcode_automatic=$hardcode_automatic_F77
15768 # Variables whose values should be saved in libtool wrapper scripts and
15769 # restored at relink time.
15770 variables_saved_for_relink="$variables_saved_for_relink"
15772 # Whether libtool must link a program against all its dependency libraries.
15773 link_all_deplibs=$link_all_deplibs_F77
15775 # Compile-time system search path for libraries
15776 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15778 # Run-time system search path for libraries
15779 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15781 # Fix the shell variable \$srcfile for the compiler.
15782 fix_srcfile_path="$fix_srcfile_path_F77"
15784 # Set to yes if exported symbols are required.
15785 always_export_symbols=$always_export_symbols_F77
15787 # The commands to list exported symbols.
15788 export_symbols_cmds=$lt_export_symbols_cmds_F77
15790 # The commands to extract the exported symbol list from a shared archive.
15791 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15793 # Symbols that should not be listed in the preloaded symbols.
15794 exclude_expsyms=$lt_exclude_expsyms_F77
15796 # Symbols that must always be exported.
15797 include_expsyms=$lt_include_expsyms_F77
15799 # ### END LIBTOOL TAG CONFIG: $tagname
15805 # If there is no Makefile yet, we rely on a make rule to execute
15806 # `config.status --recheck' to rerun these tests and create the
15807 # libtool script then.
15808 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15809 if test -f "$ltmain_in"; then
15810 test -f Makefile && make "$ltmain"
15816 ac_cpp='$CPP $CPPFLAGS'
15817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15829 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15833 # Source file extension for Java test sources.
15836 # Object file extension for compiled Java test sources.
15840 # Code to be used in simple compile tests
15841 lt_simple_compile_test_code="class foo {}\n"
15843 # Code to be used in simple link tests
15844 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15846 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15848 # If no C compiler was specified, use CC.
15851 # Allow CC to be a program name with arguments.
15855 # save warnings/boilerplate of simple test code
15856 ac_outfile=conftest.$ac_objext
15857 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15858 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15859 _lt_compiler_boilerplate=`cat conftest.err`
15862 ac_outfile=conftest.$ac_objext
15863 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15864 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15865 _lt_linker_boilerplate=`cat conftest.err`
15869 # Allow CC to be a program name with arguments.
15874 for cc_temp in $compiler""; do
15876 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15877 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15882 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15885 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15886 archive_cmds_need_lc_GCJ=no
15888 old_archive_cmds_GCJ=$old_archive_cmds
15891 lt_prog_compiler_no_builtin_flag_GCJ=
15893 if test "$GCC" = yes; then
15894 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15897 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15898 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15899 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15900 echo $ECHO_N "(cached) $ECHO_C" >&6
15902 lt_cv_prog_compiler_rtti_exceptions=no
15903 ac_outfile=conftest.$ac_objext
15904 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15905 lt_compiler_flag="-fno-rtti -fno-exceptions"
15906 # Insert the option either (1) after the last *FLAGS variable, or
15907 # (2) before a word containing "conftest.", or (3) at the end.
15908 # Note that $ac_compile itself does not contain backslashes and begins
15909 # with a dollar sign (not a hyphen), so the echo should work correctly.
15910 # The option is referenced via a variable to avoid confusing sed.
15911 lt_compile=`echo "$ac_compile" | $SED \
15912 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15913 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15914 -e 's:$: $lt_compiler_flag:'`
15915 (eval echo "\"\$as_me:15915: $lt_compile\"" >&5)
15916 (eval "$lt_compile" 2>conftest.err)
15918 cat conftest.err >&5
15919 echo "$as_me:15919: \$? = $ac_status" >&5
15920 if (exit $ac_status) && test -s "$ac_outfile"; then
15921 # The compiler can only warn and ignore the option if not recognized
15922 # So say no if there are warnings other than the usual output.
15923 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15924 $SED '/^$/d' conftest.err >conftest.er2
15925 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15926 lt_cv_prog_compiler_rtti_exceptions=yes
15932 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15933 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15935 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15936 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15943 lt_prog_compiler_wl_GCJ=
15944 lt_prog_compiler_pic_GCJ=
15945 lt_prog_compiler_static_GCJ=
15947 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15948 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15950 if test "$GCC" = yes; then
15951 lt_prog_compiler_wl_GCJ='-Wl,'
15952 lt_prog_compiler_static_GCJ='-static'
15956 # All AIX code is PIC.
15957 if test "$host_cpu" = ia64; then
15958 # AIX 5 now supports IA64 processor
15959 lt_prog_compiler_static_GCJ='-Bstatic'
15964 # FIXME: we need at least 68020 code to build shared libraries, but
15965 # adding the `-m68020' flag to GCC prevents building anything better,
15967 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15970 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15971 # PIC is the default for these OSes.
15974 mingw* | pw32* | os2*)
15975 # This hack is so that the source file can tell whether it is being
15976 # built for inclusion in a dll (and should export symbols for example).
15977 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15980 darwin* | rhapsody*)
15981 # PIC is the default on this platform
15982 # Common symbols not allowed in MH_DYLIB files
15983 lt_prog_compiler_pic_GCJ='-fno-common'
15987 # Just because we use GCC doesn't mean we suddenly get shared libraries
15988 # on systems that don't support them.
15989 lt_prog_compiler_can_build_shared_GCJ=no
15994 if test -d /usr/nec; then
15995 lt_prog_compiler_pic_GCJ=-Kconform_pic
16000 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16001 # not for PA HP-UX.
16002 case "$host_cpu" in
16007 lt_prog_compiler_pic_GCJ='-fPIC'
16013 lt_prog_compiler_pic_GCJ='-fPIC'
16017 # PORTME Check for flag to pass linker flags through the system compiler.
16020 lt_prog_compiler_wl_GCJ='-Wl,'
16021 if test "$host_cpu" = ia64; then
16022 # AIX 5 now supports IA64 processor
16023 lt_prog_compiler_static_GCJ='-Bstatic'
16025 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16029 # PIC is the default on this platform
16030 # Common symbols not allowed in MH_DYLIB files
16031 case $cc_basename in
16033 lt_prog_compiler_pic_GCJ='-qnocommon'
16034 lt_prog_compiler_wl_GCJ='-Wl,'
16039 mingw* | pw32* | os2*)
16040 # This hack is so that the source file can tell whether it is being
16041 # built for inclusion in a dll (and should export symbols for example).
16042 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16045 hpux9* | hpux10* | hpux11*)
16046 lt_prog_compiler_wl_GCJ='-Wl,'
16047 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16048 # not for PA HP-UX.
16049 case "$host_cpu" in
16054 lt_prog_compiler_pic_GCJ='+Z'
16057 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16058 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16061 irix5* | irix6* | nonstopux*)
16062 lt_prog_compiler_wl_GCJ='-Wl,'
16063 # PIC (with -KPIC) is the default.
16064 lt_prog_compiler_static_GCJ='-non_shared'
16068 lt_prog_compiler_pic_GCJ='-KPIC'
16069 lt_prog_compiler_static_GCJ='-Bstatic'
16073 case $cc_basename in
16075 lt_prog_compiler_wl_GCJ='-Wl,'
16076 lt_prog_compiler_pic_GCJ='-KPIC'
16077 lt_prog_compiler_static_GCJ='-static'
16079 pgcc* | pgf77* | pgf90*)
16080 # Portland Group compilers (*not* the Pentium gcc compiler,
16081 # which looks to be a dead project)
16082 lt_prog_compiler_wl_GCJ='-Wl,'
16083 lt_prog_compiler_pic_GCJ='-fpic'
16084 lt_prog_compiler_static_GCJ='-static'
16087 lt_prog_compiler_wl_GCJ='-Wl,'
16088 # All Alpha code is PIC.
16089 lt_prog_compiler_static_GCJ='-non_shared'
16094 osf3* | osf4* | osf5*)
16095 lt_prog_compiler_wl_GCJ='-Wl,'
16096 # All OSF/1 code is PIC.
16097 lt_prog_compiler_static_GCJ='-non_shared'
16101 lt_prog_compiler_pic_GCJ='-Kpic'
16102 lt_prog_compiler_static_GCJ='-dn'
16106 lt_prog_compiler_pic_GCJ='-KPIC'
16107 lt_prog_compiler_static_GCJ='-Bstatic'
16108 case $cc_basename in
16109 f77* | f90* | f95*)
16110 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16112 lt_prog_compiler_wl_GCJ='-Wl,';;
16117 lt_prog_compiler_wl_GCJ='-Qoption ld '
16118 lt_prog_compiler_pic_GCJ='-PIC'
16119 lt_prog_compiler_static_GCJ='-Bstatic'
16122 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16123 lt_prog_compiler_wl_GCJ='-Wl,'
16124 lt_prog_compiler_pic_GCJ='-KPIC'
16125 lt_prog_compiler_static_GCJ='-Bstatic'
16129 if test -d /usr/nec ;then
16130 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16131 lt_prog_compiler_static_GCJ='-Bstatic'
16136 lt_prog_compiler_wl_GCJ='-Wl,'
16137 lt_prog_compiler_can_build_shared_GCJ=no
16141 lt_prog_compiler_pic_GCJ='-pic'
16142 lt_prog_compiler_static_GCJ='-Bstatic'
16146 lt_prog_compiler_can_build_shared_GCJ=no
16151 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16152 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16155 # Check to make sure the PIC flag actually works.
16157 if test -n "$lt_prog_compiler_pic_GCJ"; then
16159 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16160 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16161 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16162 echo $ECHO_N "(cached) $ECHO_C" >&6
16164 lt_prog_compiler_pic_works_GCJ=no
16165 ac_outfile=conftest.$ac_objext
16166 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16167 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16168 # Insert the option either (1) after the last *FLAGS variable, or
16169 # (2) before a word containing "conftest.", or (3) at the end.
16170 # Note that $ac_compile itself does not contain backslashes and begins
16171 # with a dollar sign (not a hyphen), so the echo should work correctly.
16172 # The option is referenced via a variable to avoid confusing sed.
16173 lt_compile=`echo "$ac_compile" | $SED \
16174 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16175 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16176 -e 's:$: $lt_compiler_flag:'`
16177 (eval echo "\"\$as_me:16177: $lt_compile\"" >&5)
16178 (eval "$lt_compile" 2>conftest.err)
16180 cat conftest.err >&5
16181 echo "$as_me:16181: \$? = $ac_status" >&5
16182 if (exit $ac_status) && test -s "$ac_outfile"; then
16183 # The compiler can only warn and ignore the option if not recognized
16184 # So say no if there are warnings other than the usual output.
16185 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16186 $SED '/^$/d' conftest.err >conftest.er2
16187 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16188 lt_prog_compiler_pic_works_GCJ=yes
16194 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16195 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16197 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16198 case $lt_prog_compiler_pic_GCJ in
16200 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16203 lt_prog_compiler_pic_GCJ=
16204 lt_prog_compiler_can_build_shared_GCJ=no
16209 # For platforms which do not support PIC, -DPIC is meaningless:
16211 lt_prog_compiler_pic_GCJ=
16214 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16218 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16219 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16220 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16221 echo $ECHO_N "(cached) $ECHO_C" >&6
16223 lt_cv_prog_compiler_c_o_GCJ=no
16224 $rm -r conftest 2>/dev/null
16228 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16230 lt_compiler_flag="-o out/conftest2.$ac_objext"
16231 # Insert the option either (1) after the last *FLAGS variable, or
16232 # (2) before a word containing "conftest.", or (3) at the end.
16233 # Note that $ac_compile itself does not contain backslashes and begins
16234 # with a dollar sign (not a hyphen), so the echo should work correctly.
16235 lt_compile=`echo "$ac_compile" | $SED \
16236 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16237 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16238 -e 's:$: $lt_compiler_flag:'`
16239 (eval echo "\"\$as_me:16239: $lt_compile\"" >&5)
16240 (eval "$lt_compile" 2>out/conftest.err)
16242 cat out/conftest.err >&5
16243 echo "$as_me:16243: \$? = $ac_status" >&5
16244 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16246 # The compiler can only warn and ignore the option if not recognized
16247 # So say no if there are warnings
16248 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16249 $SED '/^$/d' out/conftest.err >out/conftest.er2
16250 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16251 lt_cv_prog_compiler_c_o_GCJ=yes
16256 # SGI C++ compiler will create directory out/ii_files/ for
16257 # template instantiation
16258 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16259 $rm out/* && rmdir out
16265 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16266 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16269 hard_links="nottested"
16270 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16271 # do not overwrite the value of need_locks provided by the user
16272 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16273 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16276 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16278 ln conftest.a conftest.b 2>&5 || hard_links=no
16279 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16280 echo "$as_me:$LINENO: result: $hard_links" >&5
16281 echo "${ECHO_T}$hard_links" >&6
16282 if test "$hard_links" = no; then
16283 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16284 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16291 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16292 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16295 allow_undefined_flag_GCJ=
16296 enable_shared_with_static_runtimes_GCJ=no
16298 archive_expsym_cmds_GCJ=
16299 old_archive_From_new_cmds_GCJ=
16300 old_archive_from_expsyms_cmds_GCJ=
16301 export_dynamic_flag_spec_GCJ=
16302 whole_archive_flag_spec_GCJ=
16303 thread_safe_flag_spec_GCJ=
16304 hardcode_libdir_flag_spec_GCJ=
16305 hardcode_libdir_flag_spec_ld_GCJ=
16306 hardcode_libdir_separator_GCJ=
16307 hardcode_direct_GCJ=no
16308 hardcode_minus_L_GCJ=no
16309 hardcode_shlibpath_var_GCJ=unsupported
16310 link_all_deplibs_GCJ=unknown
16311 hardcode_automatic_GCJ=no
16313 module_expsym_cmds_GCJ=
16314 always_export_symbols_GCJ=no
16315 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16316 # include_expsyms should be a list of space-separated symbols to be *always*
16317 # included in the symbol list
16318 include_expsyms_GCJ=
16319 # exclude_expsyms can be an extended regexp of symbols to exclude
16320 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16321 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16322 # as well as any symbol that contains `d'.
16323 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16324 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16325 # platforms (ab)use it in PIC code, but their linkers get confused if
16326 # the symbol is explicitly referenced. Since portable code cannot
16327 # rely on this symbol name, it's probably fine to never include it in
16328 # preloaded symbol tables.
16329 extract_expsyms_cmds=
16330 # Just being paranoid about ensuring that cc_basename is set.
16331 for cc_temp in $compiler""; do
16333 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16334 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16339 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16342 cygwin* | mingw* | pw32*)
16343 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16344 # When not using gcc, we currently assume that we are using
16345 # Microsoft Visual C++.
16346 if test "$GCC" != yes; then
16356 if test "$with_gnu_ld" = yes; then
16357 # If archive_cmds runs LD, not CC, wlarc should be empty
16360 # Set some defaults for GNU ld with shared library support. These
16361 # are reset later if shared libraries are not supported. Putting them
16362 # here allows them to be overridden if necessary.
16363 runpath_var=LD_RUN_PATH
16364 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16365 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16366 # ancient GNU ld didn't support --whole-archive et. al.
16367 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16368 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16370 whole_archive_flag_spec_GCJ=
16372 supports_anon_versioning=no
16373 case `$LD -v 2>/dev/null` in
16374 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16375 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16376 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16377 *\ 2.11.*) ;; # other 2.11 versions
16378 *) supports_anon_versioning=yes ;;
16381 # See if GNU ld supports shared libraries.
16383 aix3* | aix4* | aix5*)
16384 # On AIX/PPC, the GNU linker is very broken
16385 if test "$host_cpu" != ia64; then
16389 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16390 *** to be unable to reliably create shared libraries on AIX.
16391 *** Therefore, libtool is disabling shared libraries support. If you
16392 *** really care for shared libraries, you may want to modify your PATH
16393 *** so that a non-GNU linker is found, and then restart.
16400 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)'
16401 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16402 hardcode_minus_L_GCJ=yes
16404 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16405 # that the semantics of dynamic libraries on AmigaOS, at least up
16406 # to version 4, is to share data among multiple programs linked
16407 # with the same dynamic library. Since this doesn't match the
16408 # behavior of shared libraries on other platforms, we can't use
16414 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16415 allow_undefined_flag_GCJ=unsupported
16416 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16417 # support --undefined. This deserves some investigation. FIXME
16418 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16424 cygwin* | mingw* | pw32*)
16425 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16426 # as there is no search path for DLLs.
16427 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16428 allow_undefined_flag_GCJ=unsupported
16429 always_export_symbols_GCJ=no
16430 enable_shared_with_static_runtimes_GCJ=yes
16431 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16433 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16434 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16435 # If the export-symbols file already is a .def file (1st line
16436 # is EXPORTS), use it as is; otherwise, prepend...
16437 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16438 cp $export_symbols $output_objdir/$soname.def;
16440 echo EXPORTS > $output_objdir/$soname.def;
16441 cat $export_symbols >> $output_objdir/$soname.def;
16443 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16450 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16452 case $cc_basename,$host_cpu in
16453 pgcc*) # Portland Group C compiler
16454 whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16455 tmp_addflag=' $pic_flag'
16457 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
16458 whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16459 tmp_addflag=' $pic_flag -Mnomain' ;;
16460 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16461 tmp_addflag=' -i_dynamic' ;;
16462 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16463 tmp_addflag=' -i_dynamic -nofor_main' ;;
16464 ifc* | ifort*) # Intel Fortran compiler
16465 tmp_addflag=' -nofor_main' ;;
16467 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16469 if test $supports_anon_versioning = yes; then
16470 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16471 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16472 $echo "local: *; };" >> $output_objdir/$libname.ver~
16473 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16481 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16482 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16485 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16486 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16491 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16495 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16496 *** create shared libraries on Solaris systems. Therefore, libtool
16497 *** is disabling shared libraries support. We urge you to upgrade GNU
16498 *** binutils to release 2.9.1 or newer. Another option is to modify
16499 *** your PATH or compiler configuration so that the native linker is
16500 *** used, and then restart.
16503 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16504 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16505 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16512 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16514 hardcode_direct_GCJ=yes
16515 hardcode_shlibpath_var_GCJ=no
16519 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16520 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16521 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16528 if test "$ld_shlibs_GCJ" = no; then
16530 hardcode_libdir_flag_spec_GCJ=
16531 export_dynamic_flag_spec_GCJ=
16532 whole_archive_flag_spec_GCJ=
16535 # PORTME fill in a description of your system's linker (not GNU ld)
16538 allow_undefined_flag_GCJ=unsupported
16539 always_export_symbols_GCJ=yes
16540 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'
16541 # Note: this linker hardcodes the directories in LIBPATH if there
16542 # are no directories specified by -L.
16543 hardcode_minus_L_GCJ=yes
16544 if test "$GCC" = yes && test -z "$link_static_flag"; then
16545 # Neither direct hardcoding nor static linking is supported with a
16547 hardcode_direct_GCJ=unsupported
16552 if test "$host_cpu" = ia64; then
16553 # On IA64, the linker does run time linking by default, so we don't
16554 # have to do anything special.
16555 aix_use_runtimelinking=no
16556 exp_sym_flag='-Bexport'
16559 # If we're using GNU nm, then we don't want the "-C" option.
16560 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16561 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16562 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'
16564 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'
16566 aix_use_runtimelinking=no
16568 # Test if we are trying to use run time linking or normal
16569 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16570 # need to do runtime linking.
16571 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16572 for ld_flag in $LDFLAGS; do
16573 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16574 aix_use_runtimelinking=yes
16580 exp_sym_flag='-bexport'
16581 no_entry_flag='-bnoentry'
16584 # When large executables or shared objects are built, AIX ld can
16585 # have problems creating the table of contents. If linking a library
16586 # or program results in "error TOC overflow" add -mminimal-toc to
16587 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16588 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16590 archive_cmds_GCJ=''
16591 hardcode_direct_GCJ=yes
16592 hardcode_libdir_separator_GCJ=':'
16593 link_all_deplibs_GCJ=yes
16595 if test "$GCC" = yes; then
16596 case $host_os in aix4.[012]|aix4.[012].*)
16597 # We only want to do this on AIX 4.2 and lower, the check
16598 # below for broken collect2 doesn't work under 4.3+
16599 collect2name=`${CC} -print-prog-name=collect2`
16600 if test -f "$collect2name" && \
16601 strings "$collect2name" | grep resolve_lib_name >/dev/null
16603 # We have reworked collect2
16604 hardcode_direct_GCJ=yes
16606 # We have old collect2
16607 hardcode_direct_GCJ=unsupported
16608 # It fails to find uninstalled libraries when the uninstalled
16609 # path is not listed in the libpath. Setting hardcode_minus_L
16610 # to unsupported forces relinking
16611 hardcode_minus_L_GCJ=yes
16612 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16613 hardcode_libdir_separator_GCJ=
16616 shared_flag='-shared'
16617 if test "$aix_use_runtimelinking" = yes; then
16618 shared_flag="$shared_flag "'${wl}-G'
16622 if test "$host_cpu" = ia64; then
16623 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16624 # chokes on -Wl,-G. The following line is correct:
16627 if test "$aix_use_runtimelinking" = yes; then
16628 shared_flag='${wl}-G'
16630 shared_flag='${wl}-bM:SRE'
16635 # It seems that -bexpall does not export symbols beginning with
16636 # underscore (_), so it is better to generate a list of symbols to export.
16637 always_export_symbols_GCJ=yes
16638 if test "$aix_use_runtimelinking" = yes; then
16639 # Warning - without using the other runtime loading flags (-brtl),
16640 # -berok will link without error, but may produce a broken library.
16641 allow_undefined_flag_GCJ='-berok'
16642 # Determine the default libpath from the value encoded in an empty executable.
16643 cat >conftest.$ac_ext <<_ACEOF
16646 cat confdefs.h >>conftest.$ac_ext
16647 cat >>conftest.$ac_ext <<_ACEOF
16648 /* end confdefs.h. */
16658 rm -f conftest.$ac_objext conftest$ac_exeext
16659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16660 (eval $ac_link) 2>conftest.er1
16662 grep -v '^ *+' conftest.er1 >conftest.err
16664 cat conftest.err >&5
16665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666 (exit $ac_status); } &&
16667 { ac_try='test -z "$ac_c_werror_flag"
16668 || test ! -s conftest.err'
16669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16670 (eval $ac_try) 2>&5
16672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); }; } &&
16674 { ac_try='test -s conftest$ac_exeext'
16675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16676 (eval $ac_try) 2>&5
16678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679 (exit $ac_status); }; }; then
16681 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16683 # Check for a 64-bit object if we didn't find anything.
16684 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; }
16687 echo "$as_me: failed program was:" >&5
16688 sed 's/^/| /' conftest.$ac_ext >&5
16691 rm -f conftest.err conftest.$ac_objext \
16692 conftest$ac_exeext conftest.$ac_ext
16693 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16695 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16696 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"
16698 if test "$host_cpu" = ia64; then
16699 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16700 allow_undefined_flag_GCJ="-z nodefs"
16701 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"
16703 # Determine the default libpath from the value encoded in an empty executable.
16704 cat >conftest.$ac_ext <<_ACEOF
16707 cat confdefs.h >>conftest.$ac_ext
16708 cat >>conftest.$ac_ext <<_ACEOF
16709 /* end confdefs.h. */
16719 rm -f conftest.$ac_objext conftest$ac_exeext
16720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16721 (eval $ac_link) 2>conftest.er1
16723 grep -v '^ *+' conftest.er1 >conftest.err
16725 cat conftest.err >&5
16726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727 (exit $ac_status); } &&
16728 { ac_try='test -z "$ac_c_werror_flag"
16729 || test ! -s conftest.err'
16730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16731 (eval $ac_try) 2>&5
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); }; } &&
16735 { ac_try='test -s conftest$ac_exeext'
16736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16737 (eval $ac_try) 2>&5
16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); }; }; then
16742 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16744 # Check for a 64-bit object if we didn't find anything.
16745 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; }
16748 echo "$as_me: failed program was:" >&5
16749 sed 's/^/| /' conftest.$ac_ext >&5
16752 rm -f conftest.err conftest.$ac_objext \
16753 conftest$ac_exeext conftest.$ac_ext
16754 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16756 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16757 # Warning - without using the other run time loading flags,
16758 # -berok will link without error, but may produce a broken library.
16759 no_undefined_flag_GCJ=' ${wl}-bernotok'
16760 allow_undefined_flag_GCJ=' ${wl}-berok'
16761 # -bexpall does not export symbols beginning with underscore (_)
16762 always_export_symbols_GCJ=yes
16763 # Exported symbols can be pulled into shared objects from archives
16764 whole_archive_flag_spec_GCJ=' '
16765 archive_cmds_need_lc_GCJ=yes
16766 # This is similar to how AIX traditionally builds it's shared libraries.
16767 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'
16773 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)'
16774 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16775 hardcode_minus_L_GCJ=yes
16776 # see comment about different semantics on the GNU ld section
16781 export_dynamic_flag_spec_GCJ=-rdynamic
16784 cygwin* | mingw* | pw32*)
16785 # When not using gcc, we currently assume that we are using
16786 # Microsoft Visual C++.
16787 # hardcode_libdir_flag_spec is actually meaningless, as there is
16788 # no search path for DLLs.
16789 hardcode_libdir_flag_spec_GCJ=' '
16790 allow_undefined_flag_GCJ=unsupported
16791 # Tell ltmain to make .lib files, not .a files.
16793 # Tell ltmain to make .dll files, not .so files.
16795 # FIXME: Setting linknames here is a bad hack.
16796 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16797 # The linker will automatically build a .lib file if we build a DLL.
16798 old_archive_From_new_cmds_GCJ='true'
16799 # FIXME: Should let the user specify the lib program.
16800 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16801 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16802 enable_shared_with_static_runtimes_GCJ=yes
16805 darwin* | rhapsody*)
16807 rhapsody* | darwin1.[012])
16808 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16811 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16812 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16814 case ${MACOSX_DEPLOYMENT_TARGET} in
16816 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16819 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16825 archive_cmds_need_lc_GCJ=no
16826 hardcode_direct_GCJ=no
16827 hardcode_automatic_GCJ=yes
16828 hardcode_shlibpath_var_GCJ=unsupported
16829 whole_archive_flag_spec_GCJ=''
16830 link_all_deplibs_GCJ=yes
16831 if test "$GCC" = yes ; then
16832 output_verbose_link_cmd='echo'
16833 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16834 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16835 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16836 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}'
16837 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}'
16839 case $cc_basename in
16841 output_verbose_link_cmd='echo'
16842 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16843 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16844 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16845 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}'
16846 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}'
16856 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16857 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16858 hardcode_shlibpath_var_GCJ=no
16865 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16866 # support. Future versions do this automatically, but an explicit c++rt0.o
16867 # does not break anything, and helps significantly (at the cost of a little
16870 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16871 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16872 hardcode_direct_GCJ=yes
16873 hardcode_shlibpath_var_GCJ=no
16876 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16878 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16879 hardcode_direct_GCJ=yes
16880 hardcode_minus_L_GCJ=yes
16881 hardcode_shlibpath_var_GCJ=no
16884 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16885 freebsd* | kfreebsd*-gnu | dragonfly*)
16886 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16887 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16888 hardcode_direct_GCJ=yes
16889 hardcode_shlibpath_var_GCJ=no
16893 if test "$GCC" = yes; then
16894 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'
16896 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'
16898 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16899 hardcode_libdir_separator_GCJ=:
16900 hardcode_direct_GCJ=yes
16902 # hardcode_minus_L: Not really in the search PATH,
16903 # but as the default location of the library.
16904 hardcode_minus_L_GCJ=yes
16905 export_dynamic_flag_spec_GCJ='${wl}-E'
16909 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16910 case "$host_cpu" in
16912 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16915 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16919 case "$host_cpu" in
16921 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16924 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16928 if test "$with_gnu_ld" = no; then
16929 case "$host_cpu" in
16931 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16932 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16933 hardcode_libdir_separator_GCJ=:
16934 hardcode_direct_GCJ=no
16935 hardcode_shlibpath_var_GCJ=no
16938 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16939 hardcode_direct_GCJ=no
16940 hardcode_shlibpath_var_GCJ=no
16942 # hardcode_minus_L: Not really in the search PATH,
16943 # but as the default location of the library.
16944 hardcode_minus_L_GCJ=yes
16947 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16948 hardcode_libdir_separator_GCJ=:
16949 hardcode_direct_GCJ=yes
16950 export_dynamic_flag_spec_GCJ='${wl}-E'
16952 # hardcode_minus_L: Not really in the search PATH,
16953 # but as the default location of the library.
16954 hardcode_minus_L_GCJ=yes
16960 irix5* | irix6* | nonstopux*)
16961 if test "$GCC" = yes; then
16962 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'
16964 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'
16965 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16967 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16968 hardcode_libdir_separator_GCJ=:
16969 link_all_deplibs_GCJ=yes
16973 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16974 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16976 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16978 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16979 hardcode_direct_GCJ=yes
16980 hardcode_shlibpath_var_GCJ=no
16984 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16985 hardcode_direct_GCJ=yes
16986 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16987 hardcode_libdir_separator_GCJ=:
16988 hardcode_shlibpath_var_GCJ=no
16992 hardcode_direct_GCJ=yes
16993 hardcode_shlibpath_var_GCJ=no
16994 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16995 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16996 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16997 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16998 export_dynamic_flag_spec_GCJ='${wl}-E'
17001 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17002 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17003 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17006 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17007 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17014 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17015 hardcode_minus_L_GCJ=yes
17016 allow_undefined_flag_GCJ=unsupported
17017 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'
17018 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17022 if test "$GCC" = yes; then
17023 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17024 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'
17026 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17027 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'
17029 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17030 hardcode_libdir_separator_GCJ=:
17033 osf4* | osf5*) # as osf3* with the addition of -msym flag
17034 if test "$GCC" = yes; then
17035 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17036 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'
17037 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17039 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17040 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'
17041 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~
17042 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17044 # Both c and cxx compiler support -rpath directly
17045 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17047 hardcode_libdir_separator_GCJ=:
17051 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17052 hardcode_shlibpath_var_GCJ=no
17053 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17054 runpath_var=LD_RUN_PATH
17055 hardcode_runpath_var=yes
17059 no_undefined_flag_GCJ=' -z text'
17060 if test "$GCC" = yes; then
17062 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17063 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17064 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17067 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17068 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17069 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17071 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17072 hardcode_shlibpath_var_GCJ=no
17074 solaris2.[0-5] | solaris2.[0-5].*) ;;
17076 # The compiler driver will combine linker options so we
17077 # cannot just pass the convience library names through
17078 # without $wl, iff we do not link with $LD.
17079 # Luckily, gcc supports the same syntax we need for Sun Studio.
17080 # Supported since Solaris 2.6 (maybe 2.5.1?)
17083 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17085 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17088 link_all_deplibs_GCJ=yes
17092 if test "x$host_vendor" = xsequent; then
17093 # Use $CC to link under sequent, because it throws in some extra .o
17094 # files that make .init and .fini sections work.
17095 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17097 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17099 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17100 hardcode_direct_GCJ=yes
17101 hardcode_minus_L_GCJ=yes
17102 hardcode_shlibpath_var_GCJ=no
17106 case $host_vendor in
17108 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17109 hardcode_direct_GCJ=yes # is this really true???
17112 ## LD is ld it makes a PLAMLIB
17113 ## CC just makes a GrossModule.
17114 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17115 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17116 hardcode_direct_GCJ=no
17119 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17120 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17123 runpath_var='LD_RUN_PATH'
17124 hardcode_shlibpath_var_GCJ=no
17128 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17129 hardcode_shlibpath_var_GCJ=no
17130 export_dynamic_flag_spec_GCJ='-Bexport'
17134 if test -d /usr/nec; then
17135 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17136 hardcode_shlibpath_var_GCJ=no
17137 runpath_var=LD_RUN_PATH
17138 hardcode_runpath_var=yes
17144 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17145 hardcode_direct_GCJ=yes
17146 hardcode_minus_L_GCJ=no
17147 hardcode_shlibpath_var_GCJ=no
17148 hardcode_runpath_var=yes
17149 runpath_var=LD_RUN_PATH
17152 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17153 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17154 if test "$GCC" = yes; then
17155 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17157 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17159 runpath_var='LD_RUN_PATH'
17160 hardcode_shlibpath_var_GCJ=no
17164 no_undefined_flag_GCJ=' -z text'
17165 # $CC -shared without GNU ld will not create a library from C++
17166 # object files and a static libstdc++, better avoid it by now
17167 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17168 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17169 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17170 hardcode_libdir_flag_spec_GCJ=
17171 hardcode_shlibpath_var_GCJ=no
17172 runpath_var='LD_RUN_PATH'
17176 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17177 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17178 hardcode_shlibpath_var_GCJ=no
17187 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17188 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17189 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17191 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17192 if test "$GCC" = yes; then
17193 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17197 # Do we need to explicitly link libc?
17199 case "x$archive_cmds_need_lc_GCJ" in
17201 # Assume -lc should be added
17202 archive_cmds_need_lc_GCJ=yes
17204 if test "$enable_shared" = yes && test "$GCC" = yes; then
17205 case $archive_cmds_GCJ in
17207 # FIXME: we may have to deal with multi-command sequences.
17210 # Test whether the compiler implicitly links with -lc since on some
17211 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17212 # to ld, don't add -lc before -lgcc.
17213 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17214 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17216 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17219 (eval $ac_compile) 2>&5
17221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 (exit $ac_status); } 2>conftest.err; then
17225 libobjs=conftest.$ac_objext
17227 wl=$lt_prog_compiler_wl_GCJ
17233 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17234 allow_undefined_flag_GCJ=
17235 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17236 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239 (exit $ac_status); }
17241 archive_cmds_need_lc_GCJ=no
17243 archive_cmds_need_lc_GCJ=yes
17245 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17247 cat conftest.err 1>&5
17250 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17251 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17258 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17259 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17260 library_names_spec=
17261 libname_spec='lib$name'
17265 postuninstall_cmds=
17269 shlibpath_overrides_runpath=unknown
17271 dynamic_linker="$host_os ld.so"
17272 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17273 if test "$GCC" = yes; then
17274 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17275 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17276 # if the path contains ";" then we assume it to be the separator
17277 # otherwise default to the standard path separator (i.e. ":") - it is
17278 # assumed that no part of a normal pathname contains ";" but that should
17279 # okay in the real world where ";" in dirpaths is itself problematic.
17280 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17282 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17285 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17287 need_lib_prefix=unknown
17288 hardcode_into_libs=no
17290 # when you set need_version to no, make sure it does not cause -set_version
17291 # flags to be left without arguments
17292 need_version=unknown
17297 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17298 shlibpath_var=LIBPATH
17300 # AIX 3 has no versioning support, so we append a major version to the name.
17301 soname_spec='${libname}${release}${shared_ext}$major'
17308 hardcode_into_libs=yes
17309 if test "$host_cpu" = ia64; then
17310 # AIX 5 supports IA64
17311 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17312 shlibpath_var=LD_LIBRARY_PATH
17314 # With GCC up to 2.95.x, collect2 would create an import file
17315 # for dependence libraries. The import file would start with
17316 # the line `#! .'. This would cause the generated library to
17317 # depend on `.', always an invalid library. This was fixed in
17318 # development snapshots of GCC prior to 3.0.
17320 aix4 | aix4.[01] | aix4.[01].*)
17321 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17323 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17326 can_build_shared=no
17330 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17331 # soname into executable. Probably we can add versioning support to
17332 # collect2, so additional links can be useful in future.
17333 if test "$aix_use_runtimelinking" = yes; then
17334 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17335 # instead of lib<name>.a to let people know that these are not
17336 # typical AIX shared libraries.
17337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17339 # We preserve .a as extension for shared libraries through AIX4.2
17340 # and later when we are not doing run time linking.
17341 library_names_spec='${libname}${release}.a $libname.a'
17342 soname_spec='${libname}${release}${shared_ext}$major'
17344 shlibpath_var=LIBPATH
17349 library_names_spec='$libname.ixlibrary $libname.a'
17350 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17351 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'
17355 library_names_spec='${libname}${shared_ext}'
17356 dynamic_linker="$host_os ld.so"
17357 shlibpath_var=LIBRARY_PATH
17363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17364 soname_spec='${libname}${release}${shared_ext}$major'
17365 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17366 shlibpath_var=LD_LIBRARY_PATH
17367 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17368 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17369 # the default ld.so.conf also contains /usr/contrib/lib and
17370 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17371 # libtool to hard-code these into programs
17374 cygwin* | mingw* | pw32*)
17375 version_type=windows
17380 case $GCC,$host_os in
17381 yes,cygwin* | yes,mingw* | yes,pw32*)
17382 library_names_spec='$libname.dll.a'
17383 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17384 postinstall_cmds='base_file=`basename \${file}`~
17385 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17386 dldir=$destdir/`dirname \$dlpath`~
17387 test -d \$dldir || mkdir -p \$dldir~
17388 $install_prog $dir/$dlname \$dldir/$dlname'
17389 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17390 dlpath=$dir/\$dldll~
17392 shlibpath_overrides_runpath=yes
17396 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17397 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17398 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17401 # MinGW DLLs use traditional 'lib' prefix
17402 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17403 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17404 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17405 # It is most probably a Windows format PATH printed by
17406 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17407 # path with ; separators, and with drive letters. We can handle the
17408 # drive letters (cygwin fileutils understands them), so leave them,
17409 # especially as we might pass files found there to a mingw objdump,
17410 # which wouldn't understand a cygwinified path. Ahh.
17411 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17413 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17417 # pw32 DLLs use 'pw' prefix rather than 'lib'
17418 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17424 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17427 dynamic_linker='Win32 ld.exe'
17428 # FIXME: first we should search . and the directory the executable is in
17432 darwin* | rhapsody*)
17433 dynamic_linker="$host_os dyld"
17434 version_type=darwin
17437 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17438 soname_spec='${libname}${release}${major}$shared_ext'
17439 shlibpath_overrides_runpath=yes
17440 shlibpath_var=DYLD_LIBRARY_PATH
17441 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17442 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17443 if test "$GCC" = yes; then
17444 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"`
17446 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17448 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17456 soname_spec='${libname}${release}${shared_ext}$major'
17457 shlibpath_var=LD_LIBRARY_PATH
17468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17469 soname_spec='${libname}${release}${shared_ext}$major'
17470 shlibpath_var=LD_LIBRARY_PATH
17471 shlibpath_overrides_runpath=no
17472 hardcode_into_libs=yes
17473 dynamic_linker='GNU ld.so'
17476 freebsd* | dragonfly*)
17477 # DragonFly does not have aout. When/if they implement a new
17478 # versioning mechanism, adjust this.
17479 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17480 version_type=freebsd-$objformat
17481 case $version_type in
17483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17488 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17492 shlibpath_var=LD_LIBRARY_PATH
17495 shlibpath_overrides_runpath=yes
17497 freebsd3.[01]* | freebsdelf3.[01]*)
17498 shlibpath_overrides_runpath=yes
17499 hardcode_into_libs=yes
17502 shlibpath_overrides_runpath=no
17503 hardcode_into_libs=yes
17512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17513 soname_spec='${libname}${release}${shared_ext}$major'
17514 shlibpath_var=LD_LIBRARY_PATH
17515 hardcode_into_libs=yes
17518 hpux9* | hpux10* | hpux11*)
17519 # Give a soname corresponding to the major version so that dld.sl refuses to
17520 # link against other versions.
17524 case "$host_cpu" in
17527 hardcode_into_libs=yes
17528 dynamic_linker="$host_os dld.so"
17529 shlibpath_var=LD_LIBRARY_PATH
17530 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17532 soname_spec='${libname}${release}${shared_ext}$major'
17533 if test "X$HPUX_IA64_MODE" = X32; then
17534 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17536 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17538 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17542 hardcode_into_libs=yes
17543 dynamic_linker="$host_os dld.sl"
17544 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17545 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17547 soname_spec='${libname}${release}${shared_ext}$major'
17548 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17549 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17553 dynamic_linker="$host_os dld.sl"
17554 shlibpath_var=SHLIB_PATH
17555 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17557 soname_spec='${libname}${release}${shared_ext}$major'
17560 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17561 postinstall_cmds='chmod 555 $lib'
17564 irix5* | irix6* | nonstopux*)
17566 nonstopux*) version_type=nonstopux ;;
17568 if test "$lt_cv_prog_gnu_ld" = yes; then
17576 soname_spec='${libname}${release}${shared_ext}$major'
17577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17579 irix5* | nonstopux*)
17580 libsuff= shlibsuff=
17583 case $LD in # libtool.m4 will add one of these switches to LD
17584 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17585 libsuff= shlibsuff= libmagic=32-bit;;
17586 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17587 libsuff=32 shlibsuff=N32 libmagic=N32;;
17588 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17589 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17590 *) libsuff= shlibsuff= libmagic=never-match;;
17594 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17595 shlibpath_overrides_runpath=no
17596 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17597 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17598 hardcode_into_libs=yes
17601 # No shared lib support for Linux oldld, aout, or coff.
17602 linux*oldld* | linux*aout* | linux*coff*)
17606 # This must be Linux ELF.
17611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17612 soname_spec='${libname}${release}${shared_ext}$major'
17613 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17614 shlibpath_var=LD_LIBRARY_PATH
17615 shlibpath_overrides_runpath=no
17616 # This implies no fast_install, which is unacceptable.
17617 # Some rework will be needed to allow for fast_install
17618 # before this can be enabled.
17619 hardcode_into_libs=yes
17621 # Append ld.so.conf contents to the search path
17622 if test -f /etc/ld.so.conf; then
17623 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/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17624 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17627 # We used to test for /lib/ld.so.1 and disable shared libraries on
17628 # powerpc, because MkLinux only supported shared libraries with the
17629 # GNU dynamic linker. Since this was broken with cross compilers,
17630 # most powerpc-linux boxes support dynamic linking these days and
17631 # people can always --disable-shared, the test was removed, and we
17632 # assume the GNU/Linux dynamic linker is in use.
17633 dynamic_linker='GNU/Linux ld.so'
17640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17641 soname_spec='${libname}${release}${shared_ext}$major'
17642 shlibpath_var=LD_LIBRARY_PATH
17643 shlibpath_overrides_runpath=no
17644 hardcode_into_libs=yes
17645 dynamic_linker='GNU ld.so'
17652 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17654 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17655 dynamic_linker='NetBSD (a.out) ld.so'
17657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17658 soname_spec='${libname}${release}${shared_ext}$major'
17659 dynamic_linker='NetBSD ld.elf_so'
17661 shlibpath_var=LD_LIBRARY_PATH
17662 shlibpath_overrides_runpath=yes
17663 hardcode_into_libs=yes
17668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17669 shlibpath_var=LD_LIBRARY_PATH
17670 shlibpath_overrides_runpath=yes
17677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17678 soname_spec='${libname}${release}${shared_ext}$major'
17679 shlibpath_var=LD_LIBRARY_PATH
17680 shlibpath_overrides_runpath=yes
17686 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17688 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17689 *) need_version=no ;;
17691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17692 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17693 shlibpath_var=LD_LIBRARY_PATH
17694 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17696 openbsd2.[89] | openbsd2.[89].*)
17697 shlibpath_overrides_runpath=no
17700 shlibpath_overrides_runpath=yes
17704 shlibpath_overrides_runpath=yes
17709 libname_spec='$name'
17712 library_names_spec='$libname${shared_ext} $libname.a'
17713 dynamic_linker='OS/2 ld.exe'
17714 shlibpath_var=LIBPATH
17717 osf3* | osf4* | osf5*)
17721 soname_spec='${libname}${release}${shared_ext}$major'
17722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17723 shlibpath_var=LD_LIBRARY_PATH
17724 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17725 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17730 soname_spec='${libname}${release}${shared_ext}$major'
17731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17732 shlibpath_var=LD_LIBRARY_PATH
17739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17740 soname_spec='${libname}${release}${shared_ext}$major'
17741 shlibpath_var=LD_LIBRARY_PATH
17742 shlibpath_overrides_runpath=yes
17743 hardcode_into_libs=yes
17744 # ldd complains unless libraries are executable
17745 postinstall_cmds='chmod +x $lib'
17750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17751 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17752 shlibpath_var=LD_LIBRARY_PATH
17753 shlibpath_overrides_runpath=yes
17754 if test "$with_gnu_ld" = yes; then
17760 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17763 soname_spec='${libname}${release}${shared_ext}$major'
17764 shlibpath_var=LD_LIBRARY_PATH
17765 case $host_vendor in
17767 shlibpath_overrides_runpath=no
17769 export_dynamic_flag_spec='${wl}-Blargedynsym'
17770 runpath_var=LD_RUN_PATH
17778 shlibpath_overrides_runpath=no
17779 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17785 if test -d /usr/nec ;then
17787 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17788 soname_spec='$libname${shared_ext}.$major'
17789 shlibpath_var=LD_LIBRARY_PATH
17795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17796 soname_spec='${libname}${release}${shared_ext}$major'
17797 shlibpath_var=LD_LIBRARY_PATH
17804 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17805 echo "${ECHO_T}$dynamic_linker" >&6
17806 test "$dynamic_linker" = no && can_build_shared=no
17808 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17809 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17810 hardcode_action_GCJ=
17811 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17812 test -n "$runpath_var_GCJ" || \
17813 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17815 # We can hardcode non-existant directories.
17816 if test "$hardcode_direct_GCJ" != no &&
17817 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17818 # have to relink, otherwise we might link with an installed library
17819 # when we should be linking with a yet-to-be-installed one
17820 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17821 test "$hardcode_minus_L_GCJ" != no; then
17822 # Linking always hardcodes the temporary library directory.
17823 hardcode_action_GCJ=relink
17825 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17826 hardcode_action_GCJ=immediate
17829 # We cannot hardcode anything, or else we can only hardcode existing
17831 hardcode_action_GCJ=unsupported
17833 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17834 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17836 if test "$hardcode_action_GCJ" = relink; then
17837 # Fast installation is not supported
17838 enable_fast_install=no
17839 elif test "$shlibpath_overrides_runpath" = yes ||
17840 test "$enable_shared" = no; then
17841 # Fast installation is not necessary
17842 enable_fast_install=needless
17847 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17848 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17849 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17850 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17851 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17852 echo "$as_me:$LINENO: result: yes" >&5
17853 echo "${ECHO_T}yes" >&6
17855 # FIXME - insert some real tests, host_os isn't really good enough
17858 if test -n "$STRIP" ; then
17859 striplib="$STRIP -x"
17860 echo "$as_me:$LINENO: result: yes" >&5
17861 echo "${ECHO_T}yes" >&6
17863 echo "$as_me:$LINENO: result: no" >&5
17864 echo "${ECHO_T}no" >&6
17868 echo "$as_me:$LINENO: result: no" >&5
17869 echo "${ECHO_T}no" >&6
17874 if test "x$enable_dlopen" != xyes; then
17875 enable_dlopen=unknown
17876 enable_dlopen_self=unknown
17877 enable_dlopen_self_static=unknown
17884 lt_cv_dlopen="load_add_on"
17886 lt_cv_dlopen_self=yes
17890 lt_cv_dlopen="LoadLibrary"
17895 lt_cv_dlopen="dlopen"
17900 # if libdl is installed we need to link against it
17901 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17902 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17903 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17904 echo $ECHO_N "(cached) $ECHO_C" >&6
17906 ac_check_lib_save_LIBS=$LIBS
17908 cat >conftest.$ac_ext <<_ACEOF
17911 cat confdefs.h >>conftest.$ac_ext
17912 cat >>conftest.$ac_ext <<_ACEOF
17913 /* end confdefs.h. */
17915 /* Override any gcc2 internal prototype to avoid an error. */
17919 /* We use char because int might match the return type of a gcc2
17920 builtin and then its argument prototype would still apply. */
17930 rm -f conftest.$ac_objext conftest$ac_exeext
17931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17932 (eval $ac_link) 2>conftest.er1
17934 grep -v '^ *+' conftest.er1 >conftest.err
17936 cat conftest.err >&5
17937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); } &&
17939 { ac_try='test -z "$ac_c_werror_flag"
17940 || test ! -s conftest.err'
17941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17942 (eval $ac_try) 2>&5
17944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945 (exit $ac_status); }; } &&
17946 { ac_try='test -s conftest$ac_exeext'
17947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17948 (eval $ac_try) 2>&5
17950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951 (exit $ac_status); }; }; then
17952 ac_cv_lib_dl_dlopen=yes
17954 echo "$as_me: failed program was:" >&5
17955 sed 's/^/| /' conftest.$ac_ext >&5
17957 ac_cv_lib_dl_dlopen=no
17959 rm -f conftest.err conftest.$ac_objext \
17960 conftest$ac_exeext conftest.$ac_ext
17961 LIBS=$ac_check_lib_save_LIBS
17963 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17964 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17965 if test $ac_cv_lib_dl_dlopen = yes; then
17966 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17969 lt_cv_dlopen="dyld"
17971 lt_cv_dlopen_self=yes
17978 echo "$as_me:$LINENO: checking for shl_load" >&5
17979 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17980 if test "${ac_cv_func_shl_load+set}" = set; then
17981 echo $ECHO_N "(cached) $ECHO_C" >&6
17983 cat >conftest.$ac_ext <<_ACEOF
17986 cat confdefs.h >>conftest.$ac_ext
17987 cat >>conftest.$ac_ext <<_ACEOF
17988 /* end confdefs.h. */
17989 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17991 #define shl_load innocuous_shl_load
17993 /* System header to define __stub macros and hopefully few prototypes,
17994 which can conflict with char shl_load (); below.
17995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17996 <limits.h> exists even on freestanding compilers. */
17999 # include <limits.h>
18001 # include <assert.h>
18006 /* Override any gcc2 internal prototype to avoid an error. */
18011 /* We use char because int might match the return type of a gcc2
18012 builtin and then its argument prototype would still apply. */
18014 /* The GNU C library defines this for functions which it implements
18015 to always fail with ENOSYS. Some functions are actually named
18016 something starting with __ and the normal name is an alias. */
18017 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18020 char (*f) () = shl_load;
18029 return f != shl_load;
18034 rm -f conftest.$ac_objext conftest$ac_exeext
18035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18036 (eval $ac_link) 2>conftest.er1
18038 grep -v '^ *+' conftest.er1 >conftest.err
18040 cat conftest.err >&5
18041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042 (exit $ac_status); } &&
18043 { ac_try='test -z "$ac_c_werror_flag"
18044 || test ! -s conftest.err'
18045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18046 (eval $ac_try) 2>&5
18048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049 (exit $ac_status); }; } &&
18050 { ac_try='test -s conftest$ac_exeext'
18051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18052 (eval $ac_try) 2>&5
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); }; }; then
18056 ac_cv_func_shl_load=yes
18058 echo "$as_me: failed program was:" >&5
18059 sed 's/^/| /' conftest.$ac_ext >&5
18061 ac_cv_func_shl_load=no
18063 rm -f conftest.err conftest.$ac_objext \
18064 conftest$ac_exeext conftest.$ac_ext
18066 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18067 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18068 if test $ac_cv_func_shl_load = yes; then
18069 lt_cv_dlopen="shl_load"
18071 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18072 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18073 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18074 echo $ECHO_N "(cached) $ECHO_C" >&6
18076 ac_check_lib_save_LIBS=$LIBS
18078 cat >conftest.$ac_ext <<_ACEOF
18081 cat confdefs.h >>conftest.$ac_ext
18082 cat >>conftest.$ac_ext <<_ACEOF
18083 /* end confdefs.h. */
18085 /* Override any gcc2 internal prototype to avoid an error. */
18089 /* We use char because int might match the return type of a gcc2
18090 builtin and then its argument prototype would still apply. */
18100 rm -f conftest.$ac_objext conftest$ac_exeext
18101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18102 (eval $ac_link) 2>conftest.er1
18104 grep -v '^ *+' conftest.er1 >conftest.err
18106 cat conftest.err >&5
18107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108 (exit $ac_status); } &&
18109 { ac_try='test -z "$ac_c_werror_flag"
18110 || test ! -s conftest.err'
18111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18112 (eval $ac_try) 2>&5
18114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115 (exit $ac_status); }; } &&
18116 { ac_try='test -s conftest$ac_exeext'
18117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18118 (eval $ac_try) 2>&5
18120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121 (exit $ac_status); }; }; then
18122 ac_cv_lib_dld_shl_load=yes
18124 echo "$as_me: failed program was:" >&5
18125 sed 's/^/| /' conftest.$ac_ext >&5
18127 ac_cv_lib_dld_shl_load=no
18129 rm -f conftest.err conftest.$ac_objext \
18130 conftest$ac_exeext conftest.$ac_ext
18131 LIBS=$ac_check_lib_save_LIBS
18133 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18134 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18135 if test $ac_cv_lib_dld_shl_load = yes; then
18136 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18138 echo "$as_me:$LINENO: checking for dlopen" >&5
18139 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18140 if test "${ac_cv_func_dlopen+set}" = set; then
18141 echo $ECHO_N "(cached) $ECHO_C" >&6
18143 cat >conftest.$ac_ext <<_ACEOF
18146 cat confdefs.h >>conftest.$ac_ext
18147 cat >>conftest.$ac_ext <<_ACEOF
18148 /* end confdefs.h. */
18149 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18151 #define dlopen innocuous_dlopen
18153 /* System header to define __stub macros and hopefully few prototypes,
18154 which can conflict with char dlopen (); below.
18155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18156 <limits.h> exists even on freestanding compilers. */
18159 # include <limits.h>
18161 # include <assert.h>
18166 /* Override any gcc2 internal prototype to avoid an error. */
18171 /* We use char because int might match the return type of a gcc2
18172 builtin and then its argument prototype would still apply. */
18174 /* The GNU C library defines this for functions which it implements
18175 to always fail with ENOSYS. Some functions are actually named
18176 something starting with __ and the normal name is an alias. */
18177 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18180 char (*f) () = dlopen;
18189 return f != dlopen;
18194 rm -f conftest.$ac_objext conftest$ac_exeext
18195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18196 (eval $ac_link) 2>conftest.er1
18198 grep -v '^ *+' conftest.er1 >conftest.err
18200 cat conftest.err >&5
18201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202 (exit $ac_status); } &&
18203 { ac_try='test -z "$ac_c_werror_flag"
18204 || test ! -s conftest.err'
18205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18206 (eval $ac_try) 2>&5
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; } &&
18210 { ac_try='test -s conftest$ac_exeext'
18211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18212 (eval $ac_try) 2>&5
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); }; }; then
18216 ac_cv_func_dlopen=yes
18218 echo "$as_me: failed program was:" >&5
18219 sed 's/^/| /' conftest.$ac_ext >&5
18221 ac_cv_func_dlopen=no
18223 rm -f conftest.err conftest.$ac_objext \
18224 conftest$ac_exeext conftest.$ac_ext
18226 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18227 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18228 if test $ac_cv_func_dlopen = yes; then
18229 lt_cv_dlopen="dlopen"
18231 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18232 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18233 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18234 echo $ECHO_N "(cached) $ECHO_C" >&6
18236 ac_check_lib_save_LIBS=$LIBS
18238 cat >conftest.$ac_ext <<_ACEOF
18241 cat confdefs.h >>conftest.$ac_ext
18242 cat >>conftest.$ac_ext <<_ACEOF
18243 /* end confdefs.h. */
18245 /* Override any gcc2 internal prototype to avoid an error. */
18249 /* We use char because int might match the return type of a gcc2
18250 builtin and then its argument prototype would still apply. */
18260 rm -f conftest.$ac_objext conftest$ac_exeext
18261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18262 (eval $ac_link) 2>conftest.er1
18264 grep -v '^ *+' conftest.er1 >conftest.err
18266 cat conftest.err >&5
18267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268 (exit $ac_status); } &&
18269 { ac_try='test -z "$ac_c_werror_flag"
18270 || test ! -s conftest.err'
18271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18272 (eval $ac_try) 2>&5
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); }; } &&
18276 { ac_try='test -s conftest$ac_exeext'
18277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18278 (eval $ac_try) 2>&5
18280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281 (exit $ac_status); }; }; then
18282 ac_cv_lib_dl_dlopen=yes
18284 echo "$as_me: failed program was:" >&5
18285 sed 's/^/| /' conftest.$ac_ext >&5
18287 ac_cv_lib_dl_dlopen=no
18289 rm -f conftest.err conftest.$ac_objext \
18290 conftest$ac_exeext conftest.$ac_ext
18291 LIBS=$ac_check_lib_save_LIBS
18293 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18294 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18295 if test $ac_cv_lib_dl_dlopen = yes; then
18296 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18298 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18299 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18300 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18301 echo $ECHO_N "(cached) $ECHO_C" >&6
18303 ac_check_lib_save_LIBS=$LIBS
18304 LIBS="-lsvld $LIBS"
18305 cat >conftest.$ac_ext <<_ACEOF
18308 cat confdefs.h >>conftest.$ac_ext
18309 cat >>conftest.$ac_ext <<_ACEOF
18310 /* end confdefs.h. */
18312 /* Override any gcc2 internal prototype to avoid an error. */
18316 /* We use char because int might match the return type of a gcc2
18317 builtin and then its argument prototype would still apply. */
18327 rm -f conftest.$ac_objext conftest$ac_exeext
18328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18329 (eval $ac_link) 2>conftest.er1
18331 grep -v '^ *+' conftest.er1 >conftest.err
18333 cat conftest.err >&5
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); } &&
18336 { ac_try='test -z "$ac_c_werror_flag"
18337 || test ! -s conftest.err'
18338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18339 (eval $ac_try) 2>&5
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); }; } &&
18343 { ac_try='test -s conftest$ac_exeext'
18344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18345 (eval $ac_try) 2>&5
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); }; }; then
18349 ac_cv_lib_svld_dlopen=yes
18351 echo "$as_me: failed program was:" >&5
18352 sed 's/^/| /' conftest.$ac_ext >&5
18354 ac_cv_lib_svld_dlopen=no
18356 rm -f conftest.err conftest.$ac_objext \
18357 conftest$ac_exeext conftest.$ac_ext
18358 LIBS=$ac_check_lib_save_LIBS
18360 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18361 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18362 if test $ac_cv_lib_svld_dlopen = yes; then
18363 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18365 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18366 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18367 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18368 echo $ECHO_N "(cached) $ECHO_C" >&6
18370 ac_check_lib_save_LIBS=$LIBS
18372 cat >conftest.$ac_ext <<_ACEOF
18375 cat confdefs.h >>conftest.$ac_ext
18376 cat >>conftest.$ac_ext <<_ACEOF
18377 /* end confdefs.h. */
18379 /* Override any gcc2 internal prototype to avoid an error. */
18383 /* We use char because int might match the return type of a gcc2
18384 builtin and then its argument prototype would still apply. */
18394 rm -f conftest.$ac_objext conftest$ac_exeext
18395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18396 (eval $ac_link) 2>conftest.er1
18398 grep -v '^ *+' conftest.er1 >conftest.err
18400 cat conftest.err >&5
18401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402 (exit $ac_status); } &&
18403 { ac_try='test -z "$ac_c_werror_flag"
18404 || test ! -s conftest.err'
18405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18406 (eval $ac_try) 2>&5
18408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409 (exit $ac_status); }; } &&
18410 { ac_try='test -s conftest$ac_exeext'
18411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18412 (eval $ac_try) 2>&5
18414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415 (exit $ac_status); }; }; then
18416 ac_cv_lib_dld_dld_link=yes
18418 echo "$as_me: failed program was:" >&5
18419 sed 's/^/| /' conftest.$ac_ext >&5
18421 ac_cv_lib_dld_dld_link=no
18423 rm -f conftest.err conftest.$ac_objext \
18424 conftest$ac_exeext conftest.$ac_ext
18425 LIBS=$ac_check_lib_save_LIBS
18427 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18428 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18429 if test $ac_cv_lib_dld_dld_link = yes; then
18430 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18451 if test "x$lt_cv_dlopen" != xno; then
18457 case $lt_cv_dlopen in
18459 save_CPPFLAGS="$CPPFLAGS"
18460 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18462 save_LDFLAGS="$LDFLAGS"
18463 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18466 LIBS="$lt_cv_dlopen_libs $LIBS"
18468 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18469 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18470 if test "${lt_cv_dlopen_self+set}" = set; then
18471 echo $ECHO_N "(cached) $ECHO_C" >&6
18473 if test "$cross_compiling" = yes; then :
18474 lt_cv_dlopen_self=cross
18476 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18477 lt_status=$lt_dlunknown
18478 cat > conftest.$ac_ext <<EOF
18479 #line 18479 "configure"
18480 #include "confdefs.h"
18489 # define LT_DLGLOBAL RTLD_GLOBAL
18492 # define LT_DLGLOBAL DL_GLOBAL
18494 # define LT_DLGLOBAL 0
18498 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18499 find out it does not work in some platform. */
18500 #ifndef LT_DLLAZY_OR_NOW
18502 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18505 # define LT_DLLAZY_OR_NOW DL_LAZY
18508 # define LT_DLLAZY_OR_NOW RTLD_NOW
18511 # define LT_DLLAZY_OR_NOW DL_NOW
18513 # define LT_DLLAZY_OR_NOW 0
18521 extern "C" void exit (int);
18524 void fnord() { int i=42;}
18527 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18528 int status = $lt_dlunknown;
18532 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18533 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18534 /* dlclose (self); */
18540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18541 (eval $ac_link) 2>&5
18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18545 (./conftest; exit; ) 2>/dev/null
18547 case x$lt_status in
18548 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18549 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18550 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18553 # compilation failed
18554 lt_cv_dlopen_self=no
18561 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18562 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18564 if test "x$lt_cv_dlopen_self" = xyes; then
18565 LDFLAGS="$LDFLAGS $link_static_flag"
18566 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18567 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18568 if test "${lt_cv_dlopen_self_static+set}" = set; then
18569 echo $ECHO_N "(cached) $ECHO_C" >&6
18571 if test "$cross_compiling" = yes; then :
18572 lt_cv_dlopen_self_static=cross
18574 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18575 lt_status=$lt_dlunknown
18576 cat > conftest.$ac_ext <<EOF
18577 #line 18577 "configure"
18578 #include "confdefs.h"
18587 # define LT_DLGLOBAL RTLD_GLOBAL
18590 # define LT_DLGLOBAL DL_GLOBAL
18592 # define LT_DLGLOBAL 0
18596 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18597 find out it does not work in some platform. */
18598 #ifndef LT_DLLAZY_OR_NOW
18600 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18603 # define LT_DLLAZY_OR_NOW DL_LAZY
18606 # define LT_DLLAZY_OR_NOW RTLD_NOW
18609 # define LT_DLLAZY_OR_NOW DL_NOW
18611 # define LT_DLLAZY_OR_NOW 0
18619 extern "C" void exit (int);
18622 void fnord() { int i=42;}
18625 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18626 int status = $lt_dlunknown;
18630 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18631 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18632 /* dlclose (self); */
18638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18639 (eval $ac_link) 2>&5
18641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18643 (./conftest; exit; ) 2>/dev/null
18645 case x$lt_status in
18646 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18647 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18648 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18651 # compilation failed
18652 lt_cv_dlopen_self_static=no
18659 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18660 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18663 CPPFLAGS="$save_CPPFLAGS"
18664 LDFLAGS="$save_LDFLAGS"
18669 case $lt_cv_dlopen_self in
18670 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18671 *) enable_dlopen_self=unknown ;;
18674 case $lt_cv_dlopen_self_static in
18675 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18676 *) enable_dlopen_self_static=unknown ;;
18681 # The else clause should only fire when bootstrapping the
18682 # libtool distribution, otherwise you forgot to ship ltmain.sh
18683 # with your package, and you will get complaints that there are
18684 # no rules to generate ltmain.sh.
18685 if test -f "$ltmain"; then
18686 # See if we are running on zsh, and set the options which allow our commands through
18687 # without removal of \ escapes.
18688 if test -n "${ZSH_VERSION+set}" ; then
18689 setopt NO_GLOB_SUBST
18691 # Now quote all the things that may contain metacharacters while being
18692 # careful not to overquote the AC_SUBSTed values. We take copies of the
18693 # variables and quote the copies for generation of the libtool script.
18694 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18696 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18697 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18698 deplibs_check_method reload_flag reload_cmds need_locks \
18699 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18700 lt_cv_sys_global_symbol_to_c_name_address \
18701 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18702 old_postinstall_cmds old_postuninstall_cmds \
18706 lt_prog_compiler_wl_GCJ \
18707 lt_prog_compiler_pic_GCJ \
18708 lt_prog_compiler_static_GCJ \
18709 lt_prog_compiler_no_builtin_flag_GCJ \
18710 export_dynamic_flag_spec_GCJ \
18711 thread_safe_flag_spec_GCJ \
18712 whole_archive_flag_spec_GCJ \
18713 enable_shared_with_static_runtimes_GCJ \
18714 old_archive_cmds_GCJ \
18715 old_archive_from_new_cmds_GCJ \
18716 predep_objects_GCJ \
18717 postdep_objects_GCJ \
18720 compiler_lib_search_path_GCJ \
18722 archive_expsym_cmds_GCJ \
18723 postinstall_cmds_GCJ \
18724 postuninstall_cmds_GCJ \
18725 old_archive_from_expsyms_cmds_GCJ \
18726 allow_undefined_flag_GCJ \
18727 no_undefined_flag_GCJ \
18728 export_symbols_cmds_GCJ \
18729 hardcode_libdir_flag_spec_GCJ \
18730 hardcode_libdir_flag_spec_ld_GCJ \
18731 hardcode_libdir_separator_GCJ \
18732 hardcode_automatic_GCJ \
18734 module_expsym_cmds_GCJ \
18735 lt_cv_prog_compiler_c_o_GCJ \
18736 exclude_expsyms_GCJ \
18737 include_expsyms_GCJ; do
18740 old_archive_cmds_GCJ | \
18741 old_archive_from_new_cmds_GCJ | \
18742 archive_cmds_GCJ | \
18743 archive_expsym_cmds_GCJ | \
18744 module_cmds_GCJ | \
18745 module_expsym_cmds_GCJ | \
18746 old_archive_from_expsyms_cmds_GCJ | \
18747 export_symbols_cmds_GCJ | \
18748 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18749 postinstall_cmds | postuninstall_cmds | \
18750 old_postinstall_cmds | old_postuninstall_cmds | \
18751 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18752 # Double-quote double-evaled strings.
18753 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18756 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18762 *'\$0 --fallback-echo"')
18763 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18769 cat <<__EOF__ >> "$cfgfile"
18770 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18772 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18774 # Shell to use when invoking shell scripts.
18777 # Whether or not to build shared libraries.
18778 build_libtool_libs=$enable_shared
18780 # Whether or not to build static libraries.
18781 build_old_libs=$enable_static
18783 # Whether or not to add -lc for building shared libraries.
18784 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18786 # Whether or not to disallow shared libs when runtime libs are static
18787 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18789 # Whether or not to optimize for fast installation.
18790 fast_install=$enable_fast_install
18793 host_alias=$host_alias
18797 # The build system.
18798 build_alias=$build_alias
18802 # An echo program that does not interpret backslashes.
18807 AR_FLAGS=$lt_AR_FLAGS
18812 # A language-specific compiler.
18813 CC=$lt_compiler_GCJ
18815 # Is the compiler the GNU C compiler?
18821 # The linker used to build libraries.
18824 # Whether we need hard or soft links.
18827 # A BSD-compatible nm program.
18830 # A symbol stripping program
18833 # Used to examine libraries when file_magic_cmd begins "file"
18834 MAGIC_CMD=$MAGIC_CMD
18836 # Used on cygwin: DLL creation program.
18839 # Used on cygwin: object dumper.
18842 # Used on cygwin: assembler.
18845 # The name of the directory that contains temporary libtool files.
18848 # How to create reloadable object files.
18849 reload_flag=$lt_reload_flag
18850 reload_cmds=$lt_reload_cmds
18852 # How to pass a linker flag through the compiler.
18853 wl=$lt_lt_prog_compiler_wl_GCJ
18855 # Object file suffix (normally "o").
18856 objext="$ac_objext"
18858 # Old archive suffix (normally "a").
18861 # Shared library suffix (normally ".so").
18862 shrext_cmds='$shrext_cmds'
18864 # Executable file suffix (normally "").
18867 # Additional compiler flags for building library objects.
18868 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18871 # What is the maximum length of a command?
18872 max_cmd_len=$lt_cv_sys_max_cmd_len
18874 # Does compiler simultaneously support -c and -o options?
18875 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18877 # Must we lock files when doing compilation?
18878 need_locks=$lt_need_locks
18880 # Do we need the lib prefix for modules?
18881 need_lib_prefix=$need_lib_prefix
18883 # Do we need a version for libraries?
18884 need_version=$need_version
18886 # Whether dlopen is supported.
18887 dlopen_support=$enable_dlopen
18889 # Whether dlopen of programs is supported.
18890 dlopen_self=$enable_dlopen_self
18892 # Whether dlopen of statically linked programs is supported.
18893 dlopen_self_static=$enable_dlopen_self_static
18895 # Compiler flag to prevent dynamic linking.
18896 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18898 # Compiler flag to turn off builtin functions.
18899 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18901 # Compiler flag to allow reflexive dlopens.
18902 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18904 # Compiler flag to generate shared objects directly from archives.
18905 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18907 # Compiler flag to generate thread-safe objects.
18908 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18910 # Library versioning type.
18911 version_type=$version_type
18913 # Format of library name prefix.
18914 libname_spec=$lt_libname_spec
18916 # List of archive names. First name is the real one, the rest are links.
18917 # The last name is the one that the linker finds with -lNAME.
18918 library_names_spec=$lt_library_names_spec
18920 # The coded name of the library, if different from the real name.
18921 soname_spec=$lt_soname_spec
18923 # Commands used to build and install an old-style archive.
18925 old_archive_cmds=$lt_old_archive_cmds_GCJ
18926 old_postinstall_cmds=$lt_old_postinstall_cmds
18927 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18929 # Create an old-style archive from a shared archive.
18930 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18932 # Create a temporary old-style archive to link instead of a shared archive.
18933 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18935 # Commands used to build and install a shared archive.
18936 archive_cmds=$lt_archive_cmds_GCJ
18937 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18938 postinstall_cmds=$lt_postinstall_cmds
18939 postuninstall_cmds=$lt_postuninstall_cmds
18941 # Commands used to build a loadable module (assumed same as above if empty)
18942 module_cmds=$lt_module_cmds_GCJ
18943 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18945 # Commands to strip libraries.
18946 old_striplib=$lt_old_striplib
18947 striplib=$lt_striplib
18949 # Dependencies to place before the objects being linked to create a
18951 predep_objects=$lt_predep_objects_GCJ
18953 # Dependencies to place after the objects being linked to create a
18955 postdep_objects=$lt_postdep_objects_GCJ
18957 # Dependencies to place before the objects being linked to create a
18959 predeps=$lt_predeps_GCJ
18961 # Dependencies to place after the objects being linked to create a
18963 postdeps=$lt_postdeps_GCJ
18965 # The library search path used internally by the compiler when linking
18966 # a shared library.
18967 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18969 # Method to check whether dependent libraries are shared objects.
18970 deplibs_check_method=$lt_deplibs_check_method
18972 # Command to use when deplibs_check_method == file_magic.
18973 file_magic_cmd=$lt_file_magic_cmd
18975 # Flag that allows shared libraries with undefined symbols to be built.
18976 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18978 # Flag that forces no undefined symbols.
18979 no_undefined_flag=$lt_no_undefined_flag_GCJ
18981 # Commands used to finish a libtool library installation in a directory.
18982 finish_cmds=$lt_finish_cmds
18984 # Same as above, but a single script fragment to be evaled but not shown.
18985 finish_eval=$lt_finish_eval
18987 # Take the output of nm and produce a listing of raw symbols and C names.
18988 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18990 # Transform the output of nm in a proper C declaration
18991 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18993 # Transform the output of nm in a C name address pair
18994 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18996 # This is the shared library runtime path variable.
18997 runpath_var=$runpath_var
18999 # This is the shared library path variable.
19000 shlibpath_var=$shlibpath_var
19002 # Is shlibpath searched before the hard-coded library search path?
19003 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19005 # How to hardcode a shared library path into an executable.
19006 hardcode_action=$hardcode_action_GCJ
19008 # Whether we should hardcode library paths into libraries.
19009 hardcode_into_libs=$hardcode_into_libs
19011 # Flag to hardcode \$libdir into a binary during linking.
19012 # This must work even if \$libdir does not exist.
19013 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19015 # If ld is used when linking, flag to hardcode \$libdir into
19016 # a binary during linking. This must work even if \$libdir does
19018 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19020 # Whether we need a single -rpath flag with a separated argument.
19021 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19023 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19024 # resulting binary.
19025 hardcode_direct=$hardcode_direct_GCJ
19027 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19028 # resulting binary.
19029 hardcode_minus_L=$hardcode_minus_L_GCJ
19031 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19032 # the resulting binary.
19033 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19035 # Set to yes if building a shared library automatically hardcodes DIR into the library
19036 # and all subsequent libraries and executables linked against it.
19037 hardcode_automatic=$hardcode_automatic_GCJ
19039 # Variables whose values should be saved in libtool wrapper scripts and
19040 # restored at relink time.
19041 variables_saved_for_relink="$variables_saved_for_relink"
19043 # Whether libtool must link a program against all its dependency libraries.
19044 link_all_deplibs=$link_all_deplibs_GCJ
19046 # Compile-time system search path for libraries
19047 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19049 # Run-time system search path for libraries
19050 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19052 # Fix the shell variable \$srcfile for the compiler.
19053 fix_srcfile_path="$fix_srcfile_path_GCJ"
19055 # Set to yes if exported symbols are required.
19056 always_export_symbols=$always_export_symbols_GCJ
19058 # The commands to list exported symbols.
19059 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19061 # The commands to extract the exported symbol list from a shared archive.
19062 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19064 # Symbols that should not be listed in the preloaded symbols.
19065 exclude_expsyms=$lt_exclude_expsyms_GCJ
19067 # Symbols that must always be exported.
19068 include_expsyms=$lt_include_expsyms_GCJ
19070 # ### END LIBTOOL TAG CONFIG: $tagname
19076 # If there is no Makefile yet, we rely on a make rule to execute
19077 # `config.status --recheck' to rerun these tests and create the
19078 # libtool script then.
19079 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19080 if test -f "$ltmain_in"; then
19081 test -f Makefile && make "$ltmain"
19087 ac_cpp='$CPP $CPPFLAGS'
19088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19103 # Source file extension for RC test sources.
19106 # Object file extension for compiled RC test sources.
19110 # Code to be used in simple compile tests
19111 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19113 # Code to be used in simple link tests
19114 lt_simple_link_test_code="$lt_simple_compile_test_code"
19116 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19118 # If no C compiler was specified, use CC.
19121 # Allow CC to be a program name with arguments.
19125 # save warnings/boilerplate of simple test code
19126 ac_outfile=conftest.$ac_objext
19127 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19128 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19129 _lt_compiler_boilerplate=`cat conftest.err`
19132 ac_outfile=conftest.$ac_objext
19133 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19134 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19135 _lt_linker_boilerplate=`cat conftest.err`
19139 # Allow CC to be a program name with arguments.
19144 for cc_temp in $compiler""; do
19146 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19147 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19152 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19154 lt_cv_prog_compiler_c_o_RC=yes
19156 # The else clause should only fire when bootstrapping the
19157 # libtool distribution, otherwise you forgot to ship ltmain.sh
19158 # with your package, and you will get complaints that there are
19159 # no rules to generate ltmain.sh.
19160 if test -f "$ltmain"; then
19161 # See if we are running on zsh, and set the options which allow our commands through
19162 # without removal of \ escapes.
19163 if test -n "${ZSH_VERSION+set}" ; then
19164 setopt NO_GLOB_SUBST
19166 # Now quote all the things that may contain metacharacters while being
19167 # careful not to overquote the AC_SUBSTed values. We take copies of the
19168 # variables and quote the copies for generation of the libtool script.
19169 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19171 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19172 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19173 deplibs_check_method reload_flag reload_cmds need_locks \
19174 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19175 lt_cv_sys_global_symbol_to_c_name_address \
19176 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19177 old_postinstall_cmds old_postuninstall_cmds \
19181 lt_prog_compiler_wl_RC \
19182 lt_prog_compiler_pic_RC \
19183 lt_prog_compiler_static_RC \
19184 lt_prog_compiler_no_builtin_flag_RC \
19185 export_dynamic_flag_spec_RC \
19186 thread_safe_flag_spec_RC \
19187 whole_archive_flag_spec_RC \
19188 enable_shared_with_static_runtimes_RC \
19189 old_archive_cmds_RC \
19190 old_archive_from_new_cmds_RC \
19191 predep_objects_RC \
19192 postdep_objects_RC \
19195 compiler_lib_search_path_RC \
19197 archive_expsym_cmds_RC \
19198 postinstall_cmds_RC \
19199 postuninstall_cmds_RC \
19200 old_archive_from_expsyms_cmds_RC \
19201 allow_undefined_flag_RC \
19202 no_undefined_flag_RC \
19203 export_symbols_cmds_RC \
19204 hardcode_libdir_flag_spec_RC \
19205 hardcode_libdir_flag_spec_ld_RC \
19206 hardcode_libdir_separator_RC \
19207 hardcode_automatic_RC \
19209 module_expsym_cmds_RC \
19210 lt_cv_prog_compiler_c_o_RC \
19211 exclude_expsyms_RC \
19212 include_expsyms_RC; do
19215 old_archive_cmds_RC | \
19216 old_archive_from_new_cmds_RC | \
19217 archive_cmds_RC | \
19218 archive_expsym_cmds_RC | \
19220 module_expsym_cmds_RC | \
19221 old_archive_from_expsyms_cmds_RC | \
19222 export_symbols_cmds_RC | \
19223 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19224 postinstall_cmds | postuninstall_cmds | \
19225 old_postinstall_cmds | old_postuninstall_cmds | \
19226 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19227 # Double-quote double-evaled strings.
19228 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19231 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19237 *'\$0 --fallback-echo"')
19238 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19244 cat <<__EOF__ >> "$cfgfile"
19245 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19247 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19249 # Shell to use when invoking shell scripts.
19252 # Whether or not to build shared libraries.
19253 build_libtool_libs=$enable_shared
19255 # Whether or not to build static libraries.
19256 build_old_libs=$enable_static
19258 # Whether or not to add -lc for building shared libraries.
19259 build_libtool_need_lc=$archive_cmds_need_lc_RC
19261 # Whether or not to disallow shared libs when runtime libs are static
19262 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19264 # Whether or not to optimize for fast installation.
19265 fast_install=$enable_fast_install
19268 host_alias=$host_alias
19272 # The build system.
19273 build_alias=$build_alias
19277 # An echo program that does not interpret backslashes.
19282 AR_FLAGS=$lt_AR_FLAGS
19287 # A language-specific compiler.
19290 # Is the compiler the GNU C compiler?
19296 # The linker used to build libraries.
19299 # Whether we need hard or soft links.
19302 # A BSD-compatible nm program.
19305 # A symbol stripping program
19308 # Used to examine libraries when file_magic_cmd begins "file"
19309 MAGIC_CMD=$MAGIC_CMD
19311 # Used on cygwin: DLL creation program.
19314 # Used on cygwin: object dumper.
19317 # Used on cygwin: assembler.
19320 # The name of the directory that contains temporary libtool files.
19323 # How to create reloadable object files.
19324 reload_flag=$lt_reload_flag
19325 reload_cmds=$lt_reload_cmds
19327 # How to pass a linker flag through the compiler.
19328 wl=$lt_lt_prog_compiler_wl_RC
19330 # Object file suffix (normally "o").
19331 objext="$ac_objext"
19333 # Old archive suffix (normally "a").
19336 # Shared library suffix (normally ".so").
19337 shrext_cmds='$shrext_cmds'
19339 # Executable file suffix (normally "").
19342 # Additional compiler flags for building library objects.
19343 pic_flag=$lt_lt_prog_compiler_pic_RC
19346 # What is the maximum length of a command?
19347 max_cmd_len=$lt_cv_sys_max_cmd_len
19349 # Does compiler simultaneously support -c and -o options?
19350 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19352 # Must we lock files when doing compilation?
19353 need_locks=$lt_need_locks
19355 # Do we need the lib prefix for modules?
19356 need_lib_prefix=$need_lib_prefix
19358 # Do we need a version for libraries?
19359 need_version=$need_version
19361 # Whether dlopen is supported.
19362 dlopen_support=$enable_dlopen
19364 # Whether dlopen of programs is supported.
19365 dlopen_self=$enable_dlopen_self
19367 # Whether dlopen of statically linked programs is supported.
19368 dlopen_self_static=$enable_dlopen_self_static
19370 # Compiler flag to prevent dynamic linking.
19371 link_static_flag=$lt_lt_prog_compiler_static_RC
19373 # Compiler flag to turn off builtin functions.
19374 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19376 # Compiler flag to allow reflexive dlopens.
19377 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19379 # Compiler flag to generate shared objects directly from archives.
19380 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19382 # Compiler flag to generate thread-safe objects.
19383 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19385 # Library versioning type.
19386 version_type=$version_type
19388 # Format of library name prefix.
19389 libname_spec=$lt_libname_spec
19391 # List of archive names. First name is the real one, the rest are links.
19392 # The last name is the one that the linker finds with -lNAME.
19393 library_names_spec=$lt_library_names_spec
19395 # The coded name of the library, if different from the real name.
19396 soname_spec=$lt_soname_spec
19398 # Commands used to build and install an old-style archive.
19400 old_archive_cmds=$lt_old_archive_cmds_RC
19401 old_postinstall_cmds=$lt_old_postinstall_cmds
19402 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19404 # Create an old-style archive from a shared archive.
19405 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19407 # Create a temporary old-style archive to link instead of a shared archive.
19408 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19410 # Commands used to build and install a shared archive.
19411 archive_cmds=$lt_archive_cmds_RC
19412 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19413 postinstall_cmds=$lt_postinstall_cmds
19414 postuninstall_cmds=$lt_postuninstall_cmds
19416 # Commands used to build a loadable module (assumed same as above if empty)
19417 module_cmds=$lt_module_cmds_RC
19418 module_expsym_cmds=$lt_module_expsym_cmds_RC
19420 # Commands to strip libraries.
19421 old_striplib=$lt_old_striplib
19422 striplib=$lt_striplib
19424 # Dependencies to place before the objects being linked to create a
19426 predep_objects=$lt_predep_objects_RC
19428 # Dependencies to place after the objects being linked to create a
19430 postdep_objects=$lt_postdep_objects_RC
19432 # Dependencies to place before the objects being linked to create a
19434 predeps=$lt_predeps_RC
19436 # Dependencies to place after the objects being linked to create a
19438 postdeps=$lt_postdeps_RC
19440 # The library search path used internally by the compiler when linking
19441 # a shared library.
19442 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19444 # Method to check whether dependent libraries are shared objects.
19445 deplibs_check_method=$lt_deplibs_check_method
19447 # Command to use when deplibs_check_method == file_magic.
19448 file_magic_cmd=$lt_file_magic_cmd
19450 # Flag that allows shared libraries with undefined symbols to be built.
19451 allow_undefined_flag=$lt_allow_undefined_flag_RC
19453 # Flag that forces no undefined symbols.
19454 no_undefined_flag=$lt_no_undefined_flag_RC
19456 # Commands used to finish a libtool library installation in a directory.
19457 finish_cmds=$lt_finish_cmds
19459 # Same as above, but a single script fragment to be evaled but not shown.
19460 finish_eval=$lt_finish_eval
19462 # Take the output of nm and produce a listing of raw symbols and C names.
19463 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19465 # Transform the output of nm in a proper C declaration
19466 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19468 # Transform the output of nm in a C name address pair
19469 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19471 # This is the shared library runtime path variable.
19472 runpath_var=$runpath_var
19474 # This is the shared library path variable.
19475 shlibpath_var=$shlibpath_var
19477 # Is shlibpath searched before the hard-coded library search path?
19478 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19480 # How to hardcode a shared library path into an executable.
19481 hardcode_action=$hardcode_action_RC
19483 # Whether we should hardcode library paths into libraries.
19484 hardcode_into_libs=$hardcode_into_libs
19486 # Flag to hardcode \$libdir into a binary during linking.
19487 # This must work even if \$libdir does not exist.
19488 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19490 # If ld is used when linking, flag to hardcode \$libdir into
19491 # a binary during linking. This must work even if \$libdir does
19493 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19495 # Whether we need a single -rpath flag with a separated argument.
19496 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19498 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19499 # resulting binary.
19500 hardcode_direct=$hardcode_direct_RC
19502 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19503 # resulting binary.
19504 hardcode_minus_L=$hardcode_minus_L_RC
19506 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19507 # the resulting binary.
19508 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19510 # Set to yes if building a shared library automatically hardcodes DIR into the library
19511 # and all subsequent libraries and executables linked against it.
19512 hardcode_automatic=$hardcode_automatic_RC
19514 # Variables whose values should be saved in libtool wrapper scripts and
19515 # restored at relink time.
19516 variables_saved_for_relink="$variables_saved_for_relink"
19518 # Whether libtool must link a program against all its dependency libraries.
19519 link_all_deplibs=$link_all_deplibs_RC
19521 # Compile-time system search path for libraries
19522 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19524 # Run-time system search path for libraries
19525 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19527 # Fix the shell variable \$srcfile for the compiler.
19528 fix_srcfile_path="$fix_srcfile_path_RC"
19530 # Set to yes if exported symbols are required.
19531 always_export_symbols=$always_export_symbols_RC
19533 # The commands to list exported symbols.
19534 export_symbols_cmds=$lt_export_symbols_cmds_RC
19536 # The commands to extract the exported symbol list from a shared archive.
19537 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19539 # Symbols that should not be listed in the preloaded symbols.
19540 exclude_expsyms=$lt_exclude_expsyms_RC
19542 # Symbols that must always be exported.
19543 include_expsyms=$lt_include_expsyms_RC
19545 # ### END LIBTOOL TAG CONFIG: $tagname
19551 # If there is no Makefile yet, we rely on a make rule to execute
19552 # `config.status --recheck' to rerun these tests and create the
19553 # libtool script then.
19554 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19555 if test -f "$ltmain_in"; then
19556 test -f Makefile && make "$ltmain"
19562 ac_cpp='$CPP $CPPFLAGS'
19563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19572 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19573 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19574 { (exit 1); exit 1; }; }
19578 # Append the new tag name to the list of available tags.
19579 if test -n "$tagname" ; then
19580 available_tags="$available_tags $tagname"
19586 # Now substitute the updated list of available tags.
19587 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19588 mv "${ofile}T" "$ofile"
19592 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19593 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19594 { (exit 1); exit 1; }; }
19600 # This can be used to rebuild libtool when needed
19601 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19603 # Always use our own libtool.
19604 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19606 # Prevent multiple expansion
19627 # Check whether --enable-debug or --disable-debug was given.
19628 if test "${enable_debug+set}" = set; then
19629 enableval="$enable_debug"
19631 CXXFLAGS="-g -O0 -Wall"
19632 cat >>confdefs.h <<\_ACEOF
19633 #define WITH_DEBUG 1
19645 # Check whether --with-libldap or --without-libldap was given.
19646 if test "${with_libldap+set}" = set; then
19647 withval="$with_libldap"
19649 LIBS="-L$with_libldap $LIBS "
19653 LIBS="-L/usr/local/lib $LIBS "
19659 # Check whether --with-ldap-includes or --without-ldap-includes was given.
19660 if test "${with_ldap_includes+set}" = set; then
19661 withval="$with_ldap_includes"
19663 CPPFLAGS="-I$with_ldap_includes $CPPFLAGS "
19667 CPPFLAGS="-I/usr/local/include $CPPFLAGS "
19672 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
19673 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
19674 if test "${ac_cv_lib_resolv_main+set}" = set; then
19675 echo $ECHO_N "(cached) $ECHO_C" >&6
19677 ac_check_lib_save_LIBS=$LIBS
19678 LIBS="-lresolv $LIBS"
19679 cat >conftest.$ac_ext <<_ACEOF
19682 cat confdefs.h >>conftest.$ac_ext
19683 cat >>conftest.$ac_ext <<_ACEOF
19684 /* end confdefs.h. */
19695 rm -f conftest.$ac_objext conftest$ac_exeext
19696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19697 (eval $ac_link) 2>conftest.er1
19699 grep -v '^ *+' conftest.er1 >conftest.err
19701 cat conftest.err >&5
19702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703 (exit $ac_status); } &&
19704 { ac_try='test -z "$ac_c_werror_flag"
19705 || test ! -s conftest.err'
19706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19707 (eval $ac_try) 2>&5
19709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19710 (exit $ac_status); }; } &&
19711 { ac_try='test -s conftest$ac_exeext'
19712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19713 (eval $ac_try) 2>&5
19715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716 (exit $ac_status); }; }; then
19717 ac_cv_lib_resolv_main=yes
19719 echo "$as_me: failed program was:" >&5
19720 sed 's/^/| /' conftest.$ac_ext >&5
19722 ac_cv_lib_resolv_main=no
19724 rm -f conftest.err conftest.$ac_objext \
19725 conftest$ac_exeext conftest.$ac_ext
19726 LIBS=$ac_check_lib_save_LIBS
19728 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
19729 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
19730 if test $ac_cv_lib_resolv_main = yes; then
19731 cat >>confdefs.h <<_ACEOF
19732 #define HAVE_LIBRESOLV 1
19735 LIBS="-lresolv $LIBS"
19739 echo "$as_me:$LINENO: checking for ber_strdup in -llber" >&5
19740 echo $ECHO_N "checking for ber_strdup in -llber... $ECHO_C" >&6
19741 if test "${ac_cv_lib_lber_ber_strdup+set}" = set; then
19742 echo $ECHO_N "(cached) $ECHO_C" >&6
19744 ac_check_lib_save_LIBS=$LIBS
19745 LIBS="-llber $LIBS"
19746 cat >conftest.$ac_ext <<_ACEOF
19749 cat confdefs.h >>conftest.$ac_ext
19750 cat >>conftest.$ac_ext <<_ACEOF
19751 /* end confdefs.h. */
19753 /* Override any gcc2 internal prototype to avoid an error. */
19757 /* We use char because int might match the return type of a gcc2
19758 builtin and then its argument prototype would still apply. */
19759 char ber_strdup ();
19768 rm -f conftest.$ac_objext conftest$ac_exeext
19769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19770 (eval $ac_link) 2>conftest.er1
19772 grep -v '^ *+' conftest.er1 >conftest.err
19774 cat conftest.err >&5
19775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); } &&
19777 { ac_try='test -z "$ac_c_werror_flag"
19778 || test ! -s conftest.err'
19779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19780 (eval $ac_try) 2>&5
19782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783 (exit $ac_status); }; } &&
19784 { ac_try='test -s conftest$ac_exeext'
19785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19786 (eval $ac_try) 2>&5
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); }; }; then
19790 ac_cv_lib_lber_ber_strdup=yes
19792 echo "$as_me: failed program was:" >&5
19793 sed 's/^/| /' conftest.$ac_ext >&5
19795 ac_cv_lib_lber_ber_strdup=no
19797 rm -f conftest.err conftest.$ac_objext \
19798 conftest$ac_exeext conftest.$ac_ext
19799 LIBS=$ac_check_lib_save_LIBS
19801 echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_strdup" >&5
19802 echo "${ECHO_T}$ac_cv_lib_lber_ber_strdup" >&6
19803 if test $ac_cv_lib_lber_ber_strdup = yes; then
19809 echo " didn't find ber_strdup in liblber !";
19810 echo " Check for the right version (>= 2.0) of the OpenLDAP libraries";
19811 echo " or try the --with-libldap option.";
19816 echo "$as_me:$LINENO: checking for ldap_add_ext in -lldap" >&5
19817 echo $ECHO_N "checking for ldap_add_ext in -lldap... $ECHO_C" >&6
19818 if test "${ac_cv_lib_ldap_ldap_add_ext+set}" = set; then
19819 echo $ECHO_N "(cached) $ECHO_C" >&6
19821 ac_check_lib_save_LIBS=$LIBS
19825 cat >conftest.$ac_ext <<_ACEOF
19828 cat confdefs.h >>conftest.$ac_ext
19829 cat >>conftest.$ac_ext <<_ACEOF
19830 /* end confdefs.h. */
19832 /* Override any gcc2 internal prototype to avoid an error. */
19836 /* We use char because int might match the return type of a gcc2
19837 builtin and then its argument prototype would still apply. */
19838 char ldap_add_ext ();
19847 rm -f conftest.$ac_objext conftest$ac_exeext
19848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19849 (eval $ac_link) 2>conftest.er1
19851 grep -v '^ *+' conftest.er1 >conftest.err
19853 cat conftest.err >&5
19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 (exit $ac_status); } &&
19856 { ac_try='test -z "$ac_c_werror_flag"
19857 || test ! -s conftest.err'
19858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19859 (eval $ac_try) 2>&5
19861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862 (exit $ac_status); }; } &&
19863 { ac_try='test -s conftest$ac_exeext'
19864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19865 (eval $ac_try) 2>&5
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); }; }; then
19869 ac_cv_lib_ldap_ldap_add_ext=yes
19871 echo "$as_me: failed program was:" >&5
19872 sed 's/^/| /' conftest.$ac_ext >&5
19874 ac_cv_lib_ldap_ldap_add_ext=no
19876 rm -f conftest.err conftest.$ac_objext \
19877 conftest$ac_exeext conftest.$ac_ext
19878 LIBS=$ac_check_lib_save_LIBS
19880 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_add_ext" >&5
19881 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_add_ext" >&6
19882 if test $ac_cv_lib_ldap_ldap_add_ext = yes; then
19888 echo " didn't find ldap_add_ext in libldap !";
19889 echo " Check for the right version (>= 2.0) of the OpenLDAP libraries";
19890 echo " or try the --with-libldap option.";
19895 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19896 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19897 if test "${ac_cv_header_time+set}" = set; then
19898 echo $ECHO_N "(cached) $ECHO_C" >&6
19900 cat >conftest.$ac_ext <<_ACEOF
19903 cat confdefs.h >>conftest.$ac_ext
19904 cat >>conftest.$ac_ext <<_ACEOF
19905 /* end confdefs.h. */
19906 #include <sys/types.h>
19907 #include <sys/time.h>
19913 if ((struct tm *) 0)
19919 rm -f conftest.$ac_objext
19920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19921 (eval $ac_compile) 2>conftest.er1
19923 grep -v '^ *+' conftest.er1 >conftest.err
19925 cat conftest.err >&5
19926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927 (exit $ac_status); } &&
19928 { ac_try='test -z "$ac_c_werror_flag"
19929 || test ! -s conftest.err'
19930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19931 (eval $ac_try) 2>&5
19933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934 (exit $ac_status); }; } &&
19935 { ac_try='test -s conftest.$ac_objext'
19936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19937 (eval $ac_try) 2>&5
19939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940 (exit $ac_status); }; }; then
19941 ac_cv_header_time=yes
19943 echo "$as_me: failed program was:" >&5
19944 sed 's/^/| /' conftest.$ac_ext >&5
19946 ac_cv_header_time=no
19948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19950 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19951 echo "${ECHO_T}$ac_cv_header_time" >&6
19952 if test $ac_cv_header_time = yes; then
19954 cat >>confdefs.h <<\_ACEOF
19955 #define TIME_WITH_SYS_TIME 1
19960 if test "${ac_cv_header_ldap_h+set}" = set; then
19961 echo "$as_me:$LINENO: checking for ldap.h" >&5
19962 echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6
19963 if test "${ac_cv_header_ldap_h+set}" = set; then
19964 echo $ECHO_N "(cached) $ECHO_C" >&6
19966 echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
19967 echo "${ECHO_T}$ac_cv_header_ldap_h" >&6
19969 # Is the header compilable?
19970 echo "$as_me:$LINENO: checking ldap.h usability" >&5
19971 echo $ECHO_N "checking ldap.h usability... $ECHO_C" >&6
19972 cat >conftest.$ac_ext <<_ACEOF
19975 cat confdefs.h >>conftest.$ac_ext
19976 cat >>conftest.$ac_ext <<_ACEOF
19977 /* end confdefs.h. */
19978 $ac_includes_default
19981 rm -f conftest.$ac_objext
19982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19983 (eval $ac_compile) 2>conftest.er1
19985 grep -v '^ *+' conftest.er1 >conftest.err
19987 cat conftest.err >&5
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); } &&
19990 { ac_try='test -z "$ac_c_werror_flag"
19991 || test ! -s conftest.err'
19992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19993 (eval $ac_try) 2>&5
19995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996 (exit $ac_status); }; } &&
19997 { ac_try='test -s conftest.$ac_objext'
19998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19999 (eval $ac_try) 2>&5
20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); }; }; then
20003 ac_header_compiler=yes
20005 echo "$as_me: failed program was:" >&5
20006 sed 's/^/| /' conftest.$ac_ext >&5
20008 ac_header_compiler=no
20010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20011 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20012 echo "${ECHO_T}$ac_header_compiler" >&6
20014 # Is the header present?
20015 echo "$as_me:$LINENO: checking ldap.h presence" >&5
20016 echo $ECHO_N "checking ldap.h presence... $ECHO_C" >&6
20017 cat >conftest.$ac_ext <<_ACEOF
20020 cat confdefs.h >>conftest.$ac_ext
20021 cat >>conftest.$ac_ext <<_ACEOF
20022 /* end confdefs.h. */
20025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20026 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20028 grep -v '^ *+' conftest.er1 >conftest.err
20030 cat conftest.err >&5
20031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032 (exit $ac_status); } >/dev/null; then
20033 if test -s conftest.err; then
20034 ac_cpp_err=$ac_c_preproc_warn_flag
20035 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20042 if test -z "$ac_cpp_err"; then
20043 ac_header_preproc=yes
20045 echo "$as_me: failed program was:" >&5
20046 sed 's/^/| /' conftest.$ac_ext >&5
20048 ac_header_preproc=no
20050 rm -f conftest.err conftest.$ac_ext
20051 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20052 echo "${ECHO_T}$ac_header_preproc" >&6
20054 # So? What about this header?
20055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20057 { echo "$as_me:$LINENO: WARNING: ldap.h: accepted by the compiler, rejected by the preprocessor!" >&5
20058 echo "$as_me: WARNING: ldap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20059 { echo "$as_me:$LINENO: WARNING: ldap.h: proceeding with the compiler's result" >&5
20060 echo "$as_me: WARNING: ldap.h: proceeding with the compiler's result" >&2;}
20061 ac_header_preproc=yes
20064 { echo "$as_me:$LINENO: WARNING: ldap.h: present but cannot be compiled" >&5
20065 echo "$as_me: WARNING: ldap.h: present but cannot be compiled" >&2;}
20066 { echo "$as_me:$LINENO: WARNING: ldap.h: check for missing prerequisite headers?" >&5
20067 echo "$as_me: WARNING: ldap.h: check for missing prerequisite headers?" >&2;}
20068 { echo "$as_me:$LINENO: WARNING: ldap.h: see the Autoconf documentation" >&5
20069 echo "$as_me: WARNING: ldap.h: see the Autoconf documentation" >&2;}
20070 { echo "$as_me:$LINENO: WARNING: ldap.h: section \"Present But Cannot Be Compiled\"" >&5
20071 echo "$as_me: WARNING: ldap.h: section \"Present But Cannot Be Compiled\"" >&2;}
20072 { echo "$as_me:$LINENO: WARNING: ldap.h: proceeding with the preprocessor's result" >&5
20073 echo "$as_me: WARNING: ldap.h: proceeding with the preprocessor's result" >&2;}
20074 { echo "$as_me:$LINENO: WARNING: ldap.h: in the future, the compiler will take precedence" >&5
20075 echo "$as_me: WARNING: ldap.h: in the future, the compiler will take precedence" >&2;}
20078 ## ------------------------------------------ ##
20079 ## Report this to the AC_PACKAGE_NAME lists. ##
20080 ## ------------------------------------------ ##
20083 sed "s/^/$as_me: WARNING: /" >&2
20086 echo "$as_me:$LINENO: checking for ldap.h" >&5
20087 echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6
20088 if test "${ac_cv_header_ldap_h+set}" = set; then
20089 echo $ECHO_N "(cached) $ECHO_C" >&6
20091 ac_cv_header_ldap_h=$ac_header_preproc
20093 echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
20094 echo "${ECHO_T}$ac_cv_header_ldap_h" >&6
20099 cat >conftest.$ac_ext <<_ACEOF
20102 cat confdefs.h >>conftest.$ac_ext
20103 cat >>conftest.$ac_ext <<_ACEOF
20104 /* end confdefs.h. */
20108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20109 $EGREP "ldap_add_ext" >/dev/null 2>&1; then
20115 echo " didn't find ldap_add_ext in ldap.h!";
20116 echo " Check for the right version (>= 2.0) of the OpenLDAP includes";
20117 echo " or try --with-ldap-includes option.";
20123 if test "${ac_cv_header_lber_h+set}" = set; then
20124 echo "$as_me:$LINENO: checking for lber.h" >&5
20125 echo $ECHO_N "checking for lber.h... $ECHO_C" >&6
20126 if test "${ac_cv_header_lber_h+set}" = set; then
20127 echo $ECHO_N "(cached) $ECHO_C" >&6
20129 echo "$as_me:$LINENO: result: $ac_cv_header_lber_h" >&5
20130 echo "${ECHO_T}$ac_cv_header_lber_h" >&6
20132 # Is the header compilable?
20133 echo "$as_me:$LINENO: checking lber.h usability" >&5
20134 echo $ECHO_N "checking lber.h usability... $ECHO_C" >&6
20135 cat >conftest.$ac_ext <<_ACEOF
20138 cat confdefs.h >>conftest.$ac_ext
20139 cat >>conftest.$ac_ext <<_ACEOF
20140 /* end confdefs.h. */
20141 $ac_includes_default
20144 rm -f conftest.$ac_objext
20145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20146 (eval $ac_compile) 2>conftest.er1
20148 grep -v '^ *+' conftest.er1 >conftest.err
20150 cat conftest.err >&5
20151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152 (exit $ac_status); } &&
20153 { ac_try='test -z "$ac_c_werror_flag"
20154 || test ! -s conftest.err'
20155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20156 (eval $ac_try) 2>&5
20158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159 (exit $ac_status); }; } &&
20160 { ac_try='test -s conftest.$ac_objext'
20161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20162 (eval $ac_try) 2>&5
20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165 (exit $ac_status); }; }; then
20166 ac_header_compiler=yes
20168 echo "$as_me: failed program was:" >&5
20169 sed 's/^/| /' conftest.$ac_ext >&5
20171 ac_header_compiler=no
20173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20174 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20175 echo "${ECHO_T}$ac_header_compiler" >&6
20177 # Is the header present?
20178 echo "$as_me:$LINENO: checking lber.h presence" >&5
20179 echo $ECHO_N "checking lber.h presence... $ECHO_C" >&6
20180 cat >conftest.$ac_ext <<_ACEOF
20183 cat confdefs.h >>conftest.$ac_ext
20184 cat >>conftest.$ac_ext <<_ACEOF
20185 /* end confdefs.h. */
20188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20189 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20191 grep -v '^ *+' conftest.er1 >conftest.err
20193 cat conftest.err >&5
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); } >/dev/null; then
20196 if test -s conftest.err; then
20197 ac_cpp_err=$ac_c_preproc_warn_flag
20198 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20205 if test -z "$ac_cpp_err"; then
20206 ac_header_preproc=yes
20208 echo "$as_me: failed program was:" >&5
20209 sed 's/^/| /' conftest.$ac_ext >&5
20211 ac_header_preproc=no
20213 rm -f conftest.err conftest.$ac_ext
20214 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20215 echo "${ECHO_T}$ac_header_preproc" >&6
20217 # So? What about this header?
20218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20220 { echo "$as_me:$LINENO: WARNING: lber.h: accepted by the compiler, rejected by the preprocessor!" >&5
20221 echo "$as_me: WARNING: lber.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20222 { echo "$as_me:$LINENO: WARNING: lber.h: proceeding with the compiler's result" >&5
20223 echo "$as_me: WARNING: lber.h: proceeding with the compiler's result" >&2;}
20224 ac_header_preproc=yes
20227 { echo "$as_me:$LINENO: WARNING: lber.h: present but cannot be compiled" >&5
20228 echo "$as_me: WARNING: lber.h: present but cannot be compiled" >&2;}
20229 { echo "$as_me:$LINENO: WARNING: lber.h: check for missing prerequisite headers?" >&5
20230 echo "$as_me: WARNING: lber.h: check for missing prerequisite headers?" >&2;}
20231 { echo "$as_me:$LINENO: WARNING: lber.h: see the Autoconf documentation" >&5
20232 echo "$as_me: WARNING: lber.h: see the Autoconf documentation" >&2;}
20233 { echo "$as_me:$LINENO: WARNING: lber.h: section \"Present But Cannot Be Compiled\"" >&5
20234 echo "$as_me: WARNING: lber.h: section \"Present But Cannot Be Compiled\"" >&2;}
20235 { echo "$as_me:$LINENO: WARNING: lber.h: proceeding with the preprocessor's result" >&5
20236 echo "$as_me: WARNING: lber.h: proceeding with the preprocessor's result" >&2;}
20237 { echo "$as_me:$LINENO: WARNING: lber.h: in the future, the compiler will take precedence" >&5
20238 echo "$as_me: WARNING: lber.h: in the future, the compiler will take precedence" >&2;}
20241 ## ------------------------------------------ ##
20242 ## Report this to the AC_PACKAGE_NAME lists. ##
20243 ## ------------------------------------------ ##
20246 sed "s/^/$as_me: WARNING: /" >&2
20249 echo "$as_me:$LINENO: checking for lber.h" >&5
20250 echo $ECHO_N "checking for lber.h... $ECHO_C" >&6
20251 if test "${ac_cv_header_lber_h+set}" = set; then
20252 echo $ECHO_N "(cached) $ECHO_C" >&6
20254 ac_cv_header_lber_h=$ac_header_preproc
20256 echo "$as_me:$LINENO: result: $ac_cv_header_lber_h" >&5
20257 echo "${ECHO_T}$ac_cv_header_lber_h" >&6
20262 cat >conftest.$ac_ext <<_ACEOF
20265 cat confdefs.h >>conftest.$ac_ext
20266 cat >>conftest.$ac_ext <<_ACEOF
20267 /* end confdefs.h. */
20271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20272 $EGREP "ber_strdup" >/dev/null 2>&1; then
20278 echo " didn't find ber_strdup in lber.h!";
20279 echo " Check for the right version (>= 2.0) of the OpenLDAP includes";
20280 echo " or try --with-ldap-includes option.";
20289 ac_config_files="$ac_config_files Makefile src/Makefile examples/Makefile"
20290 cat >confcache <<\_ACEOF
20291 # This file is a shell script that caches the results of configure
20292 # tests run on this system so they can be shared between configure
20293 # scripts and configure runs, see configure's option --config-cache.
20294 # It is not useful on other systems. If it contains results you don't
20295 # want to keep, you may remove or edit it.
20297 # config.status only pays attention to the cache file if you give it
20298 # the --recheck option to rerun configure.
20300 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20301 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20302 # following values.
20306 # The following way of writing the cache mishandles newlines in values,
20307 # but we know of no workaround that is simple, portable, and efficient.
20308 # So, don't put newlines in cache variables' values.
20309 # Ultrix sh set writes to stderr and can't be redirected directly,
20310 # and sets the high bit in the cache file unless we assign to the vars.
20313 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20315 # `set' does not quote correctly, so add quotes (double-quote
20316 # substitution turns \\\\ into \\, and sed turns \\ into \).
20319 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20322 # `set' quotes correctly as required by POSIX, so do not add quotes.
20324 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20331 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20333 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20335 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20336 if test -w $cache_file; then
20337 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20338 cat confcache >$cache_file
20340 echo "not updating unwritable cache $cache_file"
20345 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20346 # Let make expand exec_prefix.
20347 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20349 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20350 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20351 # trailing colons and then remove the whole line if VPATH becomes empty
20352 # (actually we leave an empty line to preserve line numbers).
20353 if test "x$srcdir" = x.; then
20354 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20355 s/:*\$(srcdir):*/:/;
20356 s/:*\${srcdir}:*/:/;
20358 s/^\([^=]*=[ ]*\):*/\1/;
20364 DEFS=-DHAVE_CONFIG_H
20368 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20369 # 1. Remove the extension, and $U if already installed.
20370 ac_i=`echo "$ac_i" |
20371 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20373 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20374 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20376 LIBOBJS=$ac_libobjs
20378 LTLIBOBJS=$ac_ltlibobjs
20381 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20382 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20383 Usually this means the macro was only invoked conditionally." >&5
20384 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20385 Usually this means the macro was only invoked conditionally." >&2;}
20386 { (exit 1); exit 1; }; }
20388 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20389 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20390 Usually this means the macro was only invoked conditionally." >&5
20391 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20392 Usually this means the macro was only invoked conditionally." >&2;}
20393 { (exit 1); exit 1; }; }
20395 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20396 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20397 Usually this means the macro was only invoked conditionally." >&5
20398 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20399 Usually this means the macro was only invoked conditionally." >&2;}
20400 { (exit 1); exit 1; }; }
20403 : ${CONFIG_STATUS=./config.status}
20404 ac_clean_files_save=$ac_clean_files
20405 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20406 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20407 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20408 cat >$CONFIG_STATUS <<_ACEOF
20410 # Generated by $as_me.
20411 # Run this file to recreate the current configuration.
20412 # Compiler output produced by configure, useful for debugging
20413 # configure, is in config.log if it exists.
20416 ac_cs_recheck=false
20418 SHELL=\${CONFIG_SHELL-$SHELL}
20421 cat >>$CONFIG_STATUS <<\_ACEOF
20422 ## --------------------- ##
20423 ## M4sh Initialization. ##
20424 ## --------------------- ##
20426 # Be Bourne compatible
20427 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20430 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20431 # is contrary to our usage. Disable this feature.
20432 alias -g '${1+"$@"}'='"$@"'
20433 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20436 DUALCASE=1; export DUALCASE # for MKS sh
20438 # Support unset when possible.
20439 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20446 # Work around bugs in pre-3.0 UWIN ksh.
20447 $as_unset ENV MAIL MAILPATH
20454 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20455 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20456 LC_TELEPHONE LC_TIME
20458 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20459 eval $as_var=C; export $as_var
20465 # Required to use basename.
20466 if expr a : '\(a\)' >/dev/null 2>&1; then
20472 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20473 as_basename=basename
20479 # Name of the executable.
20480 as_me=`$as_basename "$0" ||
20481 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20482 X"$0" : 'X\(//\)$' \| \
20483 X"$0" : 'X\(/\)$' \| \
20484 . : '\(.\)' 2>/dev/null ||
20486 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20487 /^X\/\(\/\/\)$/{ s//\1/; q; }
20488 /^X\/\(\/\).*/{ s//\1/; q; }
20492 # PATH needs CR, and LINENO needs CR and PATH.
20493 # Avoid depending upon Character Ranges.
20494 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20495 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20496 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20497 as_cr_digits='0123456789'
20498 as_cr_alnum=$as_cr_Letters$as_cr_digits
20500 # The user is always right.
20501 if test "${PATH_SEPARATOR+set}" != set; then
20502 echo "#! /bin/sh" >conf$$.sh
20503 echo "exit 0" >>conf$$.sh
20505 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20514 as_lineno_1=$LINENO
20515 as_lineno_2=$LINENO
20516 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20517 test "x$as_lineno_1" != "x$as_lineno_2" &&
20518 test "x$as_lineno_3" = "x$as_lineno_2" || {
20519 # Find who we are. Look in the path if we contain no path at all
20522 *[\\/]* ) as_myself=$0 ;;
20523 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20524 for as_dir in $PATH
20527 test -z "$as_dir" && as_dir=.
20528 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20533 # We did not find ourselves, most probably we were run as `sh COMMAND'
20534 # in which case we are not to be found in the path.
20535 if test "x$as_myself" = x; then
20538 if test ! -f "$as_myself"; then
20539 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20540 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20541 { (exit 1); exit 1; }; }
20543 case $CONFIG_SHELL in
20545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20546 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20549 test -z "$as_dir" && as_dir=.
20550 for as_base in sh bash ksh sh5; do
20553 if ("$as_dir/$as_base" -c '
20554 as_lineno_1=$LINENO
20555 as_lineno_2=$LINENO
20556 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20557 test "x$as_lineno_1" != "x$as_lineno_2" &&
20558 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20559 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20560 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20561 CONFIG_SHELL=$as_dir/$as_base
20562 export CONFIG_SHELL
20563 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20571 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20572 # uniformly replaced by the line number. The first 'sed' inserts a
20573 # line-number line before each line; the second 'sed' does the real
20574 # work. The second script uses 'N' to pair each line-number line
20575 # with the numbered line, and appends trailing '-' during
20576 # substitution so that $LINENO is not a special case at line end.
20577 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20578 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20579 sed '=' <$as_myself |
20584 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20587 s,^['$as_cr_digits']*\n,,
20588 ' >$as_me.lineno &&
20589 chmod +x $as_me.lineno ||
20590 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20591 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20592 { (exit 1); exit 1; }; }
20594 # Don't try to exec as it changes $[0], causing all sort of problems
20595 # (the dirname of $[0] is not the place where we might find the
20596 # original and so on. Autoconf is especially sensible to this).
20598 # Exit status is that of the last command.
20603 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20604 *c*,-n*) ECHO_N= ECHO_C='
20606 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20607 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20610 if expr a : '\(a\)' >/dev/null 2>&1; then
20616 rm -f conf$$ conf$$.exe conf$$.file
20618 if ln -s conf$$.file conf$$ 2>/dev/null; then
20619 # We could just check for DJGPP; but this test a) works b) is more generic
20620 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20621 if test -f conf$$.exe; then
20622 # Don't use ln at all; we don't have any links
20627 elif ln conf$$.file conf$$ 2>/dev/null; then
20632 rm -f conf$$ conf$$.exe conf$$.file
20634 if mkdir -p . 2>/dev/null; then
20637 test -d ./-p && rmdir ./-p
20641 as_executable_p="test -f"
20643 # Sed expression to map a string onto a valid CPP name.
20644 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20646 # Sed expression to map a string onto a valid variable name.
20647 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20651 # We need space, tab and new line, in precisely that order.
20661 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20662 # report actual input values of CONFIG_FILES etc. instead of their
20663 # values after options handling. Logging --version etc. is OK.
20667 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20668 ## Running $as_me. ##
20673 This file was extended by $as_me, which was
20674 generated by GNU Autoconf 2.59. Invocation command line was
20676 CONFIG_FILES = $CONFIG_FILES
20677 CONFIG_HEADERS = $CONFIG_HEADERS
20678 CONFIG_LINKS = $CONFIG_LINKS
20679 CONFIG_COMMANDS = $CONFIG_COMMANDS
20683 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20687 # Files that config.status was made for.
20688 if test -n "$ac_config_files"; then
20689 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20692 if test -n "$ac_config_headers"; then
20693 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20696 if test -n "$ac_config_links"; then
20697 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20700 if test -n "$ac_config_commands"; then
20701 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20704 cat >>$CONFIG_STATUS <<\_ACEOF
20707 \`$as_me' instantiates files from templates according to the
20708 current configuration.
20710 Usage: $0 [OPTIONS] [FILE]...
20712 -h, --help print this help, then exit
20713 -V, --version print version number, then exit
20714 -q, --quiet do not print progress messages
20715 -d, --debug don't remove temporary files
20716 --recheck update $as_me by reconfiguring in the same conditions
20717 --file=FILE[:TEMPLATE]
20718 instantiate the configuration file FILE
20719 --header=FILE[:TEMPLATE]
20720 instantiate the configuration header FILE
20722 Configuration files:
20725 Configuration headers:
20728 Configuration commands:
20731 Report bugs to <bug-autoconf@gnu.org>."
20734 cat >>$CONFIG_STATUS <<_ACEOF
20737 configured by $0, generated by GNU Autoconf 2.59,
20738 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20740 Copyright (C) 2003 Free Software Foundation, Inc.
20741 This config.status script is free software; the Free Software Foundation
20742 gives unlimited permission to copy, distribute and modify it."
20747 cat >>$CONFIG_STATUS <<\_ACEOF
20748 # If no file are specified by the user, then we need to provide default
20749 # value. By we need to know if files were specified by the user.
20755 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20756 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20764 *) # This is not an option, so the user has probably given explicit
20767 ac_need_defaults=false;;
20771 # Handling of the options.
20773 cat >>$CONFIG_STATUS <<\_ACEOF
20774 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20776 --version | --vers* | -V )
20777 echo "$ac_cs_version"; exit 0 ;;
20779 # Conflict between --help and --header
20780 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20781 Try \`$0 --help' for more information." >&5
20782 echo "$as_me: error: ambiguous option: $1
20783 Try \`$0 --help' for more information." >&2;}
20784 { (exit 1); exit 1; }; };;
20785 --help | --hel | -h )
20786 echo "$ac_cs_usage"; exit 0 ;;
20787 --debug | --d* | -d )
20789 --file | --fil | --fi | --f )
20791 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20792 ac_need_defaults=false;;
20793 --header | --heade | --head | --hea )
20795 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20796 ac_need_defaults=false;;
20797 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20798 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20801 # This is an error.
20802 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20803 Try \`$0 --help' for more information." >&5
20804 echo "$as_me: error: unrecognized option: $1
20805 Try \`$0 --help' for more information." >&2;}
20806 { (exit 1); exit 1; }; } ;;
20808 *) ac_config_targets="$ac_config_targets $1" ;;
20814 ac_configure_extra_args=
20816 if $ac_cs_silent; then
20818 ac_configure_extra_args="$ac_configure_extra_args --silent"
20822 cat >>$CONFIG_STATUS <<_ACEOF
20823 if \$ac_cs_recheck; then
20824 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20825 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20830 cat >>$CONFIG_STATUS <<_ACEOF
20832 # INIT-COMMANDS section.
20835 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20841 cat >>$CONFIG_STATUS <<\_ACEOF
20842 for ac_config_target in $ac_config_targets
20844 case "$ac_config_target" in
20845 # Handling of arguments.
20846 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20847 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20848 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
20849 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20850 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
20851 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20852 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20853 { (exit 1); exit 1; }; };;
20857 # If the user did not use the arguments to specify the items to instantiate,
20858 # then the envvar interface is used. Set only those that are not.
20859 # We use the long form for the default assignment because of an extremely
20860 # bizarre bug on SunOS 4.1.3.
20861 if $ac_need_defaults; then
20862 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20863 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20864 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20867 # Have a temporary directory for convenience. Make it in the build tree
20868 # simply because there is no reason to put it here, and in addition,
20869 # creating and moving files from /tmp can sometimes cause problems.
20870 # Create a temporary directory, and hook for its removal unless debugging.
20873 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20874 trap '{ (exit 1); exit 1; }' 1 2 13 15
20877 # Create a (secure) tmp directory for tmp files.
20880 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20881 test -n "$tmp" && test -d "$tmp"
20884 tmp=./confstat$$-$RANDOM
20885 (umask 077 && mkdir $tmp)
20888 echo "$me: cannot create a temporary directory in ." >&2
20889 { (exit 1); exit 1; }
20894 cat >>$CONFIG_STATUS <<_ACEOF
20897 # CONFIG_FILES section.
20900 # No need to generate the scripts if there are no CONFIG_FILES.
20901 # This happens for instance when ./config.status config.h
20902 if test -n "\$CONFIG_FILES"; then
20903 # Protect against being on the right side of a sed subst in config.status.
20904 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20905 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20906 s,@SHELL@,$SHELL,;t t
20907 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20908 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20909 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20910 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20911 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20912 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20913 s,@exec_prefix@,$exec_prefix,;t t
20914 s,@prefix@,$prefix,;t t
20915 s,@program_transform_name@,$program_transform_name,;t t
20916 s,@bindir@,$bindir,;t t
20917 s,@sbindir@,$sbindir,;t t
20918 s,@libexecdir@,$libexecdir,;t t
20919 s,@datadir@,$datadir,;t t
20920 s,@sysconfdir@,$sysconfdir,;t t
20921 s,@sharedstatedir@,$sharedstatedir,;t t
20922 s,@localstatedir@,$localstatedir,;t t
20923 s,@libdir@,$libdir,;t t
20924 s,@includedir@,$includedir,;t t
20925 s,@oldincludedir@,$oldincludedir,;t t
20926 s,@infodir@,$infodir,;t t
20927 s,@mandir@,$mandir,;t t
20928 s,@build_alias@,$build_alias,;t t
20929 s,@host_alias@,$host_alias,;t t
20930 s,@target_alias@,$target_alias,;t t
20931 s,@DEFS@,$DEFS,;t t
20932 s,@ECHO_C@,$ECHO_C,;t t
20933 s,@ECHO_N@,$ECHO_N,;t t
20934 s,@ECHO_T@,$ECHO_T,;t t
20935 s,@LIBS@,$LIBS,;t t
20936 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20937 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20938 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20939 s,@CYGPATH_W@,$CYGPATH_W,;t t
20940 s,@PACKAGE@,$PACKAGE,;t t
20941 s,@VERSION@,$VERSION,;t t
20942 s,@ACLOCAL@,$ACLOCAL,;t t
20943 s,@AUTOCONF@,$AUTOCONF,;t t
20944 s,@AUTOMAKE@,$AUTOMAKE,;t t
20945 s,@AUTOHEADER@,$AUTOHEADER,;t t
20946 s,@MAKEINFO@,$MAKEINFO,;t t
20947 s,@install_sh@,$install_sh,;t t
20948 s,@STRIP@,$STRIP,;t t
20949 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20950 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20951 s,@mkdir_p@,$mkdir_p,;t t
20953 s,@SET_MAKE@,$SET_MAKE,;t t
20954 s,@am__leading_dot@,$am__leading_dot,;t t
20955 s,@AMTAR@,$AMTAR,;t t
20956 s,@am__tar@,$am__tar,;t t
20957 s,@am__untar@,$am__untar,;t t
20959 s,@CXXFLAGS@,$CXXFLAGS,;t t
20960 s,@LDFLAGS@,$LDFLAGS,;t t
20961 s,@CPPFLAGS@,$CPPFLAGS,;t t
20962 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20963 s,@EXEEXT@,$EXEEXT,;t t
20964 s,@OBJEXT@,$OBJEXT,;t t
20965 s,@DEPDIR@,$DEPDIR,;t t
20966 s,@am__include@,$am__include,;t t
20967 s,@am__quote@,$am__quote,;t t
20968 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20969 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20970 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20971 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20972 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20973 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20974 s,@build@,$build,;t t
20975 s,@build_cpu@,$build_cpu,;t t
20976 s,@build_vendor@,$build_vendor,;t t
20977 s,@build_os@,$build_os,;t t
20978 s,@host@,$host,;t t
20979 s,@host_cpu@,$host_cpu,;t t
20980 s,@host_vendor@,$host_vendor,;t t
20981 s,@host_os@,$host_os,;t t
20983 s,@CFLAGS@,$CFLAGS,;t t
20984 s,@ac_ct_CC@,$ac_ct_CC,;t t
20985 s,@CCDEPMODE@,$CCDEPMODE,;t t
20986 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20987 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20988 s,@EGREP@,$EGREP,;t t
20989 s,@LN_S@,$LN_S,;t t
20990 s,@ECHO@,$ECHO,;t t
20992 s,@ac_ct_AR@,$ac_ct_AR,;t t
20993 s,@RANLIB@,$RANLIB,;t t
20994 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20996 s,@CXXCPP@,$CXXCPP,;t t
20998 s,@FFLAGS@,$FFLAGS,;t t
20999 s,@ac_ct_F77@,$ac_ct_F77,;t t
21000 s,@LIBTOOL@,$LIBTOOL,;t t
21001 s,@LIBOBJS@,$LIBOBJS,;t t
21002 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21007 cat >>$CONFIG_STATUS <<\_ACEOF
21008 # Split the substitutions into bite-sized pieces for seds with
21009 # small command number limits, like on Digital OSF/1 and HP-UX.
21010 ac_max_sed_lines=48
21011 ac_sed_frag=1 # Number of current file.
21012 ac_beg=1 # First line for current file.
21013 ac_end=$ac_max_sed_lines # Line after last line for current file.
21016 while $ac_more_lines; do
21017 if test $ac_beg -gt 1; then
21018 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21020 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21022 if test ! -s $tmp/subs.frag; then
21023 ac_more_lines=false
21025 # The purpose of the label and of the branching condition is to
21026 # speed up the sed processing (if there are no `@' at all, there
21027 # is no need to browse any of the substitutions).
21028 # These are the two extra sed commands mentioned above.
21030 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21031 if test -z "$ac_sed_cmds"; then
21032 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21034 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21036 ac_sed_frag=`expr $ac_sed_frag + 1`
21038 ac_end=`expr $ac_end + $ac_max_sed_lines`
21041 if test -z "$ac_sed_cmds"; then
21044 fi # test -n "$CONFIG_FILES"
21047 cat >>$CONFIG_STATUS <<\_ACEOF
21048 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21049 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21051 - | *:- | *:-:* ) # input from stdin
21053 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21054 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21055 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21056 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21057 * ) ac_file_in=$ac_file.in ;;
21060 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21061 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21062 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21063 X"$ac_file" : 'X\(//\)[^/]' \| \
21064 X"$ac_file" : 'X\(//\)$' \| \
21065 X"$ac_file" : 'X\(/\)' \| \
21066 . : '\(.\)' 2>/dev/null ||
21068 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21069 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21070 /^X\(\/\/\)$/{ s//\1/; q; }
21071 /^X\(\/\).*/{ s//\1/; q; }
21073 { if $as_mkdir_p; then
21078 while test ! -d "$as_dir"; do
21079 as_dirs="$as_dir $as_dirs"
21080 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21081 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21082 X"$as_dir" : 'X\(//\)[^/]' \| \
21083 X"$as_dir" : 'X\(//\)$' \| \
21084 X"$as_dir" : 'X\(/\)' \| \
21085 . : '\(.\)' 2>/dev/null ||
21087 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21088 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21089 /^X\(\/\/\)$/{ s//\1/; q; }
21090 /^X\(\/\).*/{ s//\1/; q; }
21093 test ! -n "$as_dirs" || mkdir $as_dirs
21094 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21095 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21096 { (exit 1); exit 1; }; }; }
21100 if test "$ac_dir" != .; then
21101 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21102 # A "../" for each directory in $ac_dir_suffix.
21103 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21105 ac_dir_suffix= ac_top_builddir=
21109 .) # No --srcdir option. We are building in place.
21111 if test -z "$ac_top_builddir"; then
21114 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21116 [\\/]* | ?:[\\/]* ) # Absolute path.
21117 ac_srcdir=$srcdir$ac_dir_suffix;
21118 ac_top_srcdir=$srcdir ;;
21119 *) # Relative path.
21120 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21121 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21124 # Do not use `cd foo && pwd` to compute absolute paths, because
21125 # the directories may not exist.
21127 .) ac_abs_builddir="$ac_dir";;
21130 .) ac_abs_builddir=`pwd`;;
21131 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21132 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21135 case $ac_abs_builddir in
21136 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21138 case ${ac_top_builddir}. in
21139 .) ac_abs_top_builddir=$ac_abs_builddir;;
21140 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21141 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21144 case $ac_abs_builddir in
21145 .) ac_abs_srcdir=$ac_srcdir;;
21148 .) ac_abs_srcdir=$ac_abs_builddir;;
21149 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21150 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21153 case $ac_abs_builddir in
21154 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21156 case $ac_top_srcdir in
21157 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21158 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21159 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21165 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21166 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21169 if test x"$ac_file" != x-; then
21170 { echo "$as_me:$LINENO: creating $ac_file" >&5
21171 echo "$as_me: creating $ac_file" >&6;}
21174 # Let's still pretend it is `configure' which instantiates (i.e., don't
21175 # use $as_me), people would be surprised to read:
21176 # /* config.h. Generated by config.status. */
21177 if test x"$ac_file" = x-; then
21180 configure_input="$ac_file. "
21182 configure_input=$configure_input"Generated from `echo $ac_file_in |
21183 sed 's,.*/,,'` by configure."
21185 # First look for the input files in the build tree, otherwise in the
21187 ac_file_inputs=`IFS=:
21188 for f in $ac_file_in; do
21190 -) echo $tmp/stdin ;;
21192 # Absolute (can't be DOS-style, as IFS=:)
21193 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21194 echo "$as_me: error: cannot find input file: $f" >&2;}
21195 { (exit 1); exit 1; }; }
21198 if test -f "$f"; then
21201 elif test -f "$srcdir/$f"; then
21206 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21207 echo "$as_me: error: cannot find input file: $f" >&2;}
21208 { (exit 1); exit 1; }; }
21211 done` || { (exit 1); exit 1; }
21213 cat >>$CONFIG_STATUS <<_ACEOF
21217 cat >>$CONFIG_STATUS <<\_ACEOF
21219 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21220 s,@configure_input@,$configure_input,;t t
21221 s,@srcdir@,$ac_srcdir,;t t
21222 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21223 s,@top_srcdir@,$ac_top_srcdir,;t t
21224 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21225 s,@builddir@,$ac_builddir,;t t
21226 s,@abs_builddir@,$ac_abs_builddir,;t t
21227 s,@top_builddir@,$ac_top_builddir,;t t
21228 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21229 s,@INSTALL@,$ac_INSTALL,;t t
21230 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21232 if test x"$ac_file" != x-; then
21233 mv $tmp/out $ac_file
21241 cat >>$CONFIG_STATUS <<\_ACEOF
21244 # CONFIG_HEADER section.
21247 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21248 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21250 # ac_d sets the value in "#define NAME VALUE" lines.
21251 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21252 ac_dB='[ ].*$,\1#\2'
21255 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21256 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21257 ac_uB='$,\1#\2define\3'
21261 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21262 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21264 - | *:- | *:-:* ) # input from stdin
21266 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21267 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21268 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21269 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21270 * ) ac_file_in=$ac_file.in ;;
21273 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21274 echo "$as_me: creating $ac_file" >&6;}
21276 # First look for the input files in the build tree, otherwise in the
21278 ac_file_inputs=`IFS=:
21279 for f in $ac_file_in; do
21281 -) echo $tmp/stdin ;;
21283 # Absolute (can't be DOS-style, as IFS=:)
21284 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21285 echo "$as_me: error: cannot find input file: $f" >&2;}
21286 { (exit 1); exit 1; }; }
21287 # Do quote $f, to prevent DOS paths from being IFS'd.
21290 if test -f "$f"; then
21293 elif test -f "$srcdir/$f"; then
21298 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21299 echo "$as_me: error: cannot find input file: $f" >&2;}
21300 { (exit 1); exit 1; }; }
21303 done` || { (exit 1); exit 1; }
21304 # Remove the trailing spaces.
21305 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21309 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21310 # `conftest.undefs', that substitutes the proper values into
21311 # config.h.in to produce config.h. The first handles `#define'
21312 # templates, and the second `#undef' templates.
21313 # And first: Protect against being on the right side of a sed subst in
21314 # config.status. Protect against being in an unquoted here document
21315 # in config.status.
21316 rm -f conftest.defines conftest.undefs
21317 # Using a here document instead of a string reduces the quoting nightmare.
21318 # Putting comments in sed scripts is not portable.
21320 # `end' is used to avoid that the second main sed command (meant for
21321 # 0-ary CPP macros) applies to n-ary macro definitions.
21322 # See the Autoconf documentation for `clear'.
21323 cat >confdef2sed.sed <<\_ACEOF
21328 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21330 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21333 # If some macros were called several times there might be several times
21334 # the same #defines, which is useless. Nevertheless, we may not want to
21335 # sort them, since we want the *last* AC-DEFINE to be honored.
21336 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21337 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21338 rm -f confdef2sed.sed
21340 # This sed command replaces #undef with comments. This is necessary, for
21341 # example, in the case of _POSIX_SOURCE, which is predefined and required
21342 # on some systems where configure will not decide to define it.
21343 cat >>conftest.undefs <<\_ACEOF
21344 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21347 # Break up conftest.defines because some shells have a limit on the size
21348 # of here documents, and old seds have small limits too (100 cmds).
21349 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21350 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21351 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21352 echo ' :' >>$CONFIG_STATUS
21353 rm -f conftest.tail
21354 while grep . conftest.defines >/dev/null
21356 # Write a limited-size here document to $tmp/defines.sed.
21357 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21358 # Speed up: don't consider the non `#define' lines.
21359 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21360 # Work around the forget-to-reset-the-flag bug.
21361 echo 't clr' >>$CONFIG_STATUS
21362 echo ': clr' >>$CONFIG_STATUS
21363 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21365 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21367 mv $tmp/out $tmp/in
21369 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21370 rm -f conftest.defines
21371 mv conftest.tail conftest.defines
21373 rm -f conftest.defines
21374 echo ' fi # grep' >>$CONFIG_STATUS
21375 echo >>$CONFIG_STATUS
21377 # Break up conftest.undefs because some shells have a limit on the size
21378 # of here documents, and old seds have small limits too (100 cmds).
21379 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21380 rm -f conftest.tail
21381 while grep . conftest.undefs >/dev/null
21383 # Write a limited-size here document to $tmp/undefs.sed.
21384 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21385 # Speed up: don't consider the non `#undef'
21386 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21387 # Work around the forget-to-reset-the-flag bug.
21388 echo 't clr' >>$CONFIG_STATUS
21389 echo ': clr' >>$CONFIG_STATUS
21390 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21392 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21394 mv $tmp/out $tmp/in
21396 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21397 rm -f conftest.undefs
21398 mv conftest.tail conftest.undefs
21400 rm -f conftest.undefs
21402 cat >>$CONFIG_STATUS <<\_ACEOF
21403 # Let's still pretend it is `configure' which instantiates (i.e., don't
21404 # use $as_me), people would be surprised to read:
21405 # /* config.h. Generated by config.status. */
21406 if test x"$ac_file" = x-; then
21407 echo "/* Generated by configure. */" >$tmp/config.h
21409 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21411 cat $tmp/in >>$tmp/config.h
21413 if test x"$ac_file" != x-; then
21414 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21415 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21416 echo "$as_me: $ac_file is unchanged" >&6;}
21418 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21419 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21420 X"$ac_file" : 'X\(//\)[^/]' \| \
21421 X"$ac_file" : 'X\(//\)$' \| \
21422 X"$ac_file" : 'X\(/\)' \| \
21423 . : '\(.\)' 2>/dev/null ||
21425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21426 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21427 /^X\(\/\/\)$/{ s//\1/; q; }
21428 /^X\(\/\).*/{ s//\1/; q; }
21430 { if $as_mkdir_p; then
21435 while test ! -d "$as_dir"; do
21436 as_dirs="$as_dir $as_dirs"
21437 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21438 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21439 X"$as_dir" : 'X\(//\)[^/]' \| \
21440 X"$as_dir" : 'X\(//\)$' \| \
21441 X"$as_dir" : 'X\(/\)' \| \
21442 . : '\(.\)' 2>/dev/null ||
21444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21445 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21446 /^X\(\/\/\)$/{ s//\1/; q; }
21447 /^X\(\/\).*/{ s//\1/; q; }
21450 test ! -n "$as_dirs" || mkdir $as_dirs
21451 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21452 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21453 { (exit 1); exit 1; }; }; }
21456 mv $tmp/config.h $ac_file
21460 rm -f $tmp/config.h
21462 # Compute $ac_file's index in $config_headers.
21464 for _am_header in $config_headers :; do
21465 case $_am_header in
21466 $ac_file | $ac_file:* )
21469 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21472 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21473 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21474 X$ac_file : 'X\(//\)[^/]' \| \
21475 X$ac_file : 'X\(//\)$' \| \
21476 X$ac_file : 'X\(/\)' \| \
21477 . : '\(.\)' 2>/dev/null ||
21479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21480 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21481 /^X\(\/\/\)$/{ s//\1/; q; }
21482 /^X\(\/\).*/{ s//\1/; q; }
21483 s/.*/./; q'`/stamp-h$_am_stamp_count
21486 cat >>$CONFIG_STATUS <<\_ACEOF
21489 # CONFIG_COMMANDS section.
21491 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21492 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21493 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21494 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21495 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21496 X"$ac_dest" : 'X\(//\)[^/]' \| \
21497 X"$ac_dest" : 'X\(//\)$' \| \
21498 X"$ac_dest" : 'X\(/\)' \| \
21499 . : '\(.\)' 2>/dev/null ||
21501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21502 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21503 /^X\(\/\/\)$/{ s//\1/; q; }
21504 /^X\(\/\).*/{ s//\1/; q; }
21506 { if $as_mkdir_p; then
21511 while test ! -d "$as_dir"; do
21512 as_dirs="$as_dir $as_dirs"
21513 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21514 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21515 X"$as_dir" : 'X\(//\)[^/]' \| \
21516 X"$as_dir" : 'X\(//\)$' \| \
21517 X"$as_dir" : 'X\(/\)' \| \
21518 . : '\(.\)' 2>/dev/null ||
21520 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21521 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21522 /^X\(\/\/\)$/{ s//\1/; q; }
21523 /^X\(\/\).*/{ s//\1/; q; }
21526 test ! -n "$as_dirs" || mkdir $as_dirs
21527 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21528 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21529 { (exit 1); exit 1; }; }; }
21533 if test "$ac_dir" != .; then
21534 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21535 # A "../" for each directory in $ac_dir_suffix.
21536 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21538 ac_dir_suffix= ac_top_builddir=
21542 .) # No --srcdir option. We are building in place.
21544 if test -z "$ac_top_builddir"; then
21547 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21549 [\\/]* | ?:[\\/]* ) # Absolute path.
21550 ac_srcdir=$srcdir$ac_dir_suffix;
21551 ac_top_srcdir=$srcdir ;;
21552 *) # Relative path.
21553 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21554 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21557 # Do not use `cd foo && pwd` to compute absolute paths, because
21558 # the directories may not exist.
21560 .) ac_abs_builddir="$ac_dir";;
21563 .) ac_abs_builddir=`pwd`;;
21564 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21565 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21568 case $ac_abs_builddir in
21569 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21571 case ${ac_top_builddir}. in
21572 .) ac_abs_top_builddir=$ac_abs_builddir;;
21573 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21574 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21577 case $ac_abs_builddir in
21578 .) ac_abs_srcdir=$ac_srcdir;;
21581 .) ac_abs_srcdir=$ac_abs_builddir;;
21582 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21583 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21586 case $ac_abs_builddir in
21587 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21589 case $ac_top_srcdir in
21590 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21591 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21592 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21597 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21598 echo "$as_me: executing $ac_dest commands" >&6;}
21600 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21601 # Strip MF so we end up with the name of the file.
21602 mf=`echo "$mf" | sed -e 's/:.*$//'`
21603 # Check whether this is an Automake generated Makefile or not.
21604 # We used to match only the files named `Makefile.in', but
21605 # some people rename them; so instead we look at the file content.
21606 # Grep'ing the first line is not enough: some people post-process
21607 # each Makefile.in and add a new line on top of each file to say so.
21608 # So let's grep whole file.
21609 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21610 dirpart=`(dirname "$mf") 2>/dev/null ||
21611 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21612 X"$mf" : 'X\(//\)[^/]' \| \
21613 X"$mf" : 'X\(//\)$' \| \
21614 X"$mf" : 'X\(/\)' \| \
21615 . : '\(.\)' 2>/dev/null ||
21617 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21618 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21619 /^X\(\/\/\)$/{ s//\1/; q; }
21620 /^X\(\/\).*/{ s//\1/; q; }
21625 # Extract the definition of DEPDIR, am__include, and am__quote
21626 # from the Makefile without running `make'.
21627 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21628 test -z "$DEPDIR" && continue
21629 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21630 test -z "am__include" && continue
21631 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21632 # When using ansi2knr, U may be empty or an underscore; expand it
21633 U=`sed -n 's/^U = //p' < "$mf"`
21634 # Find all dependency output files, they are included files with
21635 # $(DEPDIR) in their names. We invoke sed twice because it is the
21636 # simplest approach to changing $(DEPDIR) to its actual value in the
21638 for file in `sed -n "
21639 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21640 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21641 # Make sure the directory exists.
21642 test -f "$dirpart/$file" && continue
21643 fdir=`(dirname "$file") 2>/dev/null ||
21644 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21645 X"$file" : 'X\(//\)[^/]' \| \
21646 X"$file" : 'X\(//\)$' \| \
21647 X"$file" : 'X\(/\)' \| \
21648 . : '\(.\)' 2>/dev/null ||
21650 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21651 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21652 /^X\(\/\/\)$/{ s//\1/; q; }
21653 /^X\(\/\).*/{ s//\1/; q; }
21655 { if $as_mkdir_p; then
21656 mkdir -p $dirpart/$fdir
21658 as_dir=$dirpart/$fdir
21660 while test ! -d "$as_dir"; do
21661 as_dirs="$as_dir $as_dirs"
21662 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21663 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21664 X"$as_dir" : 'X\(//\)[^/]' \| \
21665 X"$as_dir" : 'X\(//\)$' \| \
21666 X"$as_dir" : 'X\(/\)' \| \
21667 . : '\(.\)' 2>/dev/null ||
21669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21670 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21671 /^X\(\/\/\)$/{ s//\1/; q; }
21672 /^X\(\/\).*/{ s//\1/; q; }
21675 test ! -n "$as_dirs" || mkdir $as_dirs
21676 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21677 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21678 { (exit 1); exit 1; }; }; }
21680 # echo "creating $dirpart/$file"
21681 echo '# dummy' > "$dirpart/$file"
21689 cat >>$CONFIG_STATUS <<\_ACEOF
21691 { (exit 0); exit 0; }
21693 chmod +x $CONFIG_STATUS
21694 ac_clean_files=$ac_clean_files_save
21697 # configure is writing to config.log, and then calls config.status.
21698 # config.status does its own redirection, appending to config.log.
21699 # Unfortunately, on DOS this fails, as config.log is still kept open
21700 # by configure, so config.status won't be able to write to it; its
21701 # output is simply discarded. So we exec the FD to /dev/null,
21702 # effectively closing config.log, so it can be properly (re)opened and
21703 # appended to by config.status. When coming back to configure, we
21704 # need to make the FD available again.
21705 if test "$no_create" != yes; then
21707 ac_config_status_args=
21708 test "$silent" = yes &&
21709 ac_config_status_args="$ac_config_status_args --quiet"
21711 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21713 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21714 # would make configure fail if this is the last instruction.
21715 $ac_cs_success || { (exit 1); exit 1; }