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 # Factoring default headers for most tests.
429 ac_includes_default="\
432 # include <sys/types.h>
435 # include <sys/stat.h>
446 # if !STDC_HEADERS && HAVE_MEMORY_H
452 # include <strings.h>
455 # include <inttypes.h>
465 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS SPL_META_NAME SPL_META_VERSION SPL_META_RELEASE SPL_META_ALIAS SPL_META_DATA SPL_META_AUTHOR SPL_META_LT_CURRENT SPL_META_LT_REVISION SPL_META_LT_AGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE SED EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LINUX LINUX_OBJ LINUX_VERSION KERNELMAKE_PARAMS KERNELCPPFLAGS KERNELCFLAGS LIBOBJS LTLIBOBJS'
468 # Initialize some variables set by options.
470 ac_init_version=false
471 # The variables have the same names as the options, with
472 # dashes changed to underlines.
480 program_transform_name=s,x,x,
488 # Installation directory options.
489 # These are left unexpanded so users can "make install exec_prefix=/foo"
490 # and all the variables that are supposed to be based on exec_prefix
491 # by default will actually change.
492 # Use braces instead of parens because sh, perl, etc. also accept them.
493 bindir='${exec_prefix}/bin'
494 sbindir='${exec_prefix}/sbin'
495 libexecdir='${exec_prefix}/libexec'
496 datadir='${prefix}/share'
497 sysconfdir='${prefix}/etc'
498 sharedstatedir='${prefix}/com'
499 localstatedir='${prefix}/var'
500 libdir='${exec_prefix}/lib'
501 includedir='${prefix}/include'
502 oldincludedir='/usr/include'
503 infodir='${prefix}/info'
504 mandir='${prefix}/man'
509 # If the previous option needs an argument, assign it.
510 if test -n "$ac_prev"; then
511 eval "$ac_prev=\$ac_option"
516 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518 # Accept the important Cygnus configure options, so we can diagnose typos.
522 -bindir | --bindir | --bindi | --bind | --bin | --bi)
524 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527 -build | --build | --buil | --bui | --bu)
528 ac_prev=build_alias ;;
529 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
530 build_alias=$ac_optarg ;;
532 -cache-file | --cache-file | --cache-fil | --cache-fi \
533 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
534 ac_prev=cache_file ;;
535 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
536 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
537 cache_file=$ac_optarg ;;
540 cache_file=config.cache ;;
542 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546 datadir=$ac_optarg ;;
548 -disable-* | --disable-*)
549 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
550 # Reject names that are not valid shell variable names.
551 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
552 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
553 { (exit 1); exit 1; }; }
554 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
555 eval "enable_$ac_feature=no" ;;
557 -enable-* | --enable-*)
558 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
559 # Reject names that are not valid shell variable names.
560 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
561 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
562 { (exit 1); exit 1; }; }
563 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568 eval "enable_$ac_feature='$ac_optarg'" ;;
570 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
571 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
572 | --exec | --exe | --ex)
573 ac_prev=exec_prefix ;;
574 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
575 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
576 | --exec=* | --exe=* | --ex=*)
577 exec_prefix=$ac_optarg ;;
579 -gas | --gas | --ga | --g)
580 # Obsolete; use --with-gas.
583 -help | --help | --hel | --he | -h)
585 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
586 ac_init_help=recursive ;;
587 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
588 ac_init_help=short ;;
590 -host | --host | --hos | --ho)
591 ac_prev=host_alias ;;
592 -host=* | --host=* | --hos=* | --ho=*)
593 host_alias=$ac_optarg ;;
595 -includedir | --includedir | --includedi | --included | --include \
596 | --includ | --inclu | --incl | --inc)
597 ac_prev=includedir ;;
598 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
599 | --includ=* | --inclu=* | --incl=* | --inc=*)
600 includedir=$ac_optarg ;;
602 -infodir | --infodir | --infodi | --infod | --info | --inf)
604 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
605 infodir=$ac_optarg ;;
607 -libdir | --libdir | --libdi | --libd)
609 -libdir=* | --libdir=* | --libdi=* | --libd=*)
612 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
613 | --libexe | --libex | --libe)
614 ac_prev=libexecdir ;;
615 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
616 | --libexe=* | --libex=* | --libe=*)
617 libexecdir=$ac_optarg ;;
619 -localstatedir | --localstatedir | --localstatedi | --localstated \
620 | --localstate | --localstat | --localsta | --localst \
621 | --locals | --local | --loca | --loc | --lo)
622 ac_prev=localstatedir ;;
623 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
624 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
625 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
626 localstatedir=$ac_optarg ;;
628 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634 # Obsolete; use --without-fp.
637 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
638 | --no-cr | --no-c | -n)
641 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
642 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
646 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
647 | --oldin | --oldi | --old | --ol | --o)
648 ac_prev=oldincludedir ;;
649 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
650 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
651 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
652 oldincludedir=$ac_optarg ;;
654 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659 -program-prefix | --program-prefix | --program-prefi | --program-pref \
660 | --program-pre | --program-pr | --program-p)
661 ac_prev=program_prefix ;;
662 -program-prefix=* | --program-prefix=* | --program-prefi=* \
663 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
664 program_prefix=$ac_optarg ;;
666 -program-suffix | --program-suffix | --program-suffi | --program-suff \
667 | --program-suf | --program-su | --program-s)
668 ac_prev=program_suffix ;;
669 -program-suffix=* | --program-suffix=* | --program-suffi=* \
670 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
671 program_suffix=$ac_optarg ;;
673 -program-transform-name | --program-transform-name \
674 | --program-transform-nam | --program-transform-na \
675 | --program-transform-n | --program-transform- \
676 | --program-transform | --program-transfor \
677 | --program-transfo | --program-transf \
678 | --program-trans | --program-tran \
679 | --progr-tra | --program-tr | --program-t)
680 ac_prev=program_transform_name ;;
681 -program-transform-name=* | --program-transform-name=* \
682 | --program-transform-nam=* | --program-transform-na=* \
683 | --program-transform-n=* | --program-transform-=* \
684 | --program-transform=* | --program-transfor=* \
685 | --program-transfo=* | --program-transf=* \
686 | --program-trans=* | --program-tran=* \
687 | --progr-tra=* | --program-tr=* | --program-t=*)
688 program_transform_name=$ac_optarg ;;
690 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
691 | -silent | --silent | --silen | --sile | --sil)
694 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698 sbindir=$ac_optarg ;;
700 -sharedstatedir | --sharedstatedir | --sharedstatedi \
701 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
702 | --sharedst | --shareds | --shared | --share | --shar \
704 ac_prev=sharedstatedir ;;
705 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
706 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
707 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709 sharedstatedir=$ac_optarg ;;
711 -site | --site | --sit)
713 -site=* | --site=* | --sit=*)
716 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
722 | --syscon | --sysco | --sysc | --sys | --sy)
723 ac_prev=sysconfdir ;;
724 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
725 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
726 sysconfdir=$ac_optarg ;;
728 -target | --target | --targe | --targ | --tar | --ta | --t)
729 ac_prev=target_alias ;;
730 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
731 target_alias=$ac_optarg ;;
733 -v | -verbose | --verbose | --verbos | --verbo | --verb)
736 -version | --version | --versio | --versi | --vers | -V)
740 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
741 # Reject names that are not valid shell variable names.
742 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
743 { echo "$as_me: error: invalid package name: $ac_package" >&2
744 { (exit 1); exit 1; }; }
745 ac_package=`echo $ac_package| sed 's/-/_/g'`
747 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750 eval "with_$ac_package='$ac_optarg'" ;;
752 -without-* | --without-*)
753 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
754 # Reject names that are not valid shell variable names.
755 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
756 { echo "$as_me: error: invalid package name: $ac_package" >&2
757 { (exit 1); exit 1; }; }
758 ac_package=`echo $ac_package | sed 's/-/_/g'`
759 eval "with_$ac_package=no" ;;
762 # Obsolete; use --with-x.
765 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
766 | --x-incl | --x-inc | --x-in | --x-i)
767 ac_prev=x_includes ;;
768 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
769 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
770 x_includes=$ac_optarg ;;
772 -x-libraries | --x-libraries | --x-librarie | --x-librari \
773 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
774 ac_prev=x_libraries ;;
775 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
776 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
777 x_libraries=$ac_optarg ;;
779 -*) { echo "$as_me: error: unrecognized option: $ac_option
780 Try \`$0 --help' for more information." >&2
781 { (exit 1); exit 1; }; }
785 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
786 # Reject names that are not valid shell variable names.
787 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
788 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
789 { (exit 1); exit 1; }; }
790 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
791 eval "$ac_envvar='$ac_optarg'"
795 # FIXME: should be removed in autoconf 3.0.
796 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
797 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
798 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
799 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
805 if test -n "$ac_prev"; then
806 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
807 { echo "$as_me: error: missing argument to $ac_option" >&2
808 { (exit 1); exit 1; }; }
811 # Be sure to have absolute paths.
812 for ac_var in exec_prefix prefix
814 eval ac_val=$`echo $ac_var`
816 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
817 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
818 { (exit 1); exit 1; }; };;
822 # Be sure to have absolute paths.
823 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
824 localstatedir libdir includedir oldincludedir infodir mandir
826 eval ac_val=$`echo $ac_var`
828 [\\/$]* | ?:[\\/]* ) ;;
829 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
830 { (exit 1); exit 1; }; };;
834 # There might be people who depend on the old broken behavior: `$host'
835 # used to hold the argument of --host etc.
836 # FIXME: To remove some day.
841 # FIXME: To remove some day.
842 if test "x$host_alias" != x; then
843 if test "x$build_alias" = x; then
844 cross_compiling=maybe
845 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
846 If a cross compiler is detected then cross compile mode will be used." >&2
847 elif test "x$build_alias" != "x$host_alias"; then
853 test -n "$host_alias" && ac_tool_prefix=$host_alias-
855 test "$silent" = yes && exec 6>/dev/null
858 # Find the source files, if location was not specified.
859 if test -z "$srcdir"; then
860 ac_srcdir_defaulted=yes
861 # Try the directory containing this script, then its parent.
862 ac_confdir=`(dirname "$0") 2>/dev/null ||
863 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
864 X"$0" : 'X\(//\)[^/]' \| \
865 X"$0" : 'X\(//\)$' \| \
866 X"$0" : 'X\(/\)' \| \
867 . : '\(.\)' 2>/dev/null ||
869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
870 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
871 /^X\(\/\/\)$/{ s//\1/; q; }
872 /^X\(\/\).*/{ s//\1/; q; }
875 if test ! -r $srcdir/$ac_unique_file; then
879 ac_srcdir_defaulted=no
881 if test ! -r $srcdir/$ac_unique_file; then
882 if test "$ac_srcdir_defaulted" = yes; then
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
884 { (exit 1); exit 1; }; }
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
887 { (exit 1); exit 1; }; }
890 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
891 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
892 { (exit 1); exit 1; }; }
893 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
894 ac_env_build_alias_set=${build_alias+set}
895 ac_env_build_alias_value=$build_alias
896 ac_cv_env_build_alias_set=${build_alias+set}
897 ac_cv_env_build_alias_value=$build_alias
898 ac_env_host_alias_set=${host_alias+set}
899 ac_env_host_alias_value=$host_alias
900 ac_cv_env_host_alias_set=${host_alias+set}
901 ac_cv_env_host_alias_value=$host_alias
902 ac_env_target_alias_set=${target_alias+set}
903 ac_env_target_alias_value=$target_alias
904 ac_cv_env_target_alias_set=${target_alias+set}
905 ac_cv_env_target_alias_value=$target_alias
906 ac_env_CC_set=${CC+set}
908 ac_cv_env_CC_set=${CC+set}
909 ac_cv_env_CC_value=$CC
910 ac_env_CFLAGS_set=${CFLAGS+set}
911 ac_env_CFLAGS_value=$CFLAGS
912 ac_cv_env_CFLAGS_set=${CFLAGS+set}
913 ac_cv_env_CFLAGS_value=$CFLAGS
914 ac_env_LDFLAGS_set=${LDFLAGS+set}
915 ac_env_LDFLAGS_value=$LDFLAGS
916 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_cv_env_LDFLAGS_value=$LDFLAGS
918 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
919 ac_env_CPPFLAGS_value=$CPPFLAGS
920 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
922 ac_env_CPP_set=${CPP+set}
923 ac_env_CPP_value=$CPP
924 ac_cv_env_CPP_set=${CPP+set}
925 ac_cv_env_CPP_value=$CPP
926 ac_env_CXX_set=${CXX+set}
927 ac_env_CXX_value=$CXX
928 ac_cv_env_CXX_set=${CXX+set}
929 ac_cv_env_CXX_value=$CXX
930 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
931 ac_env_CXXFLAGS_value=$CXXFLAGS
932 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
934 ac_env_CXXCPP_set=${CXXCPP+set}
935 ac_env_CXXCPP_value=$CXXCPP
936 ac_cv_env_CXXCPP_set=${CXXCPP+set}
937 ac_cv_env_CXXCPP_value=$CXXCPP
938 ac_env_F77_set=${F77+set}
939 ac_env_F77_value=$F77
940 ac_cv_env_F77_set=${F77+set}
941 ac_cv_env_F77_value=$F77
942 ac_env_FFLAGS_set=${FFLAGS+set}
943 ac_env_FFLAGS_value=$FFLAGS
944 ac_cv_env_FFLAGS_set=${FFLAGS+set}
945 ac_cv_env_FFLAGS_value=$FFLAGS
948 # Report the --help message.
950 if test "$ac_init_help" = "long"; then
951 # Omit some internal or obsolete options to make the list less imposing.
952 # This message is too long to be a string in the A/UX 3.1 sh.
954 \`configure' configures this package to adapt to many kinds of systems.
956 Usage: $0 [OPTION]... [VAR=VALUE]...
958 To assign environment variables (e.g., CC, CFLAGS...), specify them as
959 VAR=VALUE. See below for descriptions of some of the useful variables.
961 Defaults for the options are specified in brackets.
964 -h, --help display this help and exit
965 --help=short display options specific to this package
966 --help=recursive display the short help of all the included packages
967 -V, --version display version information and exit
968 -q, --quiet, --silent do not print \`checking...' messages
969 --cache-file=FILE cache test results in FILE [disabled]
970 -C, --config-cache alias for \`--cache-file=config.cache'
971 -n, --no-create do not create output files
972 --srcdir=DIR find the sources in DIR [configure dir or \`..']
977 Installation directories:
978 --prefix=PREFIX install architecture-independent files in PREFIX
980 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
983 By default, \`make install' will install all the files in
984 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
985 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
986 for instance \`--prefix=\$HOME'.
988 For better control, use the options below.
990 Fine tuning of the installation directories:
991 --bindir=DIR user executables [EPREFIX/bin]
992 --sbindir=DIR system admin executables [EPREFIX/sbin]
993 --libexecdir=DIR program executables [EPREFIX/libexec]
994 --datadir=DIR read-only architecture-independent data [PREFIX/share]
995 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
996 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
997 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
998 --libdir=DIR object code libraries [EPREFIX/lib]
999 --includedir=DIR C header files [PREFIX/include]
1000 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1001 --infodir=DIR info documentation [PREFIX/info]
1002 --mandir=DIR man documentation [PREFIX/man]
1008 --program-prefix=PREFIX prepend PREFIX to installed program names
1009 --program-suffix=SUFFIX append SUFFIX to installed program names
1010 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1013 --build=BUILD configure for building on BUILD [guessed]
1014 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1015 --target=TARGET configure for building compilers for TARGET [HOST]
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 --enable-maintainer-mode enable make rules and dependencies not useful
1027 (and sometimes confusing) to the casual installer
1028 --disable-dependency-tracking speeds up one-time build
1029 --enable-dependency-tracking do not reject slow dependency extractors
1030 --enable-shared[=PKGS]
1031 build shared libraries [default=yes]
1032 --enable-static[=PKGS]
1033 build static libraries [default=yes]
1034 --enable-fast-install[=PKGS]
1035 optimize for fast installation [default=yes]
1036 --disable-libtool-lock avoid locking (might break parallel builds)
1037 --enable-debug Enable generic debug support (default off)
1038 --enable-debug-kmem Enable kmem debug support (default off)
1039 --enable-debug-mutex Enable mutex debug support (default off)
1040 --enable-debug-kstat Enable kstat debug support (default off)
1041 --enable-debug-callb Enable callb debug support (default off)
1044 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1045 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1046 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1047 --with-pic try to use only PIC/non-PIC objects [default=use
1050 include additional configurations [automatic]
1051 --with-linux=PATH Path to kernel source
1052 --with-linux-obj=PATH Path to kernel build objects
1054 Some influential environment variables:
1055 CC C compiler command
1056 CFLAGS C compiler flags
1057 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1058 nonstandard directory <lib dir>
1059 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1060 headers in a nonstandard directory <include dir>
1062 CXX C++ compiler command
1063 CXXFLAGS C++ compiler flags
1064 CXXCPP C++ preprocessor
1065 F77 Fortran 77 compiler command
1066 FFLAGS Fortran 77 compiler flags
1068 Use these variables to override the choices made by `configure' or to help
1069 it to find libraries and programs with nonstandard names/locations.
1074 if test "$ac_init_help" = "recursive"; then
1075 # If there are subdirs, report their specific --help.
1077 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1078 test -d $ac_dir || continue
1081 if test "$ac_dir" != .; then
1082 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1083 # A "../" for each directory in $ac_dir_suffix.
1084 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1086 ac_dir_suffix= ac_top_builddir=
1090 .) # No --srcdir option. We are building in place.
1092 if test -z "$ac_top_builddir"; then
1095 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1097 [\\/]* | ?:[\\/]* ) # Absolute path.
1098 ac_srcdir=$srcdir$ac_dir_suffix;
1099 ac_top_srcdir=$srcdir ;;
1101 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1102 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1105 # Do not use `cd foo && pwd` to compute absolute paths, because
1106 # the directories may not exist.
1108 .) ac_abs_builddir="$ac_dir";;
1111 .) ac_abs_builddir=`pwd`;;
1112 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1113 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1116 case $ac_abs_builddir in
1117 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1119 case ${ac_top_builddir}. in
1120 .) ac_abs_top_builddir=$ac_abs_builddir;;
1121 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1122 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1125 case $ac_abs_builddir in
1126 .) ac_abs_srcdir=$ac_srcdir;;
1129 .) ac_abs_srcdir=$ac_abs_builddir;;
1130 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1131 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1134 case $ac_abs_builddir in
1135 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1137 case $ac_top_srcdir in
1138 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1139 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1140 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1145 # Check for guested configure; otherwise get Cygnus style configure.
1146 if test -f $ac_srcdir/configure.gnu; then
1148 $SHELL $ac_srcdir/configure.gnu --help=recursive
1149 elif test -f $ac_srcdir/configure; then
1151 $SHELL $ac_srcdir/configure --help=recursive
1152 elif test -f $ac_srcdir/configure.ac ||
1153 test -f $ac_srcdir/configure.in; then
1155 $ac_configure --help
1157 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1163 test -n "$ac_init_help" && exit 0
1164 if $ac_init_version; then
1167 Copyright (C) 2003 Free Software Foundation, Inc.
1168 This configure script is free software; the Free Software Foundation
1169 gives unlimited permission to copy, distribute and modify it.
1175 This file contains any messages produced by compilers while
1176 running configure, to aid debugging if configure makes a mistake.
1178 It was created by $as_me, which was
1179 generated by GNU Autoconf 2.59. Invocation command line was
1190 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1191 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1192 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1193 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1194 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1196 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1197 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1199 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1200 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1201 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1202 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1203 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1204 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1205 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1213 test -z "$as_dir" && as_dir=.
1214 echo "PATH: $as_dir"
1229 # Keep a trace of the command line.
1230 # Strip out --no-create and --no-recursion so they do not pile up.
1231 # Strip out --silent because we don't want to record it for future runs.
1232 # Also quote any args containing shell meta-characters.
1233 # Make two passes to allow for proper duplicate-argument suppression.
1238 ac_must_keep_next=false
1244 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1245 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1246 | -silent | --silent | --silen | --sile | --sil)
1248 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1249 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1252 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1254 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1255 if test $ac_must_keep_next = true; then
1256 ac_must_keep_next=false # Got value, back to normal.
1259 *=* | --config-cache | -C | -disable-* | --disable-* \
1260 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1261 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1262 | -with-* | --with-* | -without-* | --without-* | --x)
1263 case "$ac_configure_args0 " in
1264 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1267 -* ) ac_must_keep_next=true ;;
1270 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1271 # Get rid of the leading space.
1277 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1278 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1280 # When interrupted or exit'd, cleanup temporary files, and complete
1281 # config.log. We remove comments because anyway the quotes in there
1282 # would cause problems or look ugly.
1283 # WARNING: Be sure not to use single quotes in there, as some shells,
1284 # such as our DU 5.0 friend, will then `close' the trap.
1285 trap 'exit_status=$?
1286 # Save into config.log some information that might help in debugging.
1291 ## ---------------- ##
1292 ## Cache variables. ##
1293 ## ---------------- ##
1296 # The following way of writing the cache mishandles newlines in values,
1299 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1302 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1303 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1307 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1314 ## ----------------- ##
1315 ## Output variables. ##
1316 ## ----------------- ##
1319 for ac_var in $ac_subst_vars
1321 eval ac_val=$`echo $ac_var`
1322 echo "$ac_var='"'"'$ac_val'"'"'"
1326 if test -n "$ac_subst_files"; then
1333 for ac_var in $ac_subst_files
1335 eval ac_val=$`echo $ac_var`
1336 echo "$ac_var='"'"'$ac_val'"'"'"
1341 if test -s confdefs.h; then
1348 sed "/^$/d" confdefs.h | sort
1351 test "$ac_signal" != 0 &&
1352 echo "$as_me: caught signal $ac_signal"
1353 echo "$as_me: exit $exit_status"
1355 rm -f core *.core &&
1356 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1359 for ac_signal in 1 2 13 15; do
1360 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1364 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1365 rm -rf conftest* confdefs.h
1366 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1369 # Predefined preprocessor variables.
1371 cat >>confdefs.h <<_ACEOF
1372 #define PACKAGE_NAME "$PACKAGE_NAME"
1376 cat >>confdefs.h <<_ACEOF
1377 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_STRING "$PACKAGE_STRING"
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1396 # Let the site file select an alternate cache file if it wants to.
1397 # Prefer explicitly selected file to automatically selected ones.
1398 if test -z "$CONFIG_SITE"; then
1399 if test "x$prefix" != xNONE; then
1400 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1402 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1405 for ac_site_file in $CONFIG_SITE; do
1406 if test -r "$ac_site_file"; then
1407 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1408 echo "$as_me: loading site script $ac_site_file" >&6;}
1409 sed 's/^/| /' "$ac_site_file" >&5
1414 if test -r "$cache_file"; then
1415 # Some versions of bash will fail to source /dev/null (special
1416 # files actually), so we avoid doing that.
1417 if test -f "$cache_file"; then
1418 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1419 echo "$as_me: loading cache $cache_file" >&6;}
1421 [\\/]* | ?:[\\/]* ) . $cache_file;;
1422 *) . ./$cache_file;;
1426 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1427 echo "$as_me: creating cache $cache_file" >&6;}
1431 # Check that the precious variables saved in the cache have kept the same
1433 ac_cache_corrupted=false
1434 for ac_var in `(set) 2>&1 |
1435 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1436 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1437 eval ac_new_set=\$ac_env_${ac_var}_set
1438 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1439 eval ac_new_val="\$ac_env_${ac_var}_value"
1440 case $ac_old_set,$ac_new_set in
1442 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1443 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1444 ac_cache_corrupted=: ;;
1446 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1447 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1448 ac_cache_corrupted=: ;;
1451 if test "x$ac_old_val" != "x$ac_new_val"; then
1452 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1453 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1454 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1455 echo "$as_me: former value: $ac_old_val" >&2;}
1456 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1457 echo "$as_me: current value: $ac_new_val" >&2;}
1458 ac_cache_corrupted=:
1461 # Pass precious variables to config.status.
1462 if test "$ac_new_set" = set; then
1464 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1465 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1466 *) ac_arg=$ac_var=$ac_new_val ;;
1468 case " $ac_configure_args " in
1469 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1470 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1474 if $ac_cache_corrupted; then
1475 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1476 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1477 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1478 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1479 { (exit 1); exit 1; }; }
1483 ac_cpp='$CPP $CPPFLAGS'
1484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1507 ac_cpp='$CPP $CPPFLAGS'
1508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1517 echo "$as_me:$LINENO: checking metadata" >&5
1518 echo $ECHO_N "checking metadata... $ECHO_C" >&6
1521 _spl_ac_meta_got_file=no
1522 if test -f "$META"; then
1523 _spl_ac_meta_got_file=yes
1525 SPL_META_NAME=`perl -n\
1526 -e "BEGIN { \\$key=shift @ARGV; }"\
1527 -e "next unless s/^\s*\\$key[:=]//i;"\
1528 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1531 -e "s/^(['\"])(.*)\1/\\$2/;"\
1533 -e "END { print \\$val if defined \\$val; }"\
1534 '(?:NAME|PROJECT|PACKAGE)' $META`;
1535 if test -n "$SPL_META_NAME"; then
1537 cat >>confdefs.h <<_ACEOF
1538 #define SPL_META_NAME "$SPL_META_NAME"
1544 SPL_META_VERSION=`perl -n\
1545 -e "BEGIN { \\$key=shift @ARGV; }"\
1546 -e "next unless s/^\s*\\$key[:=]//i;"\
1547 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1550 -e "s/^(['\"])(.*)\1/\\$2/;"\
1552 -e "END { print \\$val if defined \\$val; }"\
1554 if test -n "$SPL_META_VERSION"; then
1556 cat >>confdefs.h <<_ACEOF
1557 #define SPL_META_VERSION "$SPL_META_VERSION"
1563 SPL_META_RELEASE=`perl -n\
1564 -e "BEGIN { \\$key=shift @ARGV; }"\
1565 -e "next unless s/^\s*\\$key[:=]//i;"\
1566 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1569 -e "s/^(['\"])(.*)\1/\\$2/;"\
1571 -e "END { print \\$val if defined \\$val; }"\
1573 if test -n "$SPL_META_RELEASE"; then
1575 cat >>confdefs.h <<_ACEOF
1576 #define SPL_META_RELEASE "$SPL_META_RELEASE"
1582 if test -n "$SPL_META_NAME" -a -n "$SPL_META_VERSION"; then
1583 SPL_META_ALIAS="$SPL_META_NAME-$SPL_META_VERSION"
1584 test -n "$SPL_META_RELEASE" &&
1585 SPL_META_ALIAS="$SPL_META_ALIAS-$SPL_META_RELEASE"
1587 cat >>confdefs.h <<_ACEOF
1588 #define SPL_META_ALIAS "$SPL_META_ALIAS"
1594 SPL_META_DATA=`perl -n\
1595 -e "BEGIN { \\$key=shift @ARGV; }"\
1596 -e "next unless s/^\s*\\$key[:=]//i;"\
1597 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1600 -e "s/^(['\"])(.*)\1/\\$2/;"\
1602 -e "END { print \\$val if defined \\$val; }"\
1604 if test -n "$SPL_META_DATA"; then
1606 cat >>confdefs.h <<_ACEOF
1607 #define SPL_META_DATA "$SPL_META_DATA"
1613 SPL_META_AUTHOR=`perl -n\
1614 -e "BEGIN { \\$key=shift @ARGV; }"\
1615 -e "next unless s/^\s*\\$key[:=]//i;"\
1616 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1619 -e "s/^(['\"])(.*)\1/\\$2/;"\
1621 -e "END { print \\$val if defined \\$val; }"\
1623 if test -n "$SPL_META_AUTHOR"; then
1625 cat >>confdefs.h <<_ACEOF
1626 #define SPL_META_AUTHOR "$SPL_META_AUTHOR"
1633 SPL_META_LT_CURRENT=`perl -n\
1634 -e "BEGIN { \\$key=shift @ARGV; }"\
1635 -e "next unless s/^\s*\\$key[:=]//i;"\
1636 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1639 -e "s/^(['\"])(.*)\1/\\$2/;"\
1641 -e "END { print \\$val if defined \\$val; }"\
1642 'LT_CURRENT' $META`;
1643 SPL_META_LT_REVISION=`perl -n\
1644 -e "BEGIN { \\$key=shift @ARGV; }"\
1645 -e "next unless s/^\s*\\$key[:=]//i;"\
1646 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1649 -e "s/^(['\"])(.*)\1/\\$2/;"\
1651 -e "END { print \\$val if defined \\$val; }"\
1652 'LT_REVISION' $META`;
1653 SPL_META_LT_AGE=`perl -n\
1654 -e "BEGIN { \\$key=shift @ARGV; }"\
1655 -e "next unless s/^\s*\\$key[:=]//i;"\
1656 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1659 -e "s/^(['\"])(.*)\1/\\$2/;"\
1661 -e "END { print \\$val if defined \\$val; }"\
1663 if test -n "$SPL_META_LT_CURRENT" \
1664 -o -n "$SPL_META_LT_REVISION" \
1665 -o -n "$SPL_META_LT_AGE"; then
1666 test -n "$SPL_META_LT_CURRENT" || SPL_META_LT_CURRENT="0"
1667 test -n "$SPL_META_LT_REVISION" || SPL_META_LT_REVISION="0"
1668 test -n "$SPL_META_LT_AGE" || SPL_META_LT_AGE="0"
1670 cat >>confdefs.h <<_ACEOF
1671 #define SPL_META_LT_CURRENT "$SPL_META_LT_CURRENT"
1675 cat >>confdefs.h <<_ACEOF
1676 #define SPL_META_LT_REVISION "$SPL_META_LT_REVISION"
1680 cat >>confdefs.h <<_ACEOF
1681 #define SPL_META_LT_AGE "$SPL_META_LT_AGE"
1690 echo "$as_me:$LINENO: result: $_spl_ac_meta_got_file" >&5
1691 echo "${ECHO_T}$_spl_ac_meta_got_file" >&6
1695 for ac_dir in config $srcdir/config; do
1696 if test -f $ac_dir/install-sh; then
1698 ac_install_sh="$ac_aux_dir/install-sh -c"
1700 elif test -f $ac_dir/install.sh; then
1702 ac_install_sh="$ac_aux_dir/install.sh -c"
1704 elif test -f $ac_dir/shtool; then
1706 ac_install_sh="$ac_aux_dir/shtool install -c"
1710 if test -z "$ac_aux_dir"; then
1711 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1712 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1713 { (exit 1); exit 1; }; }
1715 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1716 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1717 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1719 # Make sure we can run config.sub.
1720 $ac_config_sub sun4 >/dev/null 2>&1 ||
1721 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1722 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1723 { (exit 1); exit 1; }; }
1725 echo "$as_me:$LINENO: checking build system type" >&5
1726 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1727 if test "${ac_cv_build+set}" = set; then
1728 echo $ECHO_N "(cached) $ECHO_C" >&6
1730 ac_cv_build_alias=$build_alias
1731 test -z "$ac_cv_build_alias" &&
1732 ac_cv_build_alias=`$ac_config_guess`
1733 test -z "$ac_cv_build_alias" &&
1734 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1735 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1736 { (exit 1); exit 1; }; }
1737 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1738 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1739 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1740 { (exit 1); exit 1; }; }
1743 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1744 echo "${ECHO_T}$ac_cv_build" >&6
1746 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1747 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1748 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1751 echo "$as_me:$LINENO: checking host system type" >&5
1752 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1753 if test "${ac_cv_host+set}" = set; then
1754 echo $ECHO_N "(cached) $ECHO_C" >&6
1756 ac_cv_host_alias=$host_alias
1757 test -z "$ac_cv_host_alias" &&
1758 ac_cv_host_alias=$ac_cv_build_alias
1759 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1760 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1761 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1762 { (exit 1); exit 1; }; }
1765 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1766 echo "${ECHO_T}$ac_cv_host" >&6
1768 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1769 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1770 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1773 echo "$as_me:$LINENO: checking target system type" >&5
1774 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1775 if test "${ac_cv_target+set}" = set; then
1776 echo $ECHO_N "(cached) $ECHO_C" >&6
1778 ac_cv_target_alias=$target_alias
1779 test "x$ac_cv_target_alias" = "x" &&
1780 ac_cv_target_alias=$ac_cv_host_alias
1781 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1782 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1783 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1784 { (exit 1); exit 1; }; }
1787 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1788 echo "${ECHO_T}$ac_cv_target" >&6
1789 target=$ac_cv_target
1790 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1791 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1792 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1795 # The aliases save the names the user supplied, while $host etc.
1796 # will get canonicalized.
1797 test -n "$target_alias" &&
1798 test "$program_prefix$program_suffix$program_transform_name" = \
1800 program_prefix=${target_alias}-
1801 am__api_version="1.9"
1802 # Find a good install program. We prefer a C program (faster),
1803 # so one script is as good as another. But avoid the broken or
1804 # incompatible versions:
1805 # SysV /etc/install, /usr/sbin/install
1806 # SunOS /usr/etc/install
1807 # IRIX /sbin/install
1809 # AmigaOS /C/install, which installs bootblocks on floppy discs
1810 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1811 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1812 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1813 # OS/2's system install, which has a completely different semantic
1814 # ./install, which can be erroneously created by make from ./install.sh.
1815 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1816 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1817 if test -z "$INSTALL"; then
1818 if test "${ac_cv_path_install+set}" = set; then
1819 echo $ECHO_N "(cached) $ECHO_C" >&6
1821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1825 test -z "$as_dir" && as_dir=.
1826 # Account for people who put trailing slashes in PATH elements.
1828 ./ | .// | /cC/* | \
1829 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1830 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1833 # OSF1 and SCO ODT 3.0 have their own names for install.
1834 # Don't use installbsd from OSF since it installs stuff as root
1836 for ac_prog in ginstall scoinst install; do
1837 for ac_exec_ext in '' $ac_executable_extensions; do
1838 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1839 if test $ac_prog = install &&
1840 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1841 # AIX install. It has an incompatible calling convention.
1843 elif test $ac_prog = install &&
1844 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1845 # program-specific install script used by HP pwplus--don't use.
1848 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1860 if test "${ac_cv_path_install+set}" = set; then
1861 INSTALL=$ac_cv_path_install
1863 # As a last resort, use the slow shell script. We don't cache a
1864 # path for INSTALL within a source directory, because that will
1865 # break other packages using the cache if that directory is
1866 # removed, or if the path is relative.
1867 INSTALL=$ac_install_sh
1870 echo "$as_me:$LINENO: result: $INSTALL" >&5
1871 echo "${ECHO_T}$INSTALL" >&6
1873 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1874 # It thinks the first close brace ends the variable substitution.
1875 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1877 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1879 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1881 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1882 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1885 echo timestamp > conftest.file
1886 # Do `set' in a subshell so we don't clobber the current shell's
1887 # arguments. Must try -L first in case configure is actually a
1888 # symlink; some systems play weird games with the mod time of symlinks
1889 # (eg FreeBSD returns the mod time of the symlink's containing
1892 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1893 if test "$*" = "X"; then
1895 set X `ls -t $srcdir/configure conftest.file`
1898 if test "$*" != "X $srcdir/configure conftest.file" \
1899 && test "$*" != "X conftest.file $srcdir/configure"; then
1901 # If neither matched, then we have a broken ls. This can happen
1902 # if, for instance, CONFIG_SHELL is bash and it inherits a
1903 # broken ls alias from the environment. This has actually
1904 # happened. Such a system could not be considered "sane".
1905 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1906 alias in your environment" >&5
1907 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1908 alias in your environment" >&2;}
1909 { (exit 1); exit 1; }; }
1912 test "$2" = conftest.file
1918 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1919 Check your system clock" >&5
1920 echo "$as_me: error: newly created file is older than distributed files!
1921 Check your system clock" >&2;}
1922 { (exit 1); exit 1; }; }
1924 echo "$as_me:$LINENO: result: yes" >&5
1925 echo "${ECHO_T}yes" >&6
1926 test "$program_prefix" != NONE &&
1927 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1928 # Use a double $ so make ignores it.
1929 test "$program_suffix" != NONE &&
1930 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1931 # Double any \ or $. echo might interpret backslashes.
1932 # By default was `s,x,x', remove it if useless.
1933 cat <<\_ACEOF >conftest.sed
1934 s/[\\$]/&&/g;s/;s,x,x,$//
1936 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1939 # expand $ac_aux_dir to an absolute path
1940 am_aux_dir=`cd $ac_aux_dir && pwd`
1942 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1943 # Use eval to expand $SHELL
1944 if eval "$MISSING --run true"; then
1945 am_missing_run="$MISSING --run "
1948 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1949 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1952 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1953 # We used to keeping the `.' as first argument, in order to
1954 # allow $(mkdir_p) to be used without argument. As in
1955 # $(mkdir_p) $(somedir)
1956 # where $(somedir) is conditionally defined. However this is wrong
1958 # 1. if the package is installed by a user who cannot write `.'
1959 # make install will fail,
1960 # 2. the above comment should most certainly read
1961 # $(mkdir_p) $(DESTDIR)$(somedir)
1962 # so it does not work when $(somedir) is undefined and
1963 # $(DESTDIR) is not.
1964 # To support the latter case, we have to write
1965 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1966 # so the `.' trick is pointless.
1967 mkdir_p='mkdir -p --'
1969 # On NextStep and OpenStep, the `mkdir' command does not
1970 # recognize any option. It will interpret all options as
1971 # directories to create, and then abort because `.' already
1973 for d in ./-p ./--version;
1975 test -d $d && rmdir $d
1977 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1978 if test -f "$ac_aux_dir/mkinstalldirs"; then
1979 mkdir_p='$(mkinstalldirs)'
1981 mkdir_p='$(install_sh) -d'
1985 for ac_prog in gawk mawk nawk awk
1987 # Extract the first word of "$ac_prog", so it can be a program name with args.
1988 set dummy $ac_prog; ac_word=$2
1989 echo "$as_me:$LINENO: checking for $ac_word" >&5
1990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1991 if test "${ac_cv_prog_AWK+set}" = set; then
1992 echo $ECHO_N "(cached) $ECHO_C" >&6
1994 if test -n "$AWK"; then
1995 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2001 test -z "$as_dir" && as_dir=.
2002 for ac_exec_ext in '' $ac_executable_extensions; do
2003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2004 ac_cv_prog_AWK="$ac_prog"
2005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2014 if test -n "$AWK"; then
2015 echo "$as_me:$LINENO: result: $AWK" >&5
2016 echo "${ECHO_T}$AWK" >&6
2018 echo "$as_me:$LINENO: result: no" >&5
2019 echo "${ECHO_T}no" >&6
2022 test -n "$AWK" && break
2025 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2026 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2027 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2028 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2031 cat >conftest.make <<\_ACEOF
2033 @echo 'ac_maketemp="$(MAKE)"'
2035 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2036 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2037 if test -n "$ac_maketemp"; then
2038 eval ac_cv_prog_make_${ac_make}_set=yes
2040 eval ac_cv_prog_make_${ac_make}_set=no
2044 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2045 echo "$as_me:$LINENO: result: yes" >&5
2046 echo "${ECHO_T}yes" >&6
2049 echo "$as_me:$LINENO: result: no" >&5
2050 echo "${ECHO_T}no" >&6
2051 SET_MAKE="MAKE=${MAKE-make}"
2054 rm -rf .tst 2>/dev/null
2055 mkdir .tst 2>/dev/null
2056 if test -d .tst; then
2061 rmdir .tst 2>/dev/null
2063 # test to see if srcdir already configured
2064 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2065 test -f $srcdir/config.status; then
2066 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2067 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2068 { (exit 1); exit 1; }; }
2071 # test whether we have cygpath
2072 if test -z "$CYGPATH_W"; then
2073 if (cygpath --version) >/dev/null 2>/dev/null; then
2074 CYGPATH_W='cygpath -w'
2081 # Define the identity of the package.
2082 PACKAGE=$SPL_META_NAME
2083 VERSION=$SPL_META_VERSION
2086 cat >>confdefs.h <<_ACEOF
2087 #define PACKAGE "$PACKAGE"
2091 cat >>confdefs.h <<_ACEOF
2092 #define VERSION "$VERSION"
2095 # Some tools Automake needs.
2097 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2100 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2103 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2106 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2109 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2111 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2113 # Installed binaries are usually stripped using `strip' when the user
2114 # run `make install-strip'. However `strip' might not be the right
2115 # tool to use in cross-compilation environments, therefore Automake
2116 # will honor the `STRIP' environment variable to overrule this program.
2117 if test "$cross_compiling" != no; then
2118 if test -n "$ac_tool_prefix"; then
2119 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2120 set dummy ${ac_tool_prefix}strip; ac_word=$2
2121 echo "$as_me:$LINENO: checking for $ac_word" >&5
2122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2123 if test "${ac_cv_prog_STRIP+set}" = set; then
2124 echo $ECHO_N "(cached) $ECHO_C" >&6
2126 if test -n "$STRIP"; then
2127 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2133 test -z "$as_dir" && as_dir=.
2134 for ac_exec_ext in '' $ac_executable_extensions; do
2135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2136 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2145 STRIP=$ac_cv_prog_STRIP
2146 if test -n "$STRIP"; then
2147 echo "$as_me:$LINENO: result: $STRIP" >&5
2148 echo "${ECHO_T}$STRIP" >&6
2150 echo "$as_me:$LINENO: result: no" >&5
2151 echo "${ECHO_T}no" >&6
2155 if test -z "$ac_cv_prog_STRIP"; then
2157 # Extract the first word of "strip", so it can be a program name with args.
2158 set dummy strip; ac_word=$2
2159 echo "$as_me:$LINENO: checking for $ac_word" >&5
2160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2161 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2162 echo $ECHO_N "(cached) $ECHO_C" >&6
2164 if test -n "$ac_ct_STRIP"; then
2165 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2171 test -z "$as_dir" && as_dir=.
2172 for ac_exec_ext in '' $ac_executable_extensions; do
2173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2174 ac_cv_prog_ac_ct_STRIP="strip"
2175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2181 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2184 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2185 if test -n "$ac_ct_STRIP"; then
2186 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2187 echo "${ECHO_T}$ac_ct_STRIP" >&6
2189 echo "$as_me:$LINENO: result: no" >&5
2190 echo "${ECHO_T}no" >&6
2195 STRIP="$ac_cv_prog_STRIP"
2199 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2201 # We need awk for the "check" target. The system "awk" is bad on
2203 # Always define AMTAR for backward compatibility.
2205 AMTAR=${AMTAR-"${am_missing_run}tar"}
2207 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2213 ac_config_headers="$ac_config_headers spl_config.h"
2215 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2216 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2217 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2218 if test "${enable_maintainer_mode+set}" = set; then
2219 enableval="$enable_maintainer_mode"
2220 USE_MAINTAINER_MODE=$enableval
2222 USE_MAINTAINER_MODE=no
2224 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2225 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2228 if test $USE_MAINTAINER_MODE = yes; then
2229 MAINTAINER_MODE_TRUE=
2230 MAINTAINER_MODE_FALSE='#'
2232 MAINTAINER_MODE_TRUE='#'
2233 MAINTAINER_MODE_FALSE=
2236 MAINT=$MAINTAINER_MODE_TRUE
2240 # Find a good install program. We prefer a C program (faster),
2241 # so one script is as good as another. But avoid the broken or
2242 # incompatible versions:
2243 # SysV /etc/install, /usr/sbin/install
2244 # SunOS /usr/etc/install
2245 # IRIX /sbin/install
2247 # AmigaOS /C/install, which installs bootblocks on floppy discs
2248 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2249 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2250 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2251 # OS/2's system install, which has a completely different semantic
2252 # ./install, which can be erroneously created by make from ./install.sh.
2253 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2254 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2255 if test -z "$INSTALL"; then
2256 if test "${ac_cv_path_install+set}" = set; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
2259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2263 test -z "$as_dir" && as_dir=.
2264 # Account for people who put trailing slashes in PATH elements.
2266 ./ | .// | /cC/* | \
2267 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2268 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2271 # OSF1 and SCO ODT 3.0 have their own names for install.
2272 # Don't use installbsd from OSF since it installs stuff as root
2274 for ac_prog in ginstall scoinst install; do
2275 for ac_exec_ext in '' $ac_executable_extensions; do
2276 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2277 if test $ac_prog = install &&
2278 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2279 # AIX install. It has an incompatible calling convention.
2281 elif test $ac_prog = install &&
2282 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2283 # program-specific install script used by HP pwplus--don't use.
2286 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2298 if test "${ac_cv_path_install+set}" = set; then
2299 INSTALL=$ac_cv_path_install
2301 # As a last resort, use the slow shell script. We don't cache a
2302 # path for INSTALL within a source directory, because that will
2303 # break other packages using the cache if that directory is
2304 # removed, or if the path is relative.
2305 INSTALL=$ac_install_sh
2308 echo "$as_me:$LINENO: result: $INSTALL" >&5
2309 echo "${ECHO_T}$INSTALL" >&6
2311 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2312 # It thinks the first close brace ends the variable substitution.
2313 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2315 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2317 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2320 ac_cpp='$CPP $CPPFLAGS'
2321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2324 if test -n "$ac_tool_prefix"; then
2325 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2326 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2327 echo "$as_me:$LINENO: checking for $ac_word" >&5
2328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2329 if test "${ac_cv_prog_CC+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2332 if test -n "$CC"; then
2333 ac_cv_prog_CC="$CC" # Let the user override the test.
2335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2339 test -z "$as_dir" && as_dir=.
2340 for ac_exec_ext in '' $ac_executable_extensions; do
2341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2342 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2352 if test -n "$CC"; then
2353 echo "$as_me:$LINENO: result: $CC" >&5
2354 echo "${ECHO_T}$CC" >&6
2356 echo "$as_me:$LINENO: result: no" >&5
2357 echo "${ECHO_T}no" >&6
2361 if test -z "$ac_cv_prog_CC"; then
2363 # Extract the first word of "gcc", so it can be a program name with args.
2364 set dummy gcc; ac_word=$2
2365 echo "$as_me:$LINENO: checking for $ac_word" >&5
2366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2367 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2370 if test -n "$ac_ct_CC"; then
2371 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2377 test -z "$as_dir" && as_dir=.
2378 for ac_exec_ext in '' $ac_executable_extensions; do
2379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2380 ac_cv_prog_ac_ct_CC="gcc"
2381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2389 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2390 if test -n "$ac_ct_CC"; then
2391 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2392 echo "${ECHO_T}$ac_ct_CC" >&6
2394 echo "$as_me:$LINENO: result: no" >&5
2395 echo "${ECHO_T}no" >&6
2403 if test -z "$CC"; then
2404 if test -n "$ac_tool_prefix"; then
2405 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2406 set dummy ${ac_tool_prefix}cc; ac_word=$2
2407 echo "$as_me:$LINENO: checking for $ac_word" >&5
2408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2409 if test "${ac_cv_prog_CC+set}" = set; then
2410 echo $ECHO_N "(cached) $ECHO_C" >&6
2412 if test -n "$CC"; then
2413 ac_cv_prog_CC="$CC" # Let the user override the test.
2415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2419 test -z "$as_dir" && as_dir=.
2420 for ac_exec_ext in '' $ac_executable_extensions; do
2421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2422 ac_cv_prog_CC="${ac_tool_prefix}cc"
2423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2432 if test -n "$CC"; then
2433 echo "$as_me:$LINENO: result: $CC" >&5
2434 echo "${ECHO_T}$CC" >&6
2436 echo "$as_me:$LINENO: result: no" >&5
2437 echo "${ECHO_T}no" >&6
2441 if test -z "$ac_cv_prog_CC"; then
2443 # Extract the first word of "cc", so it can be a program name with args.
2444 set dummy cc; ac_word=$2
2445 echo "$as_me:$LINENO: checking for $ac_word" >&5
2446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2447 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2448 echo $ECHO_N "(cached) $ECHO_C" >&6
2450 if test -n "$ac_ct_CC"; then
2451 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457 test -z "$as_dir" && as_dir=.
2458 for ac_exec_ext in '' $ac_executable_extensions; do
2459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2460 ac_cv_prog_ac_ct_CC="cc"
2461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2469 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2470 if test -n "$ac_ct_CC"; then
2471 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2472 echo "${ECHO_T}$ac_ct_CC" >&6
2474 echo "$as_me:$LINENO: result: no" >&5
2475 echo "${ECHO_T}no" >&6
2484 if test -z "$CC"; then
2485 # Extract the first word of "cc", so it can be a program name with args.
2486 set dummy cc; ac_word=$2
2487 echo "$as_me:$LINENO: checking for $ac_word" >&5
2488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2489 if test "${ac_cv_prog_CC+set}" = set; then
2490 echo $ECHO_N "(cached) $ECHO_C" >&6
2492 if test -n "$CC"; then
2493 ac_cv_prog_CC="$CC" # Let the user override the test.
2496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500 test -z "$as_dir" && as_dir=.
2501 for ac_exec_ext in '' $ac_executable_extensions; do
2502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2503 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2504 ac_prog_rejected=yes
2508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2514 if test $ac_prog_rejected = yes; then
2515 # We found a bogon in the path, so make sure we never use it.
2516 set dummy $ac_cv_prog_CC
2518 if test $# != 0; then
2519 # We chose a different compiler from the bogus one.
2520 # However, it has the same basename, so the bogon will be chosen
2521 # first if we set CC to just the basename; use the full file name.
2523 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2529 if test -n "$CC"; then
2530 echo "$as_me:$LINENO: result: $CC" >&5
2531 echo "${ECHO_T}$CC" >&6
2533 echo "$as_me:$LINENO: result: no" >&5
2534 echo "${ECHO_T}no" >&6
2538 if test -z "$CC"; then
2539 if test -n "$ac_tool_prefix"; then
2542 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2543 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2544 echo "$as_me:$LINENO: checking for $ac_word" >&5
2545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2546 if test "${ac_cv_prog_CC+set}" = set; then
2547 echo $ECHO_N "(cached) $ECHO_C" >&6
2549 if test -n "$CC"; then
2550 ac_cv_prog_CC="$CC" # Let the user override the test.
2552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556 test -z "$as_dir" && as_dir=.
2557 for ac_exec_ext in '' $ac_executable_extensions; do
2558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2559 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2569 if test -n "$CC"; then
2570 echo "$as_me:$LINENO: result: $CC" >&5
2571 echo "${ECHO_T}$CC" >&6
2573 echo "$as_me:$LINENO: result: no" >&5
2574 echo "${ECHO_T}no" >&6
2577 test -n "$CC" && break
2580 if test -z "$CC"; then
2584 # Extract the first word of "$ac_prog", so it can be a program name with args.
2585 set dummy $ac_prog; ac_word=$2
2586 echo "$as_me:$LINENO: checking for $ac_word" >&5
2587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2588 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2589 echo $ECHO_N "(cached) $ECHO_C" >&6
2591 if test -n "$ac_ct_CC"; then
2592 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 test -z "$as_dir" && as_dir=.
2599 for ac_exec_ext in '' $ac_executable_extensions; do
2600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2601 ac_cv_prog_ac_ct_CC="$ac_prog"
2602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2610 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2611 if test -n "$ac_ct_CC"; then
2612 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2613 echo "${ECHO_T}$ac_ct_CC" >&6
2615 echo "$as_me:$LINENO: result: no" >&5
2616 echo "${ECHO_T}no" >&6
2619 test -n "$ac_ct_CC" && break
2628 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2629 See \`config.log' for more details." >&5
2630 echo "$as_me: error: no acceptable C compiler found in \$PATH
2631 See \`config.log' for more details." >&2;}
2632 { (exit 1); exit 1; }; }
2634 # Provide some information about the compiler.
2635 echo "$as_me:$LINENO:" \
2636 "checking for C compiler version" >&5
2637 ac_compiler=`set X $ac_compile; echo $2`
2638 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2639 (eval $ac_compiler --version </dev/null >&5) 2>&5
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }
2643 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2644 (eval $ac_compiler -v </dev/null >&5) 2>&5
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); }
2648 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2649 (eval $ac_compiler -V </dev/null >&5) 2>&5
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); }
2654 cat >conftest.$ac_ext <<_ACEOF
2657 cat confdefs.h >>conftest.$ac_ext
2658 cat >>conftest.$ac_ext <<_ACEOF
2659 /* end confdefs.h. */
2669 ac_clean_files_save=$ac_clean_files
2670 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2671 # Try to create an executable without -o first, disregard a.out.
2672 # It will help us diagnose broken compilers, and finding out an intuition
2674 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2675 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2676 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2677 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2678 (eval $ac_link_default) 2>&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }; then
2682 # Find the output, starting from the most likely. This scheme is
2683 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2686 # Be careful to initialize this variable, since it used to be cached.
2687 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2689 # b.out is created by i960 compilers.
2690 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2692 test -f "$ac_file" || continue
2694 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2697 # This is the source file.
2700 # We found the default executable, but exeext='' is most
2704 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2705 # FIXME: I believe we export ac_cv_exeext for Libtool,
2706 # but it would be cool to find out if it's true. Does anybody
2707 # maintain Libtool? --akim.
2715 echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.$ac_ext >&5
2718 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2719 See \`config.log' for more details." >&5
2720 echo "$as_me: error: C compiler cannot create executables
2721 See \`config.log' for more details." >&2;}
2722 { (exit 77); exit 77; }; }
2725 ac_exeext=$ac_cv_exeext
2726 echo "$as_me:$LINENO: result: $ac_file" >&5
2727 echo "${ECHO_T}$ac_file" >&6
2729 # Check the compiler produces executables we can run. If not, either
2730 # the compiler is broken, or we cross compile.
2731 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2732 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2733 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2734 # If not cross compiling, check that we can run a simple program.
2735 if test "$cross_compiling" != yes; then
2736 if { ac_try='./$ac_file'
2737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; }; then
2744 if test "$cross_compiling" = maybe; then
2747 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2748 If you meant to cross compile, use \`--host'.
2749 See \`config.log' for more details." >&5
2750 echo "$as_me: error: cannot run C compiled programs.
2751 If you meant to cross compile, use \`--host'.
2752 See \`config.log' for more details." >&2;}
2753 { (exit 1); exit 1; }; }
2757 echo "$as_me:$LINENO: result: yes" >&5
2758 echo "${ECHO_T}yes" >&6
2760 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2761 ac_clean_files=$ac_clean_files_save
2762 # Check the compiler produces executables we can run. If not, either
2763 # the compiler is broken, or we cross compile.
2764 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2765 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2766 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2767 echo "${ECHO_T}$cross_compiling" >&6
2769 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2770 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2772 (eval $ac_link) 2>&5
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); }; then
2776 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2777 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2778 # work properly (i.e., refer to `conftest.exe'), while it won't with
2780 for ac_file in conftest.exe conftest conftest.*; do
2781 test -f "$ac_file" || continue
2783 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2784 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2791 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2792 See \`config.log' for more details." >&5
2793 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2794 See \`config.log' for more details." >&2;}
2795 { (exit 1); exit 1; }; }
2798 rm -f conftest$ac_cv_exeext
2799 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2800 echo "${ECHO_T}$ac_cv_exeext" >&6
2802 rm -f conftest.$ac_ext
2803 EXEEXT=$ac_cv_exeext
2805 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2806 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2807 if test "${ac_cv_objext+set}" = set; then
2808 echo $ECHO_N "(cached) $ECHO_C" >&6
2810 cat >conftest.$ac_ext <<_ACEOF
2813 cat confdefs.h >>conftest.$ac_ext
2814 cat >>conftest.$ac_ext <<_ACEOF
2815 /* end confdefs.h. */
2825 rm -f conftest.o conftest.obj
2826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2827 (eval $ac_compile) 2>&5
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); }; then
2831 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2834 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2839 echo "$as_me: failed program was:" >&5
2840 sed 's/^/| /' conftest.$ac_ext >&5
2842 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2843 See \`config.log' for more details." >&5
2844 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2845 See \`config.log' for more details." >&2;}
2846 { (exit 1); exit 1; }; }
2849 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2851 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2852 echo "${ECHO_T}$ac_cv_objext" >&6
2853 OBJEXT=$ac_cv_objext
2855 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2856 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2857 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2858 echo $ECHO_N "(cached) $ECHO_C" >&6
2860 cat >conftest.$ac_ext <<_ACEOF
2863 cat confdefs.h >>conftest.$ac_ext
2864 cat >>conftest.$ac_ext <<_ACEOF
2865 /* end confdefs.h. */
2878 rm -f conftest.$ac_objext
2879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2880 (eval $ac_compile) 2>conftest.er1
2882 grep -v '^ *+' conftest.er1 >conftest.err
2884 cat conftest.err >&5
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); } &&
2887 { ac_try='test -z "$ac_c_werror_flag"
2888 || test ! -s conftest.err'
2889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; } &&
2894 { ac_try='test -s conftest.$ac_objext'
2895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; }; then
2902 echo "$as_me: failed program was:" >&5
2903 sed 's/^/| /' conftest.$ac_ext >&5
2907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2908 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2911 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2912 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2913 GCC=`test $ac_compiler_gnu = yes && echo yes`
2914 ac_test_CFLAGS=${CFLAGS+set}
2915 ac_save_CFLAGS=$CFLAGS
2917 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2918 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2919 if test "${ac_cv_prog_cc_g+set}" = set; then
2920 echo $ECHO_N "(cached) $ECHO_C" >&6
2922 cat >conftest.$ac_ext <<_ACEOF
2925 cat confdefs.h >>conftest.$ac_ext
2926 cat >>conftest.$ac_ext <<_ACEOF
2927 /* end confdefs.h. */
2937 rm -f conftest.$ac_objext
2938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2939 (eval $ac_compile) 2>conftest.er1
2941 grep -v '^ *+' conftest.er1 >conftest.err
2943 cat conftest.err >&5
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); } &&
2946 { ac_try='test -z "$ac_c_werror_flag"
2947 || test ! -s conftest.err'
2948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); }; } &&
2953 { ac_try='test -s conftest.$ac_objext'
2954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }; }; then
2961 echo "$as_me: failed program was:" >&5
2962 sed 's/^/| /' conftest.$ac_ext >&5
2966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2968 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2969 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2970 if test "$ac_test_CFLAGS" = set; then
2971 CFLAGS=$ac_save_CFLAGS
2972 elif test $ac_cv_prog_cc_g = yes; then
2973 if test "$GCC" = yes; then
2979 if test "$GCC" = yes; then
2985 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2986 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2987 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2988 echo $ECHO_N "(cached) $ECHO_C" >&6
2990 ac_cv_prog_cc_stdc=no
2992 cat >conftest.$ac_ext <<_ACEOF
2995 cat confdefs.h >>conftest.$ac_ext
2996 cat >>conftest.$ac_ext <<_ACEOF
2997 /* end confdefs.h. */
3000 #include <sys/types.h>
3001 #include <sys/stat.h>
3002 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3003 struct buf { int x; };
3004 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3005 static char *e (p, i)
3011 static char *f (char * (*g) (char **, int), char **p, ...)
3016 s = g (p, va_arg (v,int));
3021 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3022 function prototypes and stuff, but not '\xHH' hex character constants.
3023 These don't provoke an error unfortunately, instead are silently treated
3024 as 'x'. The following induces an error, until -std1 is added to get
3025 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3026 array size at least. It's necessary to write '\x00'==0 to get something
3027 that's true only with -std1. */
3028 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3030 int test (int i, double x);
3031 struct s1 {int (*f) (int a);};
3032 struct s2 {int (*f) (double a);};
3033 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3039 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3044 # Don't try gcc -ansi; that turns off useful extensions and
3045 # breaks some systems' header files.
3046 # AIX -qlanglvl=ansi
3047 # Ultrix and OSF/1 -std1
3048 # HP-UX 10.20 and later -Ae
3049 # HP-UX older versions -Aa -D_HPUX_SOURCE
3050 # SVR4 -Xc -D__EXTENSIONS__
3051 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3053 CC="$ac_save_CC $ac_arg"
3054 rm -f conftest.$ac_objext
3055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3056 (eval $ac_compile) 2>conftest.er1
3058 grep -v '^ *+' conftest.er1 >conftest.err
3060 cat conftest.err >&5
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); } &&
3063 { ac_try='test -z "$ac_c_werror_flag"
3064 || test ! -s conftest.err'
3065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); }; } &&
3070 { ac_try='test -s conftest.$ac_objext'
3071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); }; }; then
3076 ac_cv_prog_cc_stdc=$ac_arg
3079 echo "$as_me: failed program was:" >&5
3080 sed 's/^/| /' conftest.$ac_ext >&5
3083 rm -f conftest.err conftest.$ac_objext
3085 rm -f conftest.$ac_ext conftest.$ac_objext
3090 case "x$ac_cv_prog_cc_stdc" in
3092 echo "$as_me:$LINENO: result: none needed" >&5
3093 echo "${ECHO_T}none needed" >&6 ;;
3095 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3096 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3097 CC="$CC $ac_cv_prog_cc_stdc" ;;
3100 # Some people use a C++ compiler to compile C. Since we use `exit',
3101 # in C++ we need to declare it. In case someone uses the same compiler
3102 # for both compiling C and C++ we need to have the C++ compiler decide
3103 # the declaration of exit, since it's the most demanding environment.
3104 cat >conftest.$ac_ext <<_ACEOF
3109 rm -f conftest.$ac_objext
3110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3111 (eval $ac_compile) 2>conftest.er1
3113 grep -v '^ *+' conftest.er1 >conftest.err
3115 cat conftest.err >&5
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); } &&
3118 { ac_try='test -z "$ac_c_werror_flag"
3119 || test ! -s conftest.err'
3120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); }; } &&
3125 { ac_try='test -s conftest.$ac_objext'
3126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130 (exit $ac_status); }; }; then
3131 for ac_declaration in \
3133 'extern "C" void std::exit (int) throw (); using std::exit;' \
3134 'extern "C" void std::exit (int); using std::exit;' \
3135 'extern "C" void exit (int) throw ();' \
3136 'extern "C" void exit (int);' \
3139 cat >conftest.$ac_ext <<_ACEOF
3142 cat confdefs.h >>conftest.$ac_ext
3143 cat >>conftest.$ac_ext <<_ACEOF
3144 /* end confdefs.h. */
3155 rm -f conftest.$ac_objext
3156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3157 (eval $ac_compile) 2>conftest.er1
3159 grep -v '^ *+' conftest.er1 >conftest.err
3161 cat conftest.err >&5
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); } &&
3164 { ac_try='test -z "$ac_c_werror_flag"
3165 || test ! -s conftest.err'
3166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }; } &&
3171 { ac_try='test -s conftest.$ac_objext'
3172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); }; }; then
3179 echo "$as_me: failed program was:" >&5
3180 sed 's/^/| /' conftest.$ac_ext >&5
3184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3185 cat >conftest.$ac_ext <<_ACEOF
3188 cat confdefs.h >>conftest.$ac_ext
3189 cat >>conftest.$ac_ext <<_ACEOF
3190 /* end confdefs.h. */
3200 rm -f conftest.$ac_objext
3201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3202 (eval $ac_compile) 2>conftest.er1
3204 grep -v '^ *+' conftest.er1 >conftest.err
3206 cat conftest.err >&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); } &&
3209 { ac_try='test -z "$ac_c_werror_flag"
3210 || test ! -s conftest.err'
3211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215 (exit $ac_status); }; } &&
3216 { ac_try='test -s conftest.$ac_objext'
3217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); }; }; then
3224 echo "$as_me: failed program was:" >&5
3225 sed 's/^/| /' conftest.$ac_ext >&5
3228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3231 if test -n "$ac_declaration"; then
3232 echo '#ifdef __cplusplus' >>confdefs.h
3233 echo $ac_declaration >>confdefs.h
3234 echo '#endif' >>confdefs.h
3238 echo "$as_me: failed program was:" >&5
3239 sed 's/^/| /' conftest.$ac_ext >&5
3242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3244 ac_cpp='$CPP $CPPFLAGS'
3245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3248 DEPDIR="${am__leading_dot}deps"
3250 ac_config_commands="$ac_config_commands depfiles"
3253 am_make=${MAKE-make}
3254 cat > confinc << 'END'
3259 # If we don't find an include directive, just comment out the code.
3260 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3261 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3265 # First try GNU make style include.
3266 echo "include confinc" > confmf
3267 # We grep out `Entering directory' and `Leaving directory'
3268 # messages which can occur if `w' ends up in MAKEFLAGS.
3269 # In particular we don't look at `^make:' because GNU make might
3270 # be invoked under some other name (usually "gmake"), in which
3271 # case it prints its new name instead of `make'.
3272 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3277 # Now try BSD make style include.
3278 if test "$am__include" = "#"; then
3279 echo '.include "confinc"' > confmf
3280 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3281 am__include=.include
3288 echo "$as_me:$LINENO: result: $_am_result" >&5
3289 echo "${ECHO_T}$_am_result" >&6
3290 rm -f confinc confmf
3292 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3293 if test "${enable_dependency_tracking+set}" = set; then
3294 enableval="$enable_dependency_tracking"
3297 if test "x$enable_dependency_tracking" != xno; then
3298 am_depcomp="$ac_aux_dir/depcomp"
3303 if test "x$enable_dependency_tracking" != xno; then
3314 depcc="$CC" am_compiler_list=
3316 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3317 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3318 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3321 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3322 # We make a subdir and do the tests there. Otherwise we can end up
3323 # making bogus files that we don't know about and never remove. For
3324 # instance it was reported that on HP-UX the gcc test will end up
3325 # making a dummy file named `D' -- because `-MD' means `put the output
3328 # Copy depcomp to subdir because otherwise we won't find it if we're
3329 # using a relative directory.
3330 cp "$am_depcomp" conftest.dir
3332 # We will build objects and dependencies in a subdirectory because
3333 # it helps to detect inapplicable dependency modes. For instance
3334 # both Tru64's cc and ICC support -MD to output dependencies as a
3335 # side effect of compilation, but ICC will put the dependencies in
3336 # the current directory while Tru64 will put them in the object
3340 am_cv_CC_dependencies_compiler_type=none
3341 if test "$am_compiler_list" = ""; then
3342 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3344 for depmode in $am_compiler_list; do
3345 # Setup a source with many dependencies, because some compilers
3346 # like to wrap large dependency lists on column 80 (with \), and
3347 # we should not choose a depcomp mode which is confused by this.
3349 # We need to recreate these files for each test, as the compiler may
3350 # overwrite some of them when testing with obscure command lines.
3351 # This happens at least with the AIX C compiler.
3353 for i in 1 2 3 4 5 6; do
3354 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3355 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3356 # Solaris 8's {/usr,}/bin/sh.
3357 touch sub/conftst$i.h
3359 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3363 # after this tag, mechanisms are not by side-effect, so they'll
3364 # only be used when explicitly requested
3365 if test "x$enable_dependency_tracking" = xyes; then
3373 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3374 # mode. It turns out that the SunPro C++ compiler does not properly
3375 # handle `-M -o', and we need to detect this.
3376 if depmode=$depmode \
3377 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3378 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3379 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3380 >/dev/null 2>conftest.err &&
3381 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3382 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3383 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3384 # icc doesn't choke on unknown options, it will just issue warnings
3385 # or remarks (even with -Werror). So we grep stderr for any message
3386 # that says an option was ignored or not supported.
3387 # When given -MP, icc 7.0 and 7.1 complain thusly:
3388 # icc: Command line warning: ignoring option '-M'; no argument required
3389 # The diagnosis changed in icc 8.0:
3390 # icc: Command line remark: option '-MP' not supported
3391 if (grep 'ignoring option' conftest.err ||
3392 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3393 am_cv_CC_dependencies_compiler_type=$depmode
3402 am_cv_CC_dependencies_compiler_type=none
3406 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3407 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3408 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3413 test "x$enable_dependency_tracking" != xno \
3414 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3416 am__fastdepCC_FALSE='#'
3418 am__fastdepCC_TRUE='#'
3419 am__fastdepCC_FALSE=
3423 # Check whether --enable-shared or --disable-shared was given.
3424 if test "${enable_shared+set}" = set; then
3425 enableval="$enable_shared"
3426 p=${PACKAGE-default}
3428 yes) enable_shared=yes ;;
3429 no) enable_shared=no ;;
3432 # Look at the argument we got. We use all the common list separators.
3433 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3434 for pkg in $enableval; do
3436 if test "X$pkg" = "X$p"; then
3447 # Check whether --enable-static or --disable-static was given.
3448 if test "${enable_static+set}" = set; then
3449 enableval="$enable_static"
3450 p=${PACKAGE-default}
3452 yes) enable_static=yes ;;
3453 no) enable_static=no ;;
3456 # Look at the argument we got. We use all the common list separators.
3457 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3458 for pkg in $enableval; do
3460 if test "X$pkg" = "X$p"; then
3471 # Check whether --enable-fast-install or --disable-fast-install was given.
3472 if test "${enable_fast_install+set}" = set; then
3473 enableval="$enable_fast_install"
3474 p=${PACKAGE-default}
3476 yes) enable_fast_install=yes ;;
3477 no) enable_fast_install=no ;;
3479 enable_fast_install=no
3480 # Look at the argument we got. We use all the common list separators.
3481 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3482 for pkg in $enableval; do
3484 if test "X$pkg" = "X$p"; then
3485 enable_fast_install=yes
3492 enable_fast_install=yes
3495 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3496 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3497 if test "${lt_cv_path_SED+set}" = set; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3500 # Loop through the user's path and test for sed and gsed.
3501 # Then use that list of sed's as ones to test for truncation.
3502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 test -z "$as_dir" && as_dir=.
3507 for lt_ac_prog in sed gsed; do
3508 for ac_exec_ext in '' $ac_executable_extensions; do
3509 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3510 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3518 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3519 # along with /bin/sed that truncates output.
3520 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3521 test ! -f $lt_ac_sed && continue
3522 cat /dev/null > conftest.in
3524 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3525 # Check for GNU sed and select it if it is found.
3526 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3527 lt_cv_path_SED=$lt_ac_sed
3531 cat conftest.in conftest.in >conftest.tmp
3532 mv conftest.tmp conftest.in
3533 cp conftest.in conftest.nl
3535 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3536 cmp -s conftest.out conftest.nl || break
3537 # 10000 chars as input seems more than enough
3538 test $lt_ac_count -gt 10 && break
3539 lt_ac_count=`expr $lt_ac_count + 1`
3540 if test $lt_ac_count -gt $lt_ac_max; then
3541 lt_ac_max=$lt_ac_count
3542 lt_cv_path_SED=$lt_ac_sed
3551 echo "$as_me:$LINENO: result: $SED" >&5
3552 echo "${ECHO_T}$SED" >&6
3554 echo "$as_me:$LINENO: checking for egrep" >&5
3555 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3556 if test "${ac_cv_prog_egrep+set}" = set; then
3557 echo $ECHO_N "(cached) $ECHO_C" >&6
3559 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3560 then ac_cv_prog_egrep='grep -E'
3561 else ac_cv_prog_egrep='egrep'
3564 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3565 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3566 EGREP=$ac_cv_prog_egrep
3570 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3571 if test "${with_gnu_ld+set}" = set; then
3572 withval="$with_gnu_ld"
3573 test "$withval" = no || with_gnu_ld=yes
3578 if test "$GCC" = yes; then
3579 # Check if gcc -print-prog-name=ld gives a path.
3580 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3581 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3584 # gcc leaves a trailing carriage return which upsets mingw
3585 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3587 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3590 # Accept absolute paths.
3592 re_direlt='/[^/][^/]*/\.\./'
3593 # Canonicalize the pathname of ld
3594 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3595 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3596 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3598 test -z "$LD" && LD="$ac_prog"
3601 # If it fails, then pretend we aren't using GCC.
3605 # If it is relative, then search for the first ld in PATH.
3609 elif test "$with_gnu_ld" = yes; then
3610 echo "$as_me:$LINENO: checking for GNU ld" >&5
3611 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3613 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3614 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3616 if test "${lt_cv_path_LD+set}" = set; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
3619 if test -z "$LD"; then
3620 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3621 for ac_dir in $PATH; do
3623 test -z "$ac_dir" && ac_dir=.
3624 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3625 lt_cv_path_LD="$ac_dir/$ac_prog"
3626 # Check to see if the program is GNU ld. I'd rather use --version,
3627 # but apparently some variants of GNU ld only accept -v.
3628 # Break only if it was the GNU/non-GNU ld that we prefer.
3629 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3630 *GNU* | *'with BFD'*)
3631 test "$with_gnu_ld" != no && break
3634 test "$with_gnu_ld" != yes && break
3641 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3646 if test -n "$LD"; then
3647 echo "$as_me:$LINENO: result: $LD" >&5
3648 echo "${ECHO_T}$LD" >&6
3650 echo "$as_me:$LINENO: result: no" >&5
3651 echo "${ECHO_T}no" >&6
3653 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3654 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3655 { (exit 1); exit 1; }; }
3656 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3657 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3658 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3659 echo $ECHO_N "(cached) $ECHO_C" >&6
3661 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3662 case `$LD -v 2>&1 </dev/null` in
3663 *GNU* | *'with BFD'*)
3664 lt_cv_prog_gnu_ld=yes
3667 lt_cv_prog_gnu_ld=no
3671 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3672 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3673 with_gnu_ld=$lt_cv_prog_gnu_ld
3676 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3677 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3678 if test "${lt_cv_ld_reload_flag+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3681 lt_cv_ld_reload_flag='-r'
3683 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3684 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3685 reload_flag=$lt_cv_ld_reload_flag
3686 case $reload_flag in
3688 *) reload_flag=" $reload_flag" ;;
3690 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3693 if test "$GCC" = yes; then
3694 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3696 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3701 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3702 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3703 if test "${lt_cv_path_NM+set}" = set; then
3704 echo $ECHO_N "(cached) $ECHO_C" >&6
3706 if test -n "$NM"; then
3707 # Let the user override the test.
3710 lt_nm_to_check="${ac_tool_prefix}nm"
3711 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3712 lt_nm_to_check="$lt_nm_to_check nm"
3714 for lt_tmp_nm in $lt_nm_to_check; do
3715 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3716 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3718 test -z "$ac_dir" && ac_dir=.
3719 tmp_nm="$ac_dir/$lt_tmp_nm"
3720 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3721 # Check to see if the nm accepts a BSD-compat flag.
3722 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3723 # nm: unknown option "B" ignored
3724 # Tru64's nm complains that /dev/null is an invalid object file
3725 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3726 */dev/null* | *'Invalid file or object type'*)
3727 lt_cv_path_NM="$tmp_nm -B"
3731 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3733 lt_cv_path_NM="$tmp_nm -p"
3737 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3738 continue # so that we can try to find one that supports BSD flags
3747 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3750 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3751 echo "${ECHO_T}$lt_cv_path_NM" >&6
3754 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3755 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3757 if test "$LN_S" = "ln -s"; then
3758 echo "$as_me:$LINENO: result: yes" >&5
3759 echo "${ECHO_T}yes" >&6
3761 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3762 echo "${ECHO_T}no, using $LN_S" >&6
3765 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3766 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3767 if test "${lt_cv_deplibs_check_method+set}" = set; then
3768 echo $ECHO_N "(cached) $ECHO_C" >&6
3770 lt_cv_file_magic_cmd='$MAGIC_CMD'
3771 lt_cv_file_magic_test_file=
3772 lt_cv_deplibs_check_method='unknown'
3773 # Need to set the preceding variable on all platforms that support
3774 # interlibrary dependencies.
3775 # 'none' -- dependencies not supported.
3776 # `unknown' -- same as none, but documents that we really don't know.
3777 # 'pass_all' -- all dependencies passed with no checks.
3778 # 'test_compile' -- check by making test program.
3779 # 'file_magic [[regex]]' -- check by looking for files in library path
3780 # which responds to the $file_magic_cmd with a given extended regex.
3781 # If you have `file' or equivalent on your system and you're not sure
3782 # whether `pass_all' will *always* work, you probably want this one.
3786 lt_cv_deplibs_check_method=pass_all
3790 lt_cv_deplibs_check_method=pass_all
3794 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3795 lt_cv_file_magic_cmd='/usr/bin/file -L'
3796 lt_cv_file_magic_test_file=/shlib/libc.so
3800 # func_win32_libid is a shell function defined in ltmain.sh
3801 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3802 lt_cv_file_magic_cmd='func_win32_libid'
3806 # Base MSYS/MinGW do not provide the 'file' command needed by
3807 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3808 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3809 lt_cv_file_magic_cmd='$OBJDUMP -f'
3812 darwin* | rhapsody*)
3813 lt_cv_deplibs_check_method=pass_all
3816 freebsd* | kfreebsd*-gnu | dragonfly*)
3817 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3820 # Not sure whether the presence of OpenBSD here was a mistake.
3821 # Let's accept both of them until this is cleared up.
3822 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3823 lt_cv_file_magic_cmd=/usr/bin/file
3824 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3828 lt_cv_deplibs_check_method=pass_all
3833 lt_cv_deplibs_check_method=pass_all
3836 hpux10.20* | hpux11*)
3837 lt_cv_file_magic_cmd=/usr/bin/file
3840 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3841 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3844 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]'
3845 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3848 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3849 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3855 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3856 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3859 irix5* | irix6* | nonstopux*)
3861 *-32|*"-32 ") libmagic=32-bit;;
3862 *-n32|*"-n32 ") libmagic=N32;;
3863 *-64|*"-64 ") libmagic=64-bit;;
3864 *) libmagic=never-match;;
3866 lt_cv_deplibs_check_method=pass_all
3869 # This must be Linux ELF.
3871 lt_cv_deplibs_check_method=pass_all
3875 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3876 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3878 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3883 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3884 lt_cv_file_magic_cmd=/usr/bin/file
3885 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3889 lt_cv_deplibs_check_method=unknown
3893 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3894 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3896 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3900 osf3* | osf4* | osf5*)
3901 lt_cv_deplibs_check_method=pass_all
3905 lt_cv_deplibs_check_method=pass_all
3909 case $host_vendor in
3911 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]'
3912 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3915 lt_cv_deplibs_check_method=pass_all
3918 lt_cv_file_magic_cmd='/bin/file'
3919 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3922 lt_cv_file_magic_cmd='/bin/file'
3923 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3924 lt_cv_file_magic_test_file=/lib/libc.so
3927 lt_cv_deplibs_check_method=pass_all
3930 lt_cv_deplibs_check_method=pass_all
3935 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3936 lt_cv_deplibs_check_method=pass_all
3941 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3942 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3943 file_magic_cmd=$lt_cv_file_magic_cmd
3944 deplibs_check_method=$lt_cv_deplibs_check_method
3945 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3950 # If no C compiler was specified, use CC.
3953 # If no C compiler flags were specified, use CFLAGS.
3954 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3956 # Allow CC to be a program name with arguments.
3960 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3961 if test "${enable_libtool_lock+set}" = set; then
3962 enableval="$enable_libtool_lock"
3965 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3967 # Some flags need to be propagated to the compiler or linker for good
3971 # Find out which ABI we are using.
3972 echo 'int i;' > conftest.$ac_ext
3973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3974 (eval $ac_compile) 2>&5
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); }; then
3978 case `/usr/bin/file conftest.$ac_objext` in
3990 # Find out which ABI we are using.
3991 echo '#line 3991 "configure"' > conftest.$ac_ext
3992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3993 (eval $ac_compile) 2>&5
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); }; then
3997 if test "$lt_cv_prog_gnu_ld" = yes; then
3998 case `/usr/bin/file conftest.$ac_objext` in
4000 LD="${LD-ld} -melf32bsmip"
4003 LD="${LD-ld} -melf32bmipn32"
4006 LD="${LD-ld} -melf64bmip"
4010 case `/usr/bin/file conftest.$ac_objext` in
4026 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4027 # Find out which ABI we are using.
4028 echo 'int i;' > conftest.$ac_ext
4029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4030 (eval $ac_compile) 2>&5
4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033 (exit $ac_status); }; then
4034 case `/usr/bin/file conftest.o` in
4038 LD="${LD-ld} -m elf_i386"
4040 ppc64-*linux*|powerpc64-*linux*)
4041 LD="${LD-ld} -m elf32ppclinux"
4044 LD="${LD-ld} -m elf_s390"
4047 LD="${LD-ld} -m elf32_sparc"
4054 LD="${LD-ld} -m elf_x86_64"
4056 ppc*-*linux*|powerpc*-*linux*)
4057 LD="${LD-ld} -m elf64ppc"
4060 LD="${LD-ld} -m elf64_s390"
4063 LD="${LD-ld} -m elf64_sparc"
4073 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4074 SAVE_CFLAGS="$CFLAGS"
4075 CFLAGS="$CFLAGS -belf"
4076 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4077 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4078 if test "${lt_cv_cc_needs_belf+set}" = set; then
4079 echo $ECHO_N "(cached) $ECHO_C" >&6
4082 ac_cpp='$CPP $CPPFLAGS'
4083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4087 cat >conftest.$ac_ext <<_ACEOF
4090 cat confdefs.h >>conftest.$ac_ext
4091 cat >>conftest.$ac_ext <<_ACEOF
4092 /* end confdefs.h. */
4102 rm -f conftest.$ac_objext conftest$ac_exeext
4103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4104 (eval $ac_link) 2>conftest.er1
4106 grep -v '^ *+' conftest.er1 >conftest.err
4108 cat conftest.err >&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); } &&
4111 { ac_try='test -z "$ac_c_werror_flag"
4112 || test ! -s conftest.err'
4113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); }; } &&
4118 { ac_try='test -s conftest$ac_exeext'
4119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); }; }; then
4124 lt_cv_cc_needs_belf=yes
4126 echo "$as_me: failed program was:" >&5
4127 sed 's/^/| /' conftest.$ac_ext >&5
4129 lt_cv_cc_needs_belf=no
4131 rm -f conftest.err conftest.$ac_objext \
4132 conftest$ac_exeext conftest.$ac_ext
4134 ac_cpp='$CPP $CPPFLAGS'
4135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4140 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4141 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4142 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4143 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4144 CFLAGS="$SAVE_CFLAGS"
4148 # Find out which ABI we are using.
4149 echo 'int i;' > conftest.$ac_ext
4150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4151 (eval $ac_compile) 2>&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }; then
4155 case `/usr/bin/file conftest.o` in
4157 case $lt_cv_prog_gnu_ld in
4158 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4159 *) LD="${LD-ld} -64" ;;
4170 need_locks="$enable_libtool_lock"
4174 ac_cpp='$CPP $CPPFLAGS'
4175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4178 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4179 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4180 # On Suns, sometimes $CPP names a directory.
4181 if test -n "$CPP" && test -d "$CPP"; then
4184 if test -z "$CPP"; then
4185 if test "${ac_cv_prog_CPP+set}" = set; then
4186 echo $ECHO_N "(cached) $ECHO_C" >&6
4188 # Double quotes because CPP needs to be expanded
4189 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4192 for ac_c_preproc_warn_flag in '' yes
4194 # Use a header file that comes with gcc, so configuring glibc
4195 # with a fresh cross-compiler works.
4196 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4197 # <limits.h> exists even on freestanding compilers.
4198 # On the NeXT, cc -E runs the code through the compiler's parser,
4199 # not just through cpp. "Syntax error" is here to catch this case.
4200 cat >conftest.$ac_ext <<_ACEOF
4203 cat confdefs.h >>conftest.$ac_ext
4204 cat >>conftest.$ac_ext <<_ACEOF
4205 /* end confdefs.h. */
4207 # include <limits.h>
4209 # include <assert.h>
4213 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4214 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4216 grep -v '^ *+' conftest.er1 >conftest.err
4218 cat conftest.err >&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); } >/dev/null; then
4221 if test -s conftest.err; then
4222 ac_cpp_err=$ac_c_preproc_warn_flag
4223 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4230 if test -z "$ac_cpp_err"; then
4233 echo "$as_me: failed program was:" >&5
4234 sed 's/^/| /' conftest.$ac_ext >&5
4236 # Broken: fails on valid input.
4239 rm -f conftest.err conftest.$ac_ext
4241 # OK, works on sane cases. Now check whether non-existent headers
4242 # can be detected and how.
4243 cat >conftest.$ac_ext <<_ACEOF
4246 cat confdefs.h >>conftest.$ac_ext
4247 cat >>conftest.$ac_ext <<_ACEOF
4248 /* end confdefs.h. */
4249 #include <ac_nonexistent.h>
4251 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4252 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4254 grep -v '^ *+' conftest.er1 >conftest.err
4256 cat conftest.err >&5
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); } >/dev/null; then
4259 if test -s conftest.err; then
4260 ac_cpp_err=$ac_c_preproc_warn_flag
4261 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4268 if test -z "$ac_cpp_err"; then
4269 # Broken: success on invalid input.
4272 echo "$as_me: failed program was:" >&5
4273 sed 's/^/| /' conftest.$ac_ext >&5
4275 # Passes both tests.
4279 rm -f conftest.err conftest.$ac_ext
4282 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4283 rm -f conftest.err conftest.$ac_ext
4284 if $ac_preproc_ok; then
4296 echo "$as_me:$LINENO: result: $CPP" >&5
4297 echo "${ECHO_T}$CPP" >&6
4299 for ac_c_preproc_warn_flag in '' yes
4301 # Use a header file that comes with gcc, so configuring glibc
4302 # with a fresh cross-compiler works.
4303 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4304 # <limits.h> exists even on freestanding compilers.
4305 # On the NeXT, cc -E runs the code through the compiler's parser,
4306 # not just through cpp. "Syntax error" is here to catch this case.
4307 cat >conftest.$ac_ext <<_ACEOF
4310 cat confdefs.h >>conftest.$ac_ext
4311 cat >>conftest.$ac_ext <<_ACEOF
4312 /* end confdefs.h. */
4314 # include <limits.h>
4316 # include <assert.h>
4320 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4321 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4323 grep -v '^ *+' conftest.er1 >conftest.err
4325 cat conftest.err >&5
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); } >/dev/null; then
4328 if test -s conftest.err; then
4329 ac_cpp_err=$ac_c_preproc_warn_flag
4330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4337 if test -z "$ac_cpp_err"; then
4340 echo "$as_me: failed program was:" >&5
4341 sed 's/^/| /' conftest.$ac_ext >&5
4343 # Broken: fails on valid input.
4346 rm -f conftest.err conftest.$ac_ext
4348 # OK, works on sane cases. Now check whether non-existent headers
4349 # can be detected and how.
4350 cat >conftest.$ac_ext <<_ACEOF
4353 cat confdefs.h >>conftest.$ac_ext
4354 cat >>conftest.$ac_ext <<_ACEOF
4355 /* end confdefs.h. */
4356 #include <ac_nonexistent.h>
4358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4361 grep -v '^ *+' conftest.er1 >conftest.err
4363 cat conftest.err >&5
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); } >/dev/null; then
4366 if test -s conftest.err; then
4367 ac_cpp_err=$ac_c_preproc_warn_flag
4368 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4375 if test -z "$ac_cpp_err"; then
4376 # Broken: success on invalid input.
4379 echo "$as_me: failed program was:" >&5
4380 sed 's/^/| /' conftest.$ac_ext >&5
4382 # Passes both tests.
4386 rm -f conftest.err conftest.$ac_ext
4389 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4390 rm -f conftest.err conftest.$ac_ext
4391 if $ac_preproc_ok; then
4394 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4395 See \`config.log' for more details." >&5
4396 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4397 See \`config.log' for more details." >&2;}
4398 { (exit 1); exit 1; }; }
4402 ac_cpp='$CPP $CPPFLAGS'
4403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4408 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4409 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4410 if test "${ac_cv_header_stdc+set}" = set; then
4411 echo $ECHO_N "(cached) $ECHO_C" >&6
4413 cat >conftest.$ac_ext <<_ACEOF
4416 cat confdefs.h >>conftest.$ac_ext
4417 cat >>conftest.$ac_ext <<_ACEOF
4418 /* end confdefs.h. */
4432 rm -f conftest.$ac_objext
4433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4434 (eval $ac_compile) 2>conftest.er1
4436 grep -v '^ *+' conftest.er1 >conftest.err
4438 cat conftest.err >&5
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); } &&
4441 { ac_try='test -z "$ac_c_werror_flag"
4442 || test ! -s conftest.err'
4443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); }; } &&
4448 { ac_try='test -s conftest.$ac_objext'
4449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); }; }; then
4454 ac_cv_header_stdc=yes
4456 echo "$as_me: failed program was:" >&5
4457 sed 's/^/| /' conftest.$ac_ext >&5
4459 ac_cv_header_stdc=no
4461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4463 if test $ac_cv_header_stdc = yes; then
4464 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4465 cat >conftest.$ac_ext <<_ACEOF
4468 cat confdefs.h >>conftest.$ac_ext
4469 cat >>conftest.$ac_ext <<_ACEOF
4470 /* end confdefs.h. */
4474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4475 $EGREP "memchr" >/dev/null 2>&1; then
4478 ac_cv_header_stdc=no
4484 if test $ac_cv_header_stdc = yes; then
4485 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4486 cat >conftest.$ac_ext <<_ACEOF
4489 cat confdefs.h >>conftest.$ac_ext
4490 cat >>conftest.$ac_ext <<_ACEOF
4491 /* end confdefs.h. */
4495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4496 $EGREP "free" >/dev/null 2>&1; then
4499 ac_cv_header_stdc=no
4505 if test $ac_cv_header_stdc = yes; then
4506 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4507 if test "$cross_compiling" = yes; then
4510 cat >conftest.$ac_ext <<_ACEOF
4513 cat confdefs.h >>conftest.$ac_ext
4514 cat >>conftest.$ac_ext <<_ACEOF
4515 /* end confdefs.h. */
4517 #if ((' ' & 0x0FF) == 0x020)
4518 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4519 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4521 # define ISLOWER(c) \
4522 (('a' <= (c) && (c) <= 'i') \
4523 || ('j' <= (c) && (c) <= 'r') \
4524 || ('s' <= (c) && (c) <= 'z'))
4525 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4528 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4533 for (i = 0; i < 256; i++)
4534 if (XOR (islower (i), ISLOWER (i))
4535 || toupper (i) != TOUPPER (i))
4540 rm -f conftest$ac_exeext
4541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4542 (eval $ac_link) 2>&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); }; }; then
4553 echo "$as_me: program exited with status $ac_status" >&5
4554 echo "$as_me: failed program was:" >&5
4555 sed 's/^/| /' conftest.$ac_ext >&5
4558 ac_cv_header_stdc=no
4560 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4564 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4565 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4566 if test $ac_cv_header_stdc = yes; then
4568 cat >>confdefs.h <<\_ACEOF
4569 #define STDC_HEADERS 1
4574 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4584 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4585 inttypes.h stdint.h unistd.h
4587 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4588 echo "$as_me:$LINENO: checking for $ac_header" >&5
4589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4591 echo $ECHO_N "(cached) $ECHO_C" >&6
4593 cat >conftest.$ac_ext <<_ACEOF
4596 cat confdefs.h >>conftest.$ac_ext
4597 cat >>conftest.$ac_ext <<_ACEOF
4598 /* end confdefs.h. */
4599 $ac_includes_default
4601 #include <$ac_header>
4603 rm -f conftest.$ac_objext
4604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4605 (eval $ac_compile) 2>conftest.er1
4607 grep -v '^ *+' conftest.er1 >conftest.err
4609 cat conftest.err >&5
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); } &&
4612 { ac_try='test -z "$ac_c_werror_flag"
4613 || test ! -s conftest.err'
4614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); }; } &&
4619 { ac_try='test -s conftest.$ac_objext'
4620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); }; }; then
4625 eval "$as_ac_Header=yes"
4627 echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.$ac_ext >&5
4630 eval "$as_ac_Header=no"
4632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4635 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4636 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4637 cat >>confdefs.h <<_ACEOF
4638 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4647 for ac_header in dlfcn.h
4649 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4651 echo "$as_me:$LINENO: checking for $ac_header" >&5
4652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4659 # Is the header compilable?
4660 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4661 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4662 cat >conftest.$ac_ext <<_ACEOF
4665 cat confdefs.h >>conftest.$ac_ext
4666 cat >>conftest.$ac_ext <<_ACEOF
4667 /* end confdefs.h. */
4668 $ac_includes_default
4669 #include <$ac_header>
4671 rm -f conftest.$ac_objext
4672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4673 (eval $ac_compile) 2>conftest.er1
4675 grep -v '^ *+' conftest.er1 >conftest.err
4677 cat conftest.err >&5
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); } &&
4680 { ac_try='test -z "$ac_c_werror_flag"
4681 || test ! -s conftest.err'
4682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); }; } &&
4687 { ac_try='test -s conftest.$ac_objext'
4688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); }; }; then
4693 ac_header_compiler=yes
4695 echo "$as_me: failed program was:" >&5
4696 sed 's/^/| /' conftest.$ac_ext >&5
4698 ac_header_compiler=no
4700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4701 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4702 echo "${ECHO_T}$ac_header_compiler" >&6
4704 # Is the header present?
4705 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4706 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4707 cat >conftest.$ac_ext <<_ACEOF
4710 cat confdefs.h >>conftest.$ac_ext
4711 cat >>conftest.$ac_ext <<_ACEOF
4712 /* end confdefs.h. */
4713 #include <$ac_header>
4715 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4716 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4718 grep -v '^ *+' conftest.er1 >conftest.err
4720 cat conftest.err >&5
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); } >/dev/null; then
4723 if test -s conftest.err; then
4724 ac_cpp_err=$ac_c_preproc_warn_flag
4725 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4732 if test -z "$ac_cpp_err"; then
4733 ac_header_preproc=yes
4735 echo "$as_me: failed program was:" >&5
4736 sed 's/^/| /' conftest.$ac_ext >&5
4738 ac_header_preproc=no
4740 rm -f conftest.err conftest.$ac_ext
4741 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4742 echo "${ECHO_T}$ac_header_preproc" >&6
4744 # So? What about this header?
4745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4747 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4748 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4750 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4751 ac_header_preproc=yes
4754 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4755 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4756 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4757 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4758 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4759 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4760 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4761 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4764 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4765 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4768 ## ------------------------------------------ ##
4769 ## Report this to the AC_PACKAGE_NAME lists. ##
4770 ## ------------------------------------------ ##
4773 sed "s/^/$as_me: WARNING: /" >&2
4776 echo "$as_me:$LINENO: checking for $ac_header" >&5
4777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4779 echo $ECHO_N "(cached) $ECHO_C" >&6
4781 eval "$as_ac_Header=\$ac_header_preproc"
4783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4784 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4787 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4788 cat >>confdefs.h <<_ACEOF
4789 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4797 ac_cpp='$CXXCPP $CPPFLAGS'
4798 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4799 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4800 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4801 if test -n "$ac_tool_prefix"; then
4802 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4804 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4805 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4806 echo "$as_me:$LINENO: checking for $ac_word" >&5
4807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4808 if test "${ac_cv_prog_CXX+set}" = set; then
4809 echo $ECHO_N "(cached) $ECHO_C" >&6
4811 if test -n "$CXX"; then
4812 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818 test -z "$as_dir" && as_dir=.
4819 for ac_exec_ext in '' $ac_executable_extensions; do
4820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4821 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4831 if test -n "$CXX"; then
4832 echo "$as_me:$LINENO: result: $CXX" >&5
4833 echo "${ECHO_T}$CXX" >&6
4835 echo "$as_me:$LINENO: result: no" >&5
4836 echo "${ECHO_T}no" >&6
4839 test -n "$CXX" && break
4842 if test -z "$CXX"; then
4844 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4846 # Extract the first word of "$ac_prog", so it can be a program name with args.
4847 set dummy $ac_prog; ac_word=$2
4848 echo "$as_me:$LINENO: checking for $ac_word" >&5
4849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4850 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4851 echo $ECHO_N "(cached) $ECHO_C" >&6
4853 if test -n "$ac_ct_CXX"; then
4854 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 test -z "$as_dir" && as_dir=.
4861 for ac_exec_ext in '' $ac_executable_extensions; do
4862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4863 ac_cv_prog_ac_ct_CXX="$ac_prog"
4864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4872 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4873 if test -n "$ac_ct_CXX"; then
4874 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4875 echo "${ECHO_T}$ac_ct_CXX" >&6
4877 echo "$as_me:$LINENO: result: no" >&5
4878 echo "${ECHO_T}no" >&6
4881 test -n "$ac_ct_CXX" && break
4883 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4889 # Provide some information about the compiler.
4890 echo "$as_me:$LINENO:" \
4891 "checking for C++ compiler version" >&5
4892 ac_compiler=`set X $ac_compile; echo $2`
4893 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4894 (eval $ac_compiler --version </dev/null >&5) 2>&5
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); }
4898 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4899 (eval $ac_compiler -v </dev/null >&5) 2>&5
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); }
4903 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4904 (eval $ac_compiler -V </dev/null >&5) 2>&5
4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); }
4909 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4910 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4911 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4912 echo $ECHO_N "(cached) $ECHO_C" >&6
4914 cat >conftest.$ac_ext <<_ACEOF
4917 cat confdefs.h >>conftest.$ac_ext
4918 cat >>conftest.$ac_ext <<_ACEOF
4919 /* end confdefs.h. */
4932 rm -f conftest.$ac_objext
4933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4934 (eval $ac_compile) 2>conftest.er1
4936 grep -v '^ *+' conftest.er1 >conftest.err
4938 cat conftest.err >&5
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); } &&
4941 { ac_try='test -z "$ac_cxx_werror_flag"
4942 || test ! -s conftest.err'
4943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); }; } &&
4948 { ac_try='test -s conftest.$ac_objext'
4949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); }; }; then
4956 echo "$as_me: failed program was:" >&5
4957 sed 's/^/| /' conftest.$ac_ext >&5
4961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4962 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4965 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4966 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4967 GXX=`test $ac_compiler_gnu = yes && echo yes`
4968 ac_test_CXXFLAGS=${CXXFLAGS+set}
4969 ac_save_CXXFLAGS=$CXXFLAGS
4971 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4972 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4973 if test "${ac_cv_prog_cxx_g+set}" = set; then
4974 echo $ECHO_N "(cached) $ECHO_C" >&6
4976 cat >conftest.$ac_ext <<_ACEOF
4979 cat confdefs.h >>conftest.$ac_ext
4980 cat >>conftest.$ac_ext <<_ACEOF
4981 /* end confdefs.h. */
4991 rm -f conftest.$ac_objext
4992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4993 (eval $ac_compile) 2>conftest.er1
4995 grep -v '^ *+' conftest.er1 >conftest.err
4997 cat conftest.err >&5
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); } &&
5000 { ac_try='test -z "$ac_cxx_werror_flag"
5001 || test ! -s conftest.err'
5002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); }; } &&
5007 { ac_try='test -s conftest.$ac_objext'
5008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); }; }; then
5013 ac_cv_prog_cxx_g=yes
5015 echo "$as_me: failed program was:" >&5
5016 sed 's/^/| /' conftest.$ac_ext >&5
5020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5022 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5023 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5024 if test "$ac_test_CXXFLAGS" = set; then
5025 CXXFLAGS=$ac_save_CXXFLAGS
5026 elif test $ac_cv_prog_cxx_g = yes; then
5027 if test "$GXX" = yes; then
5033 if test "$GXX" = yes; then
5039 for ac_declaration in \
5041 'extern "C" void std::exit (int) throw (); using std::exit;' \
5042 'extern "C" void std::exit (int); using std::exit;' \
5043 'extern "C" void exit (int) throw ();' \
5044 'extern "C" void exit (int);' \
5047 cat >conftest.$ac_ext <<_ACEOF
5050 cat confdefs.h >>conftest.$ac_ext
5051 cat >>conftest.$ac_ext <<_ACEOF
5052 /* end confdefs.h. */
5063 rm -f conftest.$ac_objext
5064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5065 (eval $ac_compile) 2>conftest.er1
5067 grep -v '^ *+' conftest.er1 >conftest.err
5069 cat conftest.err >&5
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); } &&
5072 { ac_try='test -z "$ac_cxx_werror_flag"
5073 || test ! -s conftest.err'
5074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); }; } &&
5079 { ac_try='test -s conftest.$ac_objext'
5080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); }; }; then
5087 echo "$as_me: failed program was:" >&5
5088 sed 's/^/| /' conftest.$ac_ext >&5
5092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5093 cat >conftest.$ac_ext <<_ACEOF
5096 cat confdefs.h >>conftest.$ac_ext
5097 cat >>conftest.$ac_ext <<_ACEOF
5098 /* end confdefs.h. */
5108 rm -f conftest.$ac_objext
5109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5110 (eval $ac_compile) 2>conftest.er1
5112 grep -v '^ *+' conftest.er1 >conftest.err
5114 cat conftest.err >&5
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); } &&
5117 { ac_try='test -z "$ac_cxx_werror_flag"
5118 || test ! -s conftest.err'
5119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); }; } &&
5124 { ac_try='test -s conftest.$ac_objext'
5125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); }; }; then
5132 echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.$ac_ext >&5
5136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5139 if test -n "$ac_declaration"; then
5140 echo '#ifdef __cplusplus' >>confdefs.h
5141 echo $ac_declaration >>confdefs.h
5142 echo '#endif' >>confdefs.h
5146 ac_cpp='$CXXCPP $CPPFLAGS'
5147 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5148 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5149 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5151 depcc="$CXX" am_compiler_list=
5153 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5154 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5155 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5156 echo $ECHO_N "(cached) $ECHO_C" >&6
5158 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5159 # We make a subdir and do the tests there. Otherwise we can end up
5160 # making bogus files that we don't know about and never remove. For
5161 # instance it was reported that on HP-UX the gcc test will end up
5162 # making a dummy file named `D' -- because `-MD' means `put the output
5165 # Copy depcomp to subdir because otherwise we won't find it if we're
5166 # using a relative directory.
5167 cp "$am_depcomp" conftest.dir
5169 # We will build objects and dependencies in a subdirectory because
5170 # it helps to detect inapplicable dependency modes. For instance
5171 # both Tru64's cc and ICC support -MD to output dependencies as a
5172 # side effect of compilation, but ICC will put the dependencies in
5173 # the current directory while Tru64 will put them in the object
5177 am_cv_CXX_dependencies_compiler_type=none
5178 if test "$am_compiler_list" = ""; then
5179 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5181 for depmode in $am_compiler_list; do
5182 # Setup a source with many dependencies, because some compilers
5183 # like to wrap large dependency lists on column 80 (with \), and
5184 # we should not choose a depcomp mode which is confused by this.
5186 # We need to recreate these files for each test, as the compiler may
5187 # overwrite some of them when testing with obscure command lines.
5188 # This happens at least with the AIX C compiler.
5190 for i in 1 2 3 4 5 6; do
5191 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5192 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5193 # Solaris 8's {/usr,}/bin/sh.
5194 touch sub/conftst$i.h
5196 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5200 # after this tag, mechanisms are not by side-effect, so they'll
5201 # only be used when explicitly requested
5202 if test "x$enable_dependency_tracking" = xyes; then
5210 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5211 # mode. It turns out that the SunPro C++ compiler does not properly
5212 # handle `-M -o', and we need to detect this.
5213 if depmode=$depmode \
5214 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5215 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5216 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5217 >/dev/null 2>conftest.err &&
5218 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5219 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5220 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5221 # icc doesn't choke on unknown options, it will just issue warnings
5222 # or remarks (even with -Werror). So we grep stderr for any message
5223 # that says an option was ignored or not supported.
5224 # When given -MP, icc 7.0 and 7.1 complain thusly:
5225 # icc: Command line warning: ignoring option '-M'; no argument required
5226 # The diagnosis changed in icc 8.0:
5227 # icc: Command line remark: option '-MP' not supported
5228 if (grep 'ignoring option' conftest.err ||
5229 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5230 am_cv_CXX_dependencies_compiler_type=$depmode
5239 am_cv_CXX_dependencies_compiler_type=none
5243 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5244 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5245 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5250 test "x$enable_dependency_tracking" != xno \
5251 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5252 am__fastdepCXX_TRUE=
5253 am__fastdepCXX_FALSE='#'
5255 am__fastdepCXX_TRUE='#'
5256 am__fastdepCXX_FALSE=
5262 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5263 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5264 (test "X$CXX" != "Xg++"))) ; then
5266 ac_cpp='$CXXCPP $CPPFLAGS'
5267 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5268 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5269 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5270 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5271 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5272 if test -z "$CXXCPP"; then
5273 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5274 echo $ECHO_N "(cached) $ECHO_C" >&6
5276 # Double quotes because CXXCPP needs to be expanded
5277 for CXXCPP in "$CXX -E" "/lib/cpp"
5280 for ac_cxx_preproc_warn_flag in '' yes
5282 # Use a header file that comes with gcc, so configuring glibc
5283 # with a fresh cross-compiler works.
5284 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5285 # <limits.h> exists even on freestanding compilers.
5286 # On the NeXT, cc -E runs the code through the compiler's parser,
5287 # not just through cpp. "Syntax error" is here to catch this case.
5288 cat >conftest.$ac_ext <<_ACEOF
5291 cat confdefs.h >>conftest.$ac_ext
5292 cat >>conftest.$ac_ext <<_ACEOF
5293 /* end confdefs.h. */
5295 # include <limits.h>
5297 # include <assert.h>
5301 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5304 grep -v '^ *+' conftest.er1 >conftest.err
5306 cat conftest.err >&5
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); } >/dev/null; then
5309 if test -s conftest.err; then
5310 ac_cpp_err=$ac_cxx_preproc_warn_flag
5311 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5318 if test -z "$ac_cpp_err"; then
5321 echo "$as_me: failed program was:" >&5
5322 sed 's/^/| /' conftest.$ac_ext >&5
5324 # Broken: fails on valid input.
5327 rm -f conftest.err conftest.$ac_ext
5329 # OK, works on sane cases. Now check whether non-existent headers
5330 # can be detected and how.
5331 cat >conftest.$ac_ext <<_ACEOF
5334 cat confdefs.h >>conftest.$ac_ext
5335 cat >>conftest.$ac_ext <<_ACEOF
5336 /* end confdefs.h. */
5337 #include <ac_nonexistent.h>
5339 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5340 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5342 grep -v '^ *+' conftest.er1 >conftest.err
5344 cat conftest.err >&5
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); } >/dev/null; then
5347 if test -s conftest.err; then
5348 ac_cpp_err=$ac_cxx_preproc_warn_flag
5349 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5356 if test -z "$ac_cpp_err"; then
5357 # Broken: success on invalid input.
5360 echo "$as_me: failed program was:" >&5
5361 sed 's/^/| /' conftest.$ac_ext >&5
5363 # Passes both tests.
5367 rm -f conftest.err conftest.$ac_ext
5370 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5371 rm -f conftest.err conftest.$ac_ext
5372 if $ac_preproc_ok; then
5377 ac_cv_prog_CXXCPP=$CXXCPP
5380 CXXCPP=$ac_cv_prog_CXXCPP
5382 ac_cv_prog_CXXCPP=$CXXCPP
5384 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5385 echo "${ECHO_T}$CXXCPP" >&6
5387 for ac_cxx_preproc_warn_flag in '' yes
5389 # Use a header file that comes with gcc, so configuring glibc
5390 # with a fresh cross-compiler works.
5391 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5392 # <limits.h> exists even on freestanding compilers.
5393 # On the NeXT, cc -E runs the code through the compiler's parser,
5394 # not just through cpp. "Syntax error" is here to catch this case.
5395 cat >conftest.$ac_ext <<_ACEOF
5398 cat confdefs.h >>conftest.$ac_ext
5399 cat >>conftest.$ac_ext <<_ACEOF
5400 /* end confdefs.h. */
5402 # include <limits.h>
5404 # include <assert.h>
5408 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5409 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5411 grep -v '^ *+' conftest.er1 >conftest.err
5413 cat conftest.err >&5
5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415 (exit $ac_status); } >/dev/null; then
5416 if test -s conftest.err; then
5417 ac_cpp_err=$ac_cxx_preproc_warn_flag
5418 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5425 if test -z "$ac_cpp_err"; then
5428 echo "$as_me: failed program was:" >&5
5429 sed 's/^/| /' conftest.$ac_ext >&5
5431 # Broken: fails on valid input.
5434 rm -f conftest.err conftest.$ac_ext
5436 # OK, works on sane cases. Now check whether non-existent headers
5437 # can be detected and how.
5438 cat >conftest.$ac_ext <<_ACEOF
5441 cat confdefs.h >>conftest.$ac_ext
5442 cat >>conftest.$ac_ext <<_ACEOF
5443 /* end confdefs.h. */
5444 #include <ac_nonexistent.h>
5446 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5447 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5449 grep -v '^ *+' conftest.er1 >conftest.err
5451 cat conftest.err >&5
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); } >/dev/null; then
5454 if test -s conftest.err; then
5455 ac_cpp_err=$ac_cxx_preproc_warn_flag
5456 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5463 if test -z "$ac_cpp_err"; then
5464 # Broken: success on invalid input.
5467 echo "$as_me: failed program was:" >&5
5468 sed 's/^/| /' conftest.$ac_ext >&5
5470 # Passes both tests.
5474 rm -f conftest.err conftest.$ac_ext
5477 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5478 rm -f conftest.err conftest.$ac_ext
5479 if $ac_preproc_ok; then
5482 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5483 See \`config.log' for more details." >&5
5484 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5485 See \`config.log' for more details." >&2;}
5486 { (exit 1); exit 1; }; }
5490 ac_cpp='$CXXCPP $CPPFLAGS'
5491 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5492 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5493 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5499 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5500 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5501 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5502 if test -n "$ac_tool_prefix"; then
5503 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5505 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5506 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5507 echo "$as_me:$LINENO: checking for $ac_word" >&5
5508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5509 if test "${ac_cv_prog_F77+set}" = set; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5512 if test -n "$F77"; then
5513 ac_cv_prog_F77="$F77" # Let the user override the test.
5515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5519 test -z "$as_dir" && as_dir=.
5520 for ac_exec_ext in '' $ac_executable_extensions; do
5521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5522 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5532 if test -n "$F77"; then
5533 echo "$as_me:$LINENO: result: $F77" >&5
5534 echo "${ECHO_T}$F77" >&6
5536 echo "$as_me:$LINENO: result: no" >&5
5537 echo "${ECHO_T}no" >&6
5540 test -n "$F77" && break
5543 if test -z "$F77"; then
5545 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5547 # Extract the first word of "$ac_prog", so it can be a program name with args.
5548 set dummy $ac_prog; ac_word=$2
5549 echo "$as_me:$LINENO: checking for $ac_word" >&5
5550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5551 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5552 echo $ECHO_N "(cached) $ECHO_C" >&6
5554 if test -n "$ac_ct_F77"; then
5555 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5561 test -z "$as_dir" && as_dir=.
5562 for ac_exec_ext in '' $ac_executable_extensions; do
5563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5564 ac_cv_prog_ac_ct_F77="$ac_prog"
5565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5573 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5574 if test -n "$ac_ct_F77"; then
5575 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5576 echo "${ECHO_T}$ac_ct_F77" >&6
5578 echo "$as_me:$LINENO: result: no" >&5
5579 echo "${ECHO_T}no" >&6
5582 test -n "$ac_ct_F77" && break
5589 # Provide some information about the compiler.
5590 echo "$as_me:5590:" \
5591 "checking for Fortran 77 compiler version" >&5
5592 ac_compiler=`set X $ac_compile; echo $2`
5593 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5594 (eval $ac_compiler --version </dev/null >&5) 2>&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); }
5598 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5599 (eval $ac_compiler -v </dev/null >&5) 2>&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); }
5603 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5604 (eval $ac_compiler -V </dev/null >&5) 2>&5
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); }
5610 # If we don't use `.F' as extension, the preprocessor is not run on the
5611 # input file. (Note that this only needs to work for GNU compilers.)
5614 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5615 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5616 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5617 echo $ECHO_N "(cached) $ECHO_C" >&6
5619 cat >conftest.$ac_ext <<_ACEOF
5627 rm -f conftest.$ac_objext
5628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5629 (eval $ac_compile) 2>conftest.er1
5631 grep -v '^ *+' conftest.er1 >conftest.err
5633 cat conftest.err >&5
5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); } &&
5636 { ac_try='test -z "$ac_f77_werror_flag"
5637 || test ! -s conftest.err'
5638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); }; } &&
5643 { ac_try='test -s conftest.$ac_objext'
5644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); }; }; then
5651 echo "$as_me: failed program was:" >&5
5652 sed 's/^/| /' conftest.$ac_ext >&5
5656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5657 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5660 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5661 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5663 ac_test_FFLAGS=${FFLAGS+set}
5664 ac_save_FFLAGS=$FFLAGS
5666 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5667 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5668 if test "${ac_cv_prog_f77_g+set}" = set; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
5672 cat >conftest.$ac_ext <<_ACEOF
5677 rm -f conftest.$ac_objext
5678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5679 (eval $ac_compile) 2>conftest.er1
5681 grep -v '^ *+' conftest.er1 >conftest.err
5683 cat conftest.err >&5
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); } &&
5686 { ac_try='test -z "$ac_f77_werror_flag"
5687 || test ! -s conftest.err'
5688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); }; } &&
5693 { ac_try='test -s conftest.$ac_objext'
5694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); }; }; then
5699 ac_cv_prog_f77_g=yes
5701 echo "$as_me: failed program was:" >&5
5702 sed 's/^/| /' conftest.$ac_ext >&5
5706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5709 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5710 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5711 if test "$ac_test_FFLAGS" = set; then
5712 FFLAGS=$ac_save_FFLAGS
5713 elif test $ac_cv_prog_f77_g = yes; then
5714 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5720 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5727 G77=`test $ac_compiler_gnu = yes && echo yes`
5729 ac_cpp='$CPP $CPPFLAGS'
5730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5736 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5738 # find the maximum length of command line arguments
5739 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5740 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5741 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5742 echo $ECHO_N "(cached) $ECHO_C" >&6
5749 # On DJGPP, this test can blow up pretty badly due to problems in libc
5750 # (any single argument exceeding 2000 bytes causes a buffer overrun
5751 # during glob expansion). Even if it were fixed, the result of this
5752 # check would be larger than it should be.
5753 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5757 # Under GNU Hurd, this test is not required because there is
5758 # no limit to the length of command line arguments.
5759 # Libtool will interpret -1 as no limit whatsoever
5760 lt_cv_sys_max_cmd_len=-1;
5764 # On Win9x/ME, this test blows up -- it succeeds, but takes
5765 # about 5 minutes as the teststring grows exponentially.
5766 # Worse, since 9x/ME are not pre-emptively multitasking,
5767 # you end up with a "frozen" computer, even though with patience
5768 # the test eventually succeeds (with a max line length of 256k).
5769 # Instead, let's just punt: use the minimum linelength reported by
5770 # all of the supported platforms: 8192 (on NT/2K/XP).
5771 lt_cv_sys_max_cmd_len=8192;
5775 # On AmigaOS with pdksh, this test takes hours, literally.
5776 # So we just punt and use a minimum line length of 8192.
5777 lt_cv_sys_max_cmd_len=8192;
5780 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5781 # This has been around since 386BSD, at least. Likely further.
5782 if test -x /sbin/sysctl; then
5783 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5784 elif test -x /usr/sbin/sysctl; then
5785 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5787 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5789 # And add a safety zone
5790 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5791 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5795 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5796 lt_cv_sys_max_cmd_len=196608
5800 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5801 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5802 # nice to cause kernel panics so lets avoid the loop below.
5803 # First set a reasonable default.
5804 lt_cv_sys_max_cmd_len=16384
5806 if test -x /sbin/sysconfig; then
5807 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5808 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5813 lt_cv_sys_max_cmd_len=102400
5815 sysv5* | sco5v6* | sysv4.2uw2*)
5816 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5817 if test -n "$kargmax"; then
5818 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5820 lt_cv_sys_max_cmd_len=32768
5824 # If test is not a shell built-in, we'll probably end up computing a
5825 # maximum length that is only half of the actual maximum length, but
5827 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5828 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5829 = "XX$teststring") >/dev/null 2>&1 &&
5830 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5831 lt_cv_sys_max_cmd_len=$new_result &&
5832 test $i != 17 # 1/2 MB should be enough
5835 teststring=$teststring$teststring
5838 # Add a significant safety factor because C++ compilers can tack on massive
5839 # amounts of additional arguments before passing them to the linker.
5840 # It appears as though 1/2 is a usable value.
5841 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5847 if test -n $lt_cv_sys_max_cmd_len ; then
5848 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5849 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5851 echo "$as_me:$LINENO: result: none" >&5
5852 echo "${ECHO_T}none" >&6
5858 # Check for command to grab the raw symbol name followed by C symbol from nm.
5859 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5860 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5861 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5862 echo $ECHO_N "(cached) $ECHO_C" >&6
5865 # These are sane defaults that work on at least a few old systems.
5866 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5868 # Character class describing NM global symbol codes.
5869 symcode='[BCDEGRST]'
5871 # Regexp to match symbols that can be accessed directly from C.
5872 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5874 # Transform an extracted symbol line into a proper C declaration
5875 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5877 # Transform an extracted symbol line into symbol name and symbol address
5878 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'"
5880 # Define system-specific variables.
5885 cygwin* | mingw* | pw32*)
5886 symcode='[ABCDGISTW]'
5888 hpux*) # Its linker distinguishes data from code symbols
5889 if test "$host_cpu" = ia64; then
5890 symcode='[ABCDEGRST]'
5892 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5893 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'"
5896 if test "$host_cpu" = ia64; then
5897 symcode='[ABCDGIRSTW]'
5898 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5899 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'"
5903 symcode='[BCDEGRST]'
5906 symcode='[BCDEGQRST]'
5917 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5925 # Handle CRLF in mingw tool chain
5929 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5933 # If we're using GNU nm, then use its standard symbol codes.
5934 case `$NM -V 2>&1` in
5935 *GNU* | *'with BFD'*)
5936 symcode='[ABCDGIRSTW]' ;;
5939 # Try without a prefix undercore, then with it.
5940 for ac_symprfx in "" "_"; do
5942 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5943 symxfrm="\\1 $ac_symprfx\\2 \\2"
5945 # Write the raw and C identifiers.
5946 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5948 # Check to see that the pipe works correctly.
5952 cat > conftest.$ac_ext <<EOF
5957 void nm_test_func(){}
5961 int main(){nm_test_var='a';nm_test_func();return(0);}
5964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5965 (eval $ac_compile) 2>&5
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); }; then
5969 # Now try to grab the symbols.
5971 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5972 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); } && test -s "$nlist"; then
5976 # Try sorting and uniquifying the output.
5977 if sort "$nlist" | uniq > "$nlist"T; then
5978 mv -f "$nlist"T "$nlist"
5983 # Make sure that we snagged all the symbols we need.
5984 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5985 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5986 cat <<EOF > conftest.$ac_ext
5992 # Now generate the symbol file.
5993 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5995 cat <<EOF >> conftest.$ac_ext
5996 #if defined (__STDC__) && __STDC__
5997 # define lt_ptr_t void *
5999 # define lt_ptr_t char *
6003 /* The mapping between symbol names and symbols. */
6008 lt_preloaded_symbols[] =
6011 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6012 cat <<\EOF >> conftest.$ac_ext
6020 # Now try linking the two files.
6021 mv conftest.$ac_objext conftstm.$ac_objext
6022 lt_save_LIBS="$LIBS"
6023 lt_save_CFLAGS="$CFLAGS"
6024 LIBS="conftstm.$ac_objext"
6025 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6027 (eval $ac_link) 2>&5
6029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6033 LIBS="$lt_save_LIBS"
6034 CFLAGS="$lt_save_CFLAGS"
6036 echo "cannot find nm_test_func in $nlist" >&5
6039 echo "cannot find nm_test_var in $nlist" >&5
6042 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6045 echo "$progname: failed program was:" >&5
6046 cat conftest.$ac_ext >&5
6048 rm -f conftest* conftst*
6050 # Do not use the global_symbol_pipe unless it works.
6051 if test "$pipe_works" = yes; then
6054 lt_cv_sys_global_symbol_pipe=
6060 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6061 lt_cv_sys_global_symbol_to_cdecl=
6063 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6064 echo "$as_me:$LINENO: result: failed" >&5
6065 echo "${ECHO_T}failed" >&6
6067 echo "$as_me:$LINENO: result: ok" >&5
6068 echo "${ECHO_T}ok" >&6
6071 echo "$as_me:$LINENO: checking for objdir" >&5
6072 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6073 if test "${lt_cv_objdir+set}" = set; then
6074 echo $ECHO_N "(cached) $ECHO_C" >&6
6076 rm -f .libs 2>/dev/null
6077 mkdir .libs 2>/dev/null
6078 if test -d .libs; then
6081 # MS-DOS does not allow filenames that begin with a dot.
6084 rmdir .libs 2>/dev/null
6086 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6087 echo "${ECHO_T}$lt_cv_objdir" >&6
6088 objdir=$lt_cv_objdir
6096 # AIX sometimes has problems with the GCC collect2 program. For some
6097 # reason, if we set the COLLECT_NAMES environment variable, the problems
6098 # vanish in a puff of smoke.
6099 if test "X${COLLECT_NAMES+set}" != Xset; then
6101 export COLLECT_NAMES
6106 # Sed substitution that helps us do robust quoting. It backslashifies
6107 # metacharacters that are still active within double-quoted strings.
6108 Xsed='sed -e 1s/^X//'
6109 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6111 # Same as above, but do not quote variable references.
6112 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6114 # Sed substitution to delay expansion of an escaped shell variable in a
6115 # double_quote_subst'ed string.
6116 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6118 # Sed substitution to avoid accidental globbing in evaled expressions
6119 no_glob_subst='s/\*/\\\*/g'
6125 default_ofile=libtool
6126 can_build_shared=yes
6128 # All known linkers require a `.a' archive for static linking (except MSVC,
6129 # which needs '.lib').
6131 ltmain="$ac_aux_dir/ltmain.sh"
6132 ofile="$default_ofile"
6133 with_gnu_ld="$lt_cv_prog_gnu_ld"
6135 if test -n "$ac_tool_prefix"; then
6136 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6137 set dummy ${ac_tool_prefix}ar; ac_word=$2
6138 echo "$as_me:$LINENO: checking for $ac_word" >&5
6139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6140 if test "${ac_cv_prog_AR+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
6143 if test -n "$AR"; then
6144 ac_cv_prog_AR="$AR" # Let the user override the test.
6146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150 test -z "$as_dir" && as_dir=.
6151 for ac_exec_ext in '' $ac_executable_extensions; do
6152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6153 ac_cv_prog_AR="${ac_tool_prefix}ar"
6154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6163 if test -n "$AR"; then
6164 echo "$as_me:$LINENO: result: $AR" >&5
6165 echo "${ECHO_T}$AR" >&6
6167 echo "$as_me:$LINENO: result: no" >&5
6168 echo "${ECHO_T}no" >&6
6172 if test -z "$ac_cv_prog_AR"; then
6174 # Extract the first word of "ar", so it can be a program name with args.
6175 set dummy ar; ac_word=$2
6176 echo "$as_me:$LINENO: checking for $ac_word" >&5
6177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6178 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6179 echo $ECHO_N "(cached) $ECHO_C" >&6
6181 if test -n "$ac_ct_AR"; then
6182 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188 test -z "$as_dir" && as_dir=.
6189 for ac_exec_ext in '' $ac_executable_extensions; do
6190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6191 ac_cv_prog_ac_ct_AR="ar"
6192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6198 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6201 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6202 if test -n "$ac_ct_AR"; then
6203 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6204 echo "${ECHO_T}$ac_ct_AR" >&6
6206 echo "$as_me:$LINENO: result: no" >&5
6207 echo "${ECHO_T}no" >&6
6215 if test -n "$ac_tool_prefix"; then
6216 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6217 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6218 echo "$as_me:$LINENO: checking for $ac_word" >&5
6219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6220 if test "${ac_cv_prog_RANLIB+set}" = set; then
6221 echo $ECHO_N "(cached) $ECHO_C" >&6
6223 if test -n "$RANLIB"; then
6224 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230 test -z "$as_dir" && as_dir=.
6231 for ac_exec_ext in '' $ac_executable_extensions; do
6232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6233 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6242 RANLIB=$ac_cv_prog_RANLIB
6243 if test -n "$RANLIB"; then
6244 echo "$as_me:$LINENO: result: $RANLIB" >&5
6245 echo "${ECHO_T}$RANLIB" >&6
6247 echo "$as_me:$LINENO: result: no" >&5
6248 echo "${ECHO_T}no" >&6
6252 if test -z "$ac_cv_prog_RANLIB"; then
6253 ac_ct_RANLIB=$RANLIB
6254 # Extract the first word of "ranlib", so it can be a program name with args.
6255 set dummy ranlib; ac_word=$2
6256 echo "$as_me:$LINENO: checking for $ac_word" >&5
6257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6258 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6259 echo $ECHO_N "(cached) $ECHO_C" >&6
6261 if test -n "$ac_ct_RANLIB"; then
6262 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268 test -z "$as_dir" && as_dir=.
6269 for ac_exec_ext in '' $ac_executable_extensions; do
6270 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6271 ac_cv_prog_ac_ct_RANLIB="ranlib"
6272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6278 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6281 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6282 if test -n "$ac_ct_RANLIB"; then
6283 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6284 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6286 echo "$as_me:$LINENO: result: no" >&5
6287 echo "${ECHO_T}no" >&6
6290 RANLIB=$ac_ct_RANLIB
6292 RANLIB="$ac_cv_prog_RANLIB"
6295 if test -n "$ac_tool_prefix"; then
6296 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6297 set dummy ${ac_tool_prefix}strip; ac_word=$2
6298 echo "$as_me:$LINENO: checking for $ac_word" >&5
6299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6300 if test "${ac_cv_prog_STRIP+set}" = set; then
6301 echo $ECHO_N "(cached) $ECHO_C" >&6
6303 if test -n "$STRIP"; then
6304 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310 test -z "$as_dir" && as_dir=.
6311 for ac_exec_ext in '' $ac_executable_extensions; do
6312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6313 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6322 STRIP=$ac_cv_prog_STRIP
6323 if test -n "$STRIP"; then
6324 echo "$as_me:$LINENO: result: $STRIP" >&5
6325 echo "${ECHO_T}$STRIP" >&6
6327 echo "$as_me:$LINENO: result: no" >&5
6328 echo "${ECHO_T}no" >&6
6332 if test -z "$ac_cv_prog_STRIP"; then
6334 # Extract the first word of "strip", so it can be a program name with args.
6335 set dummy strip; ac_word=$2
6336 echo "$as_me:$LINENO: checking for $ac_word" >&5
6337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6338 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6339 echo $ECHO_N "(cached) $ECHO_C" >&6
6341 if test -n "$ac_ct_STRIP"; then
6342 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348 test -z "$as_dir" && as_dir=.
6349 for ac_exec_ext in '' $ac_executable_extensions; do
6350 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6351 ac_cv_prog_ac_ct_STRIP="strip"
6352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6358 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6361 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6362 if test -n "$ac_ct_STRIP"; then
6363 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6364 echo "${ECHO_T}$ac_ct_STRIP" >&6
6366 echo "$as_me:$LINENO: result: no" >&5
6367 echo "${ECHO_T}no" >&6
6372 STRIP="$ac_cv_prog_STRIP"
6377 old_CFLAGS="$CFLAGS"
6379 # Set sane defaults for various variables
6380 test -z "$AR" && AR=ar
6381 test -z "$AR_FLAGS" && AR_FLAGS=cru
6382 test -z "$AS" && AS=as
6383 test -z "$CC" && CC=cc
6384 test -z "$LTCC" && LTCC=$CC
6385 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6386 test -z "$DLLTOOL" && DLLTOOL=dlltool
6387 test -z "$LD" && LD=ld
6388 test -z "$LN_S" && LN_S="ln -s"
6389 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6390 test -z "$NM" && NM=nm
6391 test -z "$SED" && SED=sed
6392 test -z "$OBJDUMP" && OBJDUMP=objdump
6393 test -z "$RANLIB" && RANLIB=:
6394 test -z "$STRIP" && STRIP=:
6395 test -z "$ac_objext" && ac_objext=o
6397 # Determine commands to create old-style static archives.
6398 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6399 old_postinstall_cmds='chmod 644 $oldlib'
6400 old_postuninstall_cmds=
6402 if test -n "$RANLIB"; then
6405 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6408 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6411 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6414 for cc_temp in $compiler""; do
6416 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6417 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6422 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6425 # Only perform the check for file, if the check method requires it
6426 case $deplibs_check_method in
6428 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6429 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6430 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6431 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6432 echo $ECHO_N "(cached) $ECHO_C" >&6
6436 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6439 lt_save_MAGIC_CMD="$MAGIC_CMD"
6440 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6441 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6442 for ac_dir in $ac_dummy; do
6444 test -z "$ac_dir" && ac_dir=.
6445 if test -f $ac_dir/${ac_tool_prefix}file; then
6446 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6447 if test -n "$file_magic_test_file"; then
6448 case $deplibs_check_method in
6450 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6451 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6452 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6453 $EGREP "$file_magic_regex" > /dev/null; then
6458 *** Warning: the command libtool uses to detect shared libraries,
6459 *** $file_magic_cmd, produces output that libtool cannot recognize.
6460 *** The result is that libtool may fail to recognize shared libraries
6461 *** as such. This will affect the creation of libtool libraries that
6462 *** depend on shared libraries, but programs linked with such libtool
6463 *** libraries will work regardless of this problem. Nevertheless, you
6464 *** may want to report the problem to your system manager and/or to
6465 *** bug-libtool@gnu.org
6475 MAGIC_CMD="$lt_save_MAGIC_CMD"
6480 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6481 if test -n "$MAGIC_CMD"; then
6482 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6483 echo "${ECHO_T}$MAGIC_CMD" >&6
6485 echo "$as_me:$LINENO: result: no" >&5
6486 echo "${ECHO_T}no" >&6
6489 if test -z "$lt_cv_path_MAGIC_CMD"; then
6490 if test -n "$ac_tool_prefix"; then
6491 echo "$as_me:$LINENO: checking for file" >&5
6492 echo $ECHO_N "checking for file... $ECHO_C" >&6
6493 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6494 echo $ECHO_N "(cached) $ECHO_C" >&6
6498 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6501 lt_save_MAGIC_CMD="$MAGIC_CMD"
6502 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6503 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6504 for ac_dir in $ac_dummy; do
6506 test -z "$ac_dir" && ac_dir=.
6507 if test -f $ac_dir/file; then
6508 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6509 if test -n "$file_magic_test_file"; then
6510 case $deplibs_check_method in
6512 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6513 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6514 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6515 $EGREP "$file_magic_regex" > /dev/null; then
6520 *** Warning: the command libtool uses to detect shared libraries,
6521 *** $file_magic_cmd, produces output that libtool cannot recognize.
6522 *** The result is that libtool may fail to recognize shared libraries
6523 *** as such. This will affect the creation of libtool libraries that
6524 *** depend on shared libraries, but programs linked with such libtool
6525 *** libraries will work regardless of this problem. Nevertheless, you
6526 *** may want to report the problem to your system manager and/or to
6527 *** bug-libtool@gnu.org
6537 MAGIC_CMD="$lt_save_MAGIC_CMD"
6542 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6543 if test -n "$MAGIC_CMD"; then
6544 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6545 echo "${ECHO_T}$MAGIC_CMD" >&6
6547 echo "$as_me:$LINENO: result: no" >&5
6548 echo "${ECHO_T}no" >&6
6563 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6564 if test "${enable_libtool_lock+set}" = set; then
6565 enableval="$enable_libtool_lock"
6568 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6571 # Check whether --with-pic or --without-pic was given.
6572 if test "${with_pic+set}" = set; then
6578 test -z "$pic_mode" && pic_mode=default
6580 # Use C for the default configuration in the libtool script
6584 ac_cpp='$CPP $CPPFLAGS'
6585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6590 # Source file extension for C test sources.
6593 # Object file extension for compiled C test sources.
6597 # Code to be used in simple compile tests
6598 lt_simple_compile_test_code="int some_variable = 0;\n"
6600 # Code to be used in simple link tests
6601 lt_simple_link_test_code='int main(){return(0);}\n'
6604 # If no C compiler was specified, use CC.
6607 # If no C compiler flags were specified, use CFLAGS.
6608 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6610 # Allow CC to be a program name with arguments.
6614 # save warnings/boilerplate of simple test code
6615 ac_outfile=conftest.$ac_objext
6616 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6617 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6618 _lt_compiler_boilerplate=`cat conftest.err`
6621 ac_outfile=conftest.$ac_objext
6622 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6623 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6624 _lt_linker_boilerplate=`cat conftest.err`
6629 lt_prog_compiler_no_builtin_flag=
6631 if test "$GCC" = yes; then
6632 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6635 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6636 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6637 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6638 echo $ECHO_N "(cached) $ECHO_C" >&6
6640 lt_cv_prog_compiler_rtti_exceptions=no
6641 ac_outfile=conftest.$ac_objext
6642 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6643 lt_compiler_flag="-fno-rtti -fno-exceptions"
6644 # Insert the option either (1) after the last *FLAGS variable, or
6645 # (2) before a word containing "conftest.", or (3) at the end.
6646 # Note that $ac_compile itself does not contain backslashes and begins
6647 # with a dollar sign (not a hyphen), so the echo should work correctly.
6648 # The option is referenced via a variable to avoid confusing sed.
6649 lt_compile=`echo "$ac_compile" | $SED \
6650 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6651 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6652 -e 's:$: $lt_compiler_flag:'`
6653 (eval echo "\"\$as_me:6653: $lt_compile\"" >&5)
6654 (eval "$lt_compile" 2>conftest.err)
6656 cat conftest.err >&5
6657 echo "$as_me:6657: \$? = $ac_status" >&5
6658 if (exit $ac_status) && test -s "$ac_outfile"; then
6659 # The compiler can only warn and ignore the option if not recognized
6660 # So say no if there are warnings other than the usual output.
6661 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6662 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6663 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6664 lt_cv_prog_compiler_rtti_exceptions=yes
6670 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6671 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6673 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6674 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6681 lt_prog_compiler_wl=
6682 lt_prog_compiler_pic=
6683 lt_prog_compiler_static=
6685 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6686 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6688 if test "$GCC" = yes; then
6689 lt_prog_compiler_wl='-Wl,'
6690 lt_prog_compiler_static='-static'
6694 # All AIX code is PIC.
6695 if test "$host_cpu" = ia64; then
6696 # AIX 5 now supports IA64 processor
6697 lt_prog_compiler_static='-Bstatic'
6702 # FIXME: we need at least 68020 code to build shared libraries, but
6703 # adding the `-m68020' flag to GCC prevents building anything better,
6705 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6708 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6709 # PIC is the default for these OSes.
6712 mingw* | pw32* | os2*)
6713 # This hack is so that the source file can tell whether it is being
6714 # built for inclusion in a dll (and should export symbols for example).
6715 lt_prog_compiler_pic='-DDLL_EXPORT'
6718 darwin* | rhapsody*)
6719 # PIC is the default on this platform
6720 # Common symbols not allowed in MH_DYLIB files
6721 lt_prog_compiler_pic='-fno-common'
6725 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6726 # Instead, we relocate shared libraries at runtime.
6730 # Just because we use GCC doesn't mean we suddenly get shared libraries
6731 # on systems that don't support them.
6732 lt_prog_compiler_can_build_shared=no
6737 if test -d /usr/nec; then
6738 lt_prog_compiler_pic=-Kconform_pic
6743 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6750 lt_prog_compiler_pic='-fPIC'
6756 lt_prog_compiler_pic='-fPIC'
6760 # PORTME Check for flag to pass linker flags through the system compiler.
6763 lt_prog_compiler_wl='-Wl,'
6764 if test "$host_cpu" = ia64; then
6765 # AIX 5 now supports IA64 processor
6766 lt_prog_compiler_static='-Bstatic'
6768 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6772 # PIC is the default on this platform
6773 # Common symbols not allowed in MH_DYLIB files
6774 case $cc_basename in
6776 lt_prog_compiler_pic='-qnocommon'
6777 lt_prog_compiler_wl='-Wl,'
6782 mingw* | pw32* | os2*)
6783 # This hack is so that the source file can tell whether it is being
6784 # built for inclusion in a dll (and should export symbols for example).
6785 lt_prog_compiler_pic='-DDLL_EXPORT'
6788 hpux9* | hpux10* | hpux11*)
6789 lt_prog_compiler_wl='-Wl,'
6790 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6797 lt_prog_compiler_pic='+Z'
6800 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6801 lt_prog_compiler_static='${wl}-a ${wl}archive'
6804 irix5* | irix6* | nonstopux*)
6805 lt_prog_compiler_wl='-Wl,'
6806 # PIC (with -KPIC) is the default.
6807 lt_prog_compiler_static='-non_shared'
6811 lt_prog_compiler_pic='-KPIC'
6812 lt_prog_compiler_static='-Bstatic'
6816 case $cc_basename in
6818 lt_prog_compiler_wl='-Wl,'
6819 lt_prog_compiler_pic='-KPIC'
6820 lt_prog_compiler_static='-static'
6822 pgcc* | pgf77* | pgf90* | pgf95*)
6823 # Portland Group compilers (*not* the Pentium gcc compiler,
6824 # which looks to be a dead project)
6825 lt_prog_compiler_wl='-Wl,'
6826 lt_prog_compiler_pic='-fpic'
6827 lt_prog_compiler_static='-Bstatic'
6830 lt_prog_compiler_wl='-Wl,'
6831 # All Alpha code is PIC.
6832 lt_prog_compiler_static='-non_shared'
6837 osf3* | osf4* | osf5*)
6838 lt_prog_compiler_wl='-Wl,'
6839 # All OSF/1 code is PIC.
6840 lt_prog_compiler_static='-non_shared'
6844 lt_prog_compiler_pic='-KPIC'
6845 lt_prog_compiler_static='-Bstatic'
6846 case $cc_basename in
6848 lt_prog_compiler_wl='-Qoption ld ';;
6850 lt_prog_compiler_wl='-Wl,';;
6855 lt_prog_compiler_wl='-Qoption ld '
6856 lt_prog_compiler_pic='-PIC'
6857 lt_prog_compiler_static='-Bstatic'
6860 sysv4 | sysv4.2uw2* | sysv4.3*)
6861 lt_prog_compiler_wl='-Wl,'
6862 lt_prog_compiler_pic='-KPIC'
6863 lt_prog_compiler_static='-Bstatic'
6867 if test -d /usr/nec ;then
6868 lt_prog_compiler_pic='-Kconform_pic'
6869 lt_prog_compiler_static='-Bstatic'
6873 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6874 lt_prog_compiler_wl='-Wl,'
6875 lt_prog_compiler_pic='-KPIC'
6876 lt_prog_compiler_static='-Bstatic'
6880 lt_prog_compiler_wl='-Wl,'
6881 lt_prog_compiler_can_build_shared=no
6885 lt_prog_compiler_pic='-pic'
6886 lt_prog_compiler_static='-Bstatic'
6890 lt_prog_compiler_can_build_shared=no
6895 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6896 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6899 # Check to make sure the PIC flag actually works.
6901 if test -n "$lt_prog_compiler_pic"; then
6903 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6904 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6905 if test "${lt_prog_compiler_pic_works+set}" = set; then
6906 echo $ECHO_N "(cached) $ECHO_C" >&6
6908 lt_prog_compiler_pic_works=no
6909 ac_outfile=conftest.$ac_objext
6910 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6911 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6912 # Insert the option either (1) after the last *FLAGS variable, or
6913 # (2) before a word containing "conftest.", or (3) at the end.
6914 # Note that $ac_compile itself does not contain backslashes and begins
6915 # with a dollar sign (not a hyphen), so the echo should work correctly.
6916 # The option is referenced via a variable to avoid confusing sed.
6917 lt_compile=`echo "$ac_compile" | $SED \
6918 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6919 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6920 -e 's:$: $lt_compiler_flag:'`
6921 (eval echo "\"\$as_me:6921: $lt_compile\"" >&5)
6922 (eval "$lt_compile" 2>conftest.err)
6924 cat conftest.err >&5
6925 echo "$as_me:6925: \$? = $ac_status" >&5
6926 if (exit $ac_status) && test -s "$ac_outfile"; then
6927 # The compiler can only warn and ignore the option if not recognized
6928 # So say no if there are warnings other than the usual output.
6929 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6930 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6931 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6932 lt_prog_compiler_pic_works=yes
6938 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6939 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6941 if test x"$lt_prog_compiler_pic_works" = xyes; then
6942 case $lt_prog_compiler_pic in
6944 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6947 lt_prog_compiler_pic=
6948 lt_prog_compiler_can_build_shared=no
6953 # For platforms which do not support PIC, -DPIC is meaningless:
6955 lt_prog_compiler_pic=
6958 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6963 # Check to make sure the static flag actually works.
6965 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6966 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6967 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6968 if test "${lt_prog_compiler_static_works+set}" = set; then
6969 echo $ECHO_N "(cached) $ECHO_C" >&6
6971 lt_prog_compiler_static_works=no
6972 save_LDFLAGS="$LDFLAGS"
6973 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6974 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6975 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6976 # The linker can only warn and ignore the option if not recognized
6977 # So say no if there are warnings
6978 if test -s conftest.err; then
6979 # Append any errors to the config.log.
6980 cat conftest.err 1>&5
6981 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6982 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6983 if diff conftest.exp conftest.er2 >/dev/null; then
6984 lt_prog_compiler_static_works=yes
6987 lt_prog_compiler_static_works=yes
6991 LDFLAGS="$save_LDFLAGS"
6994 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6995 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6997 if test x"$lt_prog_compiler_static_works" = xyes; then
7000 lt_prog_compiler_static=
7004 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7005 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7006 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7007 echo $ECHO_N "(cached) $ECHO_C" >&6
7009 lt_cv_prog_compiler_c_o=no
7010 $rm -r conftest 2>/dev/null
7014 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7016 lt_compiler_flag="-o out/conftest2.$ac_objext"
7017 # Insert the option either (1) after the last *FLAGS variable, or
7018 # (2) before a word containing "conftest.", or (3) at the end.
7019 # Note that $ac_compile itself does not contain backslashes and begins
7020 # with a dollar sign (not a hyphen), so the echo should work correctly.
7021 lt_compile=`echo "$ac_compile" | $SED \
7022 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7023 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7024 -e 's:$: $lt_compiler_flag:'`
7025 (eval echo "\"\$as_me:7025: $lt_compile\"" >&5)
7026 (eval "$lt_compile" 2>out/conftest.err)
7028 cat out/conftest.err >&5
7029 echo "$as_me:7029: \$? = $ac_status" >&5
7030 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7032 # The compiler can only warn and ignore the option if not recognized
7033 # So say no if there are warnings
7034 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7035 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7036 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7037 lt_cv_prog_compiler_c_o=yes
7042 # SGI C++ compiler will create directory out/ii_files/ for
7043 # template instantiation
7044 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7045 $rm out/* && rmdir out
7051 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7052 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7055 hard_links="nottested"
7056 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7057 # do not overwrite the value of need_locks provided by the user
7058 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7059 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7062 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7064 ln conftest.a conftest.b 2>&5 || hard_links=no
7065 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7066 echo "$as_me:$LINENO: result: $hard_links" >&5
7067 echo "${ECHO_T}$hard_links" >&6
7068 if test "$hard_links" = no; then
7069 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7070 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7077 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7078 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7081 allow_undefined_flag=
7082 enable_shared_with_static_runtimes=no
7084 archive_expsym_cmds=
7085 old_archive_From_new_cmds=
7086 old_archive_from_expsyms_cmds=
7087 export_dynamic_flag_spec=
7088 whole_archive_flag_spec=
7089 thread_safe_flag_spec=
7090 hardcode_libdir_flag_spec=
7091 hardcode_libdir_flag_spec_ld=
7092 hardcode_libdir_separator=
7095 hardcode_shlibpath_var=unsupported
7096 link_all_deplibs=unknown
7097 hardcode_automatic=no
7100 always_export_symbols=no
7101 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7102 # include_expsyms should be a list of space-separated symbols to be *always*
7103 # included in the symbol list
7105 # exclude_expsyms can be an extended regexp of symbols to exclude
7106 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7107 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7108 # as well as any symbol that contains `d'.
7109 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7110 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7111 # platforms (ab)use it in PIC code, but their linkers get confused if
7112 # the symbol is explicitly referenced. Since portable code cannot
7113 # rely on this symbol name, it's probably fine to never include it in
7114 # preloaded symbol tables.
7115 extract_expsyms_cmds=
7116 # Just being paranoid about ensuring that cc_basename is set.
7117 for cc_temp in $compiler""; do
7119 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7120 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7125 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7128 cygwin* | mingw* | pw32*)
7129 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7130 # When not using gcc, we currently assume that we are using
7131 # Microsoft Visual C++.
7132 if test "$GCC" != yes; then
7137 # we just hope/assume this is gcc and not c89 (= MSVC++)
7146 if test "$with_gnu_ld" = yes; then
7147 # If archive_cmds runs LD, not CC, wlarc should be empty
7150 # Set some defaults for GNU ld with shared library support. These
7151 # are reset later if shared libraries are not supported. Putting them
7152 # here allows them to be overridden if necessary.
7153 runpath_var=LD_RUN_PATH
7154 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7155 export_dynamic_flag_spec='${wl}--export-dynamic'
7156 # ancient GNU ld didn't support --whole-archive et. al.
7157 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7158 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7160 whole_archive_flag_spec=
7162 supports_anon_versioning=no
7163 case `$LD -v 2>/dev/null` in
7164 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7165 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7166 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7167 *\ 2.11.*) ;; # other 2.11 versions
7168 *) supports_anon_versioning=yes ;;
7171 # See if GNU ld supports shared libraries.
7173 aix3* | aix4* | aix5*)
7174 # On AIX/PPC, the GNU linker is very broken
7175 if test "$host_cpu" != ia64; then
7179 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7180 *** to be unable to reliably create shared libraries on AIX.
7181 *** Therefore, libtool is disabling shared libraries support. If you
7182 *** really care for shared libraries, you may want to modify your PATH
7183 *** so that a non-GNU linker is found, and then restart.
7190 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)'
7191 hardcode_libdir_flag_spec='-L$libdir'
7192 hardcode_minus_L=yes
7194 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7195 # that the semantics of dynamic libraries on AmigaOS, at least up
7196 # to version 4, is to share data among multiple programs linked
7197 # with the same dynamic library. Since this doesn't match the
7198 # behavior of shared libraries on other platforms, we can't use
7204 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7205 allow_undefined_flag=unsupported
7206 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7207 # support --undefined. This deserves some investigation. FIXME
7208 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7214 cygwin* | mingw* | pw32*)
7215 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7216 # as there is no search path for DLLs.
7217 hardcode_libdir_flag_spec='-L$libdir'
7218 allow_undefined_flag=unsupported
7219 always_export_symbols=no
7220 enable_shared_with_static_runtimes=yes
7221 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7223 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7224 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7225 # If the export-symbols file already is a .def file (1st line
7226 # is EXPORTS), use it as is; otherwise, prepend...
7227 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7228 cp $export_symbols $output_objdir/$soname.def;
7230 echo EXPORTS > $output_objdir/$soname.def;
7231 cat $export_symbols >> $output_objdir/$soname.def;
7233 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7241 hardcode_shlibpath_var=no
7242 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7243 export_dynamic_flag_spec='${wl}-E'
7244 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7245 # Instead, shared libraries are loaded at an image base (0x10000000 by
7246 # default) and relocated if they conflict, which is a slow very memory
7247 # consuming and fragmenting process. To avoid this, we pick a random,
7248 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7249 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7250 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7251 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7255 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7257 case $cc_basename,$host_cpu in
7258 pgcc*) # Portland Group C compiler
7259 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'
7260 tmp_addflag=' $pic_flag'
7262 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7263 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'
7264 tmp_addflag=' $pic_flag -Mnomain' ;;
7265 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7266 tmp_addflag=' -i_dynamic' ;;
7267 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7268 tmp_addflag=' -i_dynamic -nofor_main' ;;
7269 ifc* | ifort*) # Intel Fortran compiler
7270 tmp_addflag=' -nofor_main' ;;
7272 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7274 if test $supports_anon_versioning = yes; then
7275 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7276 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7277 $echo "local: *; };" >> $output_objdir/$libname.ver~
7278 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7286 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7287 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7290 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7291 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7296 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7300 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7301 *** create shared libraries on Solaris systems. Therefore, libtool
7302 *** is disabling shared libraries support. We urge you to upgrade GNU
7303 *** binutils to release 2.9.1 or newer. Another option is to modify
7304 *** your PATH or compiler configuration so that the native linker is
7305 *** used, and then restart.
7308 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7309 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7310 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7316 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7317 case `$LD -v 2>&1` in
7318 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7322 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7323 *** reliably create shared libraries on SCO systems. Therefore, libtool
7324 *** is disabling shared libraries support. We urge you to upgrade GNU
7325 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7326 *** your PATH or compiler configuration so that the native linker is
7327 *** used, and then restart.
7332 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7333 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7334 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7335 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7344 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7347 hardcode_shlibpath_var=no
7351 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7352 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7353 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7360 if test "$ld_shlibs" = no; then
7362 hardcode_libdir_flag_spec=
7363 export_dynamic_flag_spec=
7364 whole_archive_flag_spec=
7367 # PORTME fill in a description of your system's linker (not GNU ld)
7370 allow_undefined_flag=unsupported
7371 always_export_symbols=yes
7372 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'
7373 # Note: this linker hardcodes the directories in LIBPATH if there
7374 # are no directories specified by -L.
7375 hardcode_minus_L=yes
7376 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7377 # Neither direct hardcoding nor static linking is supported with a
7379 hardcode_direct=unsupported
7384 if test "$host_cpu" = ia64; then
7385 # On IA64, the linker does run time linking by default, so we don't
7386 # have to do anything special.
7387 aix_use_runtimelinking=no
7388 exp_sym_flag='-Bexport'
7391 # If we're using GNU nm, then we don't want the "-C" option.
7392 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7393 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7394 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'
7396 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'
7398 aix_use_runtimelinking=no
7400 # Test if we are trying to use run time linking or normal
7401 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7402 # need to do runtime linking.
7403 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7404 for ld_flag in $LDFLAGS; do
7405 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7406 aix_use_runtimelinking=yes
7413 exp_sym_flag='-bexport'
7414 no_entry_flag='-bnoentry'
7417 # When large executables or shared objects are built, AIX ld can
7418 # have problems creating the table of contents. If linking a library
7419 # or program results in "error TOC overflow" add -mminimal-toc to
7420 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7421 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7425 hardcode_libdir_separator=':'
7426 link_all_deplibs=yes
7428 if test "$GCC" = yes; then
7429 case $host_os in aix4.[012]|aix4.[012].*)
7430 # We only want to do this on AIX 4.2 and lower, the check
7431 # below for broken collect2 doesn't work under 4.3+
7432 collect2name=`${CC} -print-prog-name=collect2`
7433 if test -f "$collect2name" && \
7434 strings "$collect2name" | grep resolve_lib_name >/dev/null
7436 # We have reworked collect2
7439 # We have old collect2
7440 hardcode_direct=unsupported
7441 # It fails to find uninstalled libraries when the uninstalled
7442 # path is not listed in the libpath. Setting hardcode_minus_L
7443 # to unsupported forces relinking
7444 hardcode_minus_L=yes
7445 hardcode_libdir_flag_spec='-L$libdir'
7446 hardcode_libdir_separator=
7450 shared_flag='-shared'
7451 if test "$aix_use_runtimelinking" = yes; then
7452 shared_flag="$shared_flag "'${wl}-G'
7456 if test "$host_cpu" = ia64; then
7457 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7458 # chokes on -Wl,-G. The following line is correct:
7461 if test "$aix_use_runtimelinking" = yes; then
7462 shared_flag='${wl}-G'
7464 shared_flag='${wl}-bM:SRE'
7469 # It seems that -bexpall does not export symbols beginning with
7470 # underscore (_), so it is better to generate a list of symbols to export.
7471 always_export_symbols=yes
7472 if test "$aix_use_runtimelinking" = yes; then
7473 # Warning - without using the other runtime loading flags (-brtl),
7474 # -berok will link without error, but may produce a broken library.
7475 allow_undefined_flag='-berok'
7476 # Determine the default libpath from the value encoded in an empty executable.
7477 cat >conftest.$ac_ext <<_ACEOF
7480 cat confdefs.h >>conftest.$ac_ext
7481 cat >>conftest.$ac_ext <<_ACEOF
7482 /* end confdefs.h. */
7492 rm -f conftest.$ac_objext conftest$ac_exeext
7493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7494 (eval $ac_link) 2>conftest.er1
7496 grep -v '^ *+' conftest.er1 >conftest.err
7498 cat conftest.err >&5
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); } &&
7501 { ac_try='test -z "$ac_c_werror_flag"
7502 || test ! -s conftest.err'
7503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507 (exit $ac_status); }; } &&
7508 { ac_try='test -s conftest$ac_exeext'
7509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); }; }; then
7515 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7517 # Check for a 64-bit object if we didn't find anything.
7518 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; }
7521 echo "$as_me: failed program was:" >&5
7522 sed 's/^/| /' conftest.$ac_ext >&5
7525 rm -f conftest.err conftest.$ac_objext \
7526 conftest$ac_exeext conftest.$ac_ext
7527 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7529 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7530 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7532 if test "$host_cpu" = ia64; then
7533 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7534 allow_undefined_flag="-z nodefs"
7535 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7537 # Determine the default libpath from the value encoded in an empty executable.
7538 cat >conftest.$ac_ext <<_ACEOF
7541 cat confdefs.h >>conftest.$ac_ext
7542 cat >>conftest.$ac_ext <<_ACEOF
7543 /* end confdefs.h. */
7553 rm -f conftest.$ac_objext conftest$ac_exeext
7554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7555 (eval $ac_link) 2>conftest.er1
7557 grep -v '^ *+' conftest.er1 >conftest.err
7559 cat conftest.err >&5
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); } &&
7562 { ac_try='test -z "$ac_c_werror_flag"
7563 || test ! -s conftest.err'
7564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568 (exit $ac_status); }; } &&
7569 { ac_try='test -s conftest$ac_exeext'
7570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); }; }; then
7576 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7578 # Check for a 64-bit object if we didn't find anything.
7579 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; }
7582 echo "$as_me: failed program was:" >&5
7583 sed 's/^/| /' conftest.$ac_ext >&5
7586 rm -f conftest.err conftest.$ac_objext \
7587 conftest$ac_exeext conftest.$ac_ext
7588 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7590 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7591 # Warning - without using the other run time loading flags,
7592 # -berok will link without error, but may produce a broken library.
7593 no_undefined_flag=' ${wl}-bernotok'
7594 allow_undefined_flag=' ${wl}-berok'
7595 # Exported symbols can be pulled into shared objects from archives
7596 whole_archive_flag_spec='$convenience'
7597 archive_cmds_need_lc=yes
7598 # This is similar to how AIX traditionally builds its shared libraries.
7599 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7605 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)'
7606 hardcode_libdir_flag_spec='-L$libdir'
7607 hardcode_minus_L=yes
7608 # see comment about different semantics on the GNU ld section
7613 export_dynamic_flag_spec=-rdynamic
7616 cygwin* | mingw* | pw32*)
7617 # When not using gcc, we currently assume that we are using
7618 # Microsoft Visual C++.
7619 # hardcode_libdir_flag_spec is actually meaningless, as there is
7620 # no search path for DLLs.
7621 hardcode_libdir_flag_spec=' '
7622 allow_undefined_flag=unsupported
7623 # Tell ltmain to make .lib files, not .a files.
7625 # Tell ltmain to make .dll files, not .so files.
7627 # FIXME: Setting linknames here is a bad hack.
7628 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7629 # The linker will automatically build a .lib file if we build a DLL.
7630 old_archive_From_new_cmds='true'
7631 # FIXME: Should let the user specify the lib program.
7632 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7633 fix_srcfile_path='`cygpath -w "$srcfile"`'
7634 enable_shared_with_static_runtimes=yes
7637 darwin* | rhapsody*)
7639 rhapsody* | darwin1.[012])
7640 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7643 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7644 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7646 case ${MACOSX_DEPLOYMENT_TARGET} in
7648 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7651 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7657 archive_cmds_need_lc=no
7659 hardcode_automatic=yes
7660 hardcode_shlibpath_var=unsupported
7661 whole_archive_flag_spec=''
7662 link_all_deplibs=yes
7663 if test "$GCC" = yes ; then
7664 output_verbose_link_cmd='echo'
7665 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7666 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7667 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7668 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}'
7669 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}'
7671 case $cc_basename in
7673 output_verbose_link_cmd='echo'
7674 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7675 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7676 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7677 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}'
7678 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}'
7688 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7689 hardcode_libdir_flag_spec='-L$libdir'
7690 hardcode_shlibpath_var=no
7697 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7698 # support. Future versions do this automatically, but an explicit c++rt0.o
7699 # does not break anything, and helps significantly (at the cost of a little
7702 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7703 hardcode_libdir_flag_spec='-R$libdir'
7705 hardcode_shlibpath_var=no
7708 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7710 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7712 hardcode_minus_L=yes
7713 hardcode_shlibpath_var=no
7716 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7717 freebsd* | kfreebsd*-gnu | dragonfly*)
7718 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7719 hardcode_libdir_flag_spec='-R$libdir'
7721 hardcode_shlibpath_var=no
7725 if test "$GCC" = yes; then
7726 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'
7728 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'
7730 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7731 hardcode_libdir_separator=:
7734 # hardcode_minus_L: Not really in the search PATH,
7735 # but as the default location of the library.
7736 hardcode_minus_L=yes
7737 export_dynamic_flag_spec='${wl}-E'
7741 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7742 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7744 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7746 if test "$with_gnu_ld" = no; then
7747 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7748 hardcode_libdir_separator=:
7751 export_dynamic_flag_spec='${wl}-E'
7753 # hardcode_minus_L: Not really in the search PATH,
7754 # but as the default location of the library.
7755 hardcode_minus_L=yes
7760 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7763 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7766 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7769 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7775 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7778 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7781 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7785 if test "$with_gnu_ld" = no; then
7786 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7787 hardcode_libdir_separator=:
7791 hardcode_libdir_flag_spec_ld='+b $libdir'
7793 hardcode_shlibpath_var=no
7797 export_dynamic_flag_spec='${wl}-E'
7799 # hardcode_minus_L: Not really in the search PATH,
7800 # but as the default location of the library.
7801 hardcode_minus_L=yes
7807 irix5* | irix6* | nonstopux*)
7808 if test "$GCC" = yes; then
7809 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'
7811 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'
7812 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7814 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7815 hardcode_libdir_separator=:
7816 link_all_deplibs=yes
7820 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7821 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7823 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7825 hardcode_libdir_flag_spec='-R$libdir'
7827 hardcode_shlibpath_var=no
7831 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7833 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7834 hardcode_libdir_separator=:
7835 hardcode_shlibpath_var=no
7840 hardcode_shlibpath_var=no
7841 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7842 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7843 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7844 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7845 export_dynamic_flag_spec='${wl}-E'
7848 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7849 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7850 hardcode_libdir_flag_spec='-R$libdir'
7853 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7854 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7861 hardcode_libdir_flag_spec='-L$libdir'
7862 hardcode_minus_L=yes
7863 allow_undefined_flag=unsupported
7864 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'
7865 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7869 if test "$GCC" = yes; then
7870 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7871 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'
7873 allow_undefined_flag=' -expect_unresolved \*'
7874 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'
7876 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7877 hardcode_libdir_separator=:
7880 osf4* | osf5*) # as osf3* with the addition of -msym flag
7881 if test "$GCC" = yes; then
7882 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7883 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'
7884 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7886 allow_undefined_flag=' -expect_unresolved \*'
7887 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'
7888 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7889 $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'
7891 # Both c and cxx compiler support -rpath directly
7892 hardcode_libdir_flag_spec='-rpath $libdir'
7894 hardcode_libdir_separator=:
7898 no_undefined_flag=' -z text'
7899 if test "$GCC" = yes; then
7901 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7902 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7903 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7906 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7907 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7908 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7910 hardcode_libdir_flag_spec='-R$libdir'
7911 hardcode_shlibpath_var=no
7913 solaris2.[0-5] | solaris2.[0-5].*) ;;
7915 # The compiler driver will combine linker options so we
7916 # cannot just pass the convience library names through
7917 # without $wl, iff we do not link with $LD.
7918 # Luckily, gcc supports the same syntax we need for Sun Studio.
7919 # Supported since Solaris 2.6 (maybe 2.5.1?)
7922 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7924 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' ;;
7927 link_all_deplibs=yes
7931 if test "x$host_vendor" = xsequent; then
7932 # Use $CC to link under sequent, because it throws in some extra .o
7933 # files that make .init and .fini sections work.
7934 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7936 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7938 hardcode_libdir_flag_spec='-L$libdir'
7940 hardcode_minus_L=yes
7941 hardcode_shlibpath_var=no
7945 case $host_vendor in
7947 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7948 hardcode_direct=yes # is this really true???
7951 ## LD is ld it makes a PLAMLIB
7952 ## CC just makes a GrossModule.
7953 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7954 reload_cmds='$CC -r -o $output$reload_objs'
7958 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7959 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7962 runpath_var='LD_RUN_PATH'
7963 hardcode_shlibpath_var=no
7967 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7968 hardcode_shlibpath_var=no
7969 export_dynamic_flag_spec='-Bexport'
7973 if test -d /usr/nec; then
7974 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7975 hardcode_shlibpath_var=no
7976 runpath_var=LD_RUN_PATH
7977 hardcode_runpath_var=yes
7982 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7983 no_undefined_flag='${wl}-z,text'
7984 archive_cmds_need_lc=no
7985 hardcode_shlibpath_var=no
7986 runpath_var='LD_RUN_PATH'
7988 if test "$GCC" = yes; then
7989 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7990 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7992 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7993 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7997 sysv5* | sco3.2v5* | sco5v6*)
7998 # Note: We can NOT use -z defs as we might desire, because we do not
7999 # link with -lc, and that would cause any symbols used from libc to
8000 # always be unresolved, which means just about no library would
8001 # ever link correctly. If we're not using GNU ld we use -z text
8002 # though, which does catch some bad symbols but isn't as heavy-handed
8004 no_undefined_flag='${wl}-z,text'
8005 allow_undefined_flag='${wl}-z,nodefs'
8006 archive_cmds_need_lc=no
8007 hardcode_shlibpath_var=no
8008 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8009 hardcode_libdir_separator=':'
8010 link_all_deplibs=yes
8011 export_dynamic_flag_spec='${wl}-Bexport'
8012 runpath_var='LD_RUN_PATH'
8014 if test "$GCC" = yes; then
8015 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8016 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8018 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8019 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8024 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8025 hardcode_libdir_flag_spec='-L$libdir'
8026 hardcode_shlibpath_var=no
8035 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8036 echo "${ECHO_T}$ld_shlibs" >&6
8037 test "$ld_shlibs" = no && can_build_shared=no
8040 # Do we need to explicitly link libc?
8042 case "x$archive_cmds_need_lc" in
8044 # Assume -lc should be added
8045 archive_cmds_need_lc=yes
8047 if test "$enable_shared" = yes && test "$GCC" = yes; then
8048 case $archive_cmds in
8050 # FIXME: we may have to deal with multi-command sequences.
8053 # Test whether the compiler implicitly links with -lc since on some
8054 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8055 # to ld, don't add -lc before -lgcc.
8056 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8057 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8059 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8062 (eval $ac_compile) 2>&5
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); } 2>conftest.err; then
8068 libobjs=conftest.$ac_objext
8070 wl=$lt_prog_compiler_wl
8071 pic_flag=$lt_prog_compiler_pic
8077 lt_save_allow_undefined_flag=$allow_undefined_flag
8078 allow_undefined_flag=
8079 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8080 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083 (exit $ac_status); }
8085 archive_cmds_need_lc=no
8087 archive_cmds_need_lc=yes
8089 allow_undefined_flag=$lt_save_allow_undefined_flag
8091 cat conftest.err 1>&5
8094 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8095 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8102 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8103 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8105 libname_spec='lib$name'
8113 shlibpath_overrides_runpath=unknown
8115 dynamic_linker="$host_os ld.so"
8116 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8117 if test "$GCC" = yes; then
8118 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8119 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8120 # if the path contains ";" then we assume it to be the separator
8121 # otherwise default to the standard path separator (i.e. ":") - it is
8122 # assumed that no part of a normal pathname contains ";" but that should
8123 # okay in the real world where ";" in dirpaths is itself problematic.
8124 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8126 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8129 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8131 need_lib_prefix=unknown
8132 hardcode_into_libs=no
8134 # when you set need_version to no, make sure it does not cause -set_version
8135 # flags to be left without arguments
8136 need_version=unknown
8141 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8142 shlibpath_var=LIBPATH
8144 # AIX 3 has no versioning support, so we append a major version to the name.
8145 soname_spec='${libname}${release}${shared_ext}$major'
8152 hardcode_into_libs=yes
8153 if test "$host_cpu" = ia64; then
8154 # AIX 5 supports IA64
8155 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8156 shlibpath_var=LD_LIBRARY_PATH
8158 # With GCC up to 2.95.x, collect2 would create an import file
8159 # for dependence libraries. The import file would start with
8160 # the line `#! .'. This would cause the generated library to
8161 # depend on `.', always an invalid library. This was fixed in
8162 # development snapshots of GCC prior to 3.0.
8164 aix4 | aix4.[01] | aix4.[01].*)
8165 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8167 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8174 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8175 # soname into executable. Probably we can add versioning support to
8176 # collect2, so additional links can be useful in future.
8177 if test "$aix_use_runtimelinking" = yes; then
8178 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8179 # instead of lib<name>.a to let people know that these are not
8180 # typical AIX shared libraries.
8181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8183 # We preserve .a as extension for shared libraries through AIX4.2
8184 # and later when we are not doing run time linking.
8185 library_names_spec='${libname}${release}.a $libname.a'
8186 soname_spec='${libname}${release}${shared_ext}$major'
8188 shlibpath_var=LIBPATH
8193 library_names_spec='$libname.ixlibrary $libname.a'
8194 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8195 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'
8199 library_names_spec='${libname}${shared_ext}'
8200 dynamic_linker="$host_os ld.so"
8201 shlibpath_var=LIBRARY_PATH
8207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8208 soname_spec='${libname}${release}${shared_ext}$major'
8209 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8210 shlibpath_var=LD_LIBRARY_PATH
8211 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8212 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8213 # the default ld.so.conf also contains /usr/contrib/lib and
8214 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8215 # libtool to hard-code these into programs
8218 cygwin* | mingw* | pw32*)
8219 version_type=windows
8224 case $GCC,$host_os in
8225 yes,cygwin* | yes,mingw* | yes,pw32*)
8226 library_names_spec='$libname.dll.a'
8227 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8228 postinstall_cmds='base_file=`basename \${file}`~
8229 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8230 dldir=$destdir/`dirname \$dlpath`~
8231 test -d \$dldir || mkdir -p \$dldir~
8232 $install_prog $dir/$dlname \$dldir/$dlname~
8233 chmod a+x \$dldir/$dlname'
8234 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8235 dlpath=$dir/\$dldll~
8237 shlibpath_overrides_runpath=yes
8241 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8242 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8243 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8246 # MinGW DLLs use traditional 'lib' prefix
8247 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8248 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8249 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8250 # It is most probably a Windows format PATH printed by
8251 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8252 # path with ; separators, and with drive letters. We can handle the
8253 # drive letters (cygwin fileutils understands them), so leave them,
8254 # especially as we might pass files found there to a mingw objdump,
8255 # which wouldn't understand a cygwinified path. Ahh.
8256 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8258 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8262 # pw32 DLLs use 'pw' prefix rather than 'lib'
8263 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8269 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8272 dynamic_linker='Win32 ld.exe'
8273 # FIXME: first we should search . and the directory the executable is in
8277 darwin* | rhapsody*)
8278 dynamic_linker="$host_os dyld"
8282 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8283 soname_spec='${libname}${release}${major}$shared_ext'
8284 shlibpath_overrides_runpath=yes
8285 shlibpath_var=DYLD_LIBRARY_PATH
8286 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8287 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8288 if test "$GCC" = yes; then
8289 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"`
8291 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8293 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8301 soname_spec='${libname}${release}${shared_ext}$major'
8302 shlibpath_var=LD_LIBRARY_PATH
8313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8314 soname_spec='${libname}${release}${shared_ext}$major'
8315 shlibpath_var=LD_LIBRARY_PATH
8316 shlibpath_overrides_runpath=no
8317 hardcode_into_libs=yes
8318 dynamic_linker='GNU ld.so'
8321 freebsd* | dragonfly*)
8322 # DragonFly does not have aout. When/if they implement a new
8323 # versioning mechanism, adjust this.
8324 if test -x /usr/bin/objformat; then
8325 objformat=`/usr/bin/objformat`
8328 freebsd[123]*) objformat=aout ;;
8332 version_type=freebsd-$objformat
8333 case $version_type in
8335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8340 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8344 shlibpath_var=LD_LIBRARY_PATH
8347 shlibpath_overrides_runpath=yes
8349 freebsd3.[01]* | freebsdelf3.[01]*)
8350 shlibpath_overrides_runpath=yes
8351 hardcode_into_libs=yes
8353 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8354 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8355 shlibpath_overrides_runpath=no
8356 hardcode_into_libs=yes
8358 freebsd*) # from 4.6 on
8359 shlibpath_overrides_runpath=yes
8360 hardcode_into_libs=yes
8369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8370 soname_spec='${libname}${release}${shared_ext}$major'
8371 shlibpath_var=LD_LIBRARY_PATH
8372 hardcode_into_libs=yes
8375 hpux9* | hpux10* | hpux11*)
8376 # Give a soname corresponding to the major version so that dld.sl refuses to
8377 # link against other versions.
8384 hardcode_into_libs=yes
8385 dynamic_linker="$host_os dld.so"
8386 shlibpath_var=LD_LIBRARY_PATH
8387 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8389 soname_spec='${libname}${release}${shared_ext}$major'
8390 if test "X$HPUX_IA64_MODE" = X32; then
8391 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8393 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8395 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8399 hardcode_into_libs=yes
8400 dynamic_linker="$host_os dld.sl"
8401 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8402 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8404 soname_spec='${libname}${release}${shared_ext}$major'
8405 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8406 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8410 dynamic_linker="$host_os dld.sl"
8411 shlibpath_var=SHLIB_PATH
8412 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8414 soname_spec='${libname}${release}${shared_ext}$major'
8417 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8418 postinstall_cmds='chmod 555 $lib'
8425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8426 soname_spec='${libname}${release}${shared_ext}$major'
8427 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8428 shlibpath_var=LD_LIBRARY_PATH
8429 shlibpath_overrides_runpath=no
8430 hardcode_into_libs=yes
8433 irix5* | irix6* | nonstopux*)
8435 nonstopux*) version_type=nonstopux ;;
8437 if test "$lt_cv_prog_gnu_ld" = yes; then
8445 soname_spec='${libname}${release}${shared_ext}$major'
8446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8448 irix5* | nonstopux*)
8452 case $LD in # libtool.m4 will add one of these switches to LD
8453 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8454 libsuff= shlibsuff= libmagic=32-bit;;
8455 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8456 libsuff=32 shlibsuff=N32 libmagic=N32;;
8457 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8458 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8459 *) libsuff= shlibsuff= libmagic=never-match;;
8463 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8464 shlibpath_overrides_runpath=no
8465 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8466 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8467 hardcode_into_libs=yes
8470 # No shared lib support for Linux oldld, aout, or coff.
8471 linux*oldld* | linux*aout* | linux*coff*)
8475 # This must be Linux ELF.
8480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8481 soname_spec='${libname}${release}${shared_ext}$major'
8482 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8483 shlibpath_var=LD_LIBRARY_PATH
8484 shlibpath_overrides_runpath=no
8485 # This implies no fast_install, which is unacceptable.
8486 # Some rework will be needed to allow for fast_install
8487 # before this can be enabled.
8488 hardcode_into_libs=yes
8490 # find out which ABI we are using
8493 x86_64*|s390x*|powerpc64*)
8494 echo '#line 8494 "configure"' > conftest.$ac_ext
8495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8496 (eval $ac_compile) 2>&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); }; then
8500 case `/usr/bin/file conftest.$ac_objext` in
8503 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8511 # Append ld.so.conf contents to the search path
8512 if test -f /etc/ld.so.conf; then
8513 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8514 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8517 # We used to test for /lib/ld.so.1 and disable shared libraries on
8518 # powerpc, because MkLinux only supported shared libraries with the
8519 # GNU dynamic linker. Since this was broken with cross compilers,
8520 # most powerpc-linux boxes support dynamic linking these days and
8521 # people can always --disable-shared, the test was removed, and we
8522 # assume the GNU/Linux dynamic linker is in use.
8523 dynamic_linker='GNU/Linux ld.so'
8530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8531 soname_spec='${libname}${release}${shared_ext}$major'
8532 shlibpath_var=LD_LIBRARY_PATH
8533 shlibpath_overrides_runpath=no
8534 hardcode_into_libs=yes
8535 dynamic_linker='GNU ld.so'
8542 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8544 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8545 dynamic_linker='NetBSD (a.out) ld.so'
8547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8548 soname_spec='${libname}${release}${shared_ext}$major'
8549 dynamic_linker='NetBSD ld.elf_so'
8551 shlibpath_var=LD_LIBRARY_PATH
8552 shlibpath_overrides_runpath=yes
8553 hardcode_into_libs=yes
8558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8559 shlibpath_var=LD_LIBRARY_PATH
8560 shlibpath_overrides_runpath=yes
8567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8568 soname_spec='${libname}${release}${shared_ext}$major'
8569 shlibpath_var=LD_LIBRARY_PATH
8570 shlibpath_overrides_runpath=yes
8575 sys_lib_dlsearch_path_spec="/usr/lib"
8577 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8579 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8580 *) need_version=no ;;
8582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8583 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8584 shlibpath_var=LD_LIBRARY_PATH
8585 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8587 openbsd2.[89] | openbsd2.[89].*)
8588 shlibpath_overrides_runpath=no
8591 shlibpath_overrides_runpath=yes
8595 shlibpath_overrides_runpath=yes
8600 libname_spec='$name'
8603 library_names_spec='$libname${shared_ext} $libname.a'
8604 dynamic_linker='OS/2 ld.exe'
8605 shlibpath_var=LIBPATH
8608 osf3* | osf4* | osf5*)
8612 soname_spec='${libname}${release}${shared_ext}$major'
8613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8614 shlibpath_var=LD_LIBRARY_PATH
8615 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8616 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8624 soname_spec='${libname}${release}${shared_ext}$major'
8625 shlibpath_var=LD_LIBRARY_PATH
8626 shlibpath_overrides_runpath=yes
8627 hardcode_into_libs=yes
8628 # ldd complains unless libraries are executable
8629 postinstall_cmds='chmod +x $lib'
8634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8635 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8636 shlibpath_var=LD_LIBRARY_PATH
8637 shlibpath_overrides_runpath=yes
8638 if test "$with_gnu_ld" = yes; then
8646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8647 soname_spec='${libname}${release}${shared_ext}$major'
8648 shlibpath_var=LD_LIBRARY_PATH
8649 case $host_vendor in
8651 shlibpath_overrides_runpath=no
8653 export_dynamic_flag_spec='${wl}-Blargedynsym'
8654 runpath_var=LD_RUN_PATH
8662 shlibpath_overrides_runpath=no
8663 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8669 if test -d /usr/nec ;then
8671 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8672 soname_spec='$libname${shared_ext}.$major'
8673 shlibpath_var=LD_LIBRARY_PATH
8677 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8678 version_type=freebsd-elf
8681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8682 soname_spec='${libname}${release}${shared_ext}$major'
8683 shlibpath_var=LD_LIBRARY_PATH
8684 hardcode_into_libs=yes
8685 if test "$with_gnu_ld" = yes; then
8686 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8687 shlibpath_overrides_runpath=no
8689 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8690 shlibpath_overrides_runpath=yes
8693 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8697 sys_lib_dlsearch_path_spec='/usr/lib'
8702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8703 soname_spec='${libname}${release}${shared_ext}$major'
8704 shlibpath_var=LD_LIBRARY_PATH
8711 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8712 echo "${ECHO_T}$dynamic_linker" >&6
8713 test "$dynamic_linker" = no && can_build_shared=no
8715 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8716 if test "$GCC" = yes; then
8717 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8720 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8721 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8723 if test -n "$hardcode_libdir_flag_spec" || \
8724 test -n "$runpath_var" || \
8725 test "X$hardcode_automatic" = "Xyes" ; then
8727 # We can hardcode non-existant directories.
8728 if test "$hardcode_direct" != no &&
8729 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8730 # have to relink, otherwise we might link with an installed library
8731 # when we should be linking with a yet-to-be-installed one
8732 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8733 test "$hardcode_minus_L" != no; then
8734 # Linking always hardcodes the temporary library directory.
8735 hardcode_action=relink
8737 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8738 hardcode_action=immediate
8741 # We cannot hardcode anything, or else we can only hardcode existing
8743 hardcode_action=unsupported
8745 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8746 echo "${ECHO_T}$hardcode_action" >&6
8748 if test "$hardcode_action" = relink; then
8749 # Fast installation is not supported
8750 enable_fast_install=no
8751 elif test "$shlibpath_overrides_runpath" = yes ||
8752 test "$enable_shared" = no; then
8753 # Fast installation is not necessary
8754 enable_fast_install=needless
8759 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8760 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8761 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8762 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8763 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8764 echo "$as_me:$LINENO: result: yes" >&5
8765 echo "${ECHO_T}yes" >&6
8767 # FIXME - insert some real tests, host_os isn't really good enough
8770 if test -n "$STRIP" ; then
8771 striplib="$STRIP -x"
8772 echo "$as_me:$LINENO: result: yes" >&5
8773 echo "${ECHO_T}yes" >&6
8775 echo "$as_me:$LINENO: result: no" >&5
8776 echo "${ECHO_T}no" >&6
8780 echo "$as_me:$LINENO: result: no" >&5
8781 echo "${ECHO_T}no" >&6
8786 if test "x$enable_dlopen" != xyes; then
8787 enable_dlopen=unknown
8788 enable_dlopen_self=unknown
8789 enable_dlopen_self_static=unknown
8796 lt_cv_dlopen="load_add_on"
8798 lt_cv_dlopen_self=yes
8802 lt_cv_dlopen="LoadLibrary"
8807 lt_cv_dlopen="dlopen"
8812 # if libdl is installed we need to link against it
8813 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8814 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8815 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8816 echo $ECHO_N "(cached) $ECHO_C" >&6
8818 ac_check_lib_save_LIBS=$LIBS
8820 cat >conftest.$ac_ext <<_ACEOF
8823 cat confdefs.h >>conftest.$ac_ext
8824 cat >>conftest.$ac_ext <<_ACEOF
8825 /* end confdefs.h. */
8827 /* Override any gcc2 internal prototype to avoid an error. */
8831 /* We use char because int might match the return type of a gcc2
8832 builtin and then its argument prototype would still apply. */
8842 rm -f conftest.$ac_objext conftest$ac_exeext
8843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8844 (eval $ac_link) 2>conftest.er1
8846 grep -v '^ *+' conftest.er1 >conftest.err
8848 cat conftest.err >&5
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); } &&
8851 { ac_try='test -z "$ac_c_werror_flag"
8852 || test ! -s conftest.err'
8853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); }; } &&
8858 { ac_try='test -s conftest$ac_exeext'
8859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 (exit $ac_status); }; }; then
8864 ac_cv_lib_dl_dlopen=yes
8866 echo "$as_me: failed program was:" >&5
8867 sed 's/^/| /' conftest.$ac_ext >&5
8869 ac_cv_lib_dl_dlopen=no
8871 rm -f conftest.err conftest.$ac_objext \
8872 conftest$ac_exeext conftest.$ac_ext
8873 LIBS=$ac_check_lib_save_LIBS
8875 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8876 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8877 if test $ac_cv_lib_dl_dlopen = yes; then
8878 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8883 lt_cv_dlopen_self=yes
8890 echo "$as_me:$LINENO: checking for shl_load" >&5
8891 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8892 if test "${ac_cv_func_shl_load+set}" = set; then
8893 echo $ECHO_N "(cached) $ECHO_C" >&6
8895 cat >conftest.$ac_ext <<_ACEOF
8898 cat confdefs.h >>conftest.$ac_ext
8899 cat >>conftest.$ac_ext <<_ACEOF
8900 /* end confdefs.h. */
8901 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8903 #define shl_load innocuous_shl_load
8905 /* System header to define __stub macros and hopefully few prototypes,
8906 which can conflict with char shl_load (); below.
8907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8908 <limits.h> exists even on freestanding compilers. */
8911 # include <limits.h>
8913 # include <assert.h>
8918 /* Override any gcc2 internal prototype to avoid an error. */
8923 /* We use char because int might match the return type of a gcc2
8924 builtin and then its argument prototype would still apply. */
8926 /* The GNU C library defines this for functions which it implements
8927 to always fail with ENOSYS. Some functions are actually named
8928 something starting with __ and the normal name is an alias. */
8929 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8932 char (*f) () = shl_load;
8941 return f != shl_load;
8946 rm -f conftest.$ac_objext conftest$ac_exeext
8947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8948 (eval $ac_link) 2>conftest.er1
8950 grep -v '^ *+' conftest.er1 >conftest.err
8952 cat conftest.err >&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); } &&
8955 { ac_try='test -z "$ac_c_werror_flag"
8956 || test ! -s conftest.err'
8957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); }; } &&
8962 { ac_try='test -s conftest$ac_exeext'
8963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); }; }; then
8968 ac_cv_func_shl_load=yes
8970 echo "$as_me: failed program was:" >&5
8971 sed 's/^/| /' conftest.$ac_ext >&5
8973 ac_cv_func_shl_load=no
8975 rm -f conftest.err conftest.$ac_objext \
8976 conftest$ac_exeext conftest.$ac_ext
8978 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8979 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8980 if test $ac_cv_func_shl_load = yes; then
8981 lt_cv_dlopen="shl_load"
8983 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8984 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8985 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8986 echo $ECHO_N "(cached) $ECHO_C" >&6
8988 ac_check_lib_save_LIBS=$LIBS
8990 cat >conftest.$ac_ext <<_ACEOF
8993 cat confdefs.h >>conftest.$ac_ext
8994 cat >>conftest.$ac_ext <<_ACEOF
8995 /* end confdefs.h. */
8997 /* Override any gcc2 internal prototype to avoid an error. */
9001 /* We use char because int might match the return type of a gcc2
9002 builtin and then its argument prototype would still apply. */
9012 rm -f conftest.$ac_objext conftest$ac_exeext
9013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9014 (eval $ac_link) 2>conftest.er1
9016 grep -v '^ *+' conftest.er1 >conftest.err
9018 cat conftest.err >&5
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); } &&
9021 { ac_try='test -z "$ac_c_werror_flag"
9022 || test ! -s conftest.err'
9023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027 (exit $ac_status); }; } &&
9028 { ac_try='test -s conftest$ac_exeext'
9029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033 (exit $ac_status); }; }; then
9034 ac_cv_lib_dld_shl_load=yes
9036 echo "$as_me: failed program was:" >&5
9037 sed 's/^/| /' conftest.$ac_ext >&5
9039 ac_cv_lib_dld_shl_load=no
9041 rm -f conftest.err conftest.$ac_objext \
9042 conftest$ac_exeext conftest.$ac_ext
9043 LIBS=$ac_check_lib_save_LIBS
9045 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9046 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9047 if test $ac_cv_lib_dld_shl_load = yes; then
9048 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9050 echo "$as_me:$LINENO: checking for dlopen" >&5
9051 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9052 if test "${ac_cv_func_dlopen+set}" = set; then
9053 echo $ECHO_N "(cached) $ECHO_C" >&6
9055 cat >conftest.$ac_ext <<_ACEOF
9058 cat confdefs.h >>conftest.$ac_ext
9059 cat >>conftest.$ac_ext <<_ACEOF
9060 /* end confdefs.h. */
9061 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9063 #define dlopen innocuous_dlopen
9065 /* System header to define __stub macros and hopefully few prototypes,
9066 which can conflict with char dlopen (); below.
9067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9068 <limits.h> exists even on freestanding compilers. */
9071 # include <limits.h>
9073 # include <assert.h>
9078 /* Override any gcc2 internal prototype to avoid an error. */
9083 /* We use char because int might match the return type of a gcc2
9084 builtin and then its argument prototype would still apply. */
9086 /* The GNU C library defines this for functions which it implements
9087 to always fail with ENOSYS. Some functions are actually named
9088 something starting with __ and the normal name is an alias. */
9089 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9092 char (*f) () = dlopen;
9106 rm -f conftest.$ac_objext conftest$ac_exeext
9107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9108 (eval $ac_link) 2>conftest.er1
9110 grep -v '^ *+' conftest.er1 >conftest.err
9112 cat conftest.err >&5
9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 (exit $ac_status); } &&
9115 { ac_try='test -z "$ac_c_werror_flag"
9116 || test ! -s conftest.err'
9117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); }; } &&
9122 { ac_try='test -s conftest$ac_exeext'
9123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); }; }; then
9128 ac_cv_func_dlopen=yes
9130 echo "$as_me: failed program was:" >&5
9131 sed 's/^/| /' conftest.$ac_ext >&5
9133 ac_cv_func_dlopen=no
9135 rm -f conftest.err conftest.$ac_objext \
9136 conftest$ac_exeext conftest.$ac_ext
9138 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9139 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9140 if test $ac_cv_func_dlopen = yes; then
9141 lt_cv_dlopen="dlopen"
9143 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9144 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9145 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9146 echo $ECHO_N "(cached) $ECHO_C" >&6
9148 ac_check_lib_save_LIBS=$LIBS
9150 cat >conftest.$ac_ext <<_ACEOF
9153 cat confdefs.h >>conftest.$ac_ext
9154 cat >>conftest.$ac_ext <<_ACEOF
9155 /* end confdefs.h. */
9157 /* Override any gcc2 internal prototype to avoid an error. */
9161 /* We use char because int might match the return type of a gcc2
9162 builtin and then its argument prototype would still apply. */
9172 rm -f conftest.$ac_objext conftest$ac_exeext
9173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9174 (eval $ac_link) 2>conftest.er1
9176 grep -v '^ *+' conftest.er1 >conftest.err
9178 cat conftest.err >&5
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 (exit $ac_status); } &&
9181 { ac_try='test -z "$ac_c_werror_flag"
9182 || test ! -s conftest.err'
9183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187 (exit $ac_status); }; } &&
9188 { ac_try='test -s conftest$ac_exeext'
9189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); }; }; then
9194 ac_cv_lib_dl_dlopen=yes
9196 echo "$as_me: failed program was:" >&5
9197 sed 's/^/| /' conftest.$ac_ext >&5
9199 ac_cv_lib_dl_dlopen=no
9201 rm -f conftest.err conftest.$ac_objext \
9202 conftest$ac_exeext conftest.$ac_ext
9203 LIBS=$ac_check_lib_save_LIBS
9205 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9206 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9207 if test $ac_cv_lib_dl_dlopen = yes; then
9208 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9210 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9211 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9212 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9215 ac_check_lib_save_LIBS=$LIBS
9217 cat >conftest.$ac_ext <<_ACEOF
9220 cat confdefs.h >>conftest.$ac_ext
9221 cat >>conftest.$ac_ext <<_ACEOF
9222 /* end confdefs.h. */
9224 /* Override any gcc2 internal prototype to avoid an error. */
9228 /* We use char because int might match the return type of a gcc2
9229 builtin and then its argument prototype would still apply. */
9239 rm -f conftest.$ac_objext conftest$ac_exeext
9240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9241 (eval $ac_link) 2>conftest.er1
9243 grep -v '^ *+' conftest.er1 >conftest.err
9245 cat conftest.err >&5
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); } &&
9248 { ac_try='test -z "$ac_c_werror_flag"
9249 || test ! -s conftest.err'
9250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); }; } &&
9255 { ac_try='test -s conftest$ac_exeext'
9256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); }; }; then
9261 ac_cv_lib_svld_dlopen=yes
9263 echo "$as_me: failed program was:" >&5
9264 sed 's/^/| /' conftest.$ac_ext >&5
9266 ac_cv_lib_svld_dlopen=no
9268 rm -f conftest.err conftest.$ac_objext \
9269 conftest$ac_exeext conftest.$ac_ext
9270 LIBS=$ac_check_lib_save_LIBS
9272 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9273 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9274 if test $ac_cv_lib_svld_dlopen = yes; then
9275 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9277 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9278 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9279 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9280 echo $ECHO_N "(cached) $ECHO_C" >&6
9282 ac_check_lib_save_LIBS=$LIBS
9284 cat >conftest.$ac_ext <<_ACEOF
9287 cat confdefs.h >>conftest.$ac_ext
9288 cat >>conftest.$ac_ext <<_ACEOF
9289 /* end confdefs.h. */
9291 /* Override any gcc2 internal prototype to avoid an error. */
9295 /* We use char because int might match the return type of a gcc2
9296 builtin and then its argument prototype would still apply. */
9306 rm -f conftest.$ac_objext conftest$ac_exeext
9307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9308 (eval $ac_link) 2>conftest.er1
9310 grep -v '^ *+' conftest.er1 >conftest.err
9312 cat conftest.err >&5
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); } &&
9315 { ac_try='test -z "$ac_c_werror_flag"
9316 || test ! -s conftest.err'
9317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321 (exit $ac_status); }; } &&
9322 { ac_try='test -s conftest$ac_exeext'
9323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327 (exit $ac_status); }; }; then
9328 ac_cv_lib_dld_dld_link=yes
9330 echo "$as_me: failed program was:" >&5
9331 sed 's/^/| /' conftest.$ac_ext >&5
9333 ac_cv_lib_dld_dld_link=no
9335 rm -f conftest.err conftest.$ac_objext \
9336 conftest$ac_exeext conftest.$ac_ext
9337 LIBS=$ac_check_lib_save_LIBS
9339 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9340 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9341 if test $ac_cv_lib_dld_dld_link = yes; then
9342 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9363 if test "x$lt_cv_dlopen" != xno; then
9369 case $lt_cv_dlopen in
9371 save_CPPFLAGS="$CPPFLAGS"
9372 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9374 save_LDFLAGS="$LDFLAGS"
9375 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9378 LIBS="$lt_cv_dlopen_libs $LIBS"
9380 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9381 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9382 if test "${lt_cv_dlopen_self+set}" = set; then
9383 echo $ECHO_N "(cached) $ECHO_C" >&6
9385 if test "$cross_compiling" = yes; then :
9386 lt_cv_dlopen_self=cross
9388 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9389 lt_status=$lt_dlunknown
9390 cat > conftest.$ac_ext <<EOF
9391 #line 9391 "configure"
9392 #include "confdefs.h"
9401 # define LT_DLGLOBAL RTLD_GLOBAL
9404 # define LT_DLGLOBAL DL_GLOBAL
9406 # define LT_DLGLOBAL 0
9410 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9411 find out it does not work in some platform. */
9412 #ifndef LT_DLLAZY_OR_NOW
9414 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9417 # define LT_DLLAZY_OR_NOW DL_LAZY
9420 # define LT_DLLAZY_OR_NOW RTLD_NOW
9423 # define LT_DLLAZY_OR_NOW DL_NOW
9425 # define LT_DLLAZY_OR_NOW 0
9433 extern "C" void exit (int);
9436 void fnord() { int i=42;}
9439 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9440 int status = $lt_dlunknown;
9444 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9445 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9446 /* dlclose (self); */
9454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9455 (eval $ac_link) 2>&5
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9459 (./conftest; exit; ) >&5 2>/dev/null
9462 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9463 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9464 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9467 # compilation failed
9468 lt_cv_dlopen_self=no
9475 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9476 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9478 if test "x$lt_cv_dlopen_self" = xyes; then
9479 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9480 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9481 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9482 if test "${lt_cv_dlopen_self_static+set}" = set; then
9483 echo $ECHO_N "(cached) $ECHO_C" >&6
9485 if test "$cross_compiling" = yes; then :
9486 lt_cv_dlopen_self_static=cross
9488 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9489 lt_status=$lt_dlunknown
9490 cat > conftest.$ac_ext <<EOF
9491 #line 9491 "configure"
9492 #include "confdefs.h"
9501 # define LT_DLGLOBAL RTLD_GLOBAL
9504 # define LT_DLGLOBAL DL_GLOBAL
9506 # define LT_DLGLOBAL 0
9510 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9511 find out it does not work in some platform. */
9512 #ifndef LT_DLLAZY_OR_NOW
9514 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9517 # define LT_DLLAZY_OR_NOW DL_LAZY
9520 # define LT_DLLAZY_OR_NOW RTLD_NOW
9523 # define LT_DLLAZY_OR_NOW DL_NOW
9525 # define LT_DLLAZY_OR_NOW 0
9533 extern "C" void exit (int);
9536 void fnord() { int i=42;}
9539 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9540 int status = $lt_dlunknown;
9544 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9545 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9546 /* dlclose (self); */
9554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9555 (eval $ac_link) 2>&5
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9559 (./conftest; exit; ) >&5 2>/dev/null
9562 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9563 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9564 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9567 # compilation failed
9568 lt_cv_dlopen_self_static=no
9575 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9576 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9579 CPPFLAGS="$save_CPPFLAGS"
9580 LDFLAGS="$save_LDFLAGS"
9585 case $lt_cv_dlopen_self in
9586 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9587 *) enable_dlopen_self=unknown ;;
9590 case $lt_cv_dlopen_self_static in
9591 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9592 *) enable_dlopen_self_static=unknown ;;
9597 # Report which library types will actually be built
9598 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9599 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9600 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9601 echo "${ECHO_T}$can_build_shared" >&6
9603 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9604 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9605 test "$can_build_shared" = "no" && enable_shared=no
9607 # On AIX, shared libraries and static libraries use the same namespace, and
9608 # are all built from PIC.
9611 test "$enable_shared" = yes && enable_static=no
9612 if test -n "$RANLIB"; then
9613 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9614 postinstall_cmds='$RANLIB $lib'
9619 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9620 test "$enable_shared" = yes && enable_static=no
9624 echo "$as_me:$LINENO: result: $enable_shared" >&5
9625 echo "${ECHO_T}$enable_shared" >&6
9627 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9628 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9629 # Make sure either enable_shared or enable_static is yes.
9630 test "$enable_shared" = yes || enable_static=yes
9631 echo "$as_me:$LINENO: result: $enable_static" >&5
9632 echo "${ECHO_T}$enable_static" >&6
9634 # The else clause should only fire when bootstrapping the
9635 # libtool distribution, otherwise you forgot to ship ltmain.sh
9636 # with your package, and you will get complaints that there are
9637 # no rules to generate ltmain.sh.
9638 if test -f "$ltmain"; then
9639 # See if we are running on zsh, and set the options which allow our commands through
9640 # without removal of \ escapes.
9641 if test -n "${ZSH_VERSION+set}" ; then
9642 setopt NO_GLOB_SUBST
9644 # Now quote all the things that may contain metacharacters while being
9645 # careful not to overquote the AC_SUBSTed values. We take copies of the
9646 # variables and quote the copies for generation of the libtool script.
9647 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9649 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9650 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9651 deplibs_check_method reload_flag reload_cmds need_locks \
9652 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9653 lt_cv_sys_global_symbol_to_c_name_address \
9654 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9655 old_postinstall_cmds old_postuninstall_cmds \
9659 lt_prog_compiler_wl \
9660 lt_prog_compiler_pic \
9661 lt_prog_compiler_static \
9662 lt_prog_compiler_no_builtin_flag \
9663 export_dynamic_flag_spec \
9664 thread_safe_flag_spec \
9665 whole_archive_flag_spec \
9666 enable_shared_with_static_runtimes \
9668 old_archive_from_new_cmds \
9673 compiler_lib_search_path \
9675 archive_expsym_cmds \
9677 postuninstall_cmds \
9678 old_archive_from_expsyms_cmds \
9679 allow_undefined_flag \
9681 export_symbols_cmds \
9682 hardcode_libdir_flag_spec \
9683 hardcode_libdir_flag_spec_ld \
9684 hardcode_libdir_separator \
9685 hardcode_automatic \
9687 module_expsym_cmds \
9688 lt_cv_prog_compiler_c_o \
9693 old_archive_cmds | \
9694 old_archive_from_new_cmds | \
9696 archive_expsym_cmds | \
9698 module_expsym_cmds | \
9699 old_archive_from_expsyms_cmds | \
9700 export_symbols_cmds | \
9701 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9702 postinstall_cmds | postuninstall_cmds | \
9703 old_postinstall_cmds | old_postuninstall_cmds | \
9704 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9705 # Double-quote double-evaled strings.
9706 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9709 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9715 *'\$0 --fallback-echo"')
9716 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9721 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9723 { echo "$as_me:$LINENO: creating $ofile" >&5
9724 echo "$as_me: creating $ofile" >&6;}
9726 cat <<__EOF__ >> "$cfgfile"
9729 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9730 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9731 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9733 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9734 # Free Software Foundation, Inc.
9736 # This file is part of GNU Libtool:
9737 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9739 # This program is free software; you can redistribute it and/or modify
9740 # it under the terms of the GNU General Public License as published by
9741 # the Free Software Foundation; either version 2 of the License, or
9742 # (at your option) any later version.
9744 # This program is distributed in the hope that it will be useful, but
9745 # WITHOUT ANY WARRANTY; without even the implied warranty of
9746 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9747 # General Public License for more details.
9749 # You should have received a copy of the GNU General Public License
9750 # along with this program; if not, write to the Free Software
9751 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9753 # As a special exception to the GNU General Public License, if you
9754 # distribute this file as part of a program that contains a
9755 # configuration script generated by Autoconf, you may include it under
9756 # the same distribution terms that you use for the rest of that program.
9758 # A sed program that does not truncate output.
9761 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9762 Xsed="$SED -e 1s/^X//"
9764 # The HP-UX ksh and POSIX shell print the target directory to stdout
9766 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9768 # The names of the tagged configurations supported by this script.
9771 # ### BEGIN LIBTOOL CONFIG
9773 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9775 # Shell to use when invoking shell scripts.
9778 # Whether or not to build shared libraries.
9779 build_libtool_libs=$enable_shared
9781 # Whether or not to build static libraries.
9782 build_old_libs=$enable_static
9784 # Whether or not to add -lc for building shared libraries.
9785 build_libtool_need_lc=$archive_cmds_need_lc
9787 # Whether or not to disallow shared libs when runtime libs are static
9788 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9790 # Whether or not to optimize for fast installation.
9791 fast_install=$enable_fast_install
9794 host_alias=$host_alias
9799 build_alias=$build_alias
9803 # An echo program that does not interpret backslashes.
9808 AR_FLAGS=$lt_AR_FLAGS
9813 # LTCC compiler flags.
9814 LTCFLAGS=$lt_LTCFLAGS
9816 # A language-specific compiler.
9819 # Is the compiler the GNU C compiler?
9822 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
9823 gcc_ver=\`gcc -dumpversion\`
9828 # The linker used to build libraries.
9831 # Whether we need hard or soft links.
9834 # A BSD-compatible nm program.
9837 # A symbol stripping program
9840 # Used to examine libraries when file_magic_cmd begins "file"
9841 MAGIC_CMD=$MAGIC_CMD
9843 # Used on cygwin: DLL creation program.
9846 # Used on cygwin: object dumper.
9849 # Used on cygwin: assembler.
9852 # The name of the directory that contains temporary libtool files.
9855 # How to create reloadable object files.
9856 reload_flag=$lt_reload_flag
9857 reload_cmds=$lt_reload_cmds
9859 # How to pass a linker flag through the compiler.
9860 wl=$lt_lt_prog_compiler_wl
9862 # Object file suffix (normally "o").
9865 # Old archive suffix (normally "a").
9868 # Shared library suffix (normally ".so").
9869 shrext_cmds='$shrext_cmds'
9871 # Executable file suffix (normally "").
9874 # Additional compiler flags for building library objects.
9875 pic_flag=$lt_lt_prog_compiler_pic
9878 # What is the maximum length of a command?
9879 max_cmd_len=$lt_cv_sys_max_cmd_len
9881 # Does compiler simultaneously support -c and -o options?
9882 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9884 # Must we lock files when doing compilation?
9885 need_locks=$lt_need_locks
9887 # Do we need the lib prefix for modules?
9888 need_lib_prefix=$need_lib_prefix
9890 # Do we need a version for libraries?
9891 need_version=$need_version
9893 # Whether dlopen is supported.
9894 dlopen_support=$enable_dlopen
9896 # Whether dlopen of programs is supported.
9897 dlopen_self=$enable_dlopen_self
9899 # Whether dlopen of statically linked programs is supported.
9900 dlopen_self_static=$enable_dlopen_self_static
9902 # Compiler flag to prevent dynamic linking.
9903 link_static_flag=$lt_lt_prog_compiler_static
9905 # Compiler flag to turn off builtin functions.
9906 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9908 # Compiler flag to allow reflexive dlopens.
9909 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9911 # Compiler flag to generate shared objects directly from archives.
9912 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9914 # Compiler flag to generate thread-safe objects.
9915 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9917 # Library versioning type.
9918 version_type=$version_type
9920 # Format of library name prefix.
9921 libname_spec=$lt_libname_spec
9923 # List of archive names. First name is the real one, the rest are links.
9924 # The last name is the one that the linker finds with -lNAME.
9925 library_names_spec=$lt_library_names_spec
9927 # The coded name of the library, if different from the real name.
9928 soname_spec=$lt_soname_spec
9930 # Commands used to build and install an old-style archive.
9932 old_archive_cmds=$lt_old_archive_cmds
9933 old_postinstall_cmds=$lt_old_postinstall_cmds
9934 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9936 # Create an old-style archive from a shared archive.
9937 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9939 # Create a temporary old-style archive to link instead of a shared archive.
9940 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9942 # Commands used to build and install a shared archive.
9943 archive_cmds=$lt_archive_cmds
9944 archive_expsym_cmds=$lt_archive_expsym_cmds
9945 postinstall_cmds=$lt_postinstall_cmds
9946 postuninstall_cmds=$lt_postuninstall_cmds
9948 # Commands used to build a loadable module (assumed same as above if empty)
9949 module_cmds=$lt_module_cmds
9950 module_expsym_cmds=$lt_module_expsym_cmds
9952 # Commands to strip libraries.
9953 old_striplib=$lt_old_striplib
9954 striplib=$lt_striplib
9956 # Dependencies to place before the objects being linked to create a
9958 predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9960 # Dependencies to place after the objects being linked to create a
9962 postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9964 # Dependencies to place before the objects being linked to create a
9968 # Dependencies to place after the objects being linked to create a
9970 postdeps=$lt_postdeps
9972 # The library search path used internally by the compiler when linking
9974 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9976 # Method to check whether dependent libraries are shared objects.
9977 deplibs_check_method=$lt_deplibs_check_method
9979 # Command to use when deplibs_check_method == file_magic.
9980 file_magic_cmd=$lt_file_magic_cmd
9982 # Flag that allows shared libraries with undefined symbols to be built.
9983 allow_undefined_flag=$lt_allow_undefined_flag
9985 # Flag that forces no undefined symbols.
9986 no_undefined_flag=$lt_no_undefined_flag
9988 # Commands used to finish a libtool library installation in a directory.
9989 finish_cmds=$lt_finish_cmds
9991 # Same as above, but a single script fragment to be evaled but not shown.
9992 finish_eval=$lt_finish_eval
9994 # Take the output of nm and produce a listing of raw symbols and C names.
9995 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9997 # Transform the output of nm in a proper C declaration
9998 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10000 # Transform the output of nm in a C name address pair
10001 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10003 # This is the shared library runtime path variable.
10004 runpath_var=$runpath_var
10006 # This is the shared library path variable.
10007 shlibpath_var=$shlibpath_var
10009 # Is shlibpath searched before the hard-coded library search path?
10010 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10012 # How to hardcode a shared library path into an executable.
10013 hardcode_action=$hardcode_action
10015 # Whether we should hardcode library paths into libraries.
10016 hardcode_into_libs=$hardcode_into_libs
10018 # Flag to hardcode \$libdir into a binary during linking.
10019 # This must work even if \$libdir does not exist.
10020 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10022 # If ld is used when linking, flag to hardcode \$libdir into
10023 # a binary during linking. This must work even if \$libdir does
10025 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10027 # Whether we need a single -rpath flag with a separated argument.
10028 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10030 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10031 # resulting binary.
10032 hardcode_direct=$hardcode_direct
10034 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10035 # resulting binary.
10036 hardcode_minus_L=$hardcode_minus_L
10038 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10039 # the resulting binary.
10040 hardcode_shlibpath_var=$hardcode_shlibpath_var
10042 # Set to yes if building a shared library automatically hardcodes DIR into the library
10043 # and all subsequent libraries and executables linked against it.
10044 hardcode_automatic=$hardcode_automatic
10046 # Variables whose values should be saved in libtool wrapper scripts and
10047 # restored at relink time.
10048 variables_saved_for_relink="$variables_saved_for_relink"
10050 # Whether libtool must link a program against all its dependency libraries.
10051 link_all_deplibs=$link_all_deplibs
10053 # Compile-time system search path for libraries
10054 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10056 # Run-time system search path for libraries
10057 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10059 # Fix the shell variable \$srcfile for the compiler.
10060 fix_srcfile_path="$fix_srcfile_path"
10062 # Set to yes if exported symbols are required.
10063 always_export_symbols=$always_export_symbols
10065 # The commands to list exported symbols.
10066 export_symbols_cmds=$lt_export_symbols_cmds
10068 # The commands to extract the exported symbol list from a shared archive.
10069 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10071 # Symbols that should not be listed in the preloaded symbols.
10072 exclude_expsyms=$lt_exclude_expsyms
10074 # Symbols that must always be exported.
10075 include_expsyms=$lt_include_expsyms
10077 # ### END LIBTOOL CONFIG
10084 cat <<\EOF >> "$cfgfile"
10086 # AIX sometimes has problems with the GCC collect2 program. For some
10087 # reason, if we set the COLLECT_NAMES environment variable, the problems
10088 # vanish in a puff of smoke.
10089 if test "X${COLLECT_NAMES+set}" != Xset; then
10091 export COLLECT_NAMES
10097 # We use sed instead of cat because bash on DJGPP gets confused if
10098 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10099 # text mode, it properly converts lines to CR/LF. This bash problem
10100 # is reportedly fixed, but why not run on old versions too?
10101 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10103 mv -f "$cfgfile" "$ofile" || \
10104 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10108 # If there is no Makefile yet, we rely on a make rule to execute
10109 # `config.status --recheck' to rerun these tests and create the
10110 # libtool script then.
10111 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10112 if test -f "$ltmain_in"; then
10113 test -f Makefile && make "$ltmain"
10119 ac_cpp='$CPP $CPPFLAGS'
10120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10127 # Check whether --with-tags or --without-tags was given.
10128 if test "${with_tags+set}" = set; then
10129 withval="$with_tags"
10130 tagnames="$withval"
10133 if test -f "$ltmain" && test -n "$tagnames"; then
10134 if test ! -f "${ofile}"; then
10135 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10136 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10139 if test -z "$LTCC"; then
10140 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10141 if test -z "$LTCC"; then
10142 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10143 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10145 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10146 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10149 if test -z "$LTCFLAGS"; then
10150 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10153 # Extract list of available tagged configurations in $ofile.
10154 # Note that this assumes the entire list is on one line.
10155 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10157 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10158 for tagname in $tagnames; do
10160 # Check whether tagname contains only valid characters
10161 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10163 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10164 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10165 { (exit 1); exit 1; }; }
10169 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10171 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10172 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10173 { (exit 1); exit 1; }; }
10176 # Update the list of available tags.
10177 if test -n "$tagname"; then
10178 echo appending configuration tag \"$tagname\" to $ofile
10182 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10183 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10184 (test "X$CXX" != "Xg++"))) ; then
10186 ac_cpp='$CXXCPP $CPPFLAGS'
10187 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10188 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10189 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10194 archive_cmds_need_lc_CXX=no
10195 allow_undefined_flag_CXX=
10196 always_export_symbols_CXX=no
10197 archive_expsym_cmds_CXX=
10198 export_dynamic_flag_spec_CXX=
10199 hardcode_direct_CXX=no
10200 hardcode_libdir_flag_spec_CXX=
10201 hardcode_libdir_flag_spec_ld_CXX=
10202 hardcode_libdir_separator_CXX=
10203 hardcode_minus_L_CXX=no
10204 hardcode_shlibpath_var_CXX=unsupported
10205 hardcode_automatic_CXX=no
10207 module_expsym_cmds_CXX=
10208 link_all_deplibs_CXX=unknown
10209 old_archive_cmds_CXX=$old_archive_cmds
10210 no_undefined_flag_CXX=
10211 whole_archive_flag_spec_CXX=
10212 enable_shared_with_static_runtimes_CXX=no
10214 # Dependencies to place before and after the object being linked:
10215 predep_objects_CXX=
10216 postdep_objects_CXX=
10219 compiler_lib_search_path_CXX=
10221 # Source file extension for C++ test sources.
10224 # Object file extension for compiled C++ test sources.
10228 # Code to be used in simple compile tests
10229 lt_simple_compile_test_code="int some_variable = 0;\n"
10231 # Code to be used in simple link tests
10232 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10234 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10236 # If no C compiler was specified, use CC.
10239 # If no C compiler flags were specified, use CFLAGS.
10240 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10242 # Allow CC to be a program name with arguments.
10246 # save warnings/boilerplate of simple test code
10247 ac_outfile=conftest.$ac_objext
10248 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10249 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10250 _lt_compiler_boilerplate=`cat conftest.err`
10253 ac_outfile=conftest.$ac_objext
10254 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10255 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10256 _lt_linker_boilerplate=`cat conftest.err`
10260 # Allow CC to be a program name with arguments.
10265 lt_save_with_gnu_ld=$with_gnu_ld
10266 lt_save_path_LD=$lt_cv_path_LD
10267 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10268 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10270 $as_unset lt_cv_prog_gnu_ld
10272 if test -n "${lt_cv_path_LDCXX+set}"; then
10273 lt_cv_path_LD=$lt_cv_path_LDCXX
10275 $as_unset lt_cv_path_LD
10277 test -z "${LDCXX+set}" || LD=$LDCXX
10281 for cc_temp in $compiler""; do
10283 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10284 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10289 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10292 # We don't want -fno-exception wen compiling C++ code, so set the
10293 # no_builtin_flag separately
10294 if test "$GXX" = yes; then
10295 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10297 lt_prog_compiler_no_builtin_flag_CXX=
10300 if test "$GXX" = yes; then
10301 # Set up default GNU C++ configuration
10304 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10305 if test "${with_gnu_ld+set}" = set; then
10306 withval="$with_gnu_ld"
10307 test "$withval" = no || with_gnu_ld=yes
10312 if test "$GCC" = yes; then
10313 # Check if gcc -print-prog-name=ld gives a path.
10314 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10315 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10318 # gcc leaves a trailing carriage return which upsets mingw
10319 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10321 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10324 # Accept absolute paths.
10326 re_direlt='/[^/][^/]*/\.\./'
10327 # Canonicalize the pathname of ld
10328 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10329 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10330 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10332 test -z "$LD" && LD="$ac_prog"
10335 # If it fails, then pretend we aren't using GCC.
10339 # If it is relative, then search for the first ld in PATH.
10340 with_gnu_ld=unknown
10343 elif test "$with_gnu_ld" = yes; then
10344 echo "$as_me:$LINENO: checking for GNU ld" >&5
10345 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10347 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10348 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10350 if test "${lt_cv_path_LD+set}" = set; then
10351 echo $ECHO_N "(cached) $ECHO_C" >&6
10353 if test -z "$LD"; then
10354 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10355 for ac_dir in $PATH; do
10357 test -z "$ac_dir" && ac_dir=.
10358 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10359 lt_cv_path_LD="$ac_dir/$ac_prog"
10360 # Check to see if the program is GNU ld. I'd rather use --version,
10361 # but apparently some variants of GNU ld only accept -v.
10362 # Break only if it was the GNU/non-GNU ld that we prefer.
10363 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10364 *GNU* | *'with BFD'*)
10365 test "$with_gnu_ld" != no && break
10368 test "$with_gnu_ld" != yes && break
10375 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10379 LD="$lt_cv_path_LD"
10380 if test -n "$LD"; then
10381 echo "$as_me:$LINENO: result: $LD" >&5
10382 echo "${ECHO_T}$LD" >&6
10384 echo "$as_me:$LINENO: result: no" >&5
10385 echo "${ECHO_T}no" >&6
10387 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10388 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10389 { (exit 1); exit 1; }; }
10390 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10391 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10392 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10393 echo $ECHO_N "(cached) $ECHO_C" >&6
10395 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10396 case `$LD -v 2>&1 </dev/null` in
10397 *GNU* | *'with BFD'*)
10398 lt_cv_prog_gnu_ld=yes
10401 lt_cv_prog_gnu_ld=no
10405 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10406 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10407 with_gnu_ld=$lt_cv_prog_gnu_ld
10411 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10412 # archiving commands below assume that GNU ld is being used.
10413 if test "$with_gnu_ld" = yes; then
10414 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10415 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'
10417 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10418 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10420 # If archive_cmds runs LD, not CC, wlarc should be empty
10421 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10422 # investigate it a little bit more. (MM)
10425 # ancient GNU ld didn't support --whole-archive et. al.
10426 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10427 grep 'no-whole-archive' > /dev/null; then
10428 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10430 whole_archive_flag_spec_CXX=
10436 # A generic and very simple default shared library creation
10437 # command for GNU C++ for the case where it uses the native
10438 # linker, instead of GNU ld. If possible, this setting should
10439 # overridden to take advantage of the native linker features on
10440 # the platform it is being used on.
10441 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10444 # Commands to make compiler produce verbose output that lists
10445 # what "hidden" libraries, object files and flags are used when
10446 # linking a shared library.
10447 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10455 # PORTME: fill in a description of your system's C++ link characteristics
10456 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10457 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10461 # FIXME: insert proper C++ library support
10465 if test "$host_cpu" = ia64; then
10466 # On IA64, the linker does run time linking by default, so we don't
10467 # have to do anything special.
10468 aix_use_runtimelinking=no
10469 exp_sym_flag='-Bexport'
10472 aix_use_runtimelinking=no
10474 # Test if we are trying to use run time linking or normal
10475 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10476 # need to do runtime linking.
10477 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10478 for ld_flag in $LDFLAGS; do
10481 aix_use_runtimelinking=yes
10489 exp_sym_flag='-bexport'
10490 no_entry_flag='-bnoentry'
10493 # When large executables or shared objects are built, AIX ld can
10494 # have problems creating the table of contents. If linking a library
10495 # or program results in "error TOC overflow" add -mminimal-toc to
10496 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10497 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10499 archive_cmds_CXX=''
10500 hardcode_direct_CXX=yes
10501 hardcode_libdir_separator_CXX=':'
10502 link_all_deplibs_CXX=yes
10504 if test "$GXX" = yes; then
10505 case $host_os in aix4.[012]|aix4.[012].*)
10506 # We only want to do this on AIX 4.2 and lower, the check
10507 # below for broken collect2 doesn't work under 4.3+
10508 collect2name=`${CC} -print-prog-name=collect2`
10509 if test -f "$collect2name" && \
10510 strings "$collect2name" | grep resolve_lib_name >/dev/null
10512 # We have reworked collect2
10513 hardcode_direct_CXX=yes
10515 # We have old collect2
10516 hardcode_direct_CXX=unsupported
10517 # It fails to find uninstalled libraries when the uninstalled
10518 # path is not listed in the libpath. Setting hardcode_minus_L
10519 # to unsupported forces relinking
10520 hardcode_minus_L_CXX=yes
10521 hardcode_libdir_flag_spec_CXX='-L$libdir'
10522 hardcode_libdir_separator_CXX=
10526 shared_flag='-shared'
10527 if test "$aix_use_runtimelinking" = yes; then
10528 shared_flag="$shared_flag "'${wl}-G'
10532 if test "$host_cpu" = ia64; then
10533 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10534 # chokes on -Wl,-G. The following line is correct:
10537 if test "$aix_use_runtimelinking" = yes; then
10538 shared_flag='${wl}-G'
10540 shared_flag='${wl}-bM:SRE'
10545 # It seems that -bexpall does not export symbols beginning with
10546 # underscore (_), so it is better to generate a list of symbols to export.
10547 always_export_symbols_CXX=yes
10548 if test "$aix_use_runtimelinking" = yes; then
10549 # Warning - without using the other runtime loading flags (-brtl),
10550 # -berok will link without error, but may produce a broken library.
10551 allow_undefined_flag_CXX='-berok'
10552 # Determine the default libpath from the value encoded in an empty executable.
10553 cat >conftest.$ac_ext <<_ACEOF
10556 cat confdefs.h >>conftest.$ac_ext
10557 cat >>conftest.$ac_ext <<_ACEOF
10558 /* end confdefs.h. */
10568 rm -f conftest.$ac_objext conftest$ac_exeext
10569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10570 (eval $ac_link) 2>conftest.er1
10572 grep -v '^ *+' conftest.er1 >conftest.err
10574 cat conftest.err >&5
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); } &&
10577 { ac_try='test -z "$ac_cxx_werror_flag"
10578 || test ! -s conftest.err'
10579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10580 (eval $ac_try) 2>&5
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); }; } &&
10584 { ac_try='test -s conftest$ac_exeext'
10585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10586 (eval $ac_try) 2>&5
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); }; }; then
10591 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10593 # Check for a 64-bit object if we didn't find anything.
10594 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; }
10597 echo "$as_me: failed program was:" >&5
10598 sed 's/^/| /' conftest.$ac_ext >&5
10601 rm -f conftest.err conftest.$ac_objext \
10602 conftest$ac_exeext conftest.$ac_ext
10603 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10605 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10607 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10609 if test "$host_cpu" = ia64; then
10610 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10611 allow_undefined_flag_CXX="-z nodefs"
10612 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10614 # Determine the default libpath from the value encoded in an empty executable.
10615 cat >conftest.$ac_ext <<_ACEOF
10618 cat confdefs.h >>conftest.$ac_ext
10619 cat >>conftest.$ac_ext <<_ACEOF
10620 /* end confdefs.h. */
10630 rm -f conftest.$ac_objext conftest$ac_exeext
10631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10632 (eval $ac_link) 2>conftest.er1
10634 grep -v '^ *+' conftest.er1 >conftest.err
10636 cat conftest.err >&5
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); } &&
10639 { ac_try='test -z "$ac_cxx_werror_flag"
10640 || test ! -s conftest.err'
10641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10642 (eval $ac_try) 2>&5
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); }; } &&
10646 { ac_try='test -s conftest$ac_exeext'
10647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10648 (eval $ac_try) 2>&5
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); }; }; then
10653 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10655 # Check for a 64-bit object if we didn't find anything.
10656 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; }
10659 echo "$as_me: failed program was:" >&5
10660 sed 's/^/| /' conftest.$ac_ext >&5
10663 rm -f conftest.err conftest.$ac_objext \
10664 conftest$ac_exeext conftest.$ac_ext
10665 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10667 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10668 # Warning - without using the other run time loading flags,
10669 # -berok will link without error, but may produce a broken library.
10670 no_undefined_flag_CXX=' ${wl}-bernotok'
10671 allow_undefined_flag_CXX=' ${wl}-berok'
10672 # Exported symbols can be pulled into shared objects from archives
10673 whole_archive_flag_spec_CXX='$convenience'
10674 archive_cmds_need_lc_CXX=yes
10675 # This is similar to how AIX traditionally builds its shared libraries.
10676 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10682 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10683 allow_undefined_flag_CXX=unsupported
10684 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10685 # support --undefined. This deserves some investigation. FIXME
10686 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10693 case $cc_basename in
10695 # FIXME: insert proper C++ library support
10701 cygwin* | mingw* | pw32*)
10702 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10703 # as there is no search path for DLLs.
10704 hardcode_libdir_flag_spec_CXX='-L$libdir'
10705 allow_undefined_flag_CXX=unsupported
10706 always_export_symbols_CXX=no
10707 enable_shared_with_static_runtimes_CXX=yes
10709 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10710 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10711 # If the export-symbols file already is a .def file (1st line
10712 # is EXPORTS), use it as is; otherwise, prepend...
10713 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10714 cp $export_symbols $output_objdir/$soname.def;
10716 echo EXPORTS > $output_objdir/$soname.def;
10717 cat $export_symbols >> $output_objdir/$soname.def;
10719 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10724 darwin* | rhapsody*)
10726 rhapsody* | darwin1.[012])
10727 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10730 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10731 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10733 case ${MACOSX_DEPLOYMENT_TARGET} in
10735 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10738 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10744 archive_cmds_need_lc_CXX=no
10745 hardcode_direct_CXX=no
10746 hardcode_automatic_CXX=yes
10747 hardcode_shlibpath_var_CXX=unsupported
10748 whole_archive_flag_spec_CXX=''
10749 link_all_deplibs_CXX=yes
10751 if test "$GXX" = yes ; then
10752 lt_int_apple_cc_single_mod=no
10753 output_verbose_link_cmd='echo'
10754 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10755 lt_int_apple_cc_single_mod=yes
10757 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10758 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10760 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'
10762 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10763 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10764 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10765 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}'
10767 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}'
10769 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}'
10771 case $cc_basename in
10773 output_verbose_link_cmd='echo'
10774 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'
10775 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10776 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10777 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}'
10778 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}'
10788 case $cc_basename in
10790 # FIXME: insert proper C++ library support
10794 # Green Hills C++ Compiler
10795 # FIXME: insert proper C++ library support
10799 # FIXME: insert proper C++ library support
10805 # C++ shared libraries reported to be fairly broken before switch to ELF
10809 archive_cmds_need_lc_CXX=no
10811 freebsd* | kfreebsd*-gnu | dragonfly*)
10812 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10819 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10820 hardcode_libdir_separator_CXX=:
10821 export_dynamic_flag_spec_CXX='${wl}-E'
10822 hardcode_direct_CXX=yes
10823 hardcode_minus_L_CXX=yes # Not in the search PATH,
10824 # but as the default
10825 # location of the library.
10827 case $cc_basename in
10829 # FIXME: insert proper C++ library support
10833 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'
10834 # Commands to make compiler produce verbose output that lists
10835 # what "hidden" libraries, object files and flags are used when
10836 # linking a shared library.
10838 # There doesn't appear to be a way to prevent this compiler from
10839 # explicitly linking system object files so we need to strip them
10840 # from the output so that they don't get included in the library
10842 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'
10845 if test "$GXX" = yes; then
10846 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'
10848 # FIXME: insert proper C++ library support
10855 if test $with_gnu_ld = no; then
10856 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10857 hardcode_libdir_separator_CXX=:
10861 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10864 export_dynamic_flag_spec_CXX='${wl}-E'
10870 hardcode_direct_CXX=no
10871 hardcode_shlibpath_var_CXX=no
10874 hardcode_direct_CXX=yes
10875 hardcode_minus_L_CXX=yes # Not in the search PATH,
10876 # but as the default
10877 # location of the library.
10881 case $cc_basename in
10883 # FIXME: insert proper C++ library support
10889 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10892 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10895 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10898 # Commands to make compiler produce verbose output that lists
10899 # what "hidden" libraries, object files and flags are used when
10900 # linking a shared library.
10902 # There doesn't appear to be a way to prevent this compiler from
10903 # explicitly linking system object files so we need to strip them
10904 # from the output so that they don't get included in the library
10906 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'
10909 if test "$GXX" = yes; then
10910 if test $with_gnu_ld = no; then
10913 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10916 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10919 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'
10924 # FIXME: insert proper C++ library support
10931 hardcode_direct_CXX=no
10932 hardcode_shlibpath_var_CXX=no
10933 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10934 export_dynamic_flag_spec_CXX='${wl}-E'
10935 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10936 # Instead, shared libraries are loaded at an image base (0x10000000 by
10937 # default) and relocated if they conflict, which is a slow very memory
10938 # consuming and fragmenting process. To avoid this, we pick a random,
10939 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10940 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10941 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10942 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10945 case $cc_basename in
10948 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'
10950 # Archives containing C++ object files must be created using
10951 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10952 # necessary to make sure instantiated templates are included
10954 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10957 if test "$GXX" = yes; then
10958 if test "$with_gnu_ld" = no; then
10959 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'
10961 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'
10964 link_all_deplibs_CXX=yes
10967 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10968 hardcode_libdir_separator_CXX=:
10971 case $cc_basename in
10973 # Kuck and Associates, Inc. (KAI) C++ Compiler
10975 # KCC will only create a shared library if the output file
10976 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10977 # to its proper name (with version) after linking.
10978 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'
10979 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'
10980 # Commands to make compiler produce verbose output that lists
10981 # what "hidden" libraries, object files and flags are used when
10982 # linking a shared library.
10984 # There doesn't appear to be a way to prevent this compiler from
10985 # explicitly linking system object files so we need to strip them
10986 # from the output so that they don't get included in the library
10988 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'
10990 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10991 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10993 # Archives containing C++ object files must be created using
10994 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10995 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11000 # version 8.0 and above of icpc choke on multiply defined symbols
11001 # if we add $predep_objects and $postdep_objects, however 7.1 and
11002 # earlier do not add the objects themselves.
11003 case `$CC -V 2>&1` in
11005 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11006 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'
11008 *) # Version 8.0 or newer
11011 ia64*) tmp_idyn=' -i_dynamic';;
11013 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11014 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'
11017 archive_cmds_need_lc_CXX=no
11018 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11019 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11020 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11023 # Portland Group C++ compiler
11024 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11025 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'
11027 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11028 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11029 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'
11033 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11034 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'
11036 runpath_var=LD_RUN_PATH
11037 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11038 hardcode_libdir_separator_CXX=:
11040 # Commands to make compiler produce verbose output that lists
11041 # what "hidden" libraries, object files and flags are used when
11042 # linking a shared library.
11044 # There doesn't appear to be a way to prevent this compiler from
11045 # explicitly linking system object files so we need to strip them
11046 # from the output so that they don't get included in the library
11048 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'
11053 # FIXME: insert proper C++ library support
11057 # FIXME: insert proper C++ library support
11061 case $cc_basename in
11063 # FIXME: insert proper C++ library support
11067 # FIXME: insert proper C++ library support
11073 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11074 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11076 hardcode_libdir_flag_spec_CXX='-R$libdir'
11077 hardcode_direct_CXX=yes
11078 hardcode_shlibpath_var_CXX=no
11080 # Workaround some broken pre-1.5 toolchains
11081 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11084 # C++ shared libraries are fairly broken
11088 hardcode_direct_CXX=yes
11089 hardcode_shlibpath_var_CXX=no
11090 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11091 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11092 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11093 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11094 export_dynamic_flag_spec_CXX='${wl}-E'
11095 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11097 output_verbose_link_cmd='echo'
11100 case $cc_basename in
11102 # Kuck and Associates, Inc. (KAI) C++ Compiler
11104 # KCC will only create a shared library if the output file
11105 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11106 # to its proper name (with version) after linking.
11107 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'
11109 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11110 hardcode_libdir_separator_CXX=:
11112 # Archives containing C++ object files must be created using
11113 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11114 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11118 # Rational C++ 2.4.1
11119 # FIXME: insert proper C++ library support
11123 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11124 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'
11126 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11127 hardcode_libdir_separator_CXX=:
11129 # Commands to make compiler produce verbose output that lists
11130 # what "hidden" libraries, object files and flags are used when
11131 # linking a shared library.
11133 # There doesn't appear to be a way to prevent this compiler from
11134 # explicitly linking system object files so we need to strip them
11135 # from the output so that they don't get included in the library
11137 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'
11140 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11141 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11142 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'
11144 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11145 hardcode_libdir_separator_CXX=:
11147 # Commands to make compiler produce verbose output that lists
11148 # what "hidden" libraries, object files and flags are used when
11149 # linking a shared library.
11150 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11153 # FIXME: insert proper C++ library support
11160 case $cc_basename in
11162 # Kuck and Associates, Inc. (KAI) C++ Compiler
11164 # KCC will only create a shared library if the output file
11165 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11166 # to its proper name (with version) after linking.
11167 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'
11169 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11170 hardcode_libdir_separator_CXX=:
11172 # Archives containing C++ object files must be created using
11173 # the KAI C++ compiler.
11174 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11177 # Rational C++ 2.4.1
11178 # FIXME: insert proper C++ library support
11182 allow_undefined_flag_CXX=' -expect_unresolved \*'
11183 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'
11184 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11185 echo "-hidden">> $lib.exp~
11186 $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~
11189 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11190 hardcode_libdir_separator_CXX=:
11192 # Commands to make compiler produce verbose output that lists
11193 # what "hidden" libraries, object files and flags are used when
11194 # linking a shared library.
11196 # There doesn't appear to be a way to prevent this compiler from
11197 # explicitly linking system object files so we need to strip them
11198 # from the output so that they don't get included in the library
11200 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'
11203 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11204 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11205 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'
11207 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11208 hardcode_libdir_separator_CXX=:
11210 # Commands to make compiler produce verbose output that lists
11211 # what "hidden" libraries, object files and flags are used when
11212 # linking a shared library.
11213 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11216 # FIXME: insert proper C++ library support
11223 # FIXME: insert proper C++ library support
11227 case $cc_basename in
11230 # FIXME: insert proper C++ library support
11235 # FIXME: insert proper C++ library support
11239 # FIXME: insert proper C++ library support
11245 case $cc_basename in
11247 # Sun C++ 4.2, 5.x and Centerline C++
11248 archive_cmds_need_lc_CXX=yes
11249 no_undefined_flag_CXX=' -zdefs'
11250 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11251 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11252 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11254 hardcode_libdir_flag_spec_CXX='-R$libdir'
11255 hardcode_shlibpath_var_CXX=no
11257 solaris2.[0-5] | solaris2.[0-5].*) ;;
11259 # The C++ compiler is used as linker so we must use $wl
11260 # flag to pass the commands to the underlying system
11261 # linker. We must also pass each convience library through
11262 # to the system linker between allextract/defaultextract.
11263 # The C++ compiler will combine linker options so we
11264 # cannot just pass the convience library names through
11266 # Supported since Solaris 2.6 (maybe 2.5.1?)
11267 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'
11270 link_all_deplibs_CXX=yes
11272 output_verbose_link_cmd='echo'
11274 # Archives containing C++ object files must be created using
11275 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11276 # necessary to make sure instantiated templates are included
11278 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11281 # Green Hills C++ Compiler
11282 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11284 # The C++ compiler must be used to create the archive.
11285 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11288 # GNU C++ compiler with Solaris linker
11289 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11290 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11291 if $CC --version | grep -v '^2\.7' > /dev/null; then
11292 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11293 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11294 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11296 # Commands to make compiler produce verbose output that lists
11297 # what "hidden" libraries, object files and flags are used when
11298 # linking a shared library.
11299 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11301 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11303 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11304 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11305 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11307 # Commands to make compiler produce verbose output that lists
11308 # what "hidden" libraries, object files and flags are used when
11309 # linking a shared library.
11310 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11313 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11318 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11319 no_undefined_flag_CXX='${wl}-z,text'
11320 archive_cmds_need_lc_CXX=no
11321 hardcode_shlibpath_var_CXX=no
11322 runpath_var='LD_RUN_PATH'
11324 case $cc_basename in
11326 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11327 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11330 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11331 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11335 sysv5* | sco3.2v5* | sco5v6*)
11336 # Note: We can NOT use -z defs as we might desire, because we do not
11337 # link with -lc, and that would cause any symbols used from libc to
11338 # always be unresolved, which means just about no library would
11339 # ever link correctly. If we're not using GNU ld we use -z text
11340 # though, which does catch some bad symbols but isn't as heavy-handed
11342 # For security reasons, it is highly recommended that you always
11343 # use absolute paths for naming shared libraries, and exclude the
11344 # DT_RUNPATH tag from executables and libraries. But doing so
11345 # requires that you compile everything twice, which is a pain.
11346 # So that behaviour is only enabled if SCOABSPATH is set to a
11347 # non-empty value in the environment. Most likely only useful for
11348 # creating official distributions of packages.
11349 # This is a hack until libtool officially supports absolute path
11350 # names for shared libraries.
11351 no_undefined_flag_CXX='${wl}-z,text'
11352 allow_undefined_flag_CXX='${wl}-z,nodefs'
11353 archive_cmds_need_lc_CXX=no
11354 hardcode_shlibpath_var_CXX=no
11355 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11356 hardcode_libdir_separator_CXX=':'
11357 link_all_deplibs_CXX=yes
11358 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11359 runpath_var='LD_RUN_PATH'
11361 case $cc_basename in
11363 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11364 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11367 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11368 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11373 case $cc_basename in
11375 # NonStop-UX NCC 3.20
11376 # FIXME: insert proper C++ library support
11380 # FIXME: insert proper C++ library support
11386 # FIXME: insert proper C++ library support
11390 # FIXME: insert proper C++ library support
11394 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11395 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11396 test "$ld_shlibs_CXX" = no && can_build_shared=no
11402 cat > conftest.$ac_ext <<EOF
11406 Foo (void) { a = 0; }
11412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11413 (eval $ac_compile) 2>&5
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); }; then
11417 # Parse the compiler output and extract the necessary
11418 # objects, libraries and library flags.
11420 # Sentinel used to keep track of whether or not we are before
11421 # the conftest object file.
11422 pre_test_object_deps_done=no
11424 # The `*' in the case matches for architectures that use `case' in
11425 # $output_verbose_cmd can trigger glob expansion during the loop
11426 # eval without this substitution.
11427 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11429 for p in `eval $output_verbose_link_cmd`; do
11433 # Some compilers place space between "-{L,R}" and the path.
11434 # Remove the space.
11435 if test $p = "-L" \
11436 || test $p = "-R"; then
11443 if test "$pre_test_object_deps_done" = no; then
11446 # Internal compiler library paths should come after those
11447 # provided the user. The postdeps already come after the
11448 # user supplied libs so there is no need to process them.
11449 if test -z "$compiler_lib_search_path_CXX"; then
11450 compiler_lib_search_path_CXX="${prev}${p}"
11452 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11455 # The "-l" case would never come before the object being
11456 # linked, so don't bother handling this case.
11459 if test -z "$postdeps_CXX"; then
11460 postdeps_CXX="${prev}${p}"
11462 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11468 # This assumes that the test object file only shows up
11469 # once in the compiler output.
11470 if test "$p" = "conftest.$objext"; then
11471 pre_test_object_deps_done=yes
11475 if test "$pre_test_object_deps_done" = no; then
11476 if test -z "$predep_objects_CXX"; then
11477 predep_objects_CXX="$p"
11479 predep_objects_CXX="$predep_objects_CXX $p"
11482 if test -z "$postdep_objects_CXX"; then
11483 postdep_objects_CXX="$p"
11485 postdep_objects_CXX="$postdep_objects_CXX $p"
11490 *) ;; # Ignore the rest.
11498 echo "libtool.m4: error: problem compiling CXX test program"
11501 $rm -f confest.$objext
11503 # PORTME: override above test on systems where it is broken
11506 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11507 # hack all around it, let's just trust "g++" to DTRT.
11508 predep_objects_CXX=
11509 postdep_objects_CXX=
11514 case $cc_basename in
11516 # Adding this requires a known-good setup of shared libraries for
11517 # Sun compiler versions before 5.6, else PIC objects from an old
11518 # archive will be linked into the output, leading to subtle bugs.
11519 postdeps_CXX='-lCstd -lCrun'
11526 case " $postdeps_CXX " in
11527 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11530 lt_prog_compiler_wl_CXX=
11531 lt_prog_compiler_pic_CXX=
11532 lt_prog_compiler_static_CXX=
11534 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11535 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11537 # C++ specific cases for pic, static, wl, etc.
11538 if test "$GXX" = yes; then
11539 lt_prog_compiler_wl_CXX='-Wl,'
11540 lt_prog_compiler_static_CXX='-static'
11544 # All AIX code is PIC.
11545 if test "$host_cpu" = ia64; then
11546 # AIX 5 now supports IA64 processor
11547 lt_prog_compiler_static_CXX='-Bstatic'
11551 # FIXME: we need at least 68020 code to build shared libraries, but
11552 # adding the `-m68020' flag to GCC prevents building anything better,
11554 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11556 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11557 # PIC is the default for these OSes.
11559 mingw* | os2* | pw32*)
11560 # This hack is so that the source file can tell whether it is being
11561 # built for inclusion in a dll (and should export symbols for example).
11562 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11564 darwin* | rhapsody*)
11565 # PIC is the default on this platform
11566 # Common symbols not allowed in MH_DYLIB files
11567 lt_prog_compiler_pic_CXX='-fno-common'
11570 # DJGPP does not support shared libraries at all
11571 lt_prog_compiler_pic_CXX=
11574 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11575 # Instead, we relocate shared libraries at runtime.
11578 if test -d /usr/nec; then
11579 lt_prog_compiler_pic_CXX=-Kconform_pic
11583 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11584 # not for PA HP-UX.
11589 lt_prog_compiler_pic_CXX='-fPIC'
11594 lt_prog_compiler_pic_CXX='-fPIC'
11600 # All AIX code is PIC.
11601 if test "$host_cpu" = ia64; then
11602 # AIX 5 now supports IA64 processor
11603 lt_prog_compiler_static_CXX='-Bstatic'
11605 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11609 case $cc_basename in
11611 # Green Hills C++ Compiler
11612 # _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"
11617 # PIC is the default on this platform
11618 # Common symbols not allowed in MH_DYLIB files
11619 case $cc_basename in
11621 lt_prog_compiler_pic_CXX='-qnocommon'
11622 lt_prog_compiler_wl_CXX='-Wl,'
11627 case $cc_basename in
11629 lt_prog_compiler_pic_CXX='-KPIC'
11632 # Green Hills C++ Compiler
11633 lt_prog_compiler_pic_CXX='-pic'
11639 freebsd* | kfreebsd*-gnu | dragonfly*)
11640 # FreeBSD uses GNU C++
11642 hpux9* | hpux10* | hpux11*)
11643 case $cc_basename in
11645 lt_prog_compiler_wl_CXX='-Wl,'
11646 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11647 if test "$host_cpu" != ia64; then
11648 lt_prog_compiler_pic_CXX='+Z'
11652 lt_prog_compiler_wl_CXX='-Wl,'
11653 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11659 lt_prog_compiler_pic_CXX='+Z'
11668 # This is c89, which is MS Visual C++ (no shared libs)
11669 # Anyone wants to do a port?
11671 irix5* | irix6* | nonstopux*)
11672 case $cc_basename in
11674 lt_prog_compiler_wl_CXX='-Wl,'
11675 lt_prog_compiler_static_CXX='-non_shared'
11676 # CC pic flag -KPIC is the default.
11683 case $cc_basename in
11686 lt_prog_compiler_wl_CXX='--backend -Wl,'
11687 lt_prog_compiler_pic_CXX='-fPIC'
11691 lt_prog_compiler_wl_CXX='-Wl,'
11692 lt_prog_compiler_pic_CXX='-KPIC'
11693 lt_prog_compiler_static_CXX='-static'
11696 # Portland Group C++ compiler.
11697 lt_prog_compiler_wl_CXX='-Wl,'
11698 lt_prog_compiler_pic_CXX='-fpic'
11699 lt_prog_compiler_static_CXX='-Bstatic'
11703 # Make sure the PIC flag is empty. It appears that all Alpha
11704 # Linux and Compaq Tru64 Unix objects are PIC.
11705 lt_prog_compiler_pic_CXX=
11706 lt_prog_compiler_static_CXX='-non_shared'
11717 case $cc_basename in
11719 lt_prog_compiler_pic_CXX='-W c,exportall'
11727 osf3* | osf4* | osf5*)
11728 case $cc_basename in
11730 lt_prog_compiler_wl_CXX='--backend -Wl,'
11733 # Rational C++ 2.4.1
11734 lt_prog_compiler_pic_CXX='-pic'
11737 # Digital/Compaq C++
11738 lt_prog_compiler_wl_CXX='-Wl,'
11739 # Make sure the PIC flag is empty. It appears that all Alpha
11740 # Linux and Compaq Tru64 Unix objects are PIC.
11741 lt_prog_compiler_pic_CXX=
11742 lt_prog_compiler_static_CXX='-non_shared'
11751 case $cc_basename in
11753 # Sun C++ 4.2, 5.x and Centerline C++
11754 lt_prog_compiler_pic_CXX='-KPIC'
11755 lt_prog_compiler_static_CXX='-Bstatic'
11756 lt_prog_compiler_wl_CXX='-Qoption ld '
11759 # Green Hills C++ Compiler
11760 lt_prog_compiler_pic_CXX='-PIC'
11767 case $cc_basename in
11770 lt_prog_compiler_pic_CXX='-pic'
11771 lt_prog_compiler_static_CXX='-Bstatic'
11775 lt_prog_compiler_pic_CXX='-pic'
11782 case $cc_basename in
11784 # NonStop-UX NCC 3.20
11785 lt_prog_compiler_pic_CXX='-KPIC'
11791 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11792 case $cc_basename in
11794 lt_prog_compiler_wl_CXX='-Wl,'
11795 lt_prog_compiler_pic_CXX='-KPIC'
11796 lt_prog_compiler_static_CXX='-Bstatic'
11803 lt_prog_compiler_can_build_shared_CXX=no
11808 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11809 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11812 # Check to make sure the PIC flag actually works.
11814 if test -n "$lt_prog_compiler_pic_CXX"; then
11816 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11817 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11818 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11819 echo $ECHO_N "(cached) $ECHO_C" >&6
11821 lt_prog_compiler_pic_works_CXX=no
11822 ac_outfile=conftest.$ac_objext
11823 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11824 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11825 # Insert the option either (1) after the last *FLAGS variable, or
11826 # (2) before a word containing "conftest.", or (3) at the end.
11827 # Note that $ac_compile itself does not contain backslashes and begins
11828 # with a dollar sign (not a hyphen), so the echo should work correctly.
11829 # The option is referenced via a variable to avoid confusing sed.
11830 lt_compile=`echo "$ac_compile" | $SED \
11831 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11832 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11833 -e 's:$: $lt_compiler_flag:'`
11834 (eval echo "\"\$as_me:11834: $lt_compile\"" >&5)
11835 (eval "$lt_compile" 2>conftest.err)
11837 cat conftest.err >&5
11838 echo "$as_me:11838: \$? = $ac_status" >&5
11839 if (exit $ac_status) && test -s "$ac_outfile"; then
11840 # The compiler can only warn and ignore the option if not recognized
11841 # So say no if there are warnings other than the usual output.
11842 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11843 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11844 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11845 lt_prog_compiler_pic_works_CXX=yes
11851 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11852 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11854 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11855 case $lt_prog_compiler_pic_CXX in
11857 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11860 lt_prog_compiler_pic_CXX=
11861 lt_prog_compiler_can_build_shared_CXX=no
11866 # For platforms which do not support PIC, -DPIC is meaningless:
11868 lt_prog_compiler_pic_CXX=
11871 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11876 # Check to make sure the static flag actually works.
11878 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11879 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11880 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11881 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11882 echo $ECHO_N "(cached) $ECHO_C" >&6
11884 lt_prog_compiler_static_works_CXX=no
11885 save_LDFLAGS="$LDFLAGS"
11886 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11887 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11888 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11889 # The linker can only warn and ignore the option if not recognized
11890 # So say no if there are warnings
11891 if test -s conftest.err; then
11892 # Append any errors to the config.log.
11893 cat conftest.err 1>&5
11894 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11895 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11896 if diff conftest.exp conftest.er2 >/dev/null; then
11897 lt_prog_compiler_static_works_CXX=yes
11900 lt_prog_compiler_static_works_CXX=yes
11904 LDFLAGS="$save_LDFLAGS"
11907 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11908 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11910 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11913 lt_prog_compiler_static_CXX=
11917 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11918 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11919 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11920 echo $ECHO_N "(cached) $ECHO_C" >&6
11922 lt_cv_prog_compiler_c_o_CXX=no
11923 $rm -r conftest 2>/dev/null
11927 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11929 lt_compiler_flag="-o out/conftest2.$ac_objext"
11930 # Insert the option either (1) after the last *FLAGS variable, or
11931 # (2) before a word containing "conftest.", or (3) at the end.
11932 # Note that $ac_compile itself does not contain backslashes and begins
11933 # with a dollar sign (not a hyphen), so the echo should work correctly.
11934 lt_compile=`echo "$ac_compile" | $SED \
11935 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11936 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11937 -e 's:$: $lt_compiler_flag:'`
11938 (eval echo "\"\$as_me:11938: $lt_compile\"" >&5)
11939 (eval "$lt_compile" 2>out/conftest.err)
11941 cat out/conftest.err >&5
11942 echo "$as_me:11942: \$? = $ac_status" >&5
11943 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11945 # The compiler can only warn and ignore the option if not recognized
11946 # So say no if there are warnings
11947 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11948 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11949 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11950 lt_cv_prog_compiler_c_o_CXX=yes
11955 # SGI C++ compiler will create directory out/ii_files/ for
11956 # template instantiation
11957 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11958 $rm out/* && rmdir out
11964 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11965 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11968 hard_links="nottested"
11969 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11970 # do not overwrite the value of need_locks provided by the user
11971 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11972 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11975 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11977 ln conftest.a conftest.b 2>&5 || hard_links=no
11978 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11979 echo "$as_me:$LINENO: result: $hard_links" >&5
11980 echo "${ECHO_T}$hard_links" >&6
11981 if test "$hard_links" = no; then
11982 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11983 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11990 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11991 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11993 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11996 # If we're using GNU nm, then we don't want the "-C" option.
11997 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11998 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11999 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'
12001 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'
12005 export_symbols_cmds_CXX="$ltdll_cmds"
12008 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'
12011 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12015 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12016 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12017 test "$ld_shlibs_CXX" = no && can_build_shared=no
12020 # Do we need to explicitly link libc?
12022 case "x$archive_cmds_need_lc_CXX" in
12024 # Assume -lc should be added
12025 archive_cmds_need_lc_CXX=yes
12027 if test "$enable_shared" = yes && test "$GCC" = yes; then
12028 case $archive_cmds_CXX in
12030 # FIXME: we may have to deal with multi-command sequences.
12033 # Test whether the compiler implicitly links with -lc since on some
12034 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12035 # to ld, don't add -lc before -lgcc.
12036 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12037 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12039 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12042 (eval $ac_compile) 2>&5
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); } 2>conftest.err; then
12048 libobjs=conftest.$ac_objext
12050 wl=$lt_prog_compiler_wl_CXX
12051 pic_flag=$lt_prog_compiler_pic_CXX
12057 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12058 allow_undefined_flag_CXX=
12059 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12060 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); }
12065 archive_cmds_need_lc_CXX=no
12067 archive_cmds_need_lc_CXX=yes
12069 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12071 cat conftest.err 1>&5
12074 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12075 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12082 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12083 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12084 library_names_spec=
12085 libname_spec='lib$name'
12089 postuninstall_cmds=
12093 shlibpath_overrides_runpath=unknown
12095 dynamic_linker="$host_os ld.so"
12096 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12097 if test "$GCC" = yes; then
12098 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12099 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12100 # if the path contains ";" then we assume it to be the separator
12101 # otherwise default to the standard path separator (i.e. ":") - it is
12102 # assumed that no part of a normal pathname contains ";" but that should
12103 # okay in the real world where ";" in dirpaths is itself problematic.
12104 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12106 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12109 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12111 need_lib_prefix=unknown
12112 hardcode_into_libs=no
12114 # when you set need_version to no, make sure it does not cause -set_version
12115 # flags to be left without arguments
12116 need_version=unknown
12121 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12122 shlibpath_var=LIBPATH
12124 # AIX 3 has no versioning support, so we append a major version to the name.
12125 soname_spec='${libname}${release}${shared_ext}$major'
12132 hardcode_into_libs=yes
12133 if test "$host_cpu" = ia64; then
12134 # AIX 5 supports IA64
12135 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12136 shlibpath_var=LD_LIBRARY_PATH
12138 # With GCC up to 2.95.x, collect2 would create an import file
12139 # for dependence libraries. The import file would start with
12140 # the line `#! .'. This would cause the generated library to
12141 # depend on `.', always an invalid library. This was fixed in
12142 # development snapshots of GCC prior to 3.0.
12144 aix4 | aix4.[01] | aix4.[01].*)
12145 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12147 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12150 can_build_shared=no
12154 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12155 # soname into executable. Probably we can add versioning support to
12156 # collect2, so additional links can be useful in future.
12157 if test "$aix_use_runtimelinking" = yes; then
12158 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12159 # instead of lib<name>.a to let people know that these are not
12160 # typical AIX shared libraries.
12161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12163 # We preserve .a as extension for shared libraries through AIX4.2
12164 # and later when we are not doing run time linking.
12165 library_names_spec='${libname}${release}.a $libname.a'
12166 soname_spec='${libname}${release}${shared_ext}$major'
12168 shlibpath_var=LIBPATH
12173 library_names_spec='$libname.ixlibrary $libname.a'
12174 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12175 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'
12179 library_names_spec='${libname}${shared_ext}'
12180 dynamic_linker="$host_os ld.so"
12181 shlibpath_var=LIBRARY_PATH
12187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12188 soname_spec='${libname}${release}${shared_ext}$major'
12189 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12190 shlibpath_var=LD_LIBRARY_PATH
12191 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12192 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12193 # the default ld.so.conf also contains /usr/contrib/lib and
12194 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12195 # libtool to hard-code these into programs
12198 cygwin* | mingw* | pw32*)
12199 version_type=windows
12204 case $GCC,$host_os in
12205 yes,cygwin* | yes,mingw* | yes,pw32*)
12206 library_names_spec='$libname.dll.a'
12207 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12208 postinstall_cmds='base_file=`basename \${file}`~
12209 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12210 dldir=$destdir/`dirname \$dlpath`~
12211 test -d \$dldir || mkdir -p \$dldir~
12212 $install_prog $dir/$dlname \$dldir/$dlname~
12213 chmod a+x \$dldir/$dlname'
12214 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12215 dlpath=$dir/\$dldll~
12217 shlibpath_overrides_runpath=yes
12221 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12222 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12223 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12226 # MinGW DLLs use traditional 'lib' prefix
12227 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12228 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12229 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12230 # It is most probably a Windows format PATH printed by
12231 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12232 # path with ; separators, and with drive letters. We can handle the
12233 # drive letters (cygwin fileutils understands them), so leave them,
12234 # especially as we might pass files found there to a mingw objdump,
12235 # which wouldn't understand a cygwinified path. Ahh.
12236 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12238 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12242 # pw32 DLLs use 'pw' prefix rather than 'lib'
12243 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12249 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12252 dynamic_linker='Win32 ld.exe'
12253 # FIXME: first we should search . and the directory the executable is in
12257 darwin* | rhapsody*)
12258 dynamic_linker="$host_os dyld"
12259 version_type=darwin
12262 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12263 soname_spec='${libname}${release}${major}$shared_ext'
12264 shlibpath_overrides_runpath=yes
12265 shlibpath_var=DYLD_LIBRARY_PATH
12266 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12267 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12268 if test "$GCC" = yes; then
12269 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"`
12271 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12273 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12281 soname_spec='${libname}${release}${shared_ext}$major'
12282 shlibpath_var=LD_LIBRARY_PATH
12293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12294 soname_spec='${libname}${release}${shared_ext}$major'
12295 shlibpath_var=LD_LIBRARY_PATH
12296 shlibpath_overrides_runpath=no
12297 hardcode_into_libs=yes
12298 dynamic_linker='GNU ld.so'
12301 freebsd* | dragonfly*)
12302 # DragonFly does not have aout. When/if they implement a new
12303 # versioning mechanism, adjust this.
12304 if test -x /usr/bin/objformat; then
12305 objformat=`/usr/bin/objformat`
12308 freebsd[123]*) objformat=aout ;;
12309 *) objformat=elf ;;
12312 version_type=freebsd-$objformat
12313 case $version_type in
12315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12320 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12324 shlibpath_var=LD_LIBRARY_PATH
12327 shlibpath_overrides_runpath=yes
12329 freebsd3.[01]* | freebsdelf3.[01]*)
12330 shlibpath_overrides_runpath=yes
12331 hardcode_into_libs=yes
12333 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12334 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12335 shlibpath_overrides_runpath=no
12336 hardcode_into_libs=yes
12338 freebsd*) # from 4.6 on
12339 shlibpath_overrides_runpath=yes
12340 hardcode_into_libs=yes
12349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12350 soname_spec='${libname}${release}${shared_ext}$major'
12351 shlibpath_var=LD_LIBRARY_PATH
12352 hardcode_into_libs=yes
12355 hpux9* | hpux10* | hpux11*)
12356 # Give a soname corresponding to the major version so that dld.sl refuses to
12357 # link against other versions.
12364 hardcode_into_libs=yes
12365 dynamic_linker="$host_os dld.so"
12366 shlibpath_var=LD_LIBRARY_PATH
12367 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12369 soname_spec='${libname}${release}${shared_ext}$major'
12370 if test "X$HPUX_IA64_MODE" = X32; then
12371 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12373 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12375 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12379 hardcode_into_libs=yes
12380 dynamic_linker="$host_os dld.sl"
12381 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12382 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12384 soname_spec='${libname}${release}${shared_ext}$major'
12385 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12386 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12390 dynamic_linker="$host_os dld.sl"
12391 shlibpath_var=SHLIB_PATH
12392 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12394 soname_spec='${libname}${release}${shared_ext}$major'
12397 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12398 postinstall_cmds='chmod 555 $lib'
12405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12406 soname_spec='${libname}${release}${shared_ext}$major'
12407 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12408 shlibpath_var=LD_LIBRARY_PATH
12409 shlibpath_overrides_runpath=no
12410 hardcode_into_libs=yes
12413 irix5* | irix6* | nonstopux*)
12415 nonstopux*) version_type=nonstopux ;;
12417 if test "$lt_cv_prog_gnu_ld" = yes; then
12425 soname_spec='${libname}${release}${shared_ext}$major'
12426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12428 irix5* | nonstopux*)
12429 libsuff= shlibsuff=
12432 case $LD in # libtool.m4 will add one of these switches to LD
12433 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12434 libsuff= shlibsuff= libmagic=32-bit;;
12435 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12436 libsuff=32 shlibsuff=N32 libmagic=N32;;
12437 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12438 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12439 *) libsuff= shlibsuff= libmagic=never-match;;
12443 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12444 shlibpath_overrides_runpath=no
12445 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12446 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12447 hardcode_into_libs=yes
12450 # No shared lib support for Linux oldld, aout, or coff.
12451 linux*oldld* | linux*aout* | linux*coff*)
12455 # This must be Linux ELF.
12460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12461 soname_spec='${libname}${release}${shared_ext}$major'
12462 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12463 shlibpath_var=LD_LIBRARY_PATH
12464 shlibpath_overrides_runpath=no
12465 # This implies no fast_install, which is unacceptable.
12466 # Some rework will be needed to allow for fast_install
12467 # before this can be enabled.
12468 hardcode_into_libs=yes
12470 # find out which ABI we are using
12472 case "$host_cpu" in
12473 x86_64*|s390x*|powerpc64*)
12474 echo '#line 12474 "configure"' > conftest.$ac_ext
12475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12476 (eval $ac_compile) 2>&5
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); }; then
12480 case `/usr/bin/file conftest.$ac_objext` in
12483 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12491 # Append ld.so.conf contents to the search path
12492 if test -f /etc/ld.so.conf; then
12493 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12494 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12497 # We used to test for /lib/ld.so.1 and disable shared libraries on
12498 # powerpc, because MkLinux only supported shared libraries with the
12499 # GNU dynamic linker. Since this was broken with cross compilers,
12500 # most powerpc-linux boxes support dynamic linking these days and
12501 # people can always --disable-shared, the test was removed, and we
12502 # assume the GNU/Linux dynamic linker is in use.
12503 dynamic_linker='GNU/Linux ld.so'
12510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12511 soname_spec='${libname}${release}${shared_ext}$major'
12512 shlibpath_var=LD_LIBRARY_PATH
12513 shlibpath_overrides_runpath=no
12514 hardcode_into_libs=yes
12515 dynamic_linker='GNU ld.so'
12522 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12524 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12525 dynamic_linker='NetBSD (a.out) ld.so'
12527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12528 soname_spec='${libname}${release}${shared_ext}$major'
12529 dynamic_linker='NetBSD ld.elf_so'
12531 shlibpath_var=LD_LIBRARY_PATH
12532 shlibpath_overrides_runpath=yes
12533 hardcode_into_libs=yes
12538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12539 shlibpath_var=LD_LIBRARY_PATH
12540 shlibpath_overrides_runpath=yes
12547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12548 soname_spec='${libname}${release}${shared_ext}$major'
12549 shlibpath_var=LD_LIBRARY_PATH
12550 shlibpath_overrides_runpath=yes
12555 sys_lib_dlsearch_path_spec="/usr/lib"
12557 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12559 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12560 *) need_version=no ;;
12562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12563 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12564 shlibpath_var=LD_LIBRARY_PATH
12565 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12567 openbsd2.[89] | openbsd2.[89].*)
12568 shlibpath_overrides_runpath=no
12571 shlibpath_overrides_runpath=yes
12575 shlibpath_overrides_runpath=yes
12580 libname_spec='$name'
12583 library_names_spec='$libname${shared_ext} $libname.a'
12584 dynamic_linker='OS/2 ld.exe'
12585 shlibpath_var=LIBPATH
12588 osf3* | osf4* | osf5*)
12592 soname_spec='${libname}${release}${shared_ext}$major'
12593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12594 shlibpath_var=LD_LIBRARY_PATH
12595 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12596 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12604 soname_spec='${libname}${release}${shared_ext}$major'
12605 shlibpath_var=LD_LIBRARY_PATH
12606 shlibpath_overrides_runpath=yes
12607 hardcode_into_libs=yes
12608 # ldd complains unless libraries are executable
12609 postinstall_cmds='chmod +x $lib'
12614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12615 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12616 shlibpath_var=LD_LIBRARY_PATH
12617 shlibpath_overrides_runpath=yes
12618 if test "$with_gnu_ld" = yes; then
12626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12627 soname_spec='${libname}${release}${shared_ext}$major'
12628 shlibpath_var=LD_LIBRARY_PATH
12629 case $host_vendor in
12631 shlibpath_overrides_runpath=no
12633 export_dynamic_flag_spec='${wl}-Blargedynsym'
12634 runpath_var=LD_RUN_PATH
12642 shlibpath_overrides_runpath=no
12643 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12649 if test -d /usr/nec ;then
12651 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12652 soname_spec='$libname${shared_ext}.$major'
12653 shlibpath_var=LD_LIBRARY_PATH
12657 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12658 version_type=freebsd-elf
12661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12662 soname_spec='${libname}${release}${shared_ext}$major'
12663 shlibpath_var=LD_LIBRARY_PATH
12664 hardcode_into_libs=yes
12665 if test "$with_gnu_ld" = yes; then
12666 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12667 shlibpath_overrides_runpath=no
12669 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12670 shlibpath_overrides_runpath=yes
12673 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12677 sys_lib_dlsearch_path_spec='/usr/lib'
12682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12683 soname_spec='${libname}${release}${shared_ext}$major'
12684 shlibpath_var=LD_LIBRARY_PATH
12691 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12692 echo "${ECHO_T}$dynamic_linker" >&6
12693 test "$dynamic_linker" = no && can_build_shared=no
12695 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12696 if test "$GCC" = yes; then
12697 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12700 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12701 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12702 hardcode_action_CXX=
12703 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12704 test -n "$runpath_var_CXX" || \
12705 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12707 # We can hardcode non-existant directories.
12708 if test "$hardcode_direct_CXX" != no &&
12709 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12710 # have to relink, otherwise we might link with an installed library
12711 # when we should be linking with a yet-to-be-installed one
12712 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12713 test "$hardcode_minus_L_CXX" != no; then
12714 # Linking always hardcodes the temporary library directory.
12715 hardcode_action_CXX=relink
12717 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12718 hardcode_action_CXX=immediate
12721 # We cannot hardcode anything, or else we can only hardcode existing
12723 hardcode_action_CXX=unsupported
12725 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12726 echo "${ECHO_T}$hardcode_action_CXX" >&6
12728 if test "$hardcode_action_CXX" = relink; then
12729 # Fast installation is not supported
12730 enable_fast_install=no
12731 elif test "$shlibpath_overrides_runpath" = yes ||
12732 test "$enable_shared" = no; then
12733 # Fast installation is not necessary
12734 enable_fast_install=needless
12738 # The else clause should only fire when bootstrapping the
12739 # libtool distribution, otherwise you forgot to ship ltmain.sh
12740 # with your package, and you will get complaints that there are
12741 # no rules to generate ltmain.sh.
12742 if test -f "$ltmain"; then
12743 # See if we are running on zsh, and set the options which allow our commands through
12744 # without removal of \ escapes.
12745 if test -n "${ZSH_VERSION+set}" ; then
12746 setopt NO_GLOB_SUBST
12748 # Now quote all the things that may contain metacharacters while being
12749 # careful not to overquote the AC_SUBSTed values. We take copies of the
12750 # variables and quote the copies for generation of the libtool script.
12751 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12753 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12754 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12755 deplibs_check_method reload_flag reload_cmds need_locks \
12756 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12757 lt_cv_sys_global_symbol_to_c_name_address \
12758 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12759 old_postinstall_cmds old_postuninstall_cmds \
12763 lt_prog_compiler_wl_CXX \
12764 lt_prog_compiler_pic_CXX \
12765 lt_prog_compiler_static_CXX \
12766 lt_prog_compiler_no_builtin_flag_CXX \
12767 export_dynamic_flag_spec_CXX \
12768 thread_safe_flag_spec_CXX \
12769 whole_archive_flag_spec_CXX \
12770 enable_shared_with_static_runtimes_CXX \
12771 old_archive_cmds_CXX \
12772 old_archive_from_new_cmds_CXX \
12773 predep_objects_CXX \
12774 postdep_objects_CXX \
12777 compiler_lib_search_path_CXX \
12779 archive_expsym_cmds_CXX \
12780 postinstall_cmds_CXX \
12781 postuninstall_cmds_CXX \
12782 old_archive_from_expsyms_cmds_CXX \
12783 allow_undefined_flag_CXX \
12784 no_undefined_flag_CXX \
12785 export_symbols_cmds_CXX \
12786 hardcode_libdir_flag_spec_CXX \
12787 hardcode_libdir_flag_spec_ld_CXX \
12788 hardcode_libdir_separator_CXX \
12789 hardcode_automatic_CXX \
12791 module_expsym_cmds_CXX \
12792 lt_cv_prog_compiler_c_o_CXX \
12793 exclude_expsyms_CXX \
12794 include_expsyms_CXX; do
12797 old_archive_cmds_CXX | \
12798 old_archive_from_new_cmds_CXX | \
12799 archive_cmds_CXX | \
12800 archive_expsym_cmds_CXX | \
12801 module_cmds_CXX | \
12802 module_expsym_cmds_CXX | \
12803 old_archive_from_expsyms_cmds_CXX | \
12804 export_symbols_cmds_CXX | \
12805 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12806 postinstall_cmds | postuninstall_cmds | \
12807 old_postinstall_cmds | old_postuninstall_cmds | \
12808 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12809 # Double-quote double-evaled strings.
12810 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12813 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12819 *'\$0 --fallback-echo"')
12820 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12826 cat <<__EOF__ >> "$cfgfile"
12827 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12829 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12831 # Shell to use when invoking shell scripts.
12834 # Whether or not to build shared libraries.
12835 build_libtool_libs=$enable_shared
12837 # Whether or not to build static libraries.
12838 build_old_libs=$enable_static
12840 # Whether or not to add -lc for building shared libraries.
12841 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12843 # Whether or not to disallow shared libs when runtime libs are static
12844 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12846 # Whether or not to optimize for fast installation.
12847 fast_install=$enable_fast_install
12850 host_alias=$host_alias
12854 # The build system.
12855 build_alias=$build_alias
12859 # An echo program that does not interpret backslashes.
12864 AR_FLAGS=$lt_AR_FLAGS
12869 # LTCC compiler flags.
12870 LTCFLAGS=$lt_LTCFLAGS
12872 # A language-specific compiler.
12873 CC=$lt_compiler_CXX
12875 # Is the compiler the GNU C compiler?
12878 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
12879 gcc_ver=\`gcc -dumpversion\`
12884 # The linker used to build libraries.
12887 # Whether we need hard or soft links.
12890 # A BSD-compatible nm program.
12893 # A symbol stripping program
12896 # Used to examine libraries when file_magic_cmd begins "file"
12897 MAGIC_CMD=$MAGIC_CMD
12899 # Used on cygwin: DLL creation program.
12902 # Used on cygwin: object dumper.
12905 # Used on cygwin: assembler.
12908 # The name of the directory that contains temporary libtool files.
12911 # How to create reloadable object files.
12912 reload_flag=$lt_reload_flag
12913 reload_cmds=$lt_reload_cmds
12915 # How to pass a linker flag through the compiler.
12916 wl=$lt_lt_prog_compiler_wl_CXX
12918 # Object file suffix (normally "o").
12919 objext="$ac_objext"
12921 # Old archive suffix (normally "a").
12924 # Shared library suffix (normally ".so").
12925 shrext_cmds='$shrext_cmds'
12927 # Executable file suffix (normally "").
12930 # Additional compiler flags for building library objects.
12931 pic_flag=$lt_lt_prog_compiler_pic_CXX
12934 # What is the maximum length of a command?
12935 max_cmd_len=$lt_cv_sys_max_cmd_len
12937 # Does compiler simultaneously support -c and -o options?
12938 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12940 # Must we lock files when doing compilation?
12941 need_locks=$lt_need_locks
12943 # Do we need the lib prefix for modules?
12944 need_lib_prefix=$need_lib_prefix
12946 # Do we need a version for libraries?
12947 need_version=$need_version
12949 # Whether dlopen is supported.
12950 dlopen_support=$enable_dlopen
12952 # Whether dlopen of programs is supported.
12953 dlopen_self=$enable_dlopen_self
12955 # Whether dlopen of statically linked programs is supported.
12956 dlopen_self_static=$enable_dlopen_self_static
12958 # Compiler flag to prevent dynamic linking.
12959 link_static_flag=$lt_lt_prog_compiler_static_CXX
12961 # Compiler flag to turn off builtin functions.
12962 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12964 # Compiler flag to allow reflexive dlopens.
12965 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12967 # Compiler flag to generate shared objects directly from archives.
12968 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12970 # Compiler flag to generate thread-safe objects.
12971 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12973 # Library versioning type.
12974 version_type=$version_type
12976 # Format of library name prefix.
12977 libname_spec=$lt_libname_spec
12979 # List of archive names. First name is the real one, the rest are links.
12980 # The last name is the one that the linker finds with -lNAME.
12981 library_names_spec=$lt_library_names_spec
12983 # The coded name of the library, if different from the real name.
12984 soname_spec=$lt_soname_spec
12986 # Commands used to build and install an old-style archive.
12988 old_archive_cmds=$lt_old_archive_cmds_CXX
12989 old_postinstall_cmds=$lt_old_postinstall_cmds
12990 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12992 # Create an old-style archive from a shared archive.
12993 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12995 # Create a temporary old-style archive to link instead of a shared archive.
12996 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12998 # Commands used to build and install a shared archive.
12999 archive_cmds=$lt_archive_cmds_CXX
13000 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13001 postinstall_cmds=$lt_postinstall_cmds
13002 postuninstall_cmds=$lt_postuninstall_cmds
13004 # Commands used to build a loadable module (assumed same as above if empty)
13005 module_cmds=$lt_module_cmds_CXX
13006 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13008 # Commands to strip libraries.
13009 old_striplib=$lt_old_striplib
13010 striplib=$lt_striplib
13012 # Dependencies to place before the objects being linked to create a
13014 predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13016 # Dependencies to place after the objects being linked to create a
13018 postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13020 # Dependencies to place before the objects being linked to create a
13022 predeps=$lt_predeps_CXX
13024 # Dependencies to place after the objects being linked to create a
13026 postdeps=$lt_postdeps_CXX
13028 # The library search path used internally by the compiler when linking
13029 # a shared library.
13030 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13032 # Method to check whether dependent libraries are shared objects.
13033 deplibs_check_method=$lt_deplibs_check_method
13035 # Command to use when deplibs_check_method == file_magic.
13036 file_magic_cmd=$lt_file_magic_cmd
13038 # Flag that allows shared libraries with undefined symbols to be built.
13039 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13041 # Flag that forces no undefined symbols.
13042 no_undefined_flag=$lt_no_undefined_flag_CXX
13044 # Commands used to finish a libtool library installation in a directory.
13045 finish_cmds=$lt_finish_cmds
13047 # Same as above, but a single script fragment to be evaled but not shown.
13048 finish_eval=$lt_finish_eval
13050 # Take the output of nm and produce a listing of raw symbols and C names.
13051 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13053 # Transform the output of nm in a proper C declaration
13054 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13056 # Transform the output of nm in a C name address pair
13057 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13059 # This is the shared library runtime path variable.
13060 runpath_var=$runpath_var
13062 # This is the shared library path variable.
13063 shlibpath_var=$shlibpath_var
13065 # Is shlibpath searched before the hard-coded library search path?
13066 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13068 # How to hardcode a shared library path into an executable.
13069 hardcode_action=$hardcode_action_CXX
13071 # Whether we should hardcode library paths into libraries.
13072 hardcode_into_libs=$hardcode_into_libs
13074 # Flag to hardcode \$libdir into a binary during linking.
13075 # This must work even if \$libdir does not exist.
13076 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13078 # If ld is used when linking, flag to hardcode \$libdir into
13079 # a binary during linking. This must work even if \$libdir does
13081 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13083 # Whether we need a single -rpath flag with a separated argument.
13084 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13086 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13087 # resulting binary.
13088 hardcode_direct=$hardcode_direct_CXX
13090 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13091 # resulting binary.
13092 hardcode_minus_L=$hardcode_minus_L_CXX
13094 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13095 # the resulting binary.
13096 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13098 # Set to yes if building a shared library automatically hardcodes DIR into the library
13099 # and all subsequent libraries and executables linked against it.
13100 hardcode_automatic=$hardcode_automatic_CXX
13102 # Variables whose values should be saved in libtool wrapper scripts and
13103 # restored at relink time.
13104 variables_saved_for_relink="$variables_saved_for_relink"
13106 # Whether libtool must link a program against all its dependency libraries.
13107 link_all_deplibs=$link_all_deplibs_CXX
13109 # Compile-time system search path for libraries
13110 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13112 # Run-time system search path for libraries
13113 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13115 # Fix the shell variable \$srcfile for the compiler.
13116 fix_srcfile_path="$fix_srcfile_path_CXX"
13118 # Set to yes if exported symbols are required.
13119 always_export_symbols=$always_export_symbols_CXX
13121 # The commands to list exported symbols.
13122 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13124 # The commands to extract the exported symbol list from a shared archive.
13125 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13127 # Symbols that should not be listed in the preloaded symbols.
13128 exclude_expsyms=$lt_exclude_expsyms_CXX
13130 # Symbols that must always be exported.
13131 include_expsyms=$lt_include_expsyms_CXX
13133 # ### END LIBTOOL TAG CONFIG: $tagname
13139 # If there is no Makefile yet, we rely on a make rule to execute
13140 # `config.status --recheck' to rerun these tests and create the
13141 # libtool script then.
13142 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13143 if test -f "$ltmain_in"; then
13144 test -f Makefile && make "$ltmain"
13150 ac_cpp='$CPP $CPPFLAGS'
13151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13159 with_gnu_ldcxx=$with_gnu_ld
13160 with_gnu_ld=$lt_save_with_gnu_ld
13161 lt_cv_path_LDCXX=$lt_cv_path_LD
13162 lt_cv_path_LD=$lt_save_path_LD
13163 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13164 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13172 if test -n "$F77" && test "X$F77" != "Xno"; then
13175 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13176 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13177 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13180 archive_cmds_need_lc_F77=no
13181 allow_undefined_flag_F77=
13182 always_export_symbols_F77=no
13183 archive_expsym_cmds_F77=
13184 export_dynamic_flag_spec_F77=
13185 hardcode_direct_F77=no
13186 hardcode_libdir_flag_spec_F77=
13187 hardcode_libdir_flag_spec_ld_F77=
13188 hardcode_libdir_separator_F77=
13189 hardcode_minus_L_F77=no
13190 hardcode_automatic_F77=no
13192 module_expsym_cmds_F77=
13193 link_all_deplibs_F77=unknown
13194 old_archive_cmds_F77=$old_archive_cmds
13195 no_undefined_flag_F77=
13196 whole_archive_flag_spec_F77=
13197 enable_shared_with_static_runtimes_F77=no
13199 # Source file extension for f77 test sources.
13202 # Object file extension for compiled f77 test sources.
13206 # Code to be used in simple compile tests
13207 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13209 # Code to be used in simple link tests
13210 lt_simple_link_test_code=" program t\n end\n"
13212 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13214 # If no C compiler was specified, use CC.
13217 # If no C compiler flags were specified, use CFLAGS.
13218 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13220 # Allow CC to be a program name with arguments.
13224 # save warnings/boilerplate of simple test code
13225 ac_outfile=conftest.$ac_objext
13226 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13227 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13228 _lt_compiler_boilerplate=`cat conftest.err`
13231 ac_outfile=conftest.$ac_objext
13232 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13233 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13234 _lt_linker_boilerplate=`cat conftest.err`
13238 # Allow CC to be a program name with arguments.
13243 for cc_temp in $compiler""; do
13245 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13246 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13251 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13254 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13255 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13256 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13257 echo "${ECHO_T}$can_build_shared" >&6
13259 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13260 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13261 test "$can_build_shared" = "no" && enable_shared=no
13263 # On AIX, shared libraries and static libraries use the same namespace, and
13264 # are all built from PIC.
13267 test "$enable_shared" = yes && enable_static=no
13268 if test -n "$RANLIB"; then
13269 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13270 postinstall_cmds='$RANLIB $lib'
13274 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13275 test "$enable_shared" = yes && enable_static=no
13279 echo "$as_me:$LINENO: result: $enable_shared" >&5
13280 echo "${ECHO_T}$enable_shared" >&6
13282 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13283 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13284 # Make sure either enable_shared or enable_static is yes.
13285 test "$enable_shared" = yes || enable_static=yes
13286 echo "$as_me:$LINENO: result: $enable_static" >&5
13287 echo "${ECHO_T}$enable_static" >&6
13292 lt_prog_compiler_wl_F77=
13293 lt_prog_compiler_pic_F77=
13294 lt_prog_compiler_static_F77=
13296 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13297 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13299 if test "$GCC" = yes; then
13300 lt_prog_compiler_wl_F77='-Wl,'
13301 lt_prog_compiler_static_F77='-static'
13305 # All AIX code is PIC.
13306 if test "$host_cpu" = ia64; then
13307 # AIX 5 now supports IA64 processor
13308 lt_prog_compiler_static_F77='-Bstatic'
13313 # FIXME: we need at least 68020 code to build shared libraries, but
13314 # adding the `-m68020' flag to GCC prevents building anything better,
13316 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13319 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13320 # PIC is the default for these OSes.
13323 mingw* | pw32* | os2*)
13324 # This hack is so that the source file can tell whether it is being
13325 # built for inclusion in a dll (and should export symbols for example).
13326 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13329 darwin* | rhapsody*)
13330 # PIC is the default on this platform
13331 # Common symbols not allowed in MH_DYLIB files
13332 lt_prog_compiler_pic_F77='-fno-common'
13336 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13337 # Instead, we relocate shared libraries at runtime.
13341 # Just because we use GCC doesn't mean we suddenly get shared libraries
13342 # on systems that don't support them.
13343 lt_prog_compiler_can_build_shared_F77=no
13348 if test -d /usr/nec; then
13349 lt_prog_compiler_pic_F77=-Kconform_pic
13354 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13355 # not for PA HP-UX.
13361 lt_prog_compiler_pic_F77='-fPIC'
13367 lt_prog_compiler_pic_F77='-fPIC'
13371 # PORTME Check for flag to pass linker flags through the system compiler.
13374 lt_prog_compiler_wl_F77='-Wl,'
13375 if test "$host_cpu" = ia64; then
13376 # AIX 5 now supports IA64 processor
13377 lt_prog_compiler_static_F77='-Bstatic'
13379 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13383 # PIC is the default on this platform
13384 # Common symbols not allowed in MH_DYLIB files
13385 case $cc_basename in
13387 lt_prog_compiler_pic_F77='-qnocommon'
13388 lt_prog_compiler_wl_F77='-Wl,'
13393 mingw* | pw32* | os2*)
13394 # This hack is so that the source file can tell whether it is being
13395 # built for inclusion in a dll (and should export symbols for example).
13396 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13399 hpux9* | hpux10* | hpux11*)
13400 lt_prog_compiler_wl_F77='-Wl,'
13401 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13402 # not for PA HP-UX.
13408 lt_prog_compiler_pic_F77='+Z'
13411 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13412 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13415 irix5* | irix6* | nonstopux*)
13416 lt_prog_compiler_wl_F77='-Wl,'
13417 # PIC (with -KPIC) is the default.
13418 lt_prog_compiler_static_F77='-non_shared'
13422 lt_prog_compiler_pic_F77='-KPIC'
13423 lt_prog_compiler_static_F77='-Bstatic'
13427 case $cc_basename in
13429 lt_prog_compiler_wl_F77='-Wl,'
13430 lt_prog_compiler_pic_F77='-KPIC'
13431 lt_prog_compiler_static_F77='-static'
13433 pgcc* | pgf77* | pgf90* | pgf95*)
13434 # Portland Group compilers (*not* the Pentium gcc compiler,
13435 # which looks to be a dead project)
13436 lt_prog_compiler_wl_F77='-Wl,'
13437 lt_prog_compiler_pic_F77='-fpic'
13438 lt_prog_compiler_static_F77='-Bstatic'
13441 lt_prog_compiler_wl_F77='-Wl,'
13442 # All Alpha code is PIC.
13443 lt_prog_compiler_static_F77='-non_shared'
13448 osf3* | osf4* | osf5*)
13449 lt_prog_compiler_wl_F77='-Wl,'
13450 # All OSF/1 code is PIC.
13451 lt_prog_compiler_static_F77='-non_shared'
13455 lt_prog_compiler_pic_F77='-KPIC'
13456 lt_prog_compiler_static_F77='-Bstatic'
13457 case $cc_basename in
13458 f77* | f90* | f95*)
13459 lt_prog_compiler_wl_F77='-Qoption ld ';;
13461 lt_prog_compiler_wl_F77='-Wl,';;
13466 lt_prog_compiler_wl_F77='-Qoption ld '
13467 lt_prog_compiler_pic_F77='-PIC'
13468 lt_prog_compiler_static_F77='-Bstatic'
13471 sysv4 | sysv4.2uw2* | sysv4.3*)
13472 lt_prog_compiler_wl_F77='-Wl,'
13473 lt_prog_compiler_pic_F77='-KPIC'
13474 lt_prog_compiler_static_F77='-Bstatic'
13478 if test -d /usr/nec ;then
13479 lt_prog_compiler_pic_F77='-Kconform_pic'
13480 lt_prog_compiler_static_F77='-Bstatic'
13484 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13485 lt_prog_compiler_wl_F77='-Wl,'
13486 lt_prog_compiler_pic_F77='-KPIC'
13487 lt_prog_compiler_static_F77='-Bstatic'
13491 lt_prog_compiler_wl_F77='-Wl,'
13492 lt_prog_compiler_can_build_shared_F77=no
13496 lt_prog_compiler_pic_F77='-pic'
13497 lt_prog_compiler_static_F77='-Bstatic'
13501 lt_prog_compiler_can_build_shared_F77=no
13506 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13507 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13510 # Check to make sure the PIC flag actually works.
13512 if test -n "$lt_prog_compiler_pic_F77"; then
13514 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13515 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13516 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13517 echo $ECHO_N "(cached) $ECHO_C" >&6
13519 lt_prog_compiler_pic_works_F77=no
13520 ac_outfile=conftest.$ac_objext
13521 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13522 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13523 # Insert the option either (1) after the last *FLAGS variable, or
13524 # (2) before a word containing "conftest.", or (3) at the end.
13525 # Note that $ac_compile itself does not contain backslashes and begins
13526 # with a dollar sign (not a hyphen), so the echo should work correctly.
13527 # The option is referenced via a variable to avoid confusing sed.
13528 lt_compile=`echo "$ac_compile" | $SED \
13529 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13530 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13531 -e 's:$: $lt_compiler_flag:'`
13532 (eval echo "\"\$as_me:13532: $lt_compile\"" >&5)
13533 (eval "$lt_compile" 2>conftest.err)
13535 cat conftest.err >&5
13536 echo "$as_me:13536: \$? = $ac_status" >&5
13537 if (exit $ac_status) && test -s "$ac_outfile"; then
13538 # The compiler can only warn and ignore the option if not recognized
13539 # So say no if there are warnings other than the usual output.
13540 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13541 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13542 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13543 lt_prog_compiler_pic_works_F77=yes
13549 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13550 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13552 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13553 case $lt_prog_compiler_pic_F77 in
13555 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13558 lt_prog_compiler_pic_F77=
13559 lt_prog_compiler_can_build_shared_F77=no
13564 # For platforms which do not support PIC, -DPIC is meaningless:
13566 lt_prog_compiler_pic_F77=
13569 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13574 # Check to make sure the static flag actually works.
13576 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13577 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13578 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13579 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13580 echo $ECHO_N "(cached) $ECHO_C" >&6
13582 lt_prog_compiler_static_works_F77=no
13583 save_LDFLAGS="$LDFLAGS"
13584 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13585 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13586 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13587 # The linker can only warn and ignore the option if not recognized
13588 # So say no if there are warnings
13589 if test -s conftest.err; then
13590 # Append any errors to the config.log.
13591 cat conftest.err 1>&5
13592 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13593 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13594 if diff conftest.exp conftest.er2 >/dev/null; then
13595 lt_prog_compiler_static_works_F77=yes
13598 lt_prog_compiler_static_works_F77=yes
13602 LDFLAGS="$save_LDFLAGS"
13605 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13606 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13608 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13611 lt_prog_compiler_static_F77=
13615 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13616 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13617 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13618 echo $ECHO_N "(cached) $ECHO_C" >&6
13620 lt_cv_prog_compiler_c_o_F77=no
13621 $rm -r conftest 2>/dev/null
13625 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13627 lt_compiler_flag="-o out/conftest2.$ac_objext"
13628 # Insert the option either (1) after the last *FLAGS variable, or
13629 # (2) before a word containing "conftest.", or (3) at the end.
13630 # Note that $ac_compile itself does not contain backslashes and begins
13631 # with a dollar sign (not a hyphen), so the echo should work correctly.
13632 lt_compile=`echo "$ac_compile" | $SED \
13633 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13634 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13635 -e 's:$: $lt_compiler_flag:'`
13636 (eval echo "\"\$as_me:13636: $lt_compile\"" >&5)
13637 (eval "$lt_compile" 2>out/conftest.err)
13639 cat out/conftest.err >&5
13640 echo "$as_me:13640: \$? = $ac_status" >&5
13641 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13643 # The compiler can only warn and ignore the option if not recognized
13644 # So say no if there are warnings
13645 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13646 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13647 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13648 lt_cv_prog_compiler_c_o_F77=yes
13653 # SGI C++ compiler will create directory out/ii_files/ for
13654 # template instantiation
13655 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13656 $rm out/* && rmdir out
13662 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13663 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13666 hard_links="nottested"
13667 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13668 # do not overwrite the value of need_locks provided by the user
13669 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13670 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13673 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13675 ln conftest.a conftest.b 2>&5 || hard_links=no
13676 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13677 echo "$as_me:$LINENO: result: $hard_links" >&5
13678 echo "${ECHO_T}$hard_links" >&6
13679 if test "$hard_links" = no; then
13680 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13681 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13688 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13689 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13692 allow_undefined_flag_F77=
13693 enable_shared_with_static_runtimes_F77=no
13695 archive_expsym_cmds_F77=
13696 old_archive_From_new_cmds_F77=
13697 old_archive_from_expsyms_cmds_F77=
13698 export_dynamic_flag_spec_F77=
13699 whole_archive_flag_spec_F77=
13700 thread_safe_flag_spec_F77=
13701 hardcode_libdir_flag_spec_F77=
13702 hardcode_libdir_flag_spec_ld_F77=
13703 hardcode_libdir_separator_F77=
13704 hardcode_direct_F77=no
13705 hardcode_minus_L_F77=no
13706 hardcode_shlibpath_var_F77=unsupported
13707 link_all_deplibs_F77=unknown
13708 hardcode_automatic_F77=no
13710 module_expsym_cmds_F77=
13711 always_export_symbols_F77=no
13712 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13713 # include_expsyms should be a list of space-separated symbols to be *always*
13714 # included in the symbol list
13715 include_expsyms_F77=
13716 # exclude_expsyms can be an extended regexp of symbols to exclude
13717 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13718 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13719 # as well as any symbol that contains `d'.
13720 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13721 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13722 # platforms (ab)use it in PIC code, but their linkers get confused if
13723 # the symbol is explicitly referenced. Since portable code cannot
13724 # rely on this symbol name, it's probably fine to never include it in
13725 # preloaded symbol tables.
13726 extract_expsyms_cmds=
13727 # Just being paranoid about ensuring that cc_basename is set.
13728 for cc_temp in $compiler""; do
13730 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13731 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13736 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13739 cygwin* | mingw* | pw32*)
13740 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13741 # When not using gcc, we currently assume that we are using
13742 # Microsoft Visual C++.
13743 if test "$GCC" != yes; then
13748 # we just hope/assume this is gcc and not c89 (= MSVC++)
13757 if test "$with_gnu_ld" = yes; then
13758 # If archive_cmds runs LD, not CC, wlarc should be empty
13761 # Set some defaults for GNU ld with shared library support. These
13762 # are reset later if shared libraries are not supported. Putting them
13763 # here allows them to be overridden if necessary.
13764 runpath_var=LD_RUN_PATH
13765 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13766 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13767 # ancient GNU ld didn't support --whole-archive et. al.
13768 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13769 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13771 whole_archive_flag_spec_F77=
13773 supports_anon_versioning=no
13774 case `$LD -v 2>/dev/null` in
13775 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13776 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13777 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13778 *\ 2.11.*) ;; # other 2.11 versions
13779 *) supports_anon_versioning=yes ;;
13782 # See if GNU ld supports shared libraries.
13784 aix3* | aix4* | aix5*)
13785 # On AIX/PPC, the GNU linker is very broken
13786 if test "$host_cpu" != ia64; then
13790 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13791 *** to be unable to reliably create shared libraries on AIX.
13792 *** Therefore, libtool is disabling shared libraries support. If you
13793 *** really care for shared libraries, you may want to modify your PATH
13794 *** so that a non-GNU linker is found, and then restart.
13801 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)'
13802 hardcode_libdir_flag_spec_F77='-L$libdir'
13803 hardcode_minus_L_F77=yes
13805 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13806 # that the semantics of dynamic libraries on AmigaOS, at least up
13807 # to version 4, is to share data among multiple programs linked
13808 # with the same dynamic library. Since this doesn't match the
13809 # behavior of shared libraries on other platforms, we can't use
13815 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13816 allow_undefined_flag_F77=unsupported
13817 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13818 # support --undefined. This deserves some investigation. FIXME
13819 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13825 cygwin* | mingw* | pw32*)
13826 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13827 # as there is no search path for DLLs.
13828 hardcode_libdir_flag_spec_F77='-L$libdir'
13829 allow_undefined_flag_F77=unsupported
13830 always_export_symbols_F77=no
13831 enable_shared_with_static_runtimes_F77=yes
13832 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13834 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13835 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13836 # If the export-symbols file already is a .def file (1st line
13837 # is EXPORTS), use it as is; otherwise, prepend...
13838 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13839 cp $export_symbols $output_objdir/$soname.def;
13841 echo EXPORTS > $output_objdir/$soname.def;
13842 cat $export_symbols >> $output_objdir/$soname.def;
13844 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13851 hardcode_direct_F77=no
13852 hardcode_shlibpath_var_F77=no
13853 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13854 export_dynamic_flag_spec_F77='${wl}-E'
13855 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13856 # Instead, shared libraries are loaded at an image base (0x10000000 by
13857 # default) and relocated if they conflict, which is a slow very memory
13858 # consuming and fragmenting process. To avoid this, we pick a random,
13859 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13860 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13861 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13862 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13866 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13868 case $cc_basename,$host_cpu in
13869 pgcc*) # Portland Group C compiler
13870 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'
13871 tmp_addflag=' $pic_flag'
13873 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13874 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'
13875 tmp_addflag=' $pic_flag -Mnomain' ;;
13876 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13877 tmp_addflag=' -i_dynamic' ;;
13878 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13879 tmp_addflag=' -i_dynamic -nofor_main' ;;
13880 ifc* | ifort*) # Intel Fortran compiler
13881 tmp_addflag=' -nofor_main' ;;
13883 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13885 if test $supports_anon_versioning = yes; then
13886 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13887 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13888 $echo "local: *; };" >> $output_objdir/$libname.ver~
13889 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13897 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13898 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13901 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13902 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13907 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13911 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13912 *** create shared libraries on Solaris systems. Therefore, libtool
13913 *** is disabling shared libraries support. We urge you to upgrade GNU
13914 *** binutils to release 2.9.1 or newer. Another option is to modify
13915 *** your PATH or compiler configuration so that the native linker is
13916 *** used, and then restart.
13919 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13920 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13921 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13927 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13928 case `$LD -v 2>&1` in
13929 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13933 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13934 *** reliably create shared libraries on SCO systems. Therefore, libtool
13935 *** is disabling shared libraries support. We urge you to upgrade GNU
13936 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13937 *** your PATH or compiler configuration so that the native linker is
13938 *** used, and then restart.
13943 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13944 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13945 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13946 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13955 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13957 hardcode_direct_F77=yes
13958 hardcode_shlibpath_var_F77=no
13962 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13963 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13964 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13971 if test "$ld_shlibs_F77" = no; then
13973 hardcode_libdir_flag_spec_F77=
13974 export_dynamic_flag_spec_F77=
13975 whole_archive_flag_spec_F77=
13978 # PORTME fill in a description of your system's linker (not GNU ld)
13981 allow_undefined_flag_F77=unsupported
13982 always_export_symbols_F77=yes
13983 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'
13984 # Note: this linker hardcodes the directories in LIBPATH if there
13985 # are no directories specified by -L.
13986 hardcode_minus_L_F77=yes
13987 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13988 # Neither direct hardcoding nor static linking is supported with a
13990 hardcode_direct_F77=unsupported
13995 if test "$host_cpu" = ia64; then
13996 # On IA64, the linker does run time linking by default, so we don't
13997 # have to do anything special.
13998 aix_use_runtimelinking=no
13999 exp_sym_flag='-Bexport'
14002 # If we're using GNU nm, then we don't want the "-C" option.
14003 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14004 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14005 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'
14007 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'
14009 aix_use_runtimelinking=no
14011 # Test if we are trying to use run time linking or normal
14012 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14013 # need to do runtime linking.
14014 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14015 for ld_flag in $LDFLAGS; do
14016 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14017 aix_use_runtimelinking=yes
14024 exp_sym_flag='-bexport'
14025 no_entry_flag='-bnoentry'
14028 # When large executables or shared objects are built, AIX ld can
14029 # have problems creating the table of contents. If linking a library
14030 # or program results in "error TOC overflow" add -mminimal-toc to
14031 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14032 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14034 archive_cmds_F77=''
14035 hardcode_direct_F77=yes
14036 hardcode_libdir_separator_F77=':'
14037 link_all_deplibs_F77=yes
14039 if test "$GCC" = yes; then
14040 case $host_os in aix4.[012]|aix4.[012].*)
14041 # We only want to do this on AIX 4.2 and lower, the check
14042 # below for broken collect2 doesn't work under 4.3+
14043 collect2name=`${CC} -print-prog-name=collect2`
14044 if test -f "$collect2name" && \
14045 strings "$collect2name" | grep resolve_lib_name >/dev/null
14047 # We have reworked collect2
14048 hardcode_direct_F77=yes
14050 # We have old collect2
14051 hardcode_direct_F77=unsupported
14052 # It fails to find uninstalled libraries when the uninstalled
14053 # path is not listed in the libpath. Setting hardcode_minus_L
14054 # to unsupported forces relinking
14055 hardcode_minus_L_F77=yes
14056 hardcode_libdir_flag_spec_F77='-L$libdir'
14057 hardcode_libdir_separator_F77=
14061 shared_flag='-shared'
14062 if test "$aix_use_runtimelinking" = yes; then
14063 shared_flag="$shared_flag "'${wl}-G'
14067 if test "$host_cpu" = ia64; then
14068 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14069 # chokes on -Wl,-G. The following line is correct:
14072 if test "$aix_use_runtimelinking" = yes; then
14073 shared_flag='${wl}-G'
14075 shared_flag='${wl}-bM:SRE'
14080 # It seems that -bexpall does not export symbols beginning with
14081 # underscore (_), so it is better to generate a list of symbols to export.
14082 always_export_symbols_F77=yes
14083 if test "$aix_use_runtimelinking" = yes; then
14084 # Warning - without using the other runtime loading flags (-brtl),
14085 # -berok will link without error, but may produce a broken library.
14086 allow_undefined_flag_F77='-berok'
14087 # Determine the default libpath from the value encoded in an empty executable.
14088 cat >conftest.$ac_ext <<_ACEOF
14093 rm -f conftest.$ac_objext conftest$ac_exeext
14094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14095 (eval $ac_link) 2>conftest.er1
14097 grep -v '^ *+' conftest.er1 >conftest.err
14099 cat conftest.err >&5
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); } &&
14102 { ac_try='test -z "$ac_f77_werror_flag"
14103 || test ! -s conftest.err'
14104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14105 (eval $ac_try) 2>&5
14107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); }; } &&
14109 { ac_try='test -s conftest$ac_exeext'
14110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14111 (eval $ac_try) 2>&5
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); }; }; then
14116 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14118 # Check for a 64-bit object if we didn't find anything.
14119 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; }
14122 echo "$as_me: failed program was:" >&5
14123 sed 's/^/| /' conftest.$ac_ext >&5
14126 rm -f conftest.err conftest.$ac_objext \
14127 conftest$ac_exeext conftest.$ac_ext
14128 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14130 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14131 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14133 if test "$host_cpu" = ia64; then
14134 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14135 allow_undefined_flag_F77="-z nodefs"
14136 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14138 # Determine the default libpath from the value encoded in an empty executable.
14139 cat >conftest.$ac_ext <<_ACEOF
14144 rm -f conftest.$ac_objext conftest$ac_exeext
14145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14146 (eval $ac_link) 2>conftest.er1
14148 grep -v '^ *+' conftest.er1 >conftest.err
14150 cat conftest.err >&5
14151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152 (exit $ac_status); } &&
14153 { ac_try='test -z "$ac_f77_werror_flag"
14154 || test ! -s conftest.err'
14155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14156 (eval $ac_try) 2>&5
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); }; } &&
14160 { ac_try='test -s conftest$ac_exeext'
14161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14162 (eval $ac_try) 2>&5
14164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165 (exit $ac_status); }; }; then
14167 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14169 # Check for a 64-bit object if we didn't find anything.
14170 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; }
14173 echo "$as_me: failed program was:" >&5
14174 sed 's/^/| /' conftest.$ac_ext >&5
14177 rm -f conftest.err conftest.$ac_objext \
14178 conftest$ac_exeext conftest.$ac_ext
14179 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14181 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14182 # Warning - without using the other run time loading flags,
14183 # -berok will link without error, but may produce a broken library.
14184 no_undefined_flag_F77=' ${wl}-bernotok'
14185 allow_undefined_flag_F77=' ${wl}-berok'
14186 # Exported symbols can be pulled into shared objects from archives
14187 whole_archive_flag_spec_F77='$convenience'
14188 archive_cmds_need_lc_F77=yes
14189 # This is similar to how AIX traditionally builds its shared libraries.
14190 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14196 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)'
14197 hardcode_libdir_flag_spec_F77='-L$libdir'
14198 hardcode_minus_L_F77=yes
14199 # see comment about different semantics on the GNU ld section
14204 export_dynamic_flag_spec_F77=-rdynamic
14207 cygwin* | mingw* | pw32*)
14208 # When not using gcc, we currently assume that we are using
14209 # Microsoft Visual C++.
14210 # hardcode_libdir_flag_spec is actually meaningless, as there is
14211 # no search path for DLLs.
14212 hardcode_libdir_flag_spec_F77=' '
14213 allow_undefined_flag_F77=unsupported
14214 # Tell ltmain to make .lib files, not .a files.
14216 # Tell ltmain to make .dll files, not .so files.
14218 # FIXME: Setting linknames here is a bad hack.
14219 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14220 # The linker will automatically build a .lib file if we build a DLL.
14221 old_archive_From_new_cmds_F77='true'
14222 # FIXME: Should let the user specify the lib program.
14223 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14224 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14225 enable_shared_with_static_runtimes_F77=yes
14228 darwin* | rhapsody*)
14230 rhapsody* | darwin1.[012])
14231 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14234 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14235 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14237 case ${MACOSX_DEPLOYMENT_TARGET} in
14239 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14242 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14248 archive_cmds_need_lc_F77=no
14249 hardcode_direct_F77=no
14250 hardcode_automatic_F77=yes
14251 hardcode_shlibpath_var_F77=unsupported
14252 whole_archive_flag_spec_F77=''
14253 link_all_deplibs_F77=yes
14254 if test "$GCC" = yes ; then
14255 output_verbose_link_cmd='echo'
14256 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14257 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14258 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14259 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}'
14260 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}'
14262 case $cc_basename in
14264 output_verbose_link_cmd='echo'
14265 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14266 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14267 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14268 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}'
14269 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}'
14279 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14280 hardcode_libdir_flag_spec_F77='-L$libdir'
14281 hardcode_shlibpath_var_F77=no
14288 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14289 # support. Future versions do this automatically, but an explicit c++rt0.o
14290 # does not break anything, and helps significantly (at the cost of a little
14293 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14294 hardcode_libdir_flag_spec_F77='-R$libdir'
14295 hardcode_direct_F77=yes
14296 hardcode_shlibpath_var_F77=no
14299 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14301 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14302 hardcode_direct_F77=yes
14303 hardcode_minus_L_F77=yes
14304 hardcode_shlibpath_var_F77=no
14307 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14308 freebsd* | kfreebsd*-gnu | dragonfly*)
14309 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14310 hardcode_libdir_flag_spec_F77='-R$libdir'
14311 hardcode_direct_F77=yes
14312 hardcode_shlibpath_var_F77=no
14316 if test "$GCC" = yes; then
14317 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'
14319 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'
14321 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14322 hardcode_libdir_separator_F77=:
14323 hardcode_direct_F77=yes
14325 # hardcode_minus_L: Not really in the search PATH,
14326 # but as the default location of the library.
14327 hardcode_minus_L_F77=yes
14328 export_dynamic_flag_spec_F77='${wl}-E'
14332 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14333 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14335 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14337 if test "$with_gnu_ld" = no; then
14338 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14339 hardcode_libdir_separator_F77=:
14341 hardcode_direct_F77=yes
14342 export_dynamic_flag_spec_F77='${wl}-E'
14344 # hardcode_minus_L: Not really in the search PATH,
14345 # but as the default location of the library.
14346 hardcode_minus_L_F77=yes
14351 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14354 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14357 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14360 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14366 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14369 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14372 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14376 if test "$with_gnu_ld" = no; then
14377 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14378 hardcode_libdir_separator_F77=:
14382 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14383 hardcode_direct_F77=no
14384 hardcode_shlibpath_var_F77=no
14387 hardcode_direct_F77=yes
14388 export_dynamic_flag_spec_F77='${wl}-E'
14390 # hardcode_minus_L: Not really in the search PATH,
14391 # but as the default location of the library.
14392 hardcode_minus_L_F77=yes
14398 irix5* | irix6* | nonstopux*)
14399 if test "$GCC" = yes; then
14400 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'
14402 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'
14403 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14405 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14406 hardcode_libdir_separator_F77=:
14407 link_all_deplibs_F77=yes
14411 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14412 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14414 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14416 hardcode_libdir_flag_spec_F77='-R$libdir'
14417 hardcode_direct_F77=yes
14418 hardcode_shlibpath_var_F77=no
14422 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14423 hardcode_direct_F77=yes
14424 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14425 hardcode_libdir_separator_F77=:
14426 hardcode_shlibpath_var_F77=no
14430 hardcode_direct_F77=yes
14431 hardcode_shlibpath_var_F77=no
14432 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14433 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14434 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14435 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14436 export_dynamic_flag_spec_F77='${wl}-E'
14439 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14440 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14441 hardcode_libdir_flag_spec_F77='-R$libdir'
14444 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14445 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14452 hardcode_libdir_flag_spec_F77='-L$libdir'
14453 hardcode_minus_L_F77=yes
14454 allow_undefined_flag_F77=unsupported
14455 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'
14456 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14460 if test "$GCC" = yes; then
14461 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14462 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'
14464 allow_undefined_flag_F77=' -expect_unresolved \*'
14465 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'
14467 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14468 hardcode_libdir_separator_F77=:
14471 osf4* | osf5*) # as osf3* with the addition of -msym flag
14472 if test "$GCC" = yes; then
14473 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14474 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'
14475 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14477 allow_undefined_flag_F77=' -expect_unresolved \*'
14478 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'
14479 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~
14480 $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'
14482 # Both c and cxx compiler support -rpath directly
14483 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14485 hardcode_libdir_separator_F77=:
14489 no_undefined_flag_F77=' -z text'
14490 if test "$GCC" = yes; then
14492 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14493 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14494 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14497 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14498 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14499 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14501 hardcode_libdir_flag_spec_F77='-R$libdir'
14502 hardcode_shlibpath_var_F77=no
14504 solaris2.[0-5] | solaris2.[0-5].*) ;;
14506 # The compiler driver will combine linker options so we
14507 # cannot just pass the convience library names through
14508 # without $wl, iff we do not link with $LD.
14509 # Luckily, gcc supports the same syntax we need for Sun Studio.
14510 # Supported since Solaris 2.6 (maybe 2.5.1?)
14513 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14515 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' ;;
14518 link_all_deplibs_F77=yes
14522 if test "x$host_vendor" = xsequent; then
14523 # Use $CC to link under sequent, because it throws in some extra .o
14524 # files that make .init and .fini sections work.
14525 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14527 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14529 hardcode_libdir_flag_spec_F77='-L$libdir'
14530 hardcode_direct_F77=yes
14531 hardcode_minus_L_F77=yes
14532 hardcode_shlibpath_var_F77=no
14536 case $host_vendor in
14538 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14539 hardcode_direct_F77=yes # is this really true???
14542 ## LD is ld it makes a PLAMLIB
14543 ## CC just makes a GrossModule.
14544 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14545 reload_cmds_F77='$CC -r -o $output$reload_objs'
14546 hardcode_direct_F77=no
14549 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14550 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14553 runpath_var='LD_RUN_PATH'
14554 hardcode_shlibpath_var_F77=no
14558 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14559 hardcode_shlibpath_var_F77=no
14560 export_dynamic_flag_spec_F77='-Bexport'
14564 if test -d /usr/nec; then
14565 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14566 hardcode_shlibpath_var_F77=no
14567 runpath_var=LD_RUN_PATH
14568 hardcode_runpath_var=yes
14573 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14574 no_undefined_flag_F77='${wl}-z,text'
14575 archive_cmds_need_lc_F77=no
14576 hardcode_shlibpath_var_F77=no
14577 runpath_var='LD_RUN_PATH'
14579 if test "$GCC" = yes; then
14580 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14581 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14583 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14584 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14588 sysv5* | sco3.2v5* | sco5v6*)
14589 # Note: We can NOT use -z defs as we might desire, because we do not
14590 # link with -lc, and that would cause any symbols used from libc to
14591 # always be unresolved, which means just about no library would
14592 # ever link correctly. If we're not using GNU ld we use -z text
14593 # though, which does catch some bad symbols but isn't as heavy-handed
14595 no_undefined_flag_F77='${wl}-z,text'
14596 allow_undefined_flag_F77='${wl}-z,nodefs'
14597 archive_cmds_need_lc_F77=no
14598 hardcode_shlibpath_var_F77=no
14599 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14600 hardcode_libdir_separator_F77=':'
14601 link_all_deplibs_F77=yes
14602 export_dynamic_flag_spec_F77='${wl}-Bexport'
14603 runpath_var='LD_RUN_PATH'
14605 if test "$GCC" = yes; then
14606 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14607 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14609 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14610 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14615 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14616 hardcode_libdir_flag_spec_F77='-L$libdir'
14617 hardcode_shlibpath_var_F77=no
14626 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14627 echo "${ECHO_T}$ld_shlibs_F77" >&6
14628 test "$ld_shlibs_F77" = no && can_build_shared=no
14631 # Do we need to explicitly link libc?
14633 case "x$archive_cmds_need_lc_F77" in
14635 # Assume -lc should be added
14636 archive_cmds_need_lc_F77=yes
14638 if test "$enable_shared" = yes && test "$GCC" = yes; then
14639 case $archive_cmds_F77 in
14641 # FIXME: we may have to deal with multi-command sequences.
14644 # Test whether the compiler implicitly links with -lc since on some
14645 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14646 # to ld, don't add -lc before -lgcc.
14647 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14648 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14650 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14653 (eval $ac_compile) 2>&5
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); } 2>conftest.err; then
14659 libobjs=conftest.$ac_objext
14661 wl=$lt_prog_compiler_wl_F77
14662 pic_flag=$lt_prog_compiler_pic_F77
14668 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14669 allow_undefined_flag_F77=
14670 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14671 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674 (exit $ac_status); }
14676 archive_cmds_need_lc_F77=no
14678 archive_cmds_need_lc_F77=yes
14680 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14682 cat conftest.err 1>&5
14685 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14686 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14693 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14694 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14695 library_names_spec=
14696 libname_spec='lib$name'
14700 postuninstall_cmds=
14704 shlibpath_overrides_runpath=unknown
14706 dynamic_linker="$host_os ld.so"
14707 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14708 if test "$GCC" = yes; then
14709 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14710 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14711 # if the path contains ";" then we assume it to be the separator
14712 # otherwise default to the standard path separator (i.e. ":") - it is
14713 # assumed that no part of a normal pathname contains ";" but that should
14714 # okay in the real world where ";" in dirpaths is itself problematic.
14715 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14717 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14720 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14722 need_lib_prefix=unknown
14723 hardcode_into_libs=no
14725 # when you set need_version to no, make sure it does not cause -set_version
14726 # flags to be left without arguments
14727 need_version=unknown
14732 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14733 shlibpath_var=LIBPATH
14735 # AIX 3 has no versioning support, so we append a major version to the name.
14736 soname_spec='${libname}${release}${shared_ext}$major'
14743 hardcode_into_libs=yes
14744 if test "$host_cpu" = ia64; then
14745 # AIX 5 supports IA64
14746 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14747 shlibpath_var=LD_LIBRARY_PATH
14749 # With GCC up to 2.95.x, collect2 would create an import file
14750 # for dependence libraries. The import file would start with
14751 # the line `#! .'. This would cause the generated library to
14752 # depend on `.', always an invalid library. This was fixed in
14753 # development snapshots of GCC prior to 3.0.
14755 aix4 | aix4.[01] | aix4.[01].*)
14756 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14758 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14761 can_build_shared=no
14765 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14766 # soname into executable. Probably we can add versioning support to
14767 # collect2, so additional links can be useful in future.
14768 if test "$aix_use_runtimelinking" = yes; then
14769 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14770 # instead of lib<name>.a to let people know that these are not
14771 # typical AIX shared libraries.
14772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14774 # We preserve .a as extension for shared libraries through AIX4.2
14775 # and later when we are not doing run time linking.
14776 library_names_spec='${libname}${release}.a $libname.a'
14777 soname_spec='${libname}${release}${shared_ext}$major'
14779 shlibpath_var=LIBPATH
14784 library_names_spec='$libname.ixlibrary $libname.a'
14785 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14786 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'
14790 library_names_spec='${libname}${shared_ext}'
14791 dynamic_linker="$host_os ld.so"
14792 shlibpath_var=LIBRARY_PATH
14798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14799 soname_spec='${libname}${release}${shared_ext}$major'
14800 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14801 shlibpath_var=LD_LIBRARY_PATH
14802 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14803 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14804 # the default ld.so.conf also contains /usr/contrib/lib and
14805 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14806 # libtool to hard-code these into programs
14809 cygwin* | mingw* | pw32*)
14810 version_type=windows
14815 case $GCC,$host_os in
14816 yes,cygwin* | yes,mingw* | yes,pw32*)
14817 library_names_spec='$libname.dll.a'
14818 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14819 postinstall_cmds='base_file=`basename \${file}`~
14820 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14821 dldir=$destdir/`dirname \$dlpath`~
14822 test -d \$dldir || mkdir -p \$dldir~
14823 $install_prog $dir/$dlname \$dldir/$dlname~
14824 chmod a+x \$dldir/$dlname'
14825 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14826 dlpath=$dir/\$dldll~
14828 shlibpath_overrides_runpath=yes
14832 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14833 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14834 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14837 # MinGW DLLs use traditional 'lib' prefix
14838 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14839 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14840 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14841 # It is most probably a Windows format PATH printed by
14842 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14843 # path with ; separators, and with drive letters. We can handle the
14844 # drive letters (cygwin fileutils understands them), so leave them,
14845 # especially as we might pass files found there to a mingw objdump,
14846 # which wouldn't understand a cygwinified path. Ahh.
14847 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14849 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14853 # pw32 DLLs use 'pw' prefix rather than 'lib'
14854 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14860 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14863 dynamic_linker='Win32 ld.exe'
14864 # FIXME: first we should search . and the directory the executable is in
14868 darwin* | rhapsody*)
14869 dynamic_linker="$host_os dyld"
14870 version_type=darwin
14873 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14874 soname_spec='${libname}${release}${major}$shared_ext'
14875 shlibpath_overrides_runpath=yes
14876 shlibpath_var=DYLD_LIBRARY_PATH
14877 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14878 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14879 if test "$GCC" = yes; then
14880 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"`
14882 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14884 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14892 soname_spec='${libname}${release}${shared_ext}$major'
14893 shlibpath_var=LD_LIBRARY_PATH
14904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14905 soname_spec='${libname}${release}${shared_ext}$major'
14906 shlibpath_var=LD_LIBRARY_PATH
14907 shlibpath_overrides_runpath=no
14908 hardcode_into_libs=yes
14909 dynamic_linker='GNU ld.so'
14912 freebsd* | dragonfly*)
14913 # DragonFly does not have aout. When/if they implement a new
14914 # versioning mechanism, adjust this.
14915 if test -x /usr/bin/objformat; then
14916 objformat=`/usr/bin/objformat`
14919 freebsd[123]*) objformat=aout ;;
14920 *) objformat=elf ;;
14923 version_type=freebsd-$objformat
14924 case $version_type in
14926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14931 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14935 shlibpath_var=LD_LIBRARY_PATH
14938 shlibpath_overrides_runpath=yes
14940 freebsd3.[01]* | freebsdelf3.[01]*)
14941 shlibpath_overrides_runpath=yes
14942 hardcode_into_libs=yes
14944 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14945 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14946 shlibpath_overrides_runpath=no
14947 hardcode_into_libs=yes
14949 freebsd*) # from 4.6 on
14950 shlibpath_overrides_runpath=yes
14951 hardcode_into_libs=yes
14960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14961 soname_spec='${libname}${release}${shared_ext}$major'
14962 shlibpath_var=LD_LIBRARY_PATH
14963 hardcode_into_libs=yes
14966 hpux9* | hpux10* | hpux11*)
14967 # Give a soname corresponding to the major version so that dld.sl refuses to
14968 # link against other versions.
14975 hardcode_into_libs=yes
14976 dynamic_linker="$host_os dld.so"
14977 shlibpath_var=LD_LIBRARY_PATH
14978 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14980 soname_spec='${libname}${release}${shared_ext}$major'
14981 if test "X$HPUX_IA64_MODE" = X32; then
14982 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14984 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14986 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14990 hardcode_into_libs=yes
14991 dynamic_linker="$host_os dld.sl"
14992 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14993 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14995 soname_spec='${libname}${release}${shared_ext}$major'
14996 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14997 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15001 dynamic_linker="$host_os dld.sl"
15002 shlibpath_var=SHLIB_PATH
15003 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15005 soname_spec='${libname}${release}${shared_ext}$major'
15008 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15009 postinstall_cmds='chmod 555 $lib'
15016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15017 soname_spec='${libname}${release}${shared_ext}$major'
15018 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15019 shlibpath_var=LD_LIBRARY_PATH
15020 shlibpath_overrides_runpath=no
15021 hardcode_into_libs=yes
15024 irix5* | irix6* | nonstopux*)
15026 nonstopux*) version_type=nonstopux ;;
15028 if test "$lt_cv_prog_gnu_ld" = yes; then
15036 soname_spec='${libname}${release}${shared_ext}$major'
15037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15039 irix5* | nonstopux*)
15040 libsuff= shlibsuff=
15043 case $LD in # libtool.m4 will add one of these switches to LD
15044 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15045 libsuff= shlibsuff= libmagic=32-bit;;
15046 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15047 libsuff=32 shlibsuff=N32 libmagic=N32;;
15048 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15049 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15050 *) libsuff= shlibsuff= libmagic=never-match;;
15054 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15055 shlibpath_overrides_runpath=no
15056 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15057 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15058 hardcode_into_libs=yes
15061 # No shared lib support for Linux oldld, aout, or coff.
15062 linux*oldld* | linux*aout* | linux*coff*)
15066 # This must be Linux ELF.
15071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15072 soname_spec='${libname}${release}${shared_ext}$major'
15073 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15074 shlibpath_var=LD_LIBRARY_PATH
15075 shlibpath_overrides_runpath=no
15076 # This implies no fast_install, which is unacceptable.
15077 # Some rework will be needed to allow for fast_install
15078 # before this can be enabled.
15079 hardcode_into_libs=yes
15081 # find out which ABI we are using
15083 case "$host_cpu" in
15084 x86_64*|s390x*|powerpc64*)
15085 echo '#line 15085 "configure"' > conftest.$ac_ext
15086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15087 (eval $ac_compile) 2>&5
15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 (exit $ac_status); }; then
15091 case `/usr/bin/file conftest.$ac_objext` in
15094 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15102 # Append ld.so.conf contents to the search path
15103 if test -f /etc/ld.so.conf; then
15104 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15105 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15108 # We used to test for /lib/ld.so.1 and disable shared libraries on
15109 # powerpc, because MkLinux only supported shared libraries with the
15110 # GNU dynamic linker. Since this was broken with cross compilers,
15111 # most powerpc-linux boxes support dynamic linking these days and
15112 # people can always --disable-shared, the test was removed, and we
15113 # assume the GNU/Linux dynamic linker is in use.
15114 dynamic_linker='GNU/Linux ld.so'
15121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15122 soname_spec='${libname}${release}${shared_ext}$major'
15123 shlibpath_var=LD_LIBRARY_PATH
15124 shlibpath_overrides_runpath=no
15125 hardcode_into_libs=yes
15126 dynamic_linker='GNU ld.so'
15133 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15135 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15136 dynamic_linker='NetBSD (a.out) ld.so'
15138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15139 soname_spec='${libname}${release}${shared_ext}$major'
15140 dynamic_linker='NetBSD ld.elf_so'
15142 shlibpath_var=LD_LIBRARY_PATH
15143 shlibpath_overrides_runpath=yes
15144 hardcode_into_libs=yes
15149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15150 shlibpath_var=LD_LIBRARY_PATH
15151 shlibpath_overrides_runpath=yes
15158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15159 soname_spec='${libname}${release}${shared_ext}$major'
15160 shlibpath_var=LD_LIBRARY_PATH
15161 shlibpath_overrides_runpath=yes
15166 sys_lib_dlsearch_path_spec="/usr/lib"
15168 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15170 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15171 *) need_version=no ;;
15173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15174 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15175 shlibpath_var=LD_LIBRARY_PATH
15176 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15178 openbsd2.[89] | openbsd2.[89].*)
15179 shlibpath_overrides_runpath=no
15182 shlibpath_overrides_runpath=yes
15186 shlibpath_overrides_runpath=yes
15191 libname_spec='$name'
15194 library_names_spec='$libname${shared_ext} $libname.a'
15195 dynamic_linker='OS/2 ld.exe'
15196 shlibpath_var=LIBPATH
15199 osf3* | osf4* | osf5*)
15203 soname_spec='${libname}${release}${shared_ext}$major'
15204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15205 shlibpath_var=LD_LIBRARY_PATH
15206 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15207 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15215 soname_spec='${libname}${release}${shared_ext}$major'
15216 shlibpath_var=LD_LIBRARY_PATH
15217 shlibpath_overrides_runpath=yes
15218 hardcode_into_libs=yes
15219 # ldd complains unless libraries are executable
15220 postinstall_cmds='chmod +x $lib'
15225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15226 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15227 shlibpath_var=LD_LIBRARY_PATH
15228 shlibpath_overrides_runpath=yes
15229 if test "$with_gnu_ld" = yes; then
15237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15238 soname_spec='${libname}${release}${shared_ext}$major'
15239 shlibpath_var=LD_LIBRARY_PATH
15240 case $host_vendor in
15242 shlibpath_overrides_runpath=no
15244 export_dynamic_flag_spec='${wl}-Blargedynsym'
15245 runpath_var=LD_RUN_PATH
15253 shlibpath_overrides_runpath=no
15254 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15260 if test -d /usr/nec ;then
15262 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15263 soname_spec='$libname${shared_ext}.$major'
15264 shlibpath_var=LD_LIBRARY_PATH
15268 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15269 version_type=freebsd-elf
15272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15273 soname_spec='${libname}${release}${shared_ext}$major'
15274 shlibpath_var=LD_LIBRARY_PATH
15275 hardcode_into_libs=yes
15276 if test "$with_gnu_ld" = yes; then
15277 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15278 shlibpath_overrides_runpath=no
15280 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15281 shlibpath_overrides_runpath=yes
15284 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15288 sys_lib_dlsearch_path_spec='/usr/lib'
15293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15294 soname_spec='${libname}${release}${shared_ext}$major'
15295 shlibpath_var=LD_LIBRARY_PATH
15302 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15303 echo "${ECHO_T}$dynamic_linker" >&6
15304 test "$dynamic_linker" = no && can_build_shared=no
15306 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15307 if test "$GCC" = yes; then
15308 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15311 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15312 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15313 hardcode_action_F77=
15314 if test -n "$hardcode_libdir_flag_spec_F77" || \
15315 test -n "$runpath_var_F77" || \
15316 test "X$hardcode_automatic_F77" = "Xyes" ; then
15318 # We can hardcode non-existant directories.
15319 if test "$hardcode_direct_F77" != no &&
15320 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15321 # have to relink, otherwise we might link with an installed library
15322 # when we should be linking with a yet-to-be-installed one
15323 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15324 test "$hardcode_minus_L_F77" != no; then
15325 # Linking always hardcodes the temporary library directory.
15326 hardcode_action_F77=relink
15328 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15329 hardcode_action_F77=immediate
15332 # We cannot hardcode anything, or else we can only hardcode existing
15334 hardcode_action_F77=unsupported
15336 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15337 echo "${ECHO_T}$hardcode_action_F77" >&6
15339 if test "$hardcode_action_F77" = relink; then
15340 # Fast installation is not supported
15341 enable_fast_install=no
15342 elif test "$shlibpath_overrides_runpath" = yes ||
15343 test "$enable_shared" = no; then
15344 # Fast installation is not necessary
15345 enable_fast_install=needless
15349 # The else clause should only fire when bootstrapping the
15350 # libtool distribution, otherwise you forgot to ship ltmain.sh
15351 # with your package, and you will get complaints that there are
15352 # no rules to generate ltmain.sh.
15353 if test -f "$ltmain"; then
15354 # See if we are running on zsh, and set the options which allow our commands through
15355 # without removal of \ escapes.
15356 if test -n "${ZSH_VERSION+set}" ; then
15357 setopt NO_GLOB_SUBST
15359 # Now quote all the things that may contain metacharacters while being
15360 # careful not to overquote the AC_SUBSTed values. We take copies of the
15361 # variables and quote the copies for generation of the libtool script.
15362 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15364 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15365 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15366 deplibs_check_method reload_flag reload_cmds need_locks \
15367 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15368 lt_cv_sys_global_symbol_to_c_name_address \
15369 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15370 old_postinstall_cmds old_postuninstall_cmds \
15374 lt_prog_compiler_wl_F77 \
15375 lt_prog_compiler_pic_F77 \
15376 lt_prog_compiler_static_F77 \
15377 lt_prog_compiler_no_builtin_flag_F77 \
15378 export_dynamic_flag_spec_F77 \
15379 thread_safe_flag_spec_F77 \
15380 whole_archive_flag_spec_F77 \
15381 enable_shared_with_static_runtimes_F77 \
15382 old_archive_cmds_F77 \
15383 old_archive_from_new_cmds_F77 \
15384 predep_objects_F77 \
15385 postdep_objects_F77 \
15388 compiler_lib_search_path_F77 \
15390 archive_expsym_cmds_F77 \
15391 postinstall_cmds_F77 \
15392 postuninstall_cmds_F77 \
15393 old_archive_from_expsyms_cmds_F77 \
15394 allow_undefined_flag_F77 \
15395 no_undefined_flag_F77 \
15396 export_symbols_cmds_F77 \
15397 hardcode_libdir_flag_spec_F77 \
15398 hardcode_libdir_flag_spec_ld_F77 \
15399 hardcode_libdir_separator_F77 \
15400 hardcode_automatic_F77 \
15402 module_expsym_cmds_F77 \
15403 lt_cv_prog_compiler_c_o_F77 \
15404 exclude_expsyms_F77 \
15405 include_expsyms_F77; do
15408 old_archive_cmds_F77 | \
15409 old_archive_from_new_cmds_F77 | \
15410 archive_cmds_F77 | \
15411 archive_expsym_cmds_F77 | \
15412 module_cmds_F77 | \
15413 module_expsym_cmds_F77 | \
15414 old_archive_from_expsyms_cmds_F77 | \
15415 export_symbols_cmds_F77 | \
15416 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15417 postinstall_cmds | postuninstall_cmds | \
15418 old_postinstall_cmds | old_postuninstall_cmds | \
15419 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15420 # Double-quote double-evaled strings.
15421 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15424 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15430 *'\$0 --fallback-echo"')
15431 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15437 cat <<__EOF__ >> "$cfgfile"
15438 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15440 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15442 # Shell to use when invoking shell scripts.
15445 # Whether or not to build shared libraries.
15446 build_libtool_libs=$enable_shared
15448 # Whether or not to build static libraries.
15449 build_old_libs=$enable_static
15451 # Whether or not to add -lc for building shared libraries.
15452 build_libtool_need_lc=$archive_cmds_need_lc_F77
15454 # Whether or not to disallow shared libs when runtime libs are static
15455 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15457 # Whether or not to optimize for fast installation.
15458 fast_install=$enable_fast_install
15461 host_alias=$host_alias
15465 # The build system.
15466 build_alias=$build_alias
15470 # An echo program that does not interpret backslashes.
15475 AR_FLAGS=$lt_AR_FLAGS
15480 # LTCC compiler flags.
15481 LTCFLAGS=$lt_LTCFLAGS
15483 # A language-specific compiler.
15484 CC=$lt_compiler_F77
15486 # Is the compiler the GNU C compiler?
15489 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
15490 gcc_ver=\`gcc -dumpversion\`
15495 # The linker used to build libraries.
15498 # Whether we need hard or soft links.
15501 # A BSD-compatible nm program.
15504 # A symbol stripping program
15507 # Used to examine libraries when file_magic_cmd begins "file"
15508 MAGIC_CMD=$MAGIC_CMD
15510 # Used on cygwin: DLL creation program.
15513 # Used on cygwin: object dumper.
15516 # Used on cygwin: assembler.
15519 # The name of the directory that contains temporary libtool files.
15522 # How to create reloadable object files.
15523 reload_flag=$lt_reload_flag
15524 reload_cmds=$lt_reload_cmds
15526 # How to pass a linker flag through the compiler.
15527 wl=$lt_lt_prog_compiler_wl_F77
15529 # Object file suffix (normally "o").
15530 objext="$ac_objext"
15532 # Old archive suffix (normally "a").
15535 # Shared library suffix (normally ".so").
15536 shrext_cmds='$shrext_cmds'
15538 # Executable file suffix (normally "").
15541 # Additional compiler flags for building library objects.
15542 pic_flag=$lt_lt_prog_compiler_pic_F77
15545 # What is the maximum length of a command?
15546 max_cmd_len=$lt_cv_sys_max_cmd_len
15548 # Does compiler simultaneously support -c and -o options?
15549 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15551 # Must we lock files when doing compilation?
15552 need_locks=$lt_need_locks
15554 # Do we need the lib prefix for modules?
15555 need_lib_prefix=$need_lib_prefix
15557 # Do we need a version for libraries?
15558 need_version=$need_version
15560 # Whether dlopen is supported.
15561 dlopen_support=$enable_dlopen
15563 # Whether dlopen of programs is supported.
15564 dlopen_self=$enable_dlopen_self
15566 # Whether dlopen of statically linked programs is supported.
15567 dlopen_self_static=$enable_dlopen_self_static
15569 # Compiler flag to prevent dynamic linking.
15570 link_static_flag=$lt_lt_prog_compiler_static_F77
15572 # Compiler flag to turn off builtin functions.
15573 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15575 # Compiler flag to allow reflexive dlopens.
15576 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15578 # Compiler flag to generate shared objects directly from archives.
15579 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15581 # Compiler flag to generate thread-safe objects.
15582 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15584 # Library versioning type.
15585 version_type=$version_type
15587 # Format of library name prefix.
15588 libname_spec=$lt_libname_spec
15590 # List of archive names. First name is the real one, the rest are links.
15591 # The last name is the one that the linker finds with -lNAME.
15592 library_names_spec=$lt_library_names_spec
15594 # The coded name of the library, if different from the real name.
15595 soname_spec=$lt_soname_spec
15597 # Commands used to build and install an old-style archive.
15599 old_archive_cmds=$lt_old_archive_cmds_F77
15600 old_postinstall_cmds=$lt_old_postinstall_cmds
15601 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15603 # Create an old-style archive from a shared archive.
15604 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15606 # Create a temporary old-style archive to link instead of a shared archive.
15607 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15609 # Commands used to build and install a shared archive.
15610 archive_cmds=$lt_archive_cmds_F77
15611 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15612 postinstall_cmds=$lt_postinstall_cmds
15613 postuninstall_cmds=$lt_postuninstall_cmds
15615 # Commands used to build a loadable module (assumed same as above if empty)
15616 module_cmds=$lt_module_cmds_F77
15617 module_expsym_cmds=$lt_module_expsym_cmds_F77
15619 # Commands to strip libraries.
15620 old_striplib=$lt_old_striplib
15621 striplib=$lt_striplib
15623 # Dependencies to place before the objects being linked to create a
15625 predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15627 # Dependencies to place after the objects being linked to create a
15629 postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15631 # Dependencies to place before the objects being linked to create a
15633 predeps=$lt_predeps_F77
15635 # Dependencies to place after the objects being linked to create a
15637 postdeps=$lt_postdeps_F77
15639 # The library search path used internally by the compiler when linking
15640 # a shared library.
15641 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15643 # Method to check whether dependent libraries are shared objects.
15644 deplibs_check_method=$lt_deplibs_check_method
15646 # Command to use when deplibs_check_method == file_magic.
15647 file_magic_cmd=$lt_file_magic_cmd
15649 # Flag that allows shared libraries with undefined symbols to be built.
15650 allow_undefined_flag=$lt_allow_undefined_flag_F77
15652 # Flag that forces no undefined symbols.
15653 no_undefined_flag=$lt_no_undefined_flag_F77
15655 # Commands used to finish a libtool library installation in a directory.
15656 finish_cmds=$lt_finish_cmds
15658 # Same as above, but a single script fragment to be evaled but not shown.
15659 finish_eval=$lt_finish_eval
15661 # Take the output of nm and produce a listing of raw symbols and C names.
15662 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15664 # Transform the output of nm in a proper C declaration
15665 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15667 # Transform the output of nm in a C name address pair
15668 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15670 # This is the shared library runtime path variable.
15671 runpath_var=$runpath_var
15673 # This is the shared library path variable.
15674 shlibpath_var=$shlibpath_var
15676 # Is shlibpath searched before the hard-coded library search path?
15677 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15679 # How to hardcode a shared library path into an executable.
15680 hardcode_action=$hardcode_action_F77
15682 # Whether we should hardcode library paths into libraries.
15683 hardcode_into_libs=$hardcode_into_libs
15685 # Flag to hardcode \$libdir into a binary during linking.
15686 # This must work even if \$libdir does not exist.
15687 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15689 # If ld is used when linking, flag to hardcode \$libdir into
15690 # a binary during linking. This must work even if \$libdir does
15692 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15694 # Whether we need a single -rpath flag with a separated argument.
15695 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15697 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15698 # resulting binary.
15699 hardcode_direct=$hardcode_direct_F77
15701 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15702 # resulting binary.
15703 hardcode_minus_L=$hardcode_minus_L_F77
15705 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15706 # the resulting binary.
15707 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15709 # Set to yes if building a shared library automatically hardcodes DIR into the library
15710 # and all subsequent libraries and executables linked against it.
15711 hardcode_automatic=$hardcode_automatic_F77
15713 # Variables whose values should be saved in libtool wrapper scripts and
15714 # restored at relink time.
15715 variables_saved_for_relink="$variables_saved_for_relink"
15717 # Whether libtool must link a program against all its dependency libraries.
15718 link_all_deplibs=$link_all_deplibs_F77
15720 # Compile-time system search path for libraries
15721 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15723 # Run-time system search path for libraries
15724 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15726 # Fix the shell variable \$srcfile for the compiler.
15727 fix_srcfile_path="$fix_srcfile_path_F77"
15729 # Set to yes if exported symbols are required.
15730 always_export_symbols=$always_export_symbols_F77
15732 # The commands to list exported symbols.
15733 export_symbols_cmds=$lt_export_symbols_cmds_F77
15735 # The commands to extract the exported symbol list from a shared archive.
15736 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15738 # Symbols that should not be listed in the preloaded symbols.
15739 exclude_expsyms=$lt_exclude_expsyms_F77
15741 # Symbols that must always be exported.
15742 include_expsyms=$lt_include_expsyms_F77
15744 # ### END LIBTOOL TAG CONFIG: $tagname
15750 # If there is no Makefile yet, we rely on a make rule to execute
15751 # `config.status --recheck' to rerun these tests and create the
15752 # libtool script then.
15753 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15754 if test -f "$ltmain_in"; then
15755 test -f Makefile && make "$ltmain"
15761 ac_cpp='$CPP $CPPFLAGS'
15762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15774 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15778 # Source file extension for Java test sources.
15781 # Object file extension for compiled Java test sources.
15785 # Code to be used in simple compile tests
15786 lt_simple_compile_test_code="class foo {}\n"
15788 # Code to be used in simple link tests
15789 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15791 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15793 # If no C compiler was specified, use CC.
15796 # If no C compiler flags were specified, use CFLAGS.
15797 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15799 # Allow CC to be a program name with arguments.
15803 # save warnings/boilerplate of simple test code
15804 ac_outfile=conftest.$ac_objext
15805 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15806 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15807 _lt_compiler_boilerplate=`cat conftest.err`
15810 ac_outfile=conftest.$ac_objext
15811 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15812 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15813 _lt_linker_boilerplate=`cat conftest.err`
15817 # Allow CC to be a program name with arguments.
15822 for cc_temp in $compiler""; do
15824 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15825 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15830 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15833 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15834 archive_cmds_need_lc_GCJ=no
15836 old_archive_cmds_GCJ=$old_archive_cmds
15839 lt_prog_compiler_no_builtin_flag_GCJ=
15841 if test "$GCC" = yes; then
15842 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15845 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15846 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15847 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15848 echo $ECHO_N "(cached) $ECHO_C" >&6
15850 lt_cv_prog_compiler_rtti_exceptions=no
15851 ac_outfile=conftest.$ac_objext
15852 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15853 lt_compiler_flag="-fno-rtti -fno-exceptions"
15854 # Insert the option either (1) after the last *FLAGS variable, or
15855 # (2) before a word containing "conftest.", or (3) at the end.
15856 # Note that $ac_compile itself does not contain backslashes and begins
15857 # with a dollar sign (not a hyphen), so the echo should work correctly.
15858 # The option is referenced via a variable to avoid confusing sed.
15859 lt_compile=`echo "$ac_compile" | $SED \
15860 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15861 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15862 -e 's:$: $lt_compiler_flag:'`
15863 (eval echo "\"\$as_me:15863: $lt_compile\"" >&5)
15864 (eval "$lt_compile" 2>conftest.err)
15866 cat conftest.err >&5
15867 echo "$as_me:15867: \$? = $ac_status" >&5
15868 if (exit $ac_status) && test -s "$ac_outfile"; then
15869 # The compiler can only warn and ignore the option if not recognized
15870 # So say no if there are warnings other than the usual output.
15871 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15872 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15873 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15874 lt_cv_prog_compiler_rtti_exceptions=yes
15880 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15881 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15883 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15884 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15891 lt_prog_compiler_wl_GCJ=
15892 lt_prog_compiler_pic_GCJ=
15893 lt_prog_compiler_static_GCJ=
15895 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15896 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15898 if test "$GCC" = yes; then
15899 lt_prog_compiler_wl_GCJ='-Wl,'
15900 lt_prog_compiler_static_GCJ='-static'
15904 # All AIX code is PIC.
15905 if test "$host_cpu" = ia64; then
15906 # AIX 5 now supports IA64 processor
15907 lt_prog_compiler_static_GCJ='-Bstatic'
15912 # FIXME: we need at least 68020 code to build shared libraries, but
15913 # adding the `-m68020' flag to GCC prevents building anything better,
15915 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15918 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15919 # PIC is the default for these OSes.
15922 mingw* | pw32* | os2*)
15923 # This hack is so that the source file can tell whether it is being
15924 # built for inclusion in a dll (and should export symbols for example).
15925 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15928 darwin* | rhapsody*)
15929 # PIC is the default on this platform
15930 # Common symbols not allowed in MH_DYLIB files
15931 lt_prog_compiler_pic_GCJ='-fno-common'
15935 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15936 # Instead, we relocate shared libraries at runtime.
15940 # Just because we use GCC doesn't mean we suddenly get shared libraries
15941 # on systems that don't support them.
15942 lt_prog_compiler_can_build_shared_GCJ=no
15947 if test -d /usr/nec; then
15948 lt_prog_compiler_pic_GCJ=-Kconform_pic
15953 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15954 # not for PA HP-UX.
15960 lt_prog_compiler_pic_GCJ='-fPIC'
15966 lt_prog_compiler_pic_GCJ='-fPIC'
15970 # PORTME Check for flag to pass linker flags through the system compiler.
15973 lt_prog_compiler_wl_GCJ='-Wl,'
15974 if test "$host_cpu" = ia64; then
15975 # AIX 5 now supports IA64 processor
15976 lt_prog_compiler_static_GCJ='-Bstatic'
15978 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15982 # PIC is the default on this platform
15983 # Common symbols not allowed in MH_DYLIB files
15984 case $cc_basename in
15986 lt_prog_compiler_pic_GCJ='-qnocommon'
15987 lt_prog_compiler_wl_GCJ='-Wl,'
15992 mingw* | pw32* | os2*)
15993 # This hack is so that the source file can tell whether it is being
15994 # built for inclusion in a dll (and should export symbols for example).
15995 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15998 hpux9* | hpux10* | hpux11*)
15999 lt_prog_compiler_wl_GCJ='-Wl,'
16000 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16001 # not for PA HP-UX.
16007 lt_prog_compiler_pic_GCJ='+Z'
16010 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16011 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16014 irix5* | irix6* | nonstopux*)
16015 lt_prog_compiler_wl_GCJ='-Wl,'
16016 # PIC (with -KPIC) is the default.
16017 lt_prog_compiler_static_GCJ='-non_shared'
16021 lt_prog_compiler_pic_GCJ='-KPIC'
16022 lt_prog_compiler_static_GCJ='-Bstatic'
16026 case $cc_basename in
16028 lt_prog_compiler_wl_GCJ='-Wl,'
16029 lt_prog_compiler_pic_GCJ='-KPIC'
16030 lt_prog_compiler_static_GCJ='-static'
16032 pgcc* | pgf77* | pgf90* | pgf95*)
16033 # Portland Group compilers (*not* the Pentium gcc compiler,
16034 # which looks to be a dead project)
16035 lt_prog_compiler_wl_GCJ='-Wl,'
16036 lt_prog_compiler_pic_GCJ='-fpic'
16037 lt_prog_compiler_static_GCJ='-Bstatic'
16040 lt_prog_compiler_wl_GCJ='-Wl,'
16041 # All Alpha code is PIC.
16042 lt_prog_compiler_static_GCJ='-non_shared'
16047 osf3* | osf4* | osf5*)
16048 lt_prog_compiler_wl_GCJ='-Wl,'
16049 # All OSF/1 code is PIC.
16050 lt_prog_compiler_static_GCJ='-non_shared'
16054 lt_prog_compiler_pic_GCJ='-KPIC'
16055 lt_prog_compiler_static_GCJ='-Bstatic'
16056 case $cc_basename in
16057 f77* | f90* | f95*)
16058 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16060 lt_prog_compiler_wl_GCJ='-Wl,';;
16065 lt_prog_compiler_wl_GCJ='-Qoption ld '
16066 lt_prog_compiler_pic_GCJ='-PIC'
16067 lt_prog_compiler_static_GCJ='-Bstatic'
16070 sysv4 | sysv4.2uw2* | sysv4.3*)
16071 lt_prog_compiler_wl_GCJ='-Wl,'
16072 lt_prog_compiler_pic_GCJ='-KPIC'
16073 lt_prog_compiler_static_GCJ='-Bstatic'
16077 if test -d /usr/nec ;then
16078 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16079 lt_prog_compiler_static_GCJ='-Bstatic'
16083 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16084 lt_prog_compiler_wl_GCJ='-Wl,'
16085 lt_prog_compiler_pic_GCJ='-KPIC'
16086 lt_prog_compiler_static_GCJ='-Bstatic'
16090 lt_prog_compiler_wl_GCJ='-Wl,'
16091 lt_prog_compiler_can_build_shared_GCJ=no
16095 lt_prog_compiler_pic_GCJ='-pic'
16096 lt_prog_compiler_static_GCJ='-Bstatic'
16100 lt_prog_compiler_can_build_shared_GCJ=no
16105 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16106 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16109 # Check to make sure the PIC flag actually works.
16111 if test -n "$lt_prog_compiler_pic_GCJ"; then
16113 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16114 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16115 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16116 echo $ECHO_N "(cached) $ECHO_C" >&6
16118 lt_prog_compiler_pic_works_GCJ=no
16119 ac_outfile=conftest.$ac_objext
16120 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16121 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16122 # Insert the option either (1) after the last *FLAGS variable, or
16123 # (2) before a word containing "conftest.", or (3) at the end.
16124 # Note that $ac_compile itself does not contain backslashes and begins
16125 # with a dollar sign (not a hyphen), so the echo should work correctly.
16126 # The option is referenced via a variable to avoid confusing sed.
16127 lt_compile=`echo "$ac_compile" | $SED \
16128 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16129 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16130 -e 's:$: $lt_compiler_flag:'`
16131 (eval echo "\"\$as_me:16131: $lt_compile\"" >&5)
16132 (eval "$lt_compile" 2>conftest.err)
16134 cat conftest.err >&5
16135 echo "$as_me:16135: \$? = $ac_status" >&5
16136 if (exit $ac_status) && test -s "$ac_outfile"; then
16137 # The compiler can only warn and ignore the option if not recognized
16138 # So say no if there are warnings other than the usual output.
16139 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16140 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16141 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16142 lt_prog_compiler_pic_works_GCJ=yes
16148 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16149 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16151 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16152 case $lt_prog_compiler_pic_GCJ in
16154 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16157 lt_prog_compiler_pic_GCJ=
16158 lt_prog_compiler_can_build_shared_GCJ=no
16163 # For platforms which do not support PIC, -DPIC is meaningless:
16165 lt_prog_compiler_pic_GCJ=
16168 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16173 # Check to make sure the static flag actually works.
16175 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16176 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16177 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16178 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16179 echo $ECHO_N "(cached) $ECHO_C" >&6
16181 lt_prog_compiler_static_works_GCJ=no
16182 save_LDFLAGS="$LDFLAGS"
16183 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16184 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16185 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16186 # The linker can only warn and ignore the option if not recognized
16187 # So say no if there are warnings
16188 if test -s conftest.err; then
16189 # Append any errors to the config.log.
16190 cat conftest.err 1>&5
16191 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16192 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16193 if diff conftest.exp conftest.er2 >/dev/null; then
16194 lt_prog_compiler_static_works_GCJ=yes
16197 lt_prog_compiler_static_works_GCJ=yes
16201 LDFLAGS="$save_LDFLAGS"
16204 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16205 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16207 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16210 lt_prog_compiler_static_GCJ=
16214 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16215 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16216 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16217 echo $ECHO_N "(cached) $ECHO_C" >&6
16219 lt_cv_prog_compiler_c_o_GCJ=no
16220 $rm -r conftest 2>/dev/null
16224 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16226 lt_compiler_flag="-o out/conftest2.$ac_objext"
16227 # Insert the option either (1) after the last *FLAGS variable, or
16228 # (2) before a word containing "conftest.", or (3) at the end.
16229 # Note that $ac_compile itself does not contain backslashes and begins
16230 # with a dollar sign (not a hyphen), so the echo should work correctly.
16231 lt_compile=`echo "$ac_compile" | $SED \
16232 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16233 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16234 -e 's:$: $lt_compiler_flag:'`
16235 (eval echo "\"\$as_me:16235: $lt_compile\"" >&5)
16236 (eval "$lt_compile" 2>out/conftest.err)
16238 cat out/conftest.err >&5
16239 echo "$as_me:16239: \$? = $ac_status" >&5
16240 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16242 # The compiler can only warn and ignore the option if not recognized
16243 # So say no if there are warnings
16244 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16245 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16246 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16247 lt_cv_prog_compiler_c_o_GCJ=yes
16252 # SGI C++ compiler will create directory out/ii_files/ for
16253 # template instantiation
16254 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16255 $rm out/* && rmdir out
16261 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16262 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16265 hard_links="nottested"
16266 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16267 # do not overwrite the value of need_locks provided by the user
16268 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16269 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16272 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16274 ln conftest.a conftest.b 2>&5 || hard_links=no
16275 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16276 echo "$as_me:$LINENO: result: $hard_links" >&5
16277 echo "${ECHO_T}$hard_links" >&6
16278 if test "$hard_links" = no; then
16279 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16280 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16287 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16288 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16291 allow_undefined_flag_GCJ=
16292 enable_shared_with_static_runtimes_GCJ=no
16294 archive_expsym_cmds_GCJ=
16295 old_archive_From_new_cmds_GCJ=
16296 old_archive_from_expsyms_cmds_GCJ=
16297 export_dynamic_flag_spec_GCJ=
16298 whole_archive_flag_spec_GCJ=
16299 thread_safe_flag_spec_GCJ=
16300 hardcode_libdir_flag_spec_GCJ=
16301 hardcode_libdir_flag_spec_ld_GCJ=
16302 hardcode_libdir_separator_GCJ=
16303 hardcode_direct_GCJ=no
16304 hardcode_minus_L_GCJ=no
16305 hardcode_shlibpath_var_GCJ=unsupported
16306 link_all_deplibs_GCJ=unknown
16307 hardcode_automatic_GCJ=no
16309 module_expsym_cmds_GCJ=
16310 always_export_symbols_GCJ=no
16311 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16312 # include_expsyms should be a list of space-separated symbols to be *always*
16313 # included in the symbol list
16314 include_expsyms_GCJ=
16315 # exclude_expsyms can be an extended regexp of symbols to exclude
16316 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16317 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16318 # as well as any symbol that contains `d'.
16319 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16320 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16321 # platforms (ab)use it in PIC code, but their linkers get confused if
16322 # the symbol is explicitly referenced. Since portable code cannot
16323 # rely on this symbol name, it's probably fine to never include it in
16324 # preloaded symbol tables.
16325 extract_expsyms_cmds=
16326 # Just being paranoid about ensuring that cc_basename is set.
16327 for cc_temp in $compiler""; do
16329 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16330 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16335 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16338 cygwin* | mingw* | pw32*)
16339 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16340 # When not using gcc, we currently assume that we are using
16341 # Microsoft Visual C++.
16342 if test "$GCC" != yes; then
16347 # we just hope/assume this is gcc and not c89 (= MSVC++)
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}--enable-auto-image-base -Xlinker --out-implib -Xlinker $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}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16450 hardcode_direct_GCJ=no
16451 hardcode_shlibpath_var_GCJ=no
16452 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16453 export_dynamic_flag_spec_GCJ='${wl}-E'
16454 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16455 # Instead, shared libraries are loaded at an image base (0x10000000 by
16456 # default) and relocated if they conflict, which is a slow very memory
16457 # consuming and fragmenting process. To avoid this, we pick a random,
16458 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16459 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16460 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16461 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16465 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16467 case $cc_basename,$host_cpu in
16468 pgcc*) # Portland Group C compiler
16469 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'
16470 tmp_addflag=' $pic_flag'
16472 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16473 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'
16474 tmp_addflag=' $pic_flag -Mnomain' ;;
16475 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16476 tmp_addflag=' -i_dynamic' ;;
16477 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16478 tmp_addflag=' -i_dynamic -nofor_main' ;;
16479 ifc* | ifort*) # Intel Fortran compiler
16480 tmp_addflag=' -nofor_main' ;;
16482 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16484 if test $supports_anon_versioning = yes; then
16485 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16486 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16487 $echo "local: *; };" >> $output_objdir/$libname.ver~
16488 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16496 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16497 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16500 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16501 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16506 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16510 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16511 *** create shared libraries on Solaris systems. Therefore, libtool
16512 *** is disabling shared libraries support. We urge you to upgrade GNU
16513 *** binutils to release 2.9.1 or newer. Another option is to modify
16514 *** your PATH or compiler configuration so that the native linker is
16515 *** used, and then restart.
16518 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16519 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16520 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16526 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16527 case `$LD -v 2>&1` in
16528 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16532 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16533 *** reliably create shared libraries on SCO systems. Therefore, libtool
16534 *** is disabling shared libraries support. We urge you to upgrade GNU
16535 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16536 *** your PATH or compiler configuration so that the native linker is
16537 *** used, and then restart.
16542 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16543 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16544 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16545 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16554 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16556 hardcode_direct_GCJ=yes
16557 hardcode_shlibpath_var_GCJ=no
16561 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16562 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16563 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16570 if test "$ld_shlibs_GCJ" = no; then
16572 hardcode_libdir_flag_spec_GCJ=
16573 export_dynamic_flag_spec_GCJ=
16574 whole_archive_flag_spec_GCJ=
16577 # PORTME fill in a description of your system's linker (not GNU ld)
16580 allow_undefined_flag_GCJ=unsupported
16581 always_export_symbols_GCJ=yes
16582 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'
16583 # Note: this linker hardcodes the directories in LIBPATH if there
16584 # are no directories specified by -L.
16585 hardcode_minus_L_GCJ=yes
16586 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16587 # Neither direct hardcoding nor static linking is supported with a
16589 hardcode_direct_GCJ=unsupported
16594 if test "$host_cpu" = ia64; then
16595 # On IA64, the linker does run time linking by default, so we don't
16596 # have to do anything special.
16597 aix_use_runtimelinking=no
16598 exp_sym_flag='-Bexport'
16601 # If we're using GNU nm, then we don't want the "-C" option.
16602 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16603 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16604 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'
16606 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'
16608 aix_use_runtimelinking=no
16610 # Test if we are trying to use run time linking or normal
16611 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16612 # need to do runtime linking.
16613 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16614 for ld_flag in $LDFLAGS; do
16615 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16616 aix_use_runtimelinking=yes
16623 exp_sym_flag='-bexport'
16624 no_entry_flag='-bnoentry'
16627 # When large executables or shared objects are built, AIX ld can
16628 # have problems creating the table of contents. If linking a library
16629 # or program results in "error TOC overflow" add -mminimal-toc to
16630 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16631 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16633 archive_cmds_GCJ=''
16634 hardcode_direct_GCJ=yes
16635 hardcode_libdir_separator_GCJ=':'
16636 link_all_deplibs_GCJ=yes
16638 if test "$GCC" = yes; then
16639 case $host_os in aix4.[012]|aix4.[012].*)
16640 # We only want to do this on AIX 4.2 and lower, the check
16641 # below for broken collect2 doesn't work under 4.3+
16642 collect2name=`${CC} -print-prog-name=collect2`
16643 if test -f "$collect2name" && \
16644 strings "$collect2name" | grep resolve_lib_name >/dev/null
16646 # We have reworked collect2
16647 hardcode_direct_GCJ=yes
16649 # We have old collect2
16650 hardcode_direct_GCJ=unsupported
16651 # It fails to find uninstalled libraries when the uninstalled
16652 # path is not listed in the libpath. Setting hardcode_minus_L
16653 # to unsupported forces relinking
16654 hardcode_minus_L_GCJ=yes
16655 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16656 hardcode_libdir_separator_GCJ=
16660 shared_flag='-shared'
16661 if test "$aix_use_runtimelinking" = yes; then
16662 shared_flag="$shared_flag "'${wl}-G'
16666 if test "$host_cpu" = ia64; then
16667 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16668 # chokes on -Wl,-G. The following line is correct:
16671 if test "$aix_use_runtimelinking" = yes; then
16672 shared_flag='${wl}-G'
16674 shared_flag='${wl}-bM:SRE'
16679 # It seems that -bexpall does not export symbols beginning with
16680 # underscore (_), so it is better to generate a list of symbols to export.
16681 always_export_symbols_GCJ=yes
16682 if test "$aix_use_runtimelinking" = yes; then
16683 # Warning - without using the other runtime loading flags (-brtl),
16684 # -berok will link without error, but may produce a broken library.
16685 allow_undefined_flag_GCJ='-berok'
16686 # Determine the default libpath from the value encoded in an empty executable.
16687 cat >conftest.$ac_ext <<_ACEOF
16690 cat confdefs.h >>conftest.$ac_ext
16691 cat >>conftest.$ac_ext <<_ACEOF
16692 /* end confdefs.h. */
16702 rm -f conftest.$ac_objext conftest$ac_exeext
16703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16704 (eval $ac_link) 2>conftest.er1
16706 grep -v '^ *+' conftest.er1 >conftest.err
16708 cat conftest.err >&5
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); } &&
16711 { ac_try='test -z "$ac_c_werror_flag"
16712 || test ! -s conftest.err'
16713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16714 (eval $ac_try) 2>&5
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); }; } &&
16718 { ac_try='test -s conftest$ac_exeext'
16719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16720 (eval $ac_try) 2>&5
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); }; }; then
16725 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16727 # Check for a 64-bit object if we didn't find anything.
16728 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; }
16731 echo "$as_me: failed program was:" >&5
16732 sed 's/^/| /' conftest.$ac_ext >&5
16735 rm -f conftest.err conftest.$ac_objext \
16736 conftest$ac_exeext conftest.$ac_ext
16737 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16739 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16740 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16742 if test "$host_cpu" = ia64; then
16743 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16744 allow_undefined_flag_GCJ="-z nodefs"
16745 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16747 # Determine the default libpath from the value encoded in an empty executable.
16748 cat >conftest.$ac_ext <<_ACEOF
16751 cat confdefs.h >>conftest.$ac_ext
16752 cat >>conftest.$ac_ext <<_ACEOF
16753 /* end confdefs.h. */
16763 rm -f conftest.$ac_objext conftest$ac_exeext
16764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16765 (eval $ac_link) 2>conftest.er1
16767 grep -v '^ *+' conftest.er1 >conftest.err
16769 cat conftest.err >&5
16770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); } &&
16772 { ac_try='test -z "$ac_c_werror_flag"
16773 || test ! -s conftest.err'
16774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16775 (eval $ac_try) 2>&5
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); }; } &&
16779 { ac_try='test -s conftest$ac_exeext'
16780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16781 (eval $ac_try) 2>&5
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); }; }; then
16786 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16788 # Check for a 64-bit object if we didn't find anything.
16789 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; }
16792 echo "$as_me: failed program was:" >&5
16793 sed 's/^/| /' conftest.$ac_ext >&5
16796 rm -f conftest.err conftest.$ac_objext \
16797 conftest$ac_exeext conftest.$ac_ext
16798 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16800 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16801 # Warning - without using the other run time loading flags,
16802 # -berok will link without error, but may produce a broken library.
16803 no_undefined_flag_GCJ=' ${wl}-bernotok'
16804 allow_undefined_flag_GCJ=' ${wl}-berok'
16805 # Exported symbols can be pulled into shared objects from archives
16806 whole_archive_flag_spec_GCJ='$convenience'
16807 archive_cmds_need_lc_GCJ=yes
16808 # This is similar to how AIX traditionally builds its shared libraries.
16809 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16815 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)'
16816 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16817 hardcode_minus_L_GCJ=yes
16818 # see comment about different semantics on the GNU ld section
16823 export_dynamic_flag_spec_GCJ=-rdynamic
16826 cygwin* | mingw* | pw32*)
16827 # When not using gcc, we currently assume that we are using
16828 # Microsoft Visual C++.
16829 # hardcode_libdir_flag_spec is actually meaningless, as there is
16830 # no search path for DLLs.
16831 hardcode_libdir_flag_spec_GCJ=' '
16832 allow_undefined_flag_GCJ=unsupported
16833 # Tell ltmain to make .lib files, not .a files.
16835 # Tell ltmain to make .dll files, not .so files.
16837 # FIXME: Setting linknames here is a bad hack.
16838 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16839 # The linker will automatically build a .lib file if we build a DLL.
16840 old_archive_From_new_cmds_GCJ='true'
16841 # FIXME: Should let the user specify the lib program.
16842 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16843 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16844 enable_shared_with_static_runtimes_GCJ=yes
16847 darwin* | rhapsody*)
16849 rhapsody* | darwin1.[012])
16850 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16853 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16854 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16856 case ${MACOSX_DEPLOYMENT_TARGET} in
16858 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16861 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16867 archive_cmds_need_lc_GCJ=no
16868 hardcode_direct_GCJ=no
16869 hardcode_automatic_GCJ=yes
16870 hardcode_shlibpath_var_GCJ=unsupported
16871 whole_archive_flag_spec_GCJ=''
16872 link_all_deplibs_GCJ=yes
16873 if test "$GCC" = yes ; then
16874 output_verbose_link_cmd='echo'
16875 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16876 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16877 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16878 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}'
16879 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}'
16881 case $cc_basename in
16883 output_verbose_link_cmd='echo'
16884 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16885 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16886 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16887 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}'
16888 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}'
16898 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16899 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16900 hardcode_shlibpath_var_GCJ=no
16907 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16908 # support. Future versions do this automatically, but an explicit c++rt0.o
16909 # does not break anything, and helps significantly (at the cost of a little
16912 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16913 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16914 hardcode_direct_GCJ=yes
16915 hardcode_shlibpath_var_GCJ=no
16918 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16920 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16921 hardcode_direct_GCJ=yes
16922 hardcode_minus_L_GCJ=yes
16923 hardcode_shlibpath_var_GCJ=no
16926 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16927 freebsd* | kfreebsd*-gnu | dragonfly*)
16928 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16929 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16930 hardcode_direct_GCJ=yes
16931 hardcode_shlibpath_var_GCJ=no
16935 if test "$GCC" = yes; then
16936 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'
16938 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'
16940 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16941 hardcode_libdir_separator_GCJ=:
16942 hardcode_direct_GCJ=yes
16944 # hardcode_minus_L: Not really in the search PATH,
16945 # but as the default location of the library.
16946 hardcode_minus_L_GCJ=yes
16947 export_dynamic_flag_spec_GCJ='${wl}-E'
16951 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16952 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16954 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16956 if test "$with_gnu_ld" = no; then
16957 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16958 hardcode_libdir_separator_GCJ=:
16960 hardcode_direct_GCJ=yes
16961 export_dynamic_flag_spec_GCJ='${wl}-E'
16963 # hardcode_minus_L: Not really in the search PATH,
16964 # but as the default location of the library.
16965 hardcode_minus_L_GCJ=yes
16970 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16973 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16976 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16979 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16985 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16988 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16991 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16995 if test "$with_gnu_ld" = no; then
16996 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16997 hardcode_libdir_separator_GCJ=:
17001 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17002 hardcode_direct_GCJ=no
17003 hardcode_shlibpath_var_GCJ=no
17006 hardcode_direct_GCJ=yes
17007 export_dynamic_flag_spec_GCJ='${wl}-E'
17009 # hardcode_minus_L: Not really in the search PATH,
17010 # but as the default location of the library.
17011 hardcode_minus_L_GCJ=yes
17017 irix5* | irix6* | nonstopux*)
17018 if test "$GCC" = yes; then
17019 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'
17021 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'
17022 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17024 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17025 hardcode_libdir_separator_GCJ=:
17026 link_all_deplibs_GCJ=yes
17030 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17031 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17033 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17035 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17036 hardcode_direct_GCJ=yes
17037 hardcode_shlibpath_var_GCJ=no
17041 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17042 hardcode_direct_GCJ=yes
17043 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17044 hardcode_libdir_separator_GCJ=:
17045 hardcode_shlibpath_var_GCJ=no
17049 hardcode_direct_GCJ=yes
17050 hardcode_shlibpath_var_GCJ=no
17051 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17052 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17053 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17054 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17055 export_dynamic_flag_spec_GCJ='${wl}-E'
17058 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17059 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17060 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17063 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17064 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17071 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17072 hardcode_minus_L_GCJ=yes
17073 allow_undefined_flag_GCJ=unsupported
17074 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'
17075 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17079 if test "$GCC" = yes; then
17080 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17081 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'
17083 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17084 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'
17086 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17087 hardcode_libdir_separator_GCJ=:
17090 osf4* | osf5*) # as osf3* with the addition of -msym flag
17091 if test "$GCC" = yes; then
17092 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17093 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'
17094 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17096 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17097 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'
17098 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~
17099 $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'
17101 # Both c and cxx compiler support -rpath directly
17102 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17104 hardcode_libdir_separator_GCJ=:
17108 no_undefined_flag_GCJ=' -z text'
17109 if test "$GCC" = yes; then
17111 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17112 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17113 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17116 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17117 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17118 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17120 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17121 hardcode_shlibpath_var_GCJ=no
17123 solaris2.[0-5] | solaris2.[0-5].*) ;;
17125 # The compiler driver will combine linker options so we
17126 # cannot just pass the convience library names through
17127 # without $wl, iff we do not link with $LD.
17128 # Luckily, gcc supports the same syntax we need for Sun Studio.
17129 # Supported since Solaris 2.6 (maybe 2.5.1?)
17132 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17134 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' ;;
17137 link_all_deplibs_GCJ=yes
17141 if test "x$host_vendor" = xsequent; then
17142 # Use $CC to link under sequent, because it throws in some extra .o
17143 # files that make .init and .fini sections work.
17144 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17146 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17148 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17149 hardcode_direct_GCJ=yes
17150 hardcode_minus_L_GCJ=yes
17151 hardcode_shlibpath_var_GCJ=no
17155 case $host_vendor in
17157 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17158 hardcode_direct_GCJ=yes # is this really true???
17161 ## LD is ld it makes a PLAMLIB
17162 ## CC just makes a GrossModule.
17163 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17164 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17165 hardcode_direct_GCJ=no
17168 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17169 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17172 runpath_var='LD_RUN_PATH'
17173 hardcode_shlibpath_var_GCJ=no
17177 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17178 hardcode_shlibpath_var_GCJ=no
17179 export_dynamic_flag_spec_GCJ='-Bexport'
17183 if test -d /usr/nec; then
17184 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17185 hardcode_shlibpath_var_GCJ=no
17186 runpath_var=LD_RUN_PATH
17187 hardcode_runpath_var=yes
17192 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17193 no_undefined_flag_GCJ='${wl}-z,text'
17194 archive_cmds_need_lc_GCJ=no
17195 hardcode_shlibpath_var_GCJ=no
17196 runpath_var='LD_RUN_PATH'
17198 if test "$GCC" = yes; then
17199 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17200 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17202 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17203 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17207 sysv5* | sco3.2v5* | sco5v6*)
17208 # Note: We can NOT use -z defs as we might desire, because we do not
17209 # link with -lc, and that would cause any symbols used from libc to
17210 # always be unresolved, which means just about no library would
17211 # ever link correctly. If we're not using GNU ld we use -z text
17212 # though, which does catch some bad symbols but isn't as heavy-handed
17214 no_undefined_flag_GCJ='${wl}-z,text'
17215 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17216 archive_cmds_need_lc_GCJ=no
17217 hardcode_shlibpath_var_GCJ=no
17218 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17219 hardcode_libdir_separator_GCJ=':'
17220 link_all_deplibs_GCJ=yes
17221 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17222 runpath_var='LD_RUN_PATH'
17224 if test "$GCC" = yes; then
17225 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17226 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17228 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17229 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17234 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17235 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17236 hardcode_shlibpath_var_GCJ=no
17245 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17246 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17247 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17250 # Do we need to explicitly link libc?
17252 case "x$archive_cmds_need_lc_GCJ" in
17254 # Assume -lc should be added
17255 archive_cmds_need_lc_GCJ=yes
17257 if test "$enable_shared" = yes && test "$GCC" = yes; then
17258 case $archive_cmds_GCJ in
17260 # FIXME: we may have to deal with multi-command sequences.
17263 # Test whether the compiler implicitly links with -lc since on some
17264 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17265 # to ld, don't add -lc before -lgcc.
17266 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17267 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17269 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17272 (eval $ac_compile) 2>&5
17274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275 (exit $ac_status); } 2>conftest.err; then
17278 libobjs=conftest.$ac_objext
17280 wl=$lt_prog_compiler_wl_GCJ
17281 pic_flag=$lt_prog_compiler_pic_GCJ
17287 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17288 allow_undefined_flag_GCJ=
17289 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17290 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); }
17295 archive_cmds_need_lc_GCJ=no
17297 archive_cmds_need_lc_GCJ=yes
17299 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17301 cat conftest.err 1>&5
17304 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17305 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17312 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17313 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17314 library_names_spec=
17315 libname_spec='lib$name'
17319 postuninstall_cmds=
17323 shlibpath_overrides_runpath=unknown
17325 dynamic_linker="$host_os ld.so"
17326 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17327 if test "$GCC" = yes; then
17328 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17329 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17330 # if the path contains ";" then we assume it to be the separator
17331 # otherwise default to the standard path separator (i.e. ":") - it is
17332 # assumed that no part of a normal pathname contains ";" but that should
17333 # okay in the real world where ";" in dirpaths is itself problematic.
17334 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17336 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17339 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17341 need_lib_prefix=unknown
17342 hardcode_into_libs=no
17344 # when you set need_version to no, make sure it does not cause -set_version
17345 # flags to be left without arguments
17346 need_version=unknown
17351 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17352 shlibpath_var=LIBPATH
17354 # AIX 3 has no versioning support, so we append a major version to the name.
17355 soname_spec='${libname}${release}${shared_ext}$major'
17362 hardcode_into_libs=yes
17363 if test "$host_cpu" = ia64; then
17364 # AIX 5 supports IA64
17365 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17366 shlibpath_var=LD_LIBRARY_PATH
17368 # With GCC up to 2.95.x, collect2 would create an import file
17369 # for dependence libraries. The import file would start with
17370 # the line `#! .'. This would cause the generated library to
17371 # depend on `.', always an invalid library. This was fixed in
17372 # development snapshots of GCC prior to 3.0.
17374 aix4 | aix4.[01] | aix4.[01].*)
17375 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17377 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17380 can_build_shared=no
17384 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17385 # soname into executable. Probably we can add versioning support to
17386 # collect2, so additional links can be useful in future.
17387 if test "$aix_use_runtimelinking" = yes; then
17388 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17389 # instead of lib<name>.a to let people know that these are not
17390 # typical AIX shared libraries.
17391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17393 # We preserve .a as extension for shared libraries through AIX4.2
17394 # and later when we are not doing run time linking.
17395 library_names_spec='${libname}${release}.a $libname.a'
17396 soname_spec='${libname}${release}${shared_ext}$major'
17398 shlibpath_var=LIBPATH
17403 library_names_spec='$libname.ixlibrary $libname.a'
17404 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17405 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'
17409 library_names_spec='${libname}${shared_ext}'
17410 dynamic_linker="$host_os ld.so"
17411 shlibpath_var=LIBRARY_PATH
17417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17418 soname_spec='${libname}${release}${shared_ext}$major'
17419 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17420 shlibpath_var=LD_LIBRARY_PATH
17421 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17422 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17423 # the default ld.so.conf also contains /usr/contrib/lib and
17424 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17425 # libtool to hard-code these into programs
17428 cygwin* | mingw* | pw32*)
17429 version_type=windows
17434 case $GCC,$host_os in
17435 yes,cygwin* | yes,mingw* | yes,pw32*)
17436 library_names_spec='$libname.dll.a'
17437 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17438 postinstall_cmds='base_file=`basename \${file}`~
17439 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17440 dldir=$destdir/`dirname \$dlpath`~
17441 test -d \$dldir || mkdir -p \$dldir~
17442 $install_prog $dir/$dlname \$dldir/$dlname~
17443 chmod a+x \$dldir/$dlname'
17444 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17445 dlpath=$dir/\$dldll~
17447 shlibpath_overrides_runpath=yes
17451 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17452 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17453 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17456 # MinGW DLLs use traditional 'lib' prefix
17457 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17458 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17459 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17460 # It is most probably a Windows format PATH printed by
17461 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17462 # path with ; separators, and with drive letters. We can handle the
17463 # drive letters (cygwin fileutils understands them), so leave them,
17464 # especially as we might pass files found there to a mingw objdump,
17465 # which wouldn't understand a cygwinified path. Ahh.
17466 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17468 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17472 # pw32 DLLs use 'pw' prefix rather than 'lib'
17473 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17479 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17482 dynamic_linker='Win32 ld.exe'
17483 # FIXME: first we should search . and the directory the executable is in
17487 darwin* | rhapsody*)
17488 dynamic_linker="$host_os dyld"
17489 version_type=darwin
17492 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17493 soname_spec='${libname}${release}${major}$shared_ext'
17494 shlibpath_overrides_runpath=yes
17495 shlibpath_var=DYLD_LIBRARY_PATH
17496 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17497 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17498 if test "$GCC" = yes; then
17499 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"`
17501 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17503 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17511 soname_spec='${libname}${release}${shared_ext}$major'
17512 shlibpath_var=LD_LIBRARY_PATH
17523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17524 soname_spec='${libname}${release}${shared_ext}$major'
17525 shlibpath_var=LD_LIBRARY_PATH
17526 shlibpath_overrides_runpath=no
17527 hardcode_into_libs=yes
17528 dynamic_linker='GNU ld.so'
17531 freebsd* | dragonfly*)
17532 # DragonFly does not have aout. When/if they implement a new
17533 # versioning mechanism, adjust this.
17534 if test -x /usr/bin/objformat; then
17535 objformat=`/usr/bin/objformat`
17538 freebsd[123]*) objformat=aout ;;
17539 *) objformat=elf ;;
17542 version_type=freebsd-$objformat
17543 case $version_type in
17545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17550 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17554 shlibpath_var=LD_LIBRARY_PATH
17557 shlibpath_overrides_runpath=yes
17559 freebsd3.[01]* | freebsdelf3.[01]*)
17560 shlibpath_overrides_runpath=yes
17561 hardcode_into_libs=yes
17563 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17564 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17565 shlibpath_overrides_runpath=no
17566 hardcode_into_libs=yes
17568 freebsd*) # from 4.6 on
17569 shlibpath_overrides_runpath=yes
17570 hardcode_into_libs=yes
17579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17580 soname_spec='${libname}${release}${shared_ext}$major'
17581 shlibpath_var=LD_LIBRARY_PATH
17582 hardcode_into_libs=yes
17585 hpux9* | hpux10* | hpux11*)
17586 # Give a soname corresponding to the major version so that dld.sl refuses to
17587 # link against other versions.
17594 hardcode_into_libs=yes
17595 dynamic_linker="$host_os dld.so"
17596 shlibpath_var=LD_LIBRARY_PATH
17597 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17599 soname_spec='${libname}${release}${shared_ext}$major'
17600 if test "X$HPUX_IA64_MODE" = X32; then
17601 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17603 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17605 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17609 hardcode_into_libs=yes
17610 dynamic_linker="$host_os dld.sl"
17611 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17612 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17614 soname_spec='${libname}${release}${shared_ext}$major'
17615 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17616 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17620 dynamic_linker="$host_os dld.sl"
17621 shlibpath_var=SHLIB_PATH
17622 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17624 soname_spec='${libname}${release}${shared_ext}$major'
17627 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17628 postinstall_cmds='chmod 555 $lib'
17635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17636 soname_spec='${libname}${release}${shared_ext}$major'
17637 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17638 shlibpath_var=LD_LIBRARY_PATH
17639 shlibpath_overrides_runpath=no
17640 hardcode_into_libs=yes
17643 irix5* | irix6* | nonstopux*)
17645 nonstopux*) version_type=nonstopux ;;
17647 if test "$lt_cv_prog_gnu_ld" = yes; then
17655 soname_spec='${libname}${release}${shared_ext}$major'
17656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17658 irix5* | nonstopux*)
17659 libsuff= shlibsuff=
17662 case $LD in # libtool.m4 will add one of these switches to LD
17663 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17664 libsuff= shlibsuff= libmagic=32-bit;;
17665 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17666 libsuff=32 shlibsuff=N32 libmagic=N32;;
17667 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17668 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17669 *) libsuff= shlibsuff= libmagic=never-match;;
17673 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17674 shlibpath_overrides_runpath=no
17675 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17676 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17677 hardcode_into_libs=yes
17680 # No shared lib support for Linux oldld, aout, or coff.
17681 linux*oldld* | linux*aout* | linux*coff*)
17685 # This must be Linux ELF.
17690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17691 soname_spec='${libname}${release}${shared_ext}$major'
17692 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17693 shlibpath_var=LD_LIBRARY_PATH
17694 shlibpath_overrides_runpath=no
17695 # This implies no fast_install, which is unacceptable.
17696 # Some rework will be needed to allow for fast_install
17697 # before this can be enabled.
17698 hardcode_into_libs=yes
17700 # find out which ABI we are using
17702 case "$host_cpu" in
17703 x86_64*|s390x*|powerpc64*)
17704 echo '#line 17704 "configure"' > conftest.$ac_ext
17705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17706 (eval $ac_compile) 2>&5
17708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709 (exit $ac_status); }; then
17710 case `/usr/bin/file conftest.$ac_objext` in
17713 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17721 # Append ld.so.conf contents to the search path
17722 if test -f /etc/ld.so.conf; then
17723 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17724 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17727 # We used to test for /lib/ld.so.1 and disable shared libraries on
17728 # powerpc, because MkLinux only supported shared libraries with the
17729 # GNU dynamic linker. Since this was broken with cross compilers,
17730 # most powerpc-linux boxes support dynamic linking these days and
17731 # people can always --disable-shared, the test was removed, and we
17732 # assume the GNU/Linux dynamic linker is in use.
17733 dynamic_linker='GNU/Linux ld.so'
17740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17741 soname_spec='${libname}${release}${shared_ext}$major'
17742 shlibpath_var=LD_LIBRARY_PATH
17743 shlibpath_overrides_runpath=no
17744 hardcode_into_libs=yes
17745 dynamic_linker='GNU ld.so'
17752 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17754 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17755 dynamic_linker='NetBSD (a.out) ld.so'
17757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17758 soname_spec='${libname}${release}${shared_ext}$major'
17759 dynamic_linker='NetBSD ld.elf_so'
17761 shlibpath_var=LD_LIBRARY_PATH
17762 shlibpath_overrides_runpath=yes
17763 hardcode_into_libs=yes
17768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17769 shlibpath_var=LD_LIBRARY_PATH
17770 shlibpath_overrides_runpath=yes
17777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17778 soname_spec='${libname}${release}${shared_ext}$major'
17779 shlibpath_var=LD_LIBRARY_PATH
17780 shlibpath_overrides_runpath=yes
17785 sys_lib_dlsearch_path_spec="/usr/lib"
17787 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17789 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17790 *) need_version=no ;;
17792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17793 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17794 shlibpath_var=LD_LIBRARY_PATH
17795 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17797 openbsd2.[89] | openbsd2.[89].*)
17798 shlibpath_overrides_runpath=no
17801 shlibpath_overrides_runpath=yes
17805 shlibpath_overrides_runpath=yes
17810 libname_spec='$name'
17813 library_names_spec='$libname${shared_ext} $libname.a'
17814 dynamic_linker='OS/2 ld.exe'
17815 shlibpath_var=LIBPATH
17818 osf3* | osf4* | osf5*)
17822 soname_spec='${libname}${release}${shared_ext}$major'
17823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17824 shlibpath_var=LD_LIBRARY_PATH
17825 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17826 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17834 soname_spec='${libname}${release}${shared_ext}$major'
17835 shlibpath_var=LD_LIBRARY_PATH
17836 shlibpath_overrides_runpath=yes
17837 hardcode_into_libs=yes
17838 # ldd complains unless libraries are executable
17839 postinstall_cmds='chmod +x $lib'
17844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17845 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17846 shlibpath_var=LD_LIBRARY_PATH
17847 shlibpath_overrides_runpath=yes
17848 if test "$with_gnu_ld" = yes; then
17856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17857 soname_spec='${libname}${release}${shared_ext}$major'
17858 shlibpath_var=LD_LIBRARY_PATH
17859 case $host_vendor in
17861 shlibpath_overrides_runpath=no
17863 export_dynamic_flag_spec='${wl}-Blargedynsym'
17864 runpath_var=LD_RUN_PATH
17872 shlibpath_overrides_runpath=no
17873 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17879 if test -d /usr/nec ;then
17881 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17882 soname_spec='$libname${shared_ext}.$major'
17883 shlibpath_var=LD_LIBRARY_PATH
17887 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17888 version_type=freebsd-elf
17891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17892 soname_spec='${libname}${release}${shared_ext}$major'
17893 shlibpath_var=LD_LIBRARY_PATH
17894 hardcode_into_libs=yes
17895 if test "$with_gnu_ld" = yes; then
17896 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17897 shlibpath_overrides_runpath=no
17899 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17900 shlibpath_overrides_runpath=yes
17903 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17907 sys_lib_dlsearch_path_spec='/usr/lib'
17912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17913 soname_spec='${libname}${release}${shared_ext}$major'
17914 shlibpath_var=LD_LIBRARY_PATH
17921 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17922 echo "${ECHO_T}$dynamic_linker" >&6
17923 test "$dynamic_linker" = no && can_build_shared=no
17925 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17926 if test "$GCC" = yes; then
17927 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17930 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17931 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17932 hardcode_action_GCJ=
17933 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17934 test -n "$runpath_var_GCJ" || \
17935 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17937 # We can hardcode non-existant directories.
17938 if test "$hardcode_direct_GCJ" != no &&
17939 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17940 # have to relink, otherwise we might link with an installed library
17941 # when we should be linking with a yet-to-be-installed one
17942 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17943 test "$hardcode_minus_L_GCJ" != no; then
17944 # Linking always hardcodes the temporary library directory.
17945 hardcode_action_GCJ=relink
17947 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17948 hardcode_action_GCJ=immediate
17951 # We cannot hardcode anything, or else we can only hardcode existing
17953 hardcode_action_GCJ=unsupported
17955 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17956 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17958 if test "$hardcode_action_GCJ" = relink; then
17959 # Fast installation is not supported
17960 enable_fast_install=no
17961 elif test "$shlibpath_overrides_runpath" = yes ||
17962 test "$enable_shared" = no; then
17963 # Fast installation is not necessary
17964 enable_fast_install=needless
17968 # The else clause should only fire when bootstrapping the
17969 # libtool distribution, otherwise you forgot to ship ltmain.sh
17970 # with your package, and you will get complaints that there are
17971 # no rules to generate ltmain.sh.
17972 if test -f "$ltmain"; then
17973 # See if we are running on zsh, and set the options which allow our commands through
17974 # without removal of \ escapes.
17975 if test -n "${ZSH_VERSION+set}" ; then
17976 setopt NO_GLOB_SUBST
17978 # Now quote all the things that may contain metacharacters while being
17979 # careful not to overquote the AC_SUBSTed values. We take copies of the
17980 # variables and quote the copies for generation of the libtool script.
17981 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17983 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17984 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17985 deplibs_check_method reload_flag reload_cmds need_locks \
17986 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17987 lt_cv_sys_global_symbol_to_c_name_address \
17988 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17989 old_postinstall_cmds old_postuninstall_cmds \
17993 lt_prog_compiler_wl_GCJ \
17994 lt_prog_compiler_pic_GCJ \
17995 lt_prog_compiler_static_GCJ \
17996 lt_prog_compiler_no_builtin_flag_GCJ \
17997 export_dynamic_flag_spec_GCJ \
17998 thread_safe_flag_spec_GCJ \
17999 whole_archive_flag_spec_GCJ \
18000 enable_shared_with_static_runtimes_GCJ \
18001 old_archive_cmds_GCJ \
18002 old_archive_from_new_cmds_GCJ \
18003 predep_objects_GCJ \
18004 postdep_objects_GCJ \
18007 compiler_lib_search_path_GCJ \
18009 archive_expsym_cmds_GCJ \
18010 postinstall_cmds_GCJ \
18011 postuninstall_cmds_GCJ \
18012 old_archive_from_expsyms_cmds_GCJ \
18013 allow_undefined_flag_GCJ \
18014 no_undefined_flag_GCJ \
18015 export_symbols_cmds_GCJ \
18016 hardcode_libdir_flag_spec_GCJ \
18017 hardcode_libdir_flag_spec_ld_GCJ \
18018 hardcode_libdir_separator_GCJ \
18019 hardcode_automatic_GCJ \
18021 module_expsym_cmds_GCJ \
18022 lt_cv_prog_compiler_c_o_GCJ \
18023 exclude_expsyms_GCJ \
18024 include_expsyms_GCJ; do
18027 old_archive_cmds_GCJ | \
18028 old_archive_from_new_cmds_GCJ | \
18029 archive_cmds_GCJ | \
18030 archive_expsym_cmds_GCJ | \
18031 module_cmds_GCJ | \
18032 module_expsym_cmds_GCJ | \
18033 old_archive_from_expsyms_cmds_GCJ | \
18034 export_symbols_cmds_GCJ | \
18035 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18036 postinstall_cmds | postuninstall_cmds | \
18037 old_postinstall_cmds | old_postuninstall_cmds | \
18038 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18039 # Double-quote double-evaled strings.
18040 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18043 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18049 *'\$0 --fallback-echo"')
18050 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18056 cat <<__EOF__ >> "$cfgfile"
18057 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18059 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18061 # Shell to use when invoking shell scripts.
18064 # Whether or not to build shared libraries.
18065 build_libtool_libs=$enable_shared
18067 # Whether or not to build static libraries.
18068 build_old_libs=$enable_static
18070 # Whether or not to add -lc for building shared libraries.
18071 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18073 # Whether or not to disallow shared libs when runtime libs are static
18074 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18076 # Whether or not to optimize for fast installation.
18077 fast_install=$enable_fast_install
18080 host_alias=$host_alias
18084 # The build system.
18085 build_alias=$build_alias
18089 # An echo program that does not interpret backslashes.
18094 AR_FLAGS=$lt_AR_FLAGS
18099 # LTCC compiler flags.
18100 LTCFLAGS=$lt_LTCFLAGS
18102 # A language-specific compiler.
18103 CC=$lt_compiler_GCJ
18105 # Is the compiler the GNU C compiler?
18108 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18109 gcc_ver=\`gcc -dumpversion\`
18114 # The linker used to build libraries.
18117 # Whether we need hard or soft links.
18120 # A BSD-compatible nm program.
18123 # A symbol stripping program
18126 # Used to examine libraries when file_magic_cmd begins "file"
18127 MAGIC_CMD=$MAGIC_CMD
18129 # Used on cygwin: DLL creation program.
18132 # Used on cygwin: object dumper.
18135 # Used on cygwin: assembler.
18138 # The name of the directory that contains temporary libtool files.
18141 # How to create reloadable object files.
18142 reload_flag=$lt_reload_flag
18143 reload_cmds=$lt_reload_cmds
18145 # How to pass a linker flag through the compiler.
18146 wl=$lt_lt_prog_compiler_wl_GCJ
18148 # Object file suffix (normally "o").
18149 objext="$ac_objext"
18151 # Old archive suffix (normally "a").
18154 # Shared library suffix (normally ".so").
18155 shrext_cmds='$shrext_cmds'
18157 # Executable file suffix (normally "").
18160 # Additional compiler flags for building library objects.
18161 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18164 # What is the maximum length of a command?
18165 max_cmd_len=$lt_cv_sys_max_cmd_len
18167 # Does compiler simultaneously support -c and -o options?
18168 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18170 # Must we lock files when doing compilation?
18171 need_locks=$lt_need_locks
18173 # Do we need the lib prefix for modules?
18174 need_lib_prefix=$need_lib_prefix
18176 # Do we need a version for libraries?
18177 need_version=$need_version
18179 # Whether dlopen is supported.
18180 dlopen_support=$enable_dlopen
18182 # Whether dlopen of programs is supported.
18183 dlopen_self=$enable_dlopen_self
18185 # Whether dlopen of statically linked programs is supported.
18186 dlopen_self_static=$enable_dlopen_self_static
18188 # Compiler flag to prevent dynamic linking.
18189 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18191 # Compiler flag to turn off builtin functions.
18192 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18194 # Compiler flag to allow reflexive dlopens.
18195 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18197 # Compiler flag to generate shared objects directly from archives.
18198 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18200 # Compiler flag to generate thread-safe objects.
18201 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18203 # Library versioning type.
18204 version_type=$version_type
18206 # Format of library name prefix.
18207 libname_spec=$lt_libname_spec
18209 # List of archive names. First name is the real one, the rest are links.
18210 # The last name is the one that the linker finds with -lNAME.
18211 library_names_spec=$lt_library_names_spec
18213 # The coded name of the library, if different from the real name.
18214 soname_spec=$lt_soname_spec
18216 # Commands used to build and install an old-style archive.
18218 old_archive_cmds=$lt_old_archive_cmds_GCJ
18219 old_postinstall_cmds=$lt_old_postinstall_cmds
18220 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18222 # Create an old-style archive from a shared archive.
18223 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18225 # Create a temporary old-style archive to link instead of a shared archive.
18226 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18228 # Commands used to build and install a shared archive.
18229 archive_cmds=$lt_archive_cmds_GCJ
18230 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18231 postinstall_cmds=$lt_postinstall_cmds
18232 postuninstall_cmds=$lt_postuninstall_cmds
18234 # Commands used to build a loadable module (assumed same as above if empty)
18235 module_cmds=$lt_module_cmds_GCJ
18236 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18238 # Commands to strip libraries.
18239 old_striplib=$lt_old_striplib
18240 striplib=$lt_striplib
18242 # Dependencies to place before the objects being linked to create a
18244 predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18246 # Dependencies to place after the objects being linked to create a
18248 postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18250 # Dependencies to place before the objects being linked to create a
18252 predeps=$lt_predeps_GCJ
18254 # Dependencies to place after the objects being linked to create a
18256 postdeps=$lt_postdeps_GCJ
18258 # The library search path used internally by the compiler when linking
18259 # a shared library.
18260 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18262 # Method to check whether dependent libraries are shared objects.
18263 deplibs_check_method=$lt_deplibs_check_method
18265 # Command to use when deplibs_check_method == file_magic.
18266 file_magic_cmd=$lt_file_magic_cmd
18268 # Flag that allows shared libraries with undefined symbols to be built.
18269 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18271 # Flag that forces no undefined symbols.
18272 no_undefined_flag=$lt_no_undefined_flag_GCJ
18274 # Commands used to finish a libtool library installation in a directory.
18275 finish_cmds=$lt_finish_cmds
18277 # Same as above, but a single script fragment to be evaled but not shown.
18278 finish_eval=$lt_finish_eval
18280 # Take the output of nm and produce a listing of raw symbols and C names.
18281 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18283 # Transform the output of nm in a proper C declaration
18284 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18286 # Transform the output of nm in a C name address pair
18287 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18289 # This is the shared library runtime path variable.
18290 runpath_var=$runpath_var
18292 # This is the shared library path variable.
18293 shlibpath_var=$shlibpath_var
18295 # Is shlibpath searched before the hard-coded library search path?
18296 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18298 # How to hardcode a shared library path into an executable.
18299 hardcode_action=$hardcode_action_GCJ
18301 # Whether we should hardcode library paths into libraries.
18302 hardcode_into_libs=$hardcode_into_libs
18304 # Flag to hardcode \$libdir into a binary during linking.
18305 # This must work even if \$libdir does not exist.
18306 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18308 # If ld is used when linking, flag to hardcode \$libdir into
18309 # a binary during linking. This must work even if \$libdir does
18311 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18313 # Whether we need a single -rpath flag with a separated argument.
18314 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18316 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18317 # resulting binary.
18318 hardcode_direct=$hardcode_direct_GCJ
18320 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18321 # resulting binary.
18322 hardcode_minus_L=$hardcode_minus_L_GCJ
18324 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18325 # the resulting binary.
18326 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18328 # Set to yes if building a shared library automatically hardcodes DIR into the library
18329 # and all subsequent libraries and executables linked against it.
18330 hardcode_automatic=$hardcode_automatic_GCJ
18332 # Variables whose values should be saved in libtool wrapper scripts and
18333 # restored at relink time.
18334 variables_saved_for_relink="$variables_saved_for_relink"
18336 # Whether libtool must link a program against all its dependency libraries.
18337 link_all_deplibs=$link_all_deplibs_GCJ
18339 # Compile-time system search path for libraries
18340 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18342 # Run-time system search path for libraries
18343 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18345 # Fix the shell variable \$srcfile for the compiler.
18346 fix_srcfile_path="$fix_srcfile_path_GCJ"
18348 # Set to yes if exported symbols are required.
18349 always_export_symbols=$always_export_symbols_GCJ
18351 # The commands to list exported symbols.
18352 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18354 # The commands to extract the exported symbol list from a shared archive.
18355 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18357 # Symbols that should not be listed in the preloaded symbols.
18358 exclude_expsyms=$lt_exclude_expsyms_GCJ
18360 # Symbols that must always be exported.
18361 include_expsyms=$lt_include_expsyms_GCJ
18363 # ### END LIBTOOL TAG CONFIG: $tagname
18369 # If there is no Makefile yet, we rely on a make rule to execute
18370 # `config.status --recheck' to rerun these tests and create the
18371 # libtool script then.
18372 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18373 if test -f "$ltmain_in"; then
18374 test -f Makefile && make "$ltmain"
18380 ac_cpp='$CPP $CPPFLAGS'
18381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18396 # Source file extension for RC test sources.
18399 # Object file extension for compiled RC test sources.
18403 # Code to be used in simple compile tests
18404 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18406 # Code to be used in simple link tests
18407 lt_simple_link_test_code="$lt_simple_compile_test_code"
18409 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18411 # If no C compiler was specified, use CC.
18414 # If no C compiler flags were specified, use CFLAGS.
18415 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18417 # Allow CC to be a program name with arguments.
18421 # save warnings/boilerplate of simple test code
18422 ac_outfile=conftest.$ac_objext
18423 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18424 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18425 _lt_compiler_boilerplate=`cat conftest.err`
18428 ac_outfile=conftest.$ac_objext
18429 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18430 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18431 _lt_linker_boilerplate=`cat conftest.err`
18435 # Allow CC to be a program name with arguments.
18440 for cc_temp in $compiler""; do
18442 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18443 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18448 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18450 lt_cv_prog_compiler_c_o_RC=yes
18452 # The else clause should only fire when bootstrapping the
18453 # libtool distribution, otherwise you forgot to ship ltmain.sh
18454 # with your package, and you will get complaints that there are
18455 # no rules to generate ltmain.sh.
18456 if test -f "$ltmain"; then
18457 # See if we are running on zsh, and set the options which allow our commands through
18458 # without removal of \ escapes.
18459 if test -n "${ZSH_VERSION+set}" ; then
18460 setopt NO_GLOB_SUBST
18462 # Now quote all the things that may contain metacharacters while being
18463 # careful not to overquote the AC_SUBSTed values. We take copies of the
18464 # variables and quote the copies for generation of the libtool script.
18465 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18467 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18468 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18469 deplibs_check_method reload_flag reload_cmds need_locks \
18470 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18471 lt_cv_sys_global_symbol_to_c_name_address \
18472 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18473 old_postinstall_cmds old_postuninstall_cmds \
18477 lt_prog_compiler_wl_RC \
18478 lt_prog_compiler_pic_RC \
18479 lt_prog_compiler_static_RC \
18480 lt_prog_compiler_no_builtin_flag_RC \
18481 export_dynamic_flag_spec_RC \
18482 thread_safe_flag_spec_RC \
18483 whole_archive_flag_spec_RC \
18484 enable_shared_with_static_runtimes_RC \
18485 old_archive_cmds_RC \
18486 old_archive_from_new_cmds_RC \
18487 predep_objects_RC \
18488 postdep_objects_RC \
18491 compiler_lib_search_path_RC \
18493 archive_expsym_cmds_RC \
18494 postinstall_cmds_RC \
18495 postuninstall_cmds_RC \
18496 old_archive_from_expsyms_cmds_RC \
18497 allow_undefined_flag_RC \
18498 no_undefined_flag_RC \
18499 export_symbols_cmds_RC \
18500 hardcode_libdir_flag_spec_RC \
18501 hardcode_libdir_flag_spec_ld_RC \
18502 hardcode_libdir_separator_RC \
18503 hardcode_automatic_RC \
18505 module_expsym_cmds_RC \
18506 lt_cv_prog_compiler_c_o_RC \
18507 exclude_expsyms_RC \
18508 include_expsyms_RC; do
18511 old_archive_cmds_RC | \
18512 old_archive_from_new_cmds_RC | \
18513 archive_cmds_RC | \
18514 archive_expsym_cmds_RC | \
18516 module_expsym_cmds_RC | \
18517 old_archive_from_expsyms_cmds_RC | \
18518 export_symbols_cmds_RC | \
18519 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18520 postinstall_cmds | postuninstall_cmds | \
18521 old_postinstall_cmds | old_postuninstall_cmds | \
18522 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18523 # Double-quote double-evaled strings.
18524 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18527 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18533 *'\$0 --fallback-echo"')
18534 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18540 cat <<__EOF__ >> "$cfgfile"
18541 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18543 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18545 # Shell to use when invoking shell scripts.
18548 # Whether or not to build shared libraries.
18549 build_libtool_libs=$enable_shared
18551 # Whether or not to build static libraries.
18552 build_old_libs=$enable_static
18554 # Whether or not to add -lc for building shared libraries.
18555 build_libtool_need_lc=$archive_cmds_need_lc_RC
18557 # Whether or not to disallow shared libs when runtime libs are static
18558 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18560 # Whether or not to optimize for fast installation.
18561 fast_install=$enable_fast_install
18564 host_alias=$host_alias
18568 # The build system.
18569 build_alias=$build_alias
18573 # An echo program that does not interpret backslashes.
18578 AR_FLAGS=$lt_AR_FLAGS
18583 # LTCC compiler flags.
18584 LTCFLAGS=$lt_LTCFLAGS
18586 # A language-specific compiler.
18589 # Is the compiler the GNU C compiler?
18592 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18593 gcc_ver=\`gcc -dumpversion\`
18598 # The linker used to build libraries.
18601 # Whether we need hard or soft links.
18604 # A BSD-compatible nm program.
18607 # A symbol stripping program
18610 # Used to examine libraries when file_magic_cmd begins "file"
18611 MAGIC_CMD=$MAGIC_CMD
18613 # Used on cygwin: DLL creation program.
18616 # Used on cygwin: object dumper.
18619 # Used on cygwin: assembler.
18622 # The name of the directory that contains temporary libtool files.
18625 # How to create reloadable object files.
18626 reload_flag=$lt_reload_flag
18627 reload_cmds=$lt_reload_cmds
18629 # How to pass a linker flag through the compiler.
18630 wl=$lt_lt_prog_compiler_wl_RC
18632 # Object file suffix (normally "o").
18633 objext="$ac_objext"
18635 # Old archive suffix (normally "a").
18638 # Shared library suffix (normally ".so").
18639 shrext_cmds='$shrext_cmds'
18641 # Executable file suffix (normally "").
18644 # Additional compiler flags for building library objects.
18645 pic_flag=$lt_lt_prog_compiler_pic_RC
18648 # What is the maximum length of a command?
18649 max_cmd_len=$lt_cv_sys_max_cmd_len
18651 # Does compiler simultaneously support -c and -o options?
18652 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18654 # Must we lock files when doing compilation?
18655 need_locks=$lt_need_locks
18657 # Do we need the lib prefix for modules?
18658 need_lib_prefix=$need_lib_prefix
18660 # Do we need a version for libraries?
18661 need_version=$need_version
18663 # Whether dlopen is supported.
18664 dlopen_support=$enable_dlopen
18666 # Whether dlopen of programs is supported.
18667 dlopen_self=$enable_dlopen_self
18669 # Whether dlopen of statically linked programs is supported.
18670 dlopen_self_static=$enable_dlopen_self_static
18672 # Compiler flag to prevent dynamic linking.
18673 link_static_flag=$lt_lt_prog_compiler_static_RC
18675 # Compiler flag to turn off builtin functions.
18676 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18678 # Compiler flag to allow reflexive dlopens.
18679 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18681 # Compiler flag to generate shared objects directly from archives.
18682 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18684 # Compiler flag to generate thread-safe objects.
18685 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18687 # Library versioning type.
18688 version_type=$version_type
18690 # Format of library name prefix.
18691 libname_spec=$lt_libname_spec
18693 # List of archive names. First name is the real one, the rest are links.
18694 # The last name is the one that the linker finds with -lNAME.
18695 library_names_spec=$lt_library_names_spec
18697 # The coded name of the library, if different from the real name.
18698 soname_spec=$lt_soname_spec
18700 # Commands used to build and install an old-style archive.
18702 old_archive_cmds=$lt_old_archive_cmds_RC
18703 old_postinstall_cmds=$lt_old_postinstall_cmds
18704 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18706 # Create an old-style archive from a shared archive.
18707 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18709 # Create a temporary old-style archive to link instead of a shared archive.
18710 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18712 # Commands used to build and install a shared archive.
18713 archive_cmds=$lt_archive_cmds_RC
18714 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18715 postinstall_cmds=$lt_postinstall_cmds
18716 postuninstall_cmds=$lt_postuninstall_cmds
18718 # Commands used to build a loadable module (assumed same as above if empty)
18719 module_cmds=$lt_module_cmds_RC
18720 module_expsym_cmds=$lt_module_expsym_cmds_RC
18722 # Commands to strip libraries.
18723 old_striplib=$lt_old_striplib
18724 striplib=$lt_striplib
18726 # Dependencies to place before the objects being linked to create a
18728 predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18730 # Dependencies to place after the objects being linked to create a
18732 postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18734 # Dependencies to place before the objects being linked to create a
18736 predeps=$lt_predeps_RC
18738 # Dependencies to place after the objects being linked to create a
18740 postdeps=$lt_postdeps_RC
18742 # The library search path used internally by the compiler when linking
18743 # a shared library.
18744 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18746 # Method to check whether dependent libraries are shared objects.
18747 deplibs_check_method=$lt_deplibs_check_method
18749 # Command to use when deplibs_check_method == file_magic.
18750 file_magic_cmd=$lt_file_magic_cmd
18752 # Flag that allows shared libraries with undefined symbols to be built.
18753 allow_undefined_flag=$lt_allow_undefined_flag_RC
18755 # Flag that forces no undefined symbols.
18756 no_undefined_flag=$lt_no_undefined_flag_RC
18758 # Commands used to finish a libtool library installation in a directory.
18759 finish_cmds=$lt_finish_cmds
18761 # Same as above, but a single script fragment to be evaled but not shown.
18762 finish_eval=$lt_finish_eval
18764 # Take the output of nm and produce a listing of raw symbols and C names.
18765 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18767 # Transform the output of nm in a proper C declaration
18768 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18770 # Transform the output of nm in a C name address pair
18771 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18773 # This is the shared library runtime path variable.
18774 runpath_var=$runpath_var
18776 # This is the shared library path variable.
18777 shlibpath_var=$shlibpath_var
18779 # Is shlibpath searched before the hard-coded library search path?
18780 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18782 # How to hardcode a shared library path into an executable.
18783 hardcode_action=$hardcode_action_RC
18785 # Whether we should hardcode library paths into libraries.
18786 hardcode_into_libs=$hardcode_into_libs
18788 # Flag to hardcode \$libdir into a binary during linking.
18789 # This must work even if \$libdir does not exist.
18790 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18792 # If ld is used when linking, flag to hardcode \$libdir into
18793 # a binary during linking. This must work even if \$libdir does
18795 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18797 # Whether we need a single -rpath flag with a separated argument.
18798 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18800 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18801 # resulting binary.
18802 hardcode_direct=$hardcode_direct_RC
18804 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18805 # resulting binary.
18806 hardcode_minus_L=$hardcode_minus_L_RC
18808 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18809 # the resulting binary.
18810 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18812 # Set to yes if building a shared library automatically hardcodes DIR into the library
18813 # and all subsequent libraries and executables linked against it.
18814 hardcode_automatic=$hardcode_automatic_RC
18816 # Variables whose values should be saved in libtool wrapper scripts and
18817 # restored at relink time.
18818 variables_saved_for_relink="$variables_saved_for_relink"
18820 # Whether libtool must link a program against all its dependency libraries.
18821 link_all_deplibs=$link_all_deplibs_RC
18823 # Compile-time system search path for libraries
18824 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18826 # Run-time system search path for libraries
18827 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18829 # Fix the shell variable \$srcfile for the compiler.
18830 fix_srcfile_path="$fix_srcfile_path_RC"
18832 # Set to yes if exported symbols are required.
18833 always_export_symbols=$always_export_symbols_RC
18835 # The commands to list exported symbols.
18836 export_symbols_cmds=$lt_export_symbols_cmds_RC
18838 # The commands to extract the exported symbol list from a shared archive.
18839 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18841 # Symbols that should not be listed in the preloaded symbols.
18842 exclude_expsyms=$lt_exclude_expsyms_RC
18844 # Symbols that must always be exported.
18845 include_expsyms=$lt_include_expsyms_RC
18847 # ### END LIBTOOL TAG CONFIG: $tagname
18853 # If there is no Makefile yet, we rely on a make rule to execute
18854 # `config.status --recheck' to rerun these tests and create the
18855 # libtool script then.
18856 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18857 if test -f "$ltmain_in"; then
18858 test -f Makefile && make "$ltmain"
18864 ac_cpp='$CPP $CPPFLAGS'
18865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18874 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18875 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18876 { (exit 1); exit 1; }; }
18880 # Append the new tag name to the list of available tags.
18881 if test -n "$tagname" ; then
18882 available_tags="$available_tags $tagname"
18888 # Now substitute the updated list of available tags.
18889 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18890 mv "${ofile}T" "$ofile"
18894 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18895 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18896 { (exit 1); exit 1; }; }
18902 # This can be used to rebuild libtool when needed
18903 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18905 # Always use our own libtool.
18906 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18908 # Prevent multiple expansion
18932 # Check whether --with-linux or --without-linux was given.
18933 if test "${with_linux+set}" = set; then
18934 withval="$with_linux"
18935 kernelsrc="$withval"; kernelbuild="$withval"
18939 # Check whether --with-linux-obj or --without-linux-obj was given.
18940 if test "${with_linux_obj+set}" = set; then
18941 withval="$with_linux_obj"
18942 kernelbuild="$withval"
18945 echo "$as_me:$LINENO: checking kernel source directory" >&5
18946 echo $ECHO_N "checking kernel source directory... $ECHO_C" >&6
18947 if test -z "$kernelsrc"; then
18949 sourcelink=`ls -1d /usr/src/kernels/* /usr/src/linux-* 2>/dev/null | tail -1`
18951 if test -e ${sourcelink}; then
18952 kernelsrc=`readlink -f ${sourcelink}`
18953 kernelbuild=${kernelsrc}
18955 echo "$as_me:$LINENO: result: Not found" >&5
18956 echo "${ECHO_T}Not found" >&6
18957 { { echo "$as_me:$LINENO: error:
18958 *** Please specify the location of the kernel source
18959 *** with the '--with-linux=PATH' option" >&5
18960 echo "$as_me: error:
18961 *** Please specify the location of the kernel source
18962 *** with the '--with-linux=PATH' option" >&2;}
18963 { (exit 1); exit 1; }; }
18966 if test "$kernelsrc" = "NONE"; then
18971 echo "$as_me:$LINENO: result: $kernelsrc" >&5
18972 echo "${ECHO_T}$kernelsrc" >&6
18973 echo "$as_me:$LINENO: checking kernel build directory" >&5
18974 echo $ECHO_N "checking kernel build directory... $ECHO_C" >&6
18975 echo "$as_me:$LINENO: result: $kernelbuild" >&5
18976 echo "${ECHO_T}$kernelbuild" >&6
18978 echo "$as_me:$LINENO: checking kernel source version" >&5
18979 echo $ECHO_N "checking kernel source version... $ECHO_C" >&6
18980 if test -r $kernelbuild/include/linux/version.h &&
18981 fgrep -q UTS_RELEASE $kernelbuild/include/linux/version.h; then
18983 kernsrcver=`(echo "#include <linux/version.h>";
18984 echo "kernsrcver=UTS_RELEASE") |
18985 cpp -I $kernelbuild/include |
18986 grep "^kernsrcver=" | cut -d \" -f 2`
18988 elif test -r $kernelbuild/include/linux/utsrelease.h &&
18989 fgrep -q UTS_RELEASE $kernelbuild/include/linux/utsrelease.h; then
18991 kernsrcver=`(echo "#include <linux/utsrelease.h>";
18992 echo "kernsrcver=UTS_RELEASE") |
18993 cpp -I $kernelbuild/include |
18994 grep "^kernsrcver=" | cut -d \" -f 2`
18997 if test -z "$kernsrcver"; then
18998 echo "$as_me:$LINENO: result: Not found" >&5
18999 echo "${ECHO_T}Not found" >&6
19000 { { echo "$as_me:$LINENO: error:
19001 *** Cannot determine the version of the linux kernel source.
19002 *** Please prepare the kernel before running this script" >&5
19003 echo "$as_me: error:
19004 *** Cannot determine the version of the linux kernel source.
19005 *** Please prepare the kernel before running this script" >&2;}
19006 { (exit 1); exit 1; }; }
19009 echo "$as_me:$LINENO: result: $kernsrcver" >&5
19010 echo "${ECHO_T}$kernsrcver" >&6
19013 LINUX_OBJ=${kernelbuild}
19014 LINUX_VERSION=${kernsrcver}
19016 abs_srcdir=`readlink -f ${srcdir}`
19017 kerninclude="-I${abs_srcdir} -I${abs_srcdir}/include"
19018 kernwarn="-Wstrict-prototypes -Werror"
19020 if test "${LINUX_OBJ}" != "${LINUX}"; then
19021 kernobjs="O=$kernelbuild"
19025 KERNELCPPFLAGS="${kerninclude} ${kernwarn}"
19026 KERNELMAKE_PARAMS="${kernobjs}"
19036 echo "$as_me:$LINENO: checking license" >&5
19037 echo $ECHO_N "checking license... $ECHO_C" >&6
19038 echo "$as_me:$LINENO: result: GPL" >&5
19039 echo "${ECHO_T}GPL" >&6
19040 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DHAVE_GPL_ONLY_SYMBOLS"
19043 echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
19044 echo $ECHO_N "checking whether debugging is enabled... $ECHO_C" >&6
19045 # Check whether --enable-debug or --disable-debug was given.
19046 if test "${enable_debug+set}" = set; then
19047 enableval="$enable_debug"
19048 case "$enableval" in
19049 yes) spl_ac_debug=yes ;;
19050 no) spl_ac_debug=no ;;
19051 *) echo "$as_me:$LINENO: result: Error!" >&5
19052 echo "${ECHO_T}Error!" >&6
19053 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug" >&5
19054 echo "$as_me: error: Bad value \"$enableval\" for --enable-debug" >&2;}
19055 { (exit 1); exit 1; }; } ;;
19059 if test "$spl_ac_debug" = yes; then
19060 echo "$as_me:$LINENO: result: yes" >&5
19061 echo "${ECHO_T}yes" >&6
19062 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG"
19064 echo "$as_me:$LINENO: result: no" >&5
19065 echo "${ECHO_T}no" >&6
19066 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
19070 echo "$as_me:$LINENO: checking whether kmem debugging is enabled" >&5
19071 echo $ECHO_N "checking whether kmem debugging is enabled... $ECHO_C" >&6
19072 # Check whether --enable-debug-kmem or --disable-debug-kmem was given.
19073 if test "${enable_debug_kmem+set}" = set; then
19074 enableval="$enable_debug_kmem"
19075 case "$enableval" in
19076 yes) spl_ac_debug_kmem=yes ;;
19077 no) spl_ac_debug_kmem=no ;;
19078 *) echo "$as_me:$LINENO: result: Error!" >&5
19079 echo "${ECHO_T}Error!" >&6
19080 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-kmem" >&5
19081 echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-kmem" >&2;}
19082 { (exit 1); exit 1; }; } ;;
19086 if test "$spl_ac_debug_kmem" = yes; then
19087 echo "$as_me:$LINENO: result: yes" >&5
19088 echo "${ECHO_T}yes" >&6
19090 cat >>confdefs.h <<\_ACEOF
19091 #define DEBUG_KMEM 1
19094 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
19096 echo "$as_me:$LINENO: result: no" >&5
19097 echo "${ECHO_T}no" >&6
19101 echo "$as_me:$LINENO: checking whether mutex debugging is enabled" >&5
19102 echo $ECHO_N "checking whether mutex debugging is enabled... $ECHO_C" >&6
19103 # Check whether --enable-debug-mutex or --disable-debug-mutex was given.
19104 if test "${enable_debug_mutex+set}" = set; then
19105 enableval="$enable_debug_mutex"
19106 case "$enableval" in
19107 yes) spl_ac_debug_mutex=yes ;;
19108 no) spl_ac_debug_mutex=no ;;
19109 *) echo "$as_me:$LINENO: result: Error!" >&5
19110 echo "${ECHO_T}Error!" >&6
19111 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-mutex" >&5
19112 echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-mutex" >&2;}
19113 { (exit 1); exit 1; }; } ;;
19117 if test "$spl_ac_debug_mutex" = yes; then
19118 echo "$as_me:$LINENO: result: yes" >&5
19119 echo "${ECHO_T}yes" >&6
19121 cat >>confdefs.h <<\_ACEOF
19122 #define DEBUG_MUTEX 1
19125 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_MUTEX"
19127 echo "$as_me:$LINENO: result: no" >&5
19128 echo "${ECHO_T}no" >&6
19132 echo "$as_me:$LINENO: checking whether kstat debugging is enabled" >&5
19133 echo $ECHO_N "checking whether kstat debugging is enabled... $ECHO_C" >&6
19134 # Check whether --enable-debug-kstat or --disable-debug-kstat was given.
19135 if test "${enable_debug_kstat+set}" = set; then
19136 enableval="$enable_debug_kstat"
19137 case "$enableval" in
19138 yes) spl_ac_debug_kstat=yes ;;
19139 no) spl_ac_debug_kstat=no ;;
19140 *) echo "$as_me:$LINENO: result: Error!" >&5
19141 echo "${ECHO_T}Error!" >&6
19142 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-kstat" >&5
19143 echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-kstat" >&2;}
19144 { (exit 1); exit 1; }; } ;;
19148 if test "$spl_ac_debug_kstat" = yes; then
19149 echo "$as_me:$LINENO: result: yes" >&5
19150 echo "${ECHO_T}yes" >&6
19152 cat >>confdefs.h <<\_ACEOF
19153 #define DEBUG_KSTAT 1
19156 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KSTAT"
19158 echo "$as_me:$LINENO: result: no" >&5
19159 echo "${ECHO_T}no" >&6
19163 echo "$as_me:$LINENO: checking whether callb debugging is enabled" >&5
19164 echo $ECHO_N "checking whether callb debugging is enabled... $ECHO_C" >&6
19165 # Check whether --enable-debug-callb or --disable-debug-callb was given.
19166 if test "${enable_debug_callb+set}" = set; then
19167 enableval="$enable_debug_callb"
19168 case "$enableval" in
19169 yes) spl_ac_debug_callb=yes ;;
19170 no) spl_ac_debug_callb=no ;;
19171 *) echo "$as_me:$LINENO: result: Error!" >&5
19172 echo "${ECHO_T}Error!" >&6
19173 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-callb" >&5
19174 echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-callb" >&2;}
19175 { (exit 1); exit 1; }; } ;;
19179 if test "$spl_ac_debug_callb" = yes; then
19180 echo "$as_me:$LINENO: result: yes" >&5
19181 echo "${ECHO_T}yes" >&6
19183 cat >>confdefs.h <<\_ACEOF
19184 #define DEBUG_CALLB 1
19187 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_CALLB"
19189 echo "$as_me:$LINENO: result: no" >&5
19190 echo "${ECHO_T}no" >&6
19193 echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5
19194 echo $ECHO_N "checking whether kernel defines uintptr_t... $ECHO_C" >&6
19197 cat >conftest.c <<_ACEOF
19200 cat confdefs.h >>conftest.$ac_ext
19201 cat >>conftest.$ac_ext <<_ACEOF
19202 /* end confdefs.h. */
19205 #include <linux/types.h>
19220 rm -Rf build && mkdir -p build
19221 echo "obj-m := conftest.o" >build/Makefile
19222 if { ac_try='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19224 (eval $ac_try) 2>&5
19226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19229 (eval $ac_try) 2>&5
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); }; }; then
19234 echo "$as_me:$LINENO: result: yes" >&5
19235 echo "${ECHO_T}yes" >&6
19237 cat >>confdefs.h <<\_ACEOF
19238 #define HAVE_UINTPTR_T 1
19243 echo "$as_me: failed program was:" >&5
19244 sed 's/^/| /' conftest.$ac_ext >&5
19246 echo "$as_me:$LINENO: result: no" >&5
19247 echo "${ECHO_T}no" >&6
19257 echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
19258 echo $ECHO_N "checking whether kernel defines atomic64_t... $ECHO_C" >&6
19261 cat >conftest.c <<_ACEOF
19264 cat confdefs.h >>conftest.$ac_ext
19265 cat >>conftest.$ac_ext <<_ACEOF
19266 /* end confdefs.h. */
19269 #include <asm/atomic.h>
19284 rm -Rf build && mkdir -p build
19285 echo "obj-m := conftest.o" >build/Makefile
19286 if { ac_try='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19288 (eval $ac_try) 2>&5
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19293 (eval $ac_try) 2>&5
19295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296 (exit $ac_status); }; }; then
19298 echo "$as_me:$LINENO: result: yes" >&5
19299 echo "${ECHO_T}yes" >&6
19301 cat >>confdefs.h <<\_ACEOF
19302 #define HAVE_ATOMIC64_T 1
19307 echo "$as_me: failed program was:" >&5
19308 sed 's/^/| /' conftest.$ac_ext >&5
19310 echo "$as_me:$LINENO: result: no" >&5
19311 echo "${ECHO_T}no" >&6
19321 echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5
19322 echo $ECHO_N "checking whether INIT_WORK wants 3 args... $ECHO_C" >&6
19325 cat >conftest.c <<_ACEOF
19328 cat confdefs.h >>conftest.$ac_ext
19329 cat >>conftest.$ac_ext <<_ACEOF
19330 /* end confdefs.h. */
19333 #include <linux/workqueue.h>
19339 struct work_struct work;
19340 INIT_WORK(&work, NULL, NULL);
19349 rm -Rf build && mkdir -p build
19350 echo "obj-m := conftest.o" >build/Makefile
19351 if { ac_try='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19353 (eval $ac_try) 2>&5
19355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19358 (eval $ac_try) 2>&5
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); }; }; then
19363 echo "$as_me:$LINENO: result: yes" >&5
19364 echo "${ECHO_T}yes" >&6
19366 cat >>confdefs.h <<\_ACEOF
19367 #define HAVE_3ARGS_INIT_WORK 1
19372 echo "$as_me: failed program was:" >&5
19373 sed 's/^/| /' conftest.$ac_ext >&5
19375 echo "$as_me:$LINENO: result: no" >&5
19376 echo "${ECHO_T}no" >&6
19386 echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5
19387 echo $ECHO_N "checking whether register_sysctl_table() wants 2 args... $ECHO_C" >&6
19390 cat >conftest.c <<_ACEOF
19393 cat confdefs.h >>conftest.$ac_ext
19394 cat >>conftest.$ac_ext <<_ACEOF
19395 /* end confdefs.h. */
19398 #include <linux/sysctl.h>
19404 return register_sysctl_table(NULL,0);
19413 rm -Rf build && mkdir -p build
19414 echo "obj-m := conftest.o" >build/Makefile
19415 if { ac_try='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19417 (eval $ac_try) 2>&5
19419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19422 (eval $ac_try) 2>&5
19424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425 (exit $ac_status); }; }; then
19427 echo "$as_me:$LINENO: result: yes" >&5
19428 echo "${ECHO_T}yes" >&6
19430 cat >>confdefs.h <<\_ACEOF
19431 #define HAVE_2ARGS_REGISTER_SYSCTL 1
19436 echo "$as_me: failed program was:" >&5
19437 sed 's/^/| /' conftest.$ac_ext >&5
19439 echo "$as_me:$LINENO: result: no" >&5
19440 echo "${ECHO_T}no" >&6
19451 echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5
19452 echo $ECHO_N "checking whether set_shrinker() available... $ECHO_C" >&6
19455 cat >conftest.c <<_ACEOF
19458 cat confdefs.h >>conftest.$ac_ext
19459 cat >>conftest.$ac_ext <<_ACEOF
19460 /* end confdefs.h. */
19463 #include <linux/mm.h>
19469 return set_shrinker(DEFAULT_SEEKS, NULL);
19478 rm -Rf build && mkdir -p build
19479 echo "obj-m := conftest.o" >build/Makefile
19480 if { ac_try='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19482 (eval $ac_try) 2>&5
19484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19487 (eval $ac_try) 2>&5
19489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 (exit $ac_status); }; }; then
19492 echo "$as_me:$LINENO: result: yes" >&5
19493 echo "${ECHO_T}yes" >&6
19495 cat >>confdefs.h <<\_ACEOF
19496 #define HAVE_SET_SHRINKER 1
19501 echo "$as_me: failed program was:" >&5
19502 sed 's/^/| /' conftest.$ac_ext >&5
19504 echo "$as_me:$LINENO: result: no" >&5
19505 echo "${ECHO_T}no" >&6
19515 echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5
19516 echo $ECHO_N "checking whether struct path used in struct nameidata... $ECHO_C" >&6
19519 cat >conftest.c <<_ACEOF
19522 cat confdefs.h >>conftest.$ac_ext
19523 cat >>conftest.$ac_ext <<_ACEOF
19524 /* end confdefs.h. */
19527 #include <linux/namei.h>
19533 struct nameidata nd;
19535 nd.path.mnt = NULL;
19536 nd.path.dentry = NULL;
19545 rm -Rf build && mkdir -p build
19546 echo "obj-m := conftest.o" >build/Makefile
19547 if { ac_try='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19549 (eval $ac_try) 2>&5
19551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19554 (eval $ac_try) 2>&5
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); }; }; then
19559 echo "$as_me:$LINENO: result: yes" >&5
19560 echo "${ECHO_T}yes" >&6
19562 cat >>confdefs.h <<\_ACEOF
19563 #define HAVE_PATH_IN_NAMEIDATA 1
19568 echo "$as_me: failed program was:" >&5
19569 sed 's/^/| /' conftest.$ac_ext >&5
19571 echo "$as_me:$LINENO: result: no" >&5
19572 echo "${ECHO_T}no" >&6
19583 echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5
19584 echo $ECHO_N "checking whether symbol task_curr is exported... $ECHO_C" >&6
19585 grep -q -E '[[:space:]]task_curr[[:space:]]' $LINUX_OBJ/Module.symvers 2>/dev/null
19587 if test $rc -ne 0; then
19589 for file in kernel/sched.c; do
19590 grep -q -E "EXPORT_SYMBOL.*(task_curr)" "$LINUX_OBJ/$file" 2>/dev/null
19592 if test $rc -eq 0; then
19597 if test $export -eq 0; then
19598 echo "$as_me:$LINENO: result: no" >&5
19599 echo "${ECHO_T}no" >&6
19602 echo "$as_me:$LINENO: result: yes" >&5
19603 echo "${ECHO_T}yes" >&6
19605 cat >>confdefs.h <<\_ACEOF
19606 #define HAVE_TASK_CURR 1
19611 echo "$as_me:$LINENO: result: yes" >&5
19612 echo "${ECHO_T}yes" >&6
19614 cat >>confdefs.h <<\_ACEOF
19615 #define HAVE_TASK_CURR 1
19621 echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5
19622 echo $ECHO_N "checking whether unnumbered sysctl support exists... $ECHO_C" >&6
19625 cat >conftest.c <<_ACEOF
19628 cat confdefs.h >>conftest.$ac_ext
19629 cat >>conftest.$ac_ext <<_ACEOF
19630 /* end confdefs.h. */
19633 #include <linux/sysctl.h>
19639 #ifndef CTL_UNNUMBERED
19640 #error CTL_UNNUMBERED undefined
19650 rm -Rf build && mkdir -p build
19651 echo "obj-m := conftest.o" >build/Makefile
19652 if { ac_try='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19654 (eval $ac_try) 2>&5
19656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19659 (eval $ac_try) 2>&5
19661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662 (exit $ac_status); }; }; then
19664 echo "$as_me:$LINENO: result: yes" >&5
19665 echo "${ECHO_T}yes" >&6
19667 cat >>confdefs.h <<\_ACEOF
19668 #define HAVE_CTL_UNNUMBERED 1
19673 echo "$as_me: failed program was:" >&5
19674 sed 's/^/| /' conftest.$ac_ext >&5
19676 echo "$as_me:$LINENO: result: no" >&5
19677 echo "${ECHO_T}no" >&6
19687 echo "$as_me:$LINENO: checking whether fls64() is available" >&5
19688 echo $ECHO_N "checking whether fls64() is available... $ECHO_C" >&6
19691 cat >conftest.c <<_ACEOF
19694 cat confdefs.h >>conftest.$ac_ext
19695 cat >>conftest.$ac_ext <<_ACEOF
19696 /* end confdefs.h. */
19699 #include <linux/bitops.h>
19714 rm -Rf build && mkdir -p build
19715 echo "obj-m := conftest.o" >build/Makefile
19716 if { ac_try='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19718 (eval $ac_try) 2>&5
19720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19723 (eval $ac_try) 2>&5
19725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726 (exit $ac_status); }; }; then
19728 echo "$as_me:$LINENO: result: yes" >&5
19729 echo "${ECHO_T}yes" >&6
19731 cat >>confdefs.h <<\_ACEOF
19732 #define HAVE_FLS64 1
19737 echo "$as_me: failed program was:" >&5
19738 sed 's/^/| /' conftest.$ac_ext >&5
19740 echo "$as_me:$LINENO: result: no" >&5
19741 echo "${ECHO_T}no" >&6
19752 echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5
19753 echo $ECHO_N "checking whether symbol device_create is exported... $ECHO_C" >&6
19754 grep -q -E '[[:space:]]device_create[[:space:]]' $LINUX_OBJ/Module.symvers 2>/dev/null
19756 if test $rc -ne 0; then
19758 for file in drivers/base/core.c; do
19759 grep -q -E "EXPORT_SYMBOL.*(device_create)" "$LINUX_OBJ/$file" 2>/dev/null
19761 if test $rc -eq 0; then
19766 if test $export -eq 0; then
19767 echo "$as_me:$LINENO: result: no" >&5
19768 echo "${ECHO_T}no" >&6
19771 echo "$as_me:$LINENO: result: yes" >&5
19772 echo "${ECHO_T}yes" >&6
19774 cat >>confdefs.h <<\_ACEOF
19775 #define HAVE_DEVICE_CREATE 1
19780 echo "$as_me:$LINENO: result: yes" >&5
19781 echo "${ECHO_T}yes" >&6
19783 cat >>confdefs.h <<\_ACEOF
19784 #define HAVE_DEVICE_CREATE 1
19791 echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5
19792 echo $ECHO_N "checking whether symbol class_device_create is exported... $ECHO_C" >&6
19793 grep -q -E '[[:space:]]class_device_create[[:space:]]' $LINUX_OBJ/Module.symvers 2>/dev/null
19795 if test $rc -ne 0; then
19797 for file in drivers/base/class.c; do
19798 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" "$LINUX_OBJ/$file" 2>/dev/null
19800 if test $rc -eq 0; then
19805 if test $export -eq 0; then
19806 echo "$as_me:$LINENO: result: no" >&5
19807 echo "${ECHO_T}no" >&6
19810 echo "$as_me:$LINENO: result: yes" >&5
19811 echo "${ECHO_T}yes" >&6
19813 cat >>confdefs.h <<\_ACEOF
19814 #define HAVE_CLASS_DEVICE_CREATE 1
19819 echo "$as_me:$LINENO: result: yes" >&5
19820 echo "${ECHO_T}yes" >&6
19822 cat >>confdefs.h <<\_ACEOF
19823 #define HAVE_CLASS_DEVICE_CREATE 1
19830 echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5
19831 echo $ECHO_N "checking whether symbol set_normalized_timespec is exported... $ECHO_C" >&6
19832 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' $LINUX_OBJ/Module.symvers 2>/dev/null
19834 if test $rc -ne 0; then
19836 for file in kernel/time.c; do
19837 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" "$LINUX_OBJ/$file" 2>/dev/null
19839 if test $rc -eq 0; then
19844 if test $export -eq 0; then
19845 echo "$as_me:$LINENO: result: no" >&5
19846 echo "${ECHO_T}no" >&6
19849 echo "$as_me:$LINENO: result: yes" >&5
19850 echo "${ECHO_T}yes" >&6
19852 cat >>confdefs.h <<\_ACEOF
19853 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
19858 echo "$as_me:$LINENO: result: yes" >&5
19859 echo "${ECHO_T}yes" >&6
19861 cat >>confdefs.h <<\_ACEOF
19862 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
19869 echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5
19870 echo $ECHO_N "checking whether set_normalized_timespec() is an inline... $ECHO_C" >&6
19873 cat >conftest.c <<_ACEOF
19876 cat confdefs.h >>conftest.$ac_ext
19877 cat >>conftest.$ac_ext <<_ACEOF
19878 /* end confdefs.h. */
19881 #include <linux/time.h>
19882 void set_normalized_timespec(struct timespec *ts,
19883 time_t sec, long nsec) { }
19896 rm -Rf build && mkdir -p build
19897 echo "obj-m := conftest.o" >build/Makefile
19898 if { ac_try='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19900 (eval $ac_try) 2>&5
19902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19905 (eval $ac_try) 2>&5
19907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908 (exit $ac_status); }; }; then
19910 echo "$as_me:$LINENO: result: no" >&5
19911 echo "${ECHO_T}no" >&6
19914 echo "$as_me: failed program was:" >&5
19915 sed 's/^/| /' conftest.$ac_ext >&5
19917 echo "$as_me:$LINENO: result: yes" >&5
19918 echo "${ECHO_T}yes" >&6
19920 cat >>confdefs.h <<\_ACEOF
19921 #define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1
19934 echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5
19935 echo $ECHO_N "checking whether timespec_sub() is available... $ECHO_C" >&6
19938 cat >conftest.c <<_ACEOF
19941 cat confdefs.h >>conftest.$ac_ext
19942 cat >>conftest.$ac_ext <<_ACEOF
19943 /* end confdefs.h. */
19946 #include <linux/time.h>
19952 struct timespec a, b, c = { 0 };
19953 c = timespec_sub(a, b);
19962 rm -Rf build && mkdir -p build
19963 echo "obj-m := conftest.o" >build/Makefile
19964 if { ac_try='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19966 (eval $ac_try) 2>&5
19968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19969 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19971 (eval $ac_try) 2>&5
19973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974 (exit $ac_status); }; }; then
19976 echo "$as_me:$LINENO: result: yes" >&5
19977 echo "${ECHO_T}yes" >&6
19979 cat >>confdefs.h <<\_ACEOF
19980 #define HAVE_TIMESPEC_SUB 1
19985 echo "$as_me: failed program was:" >&5
19986 sed 's/^/| /' conftest.$ac_ext >&5
19988 echo "$as_me:$LINENO: result: no" >&5
19989 echo "${ECHO_T}no" >&6
20000 echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5
20001 echo $ECHO_N "checking whether init_utsname() is available... $ECHO_C" >&6
20004 cat >conftest.c <<_ACEOF
20007 cat confdefs.h >>conftest.$ac_ext
20008 cat >>conftest.$ac_ext <<_ACEOF
20009 /* end confdefs.h. */
20012 #include <linux/utsname.h>
20018 struct new_utsname *a = init_utsname();
20027 rm -Rf build && mkdir -p build
20028 echo "obj-m := conftest.o" >build/Makefile
20029 if { ac_try='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20031 (eval $ac_try) 2>&5
20033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20036 (eval $ac_try) 2>&5
20038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); }; }; then
20041 echo "$as_me:$LINENO: result: yes" >&5
20042 echo "${ECHO_T}yes" >&6
20044 cat >>confdefs.h <<\_ACEOF
20045 #define HAVE_INIT_UTSNAME 1
20050 echo "$as_me: failed program was:" >&5
20051 sed 's/^/| /' conftest.$ac_ext >&5
20053 echo "$as_me:$LINENO: result: no" >&5
20054 echo "${ECHO_T}no" >&6
20065 echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5
20066 echo $ECHO_N "checking whether header linux/fdtable.h exists... $ECHO_C" >&6
20069 cat >conftest.c <<_ACEOF
20072 cat confdefs.h >>conftest.$ac_ext
20073 cat >>conftest.$ac_ext <<_ACEOF
20074 /* end confdefs.h. */
20077 #include <linux/fdtable.h>
20092 rm -Rf build && mkdir -p build
20093 echo "obj-m := conftest.o" >build/Makefile
20094 if { ac_try='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20096 (eval $ac_try) 2>&5
20098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20101 (eval $ac_try) 2>&5
20103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104 (exit $ac_status); }; }; then
20107 cat >>confdefs.h <<\_ACEOF
20108 #define HAVE_FDTABLE_HEADER 1
20111 echo "$as_me:$LINENO: result: yes" >&5
20112 echo "${ECHO_T}yes" >&6
20116 echo "$as_me: failed program was:" >&5
20117 sed 's/^/| /' conftest.$ac_ext >&5
20119 echo "$as_me:$LINENO: result: no" >&5
20120 echo "${ECHO_T}no" >&6
20133 echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5
20134 echo $ECHO_N "checking whether files_fdtable() is available... $ECHO_C" >&6
20137 cat >conftest.c <<_ACEOF
20140 cat confdefs.h >>conftest.$ac_ext
20141 cat >>conftest.$ac_ext <<_ACEOF
20142 /* end confdefs.h. */
20145 #include <linux/sched.h>
20146 #include <linux/file.h>
20147 #ifdef HAVE_FDTABLE_HEADER
20148 #include <linux/fdtable.h>
20155 struct files_struct *files = current->files;
20156 struct fdtable *fdt = files_fdtable(files);
20165 rm -Rf build && mkdir -p build
20166 echo "obj-m := conftest.o" >build/Makefile
20167 if { ac_try='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20169 (eval $ac_try) 2>&5
20171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20174 (eval $ac_try) 2>&5
20176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177 (exit $ac_status); }; }; then
20179 echo "$as_me:$LINENO: result: yes" >&5
20180 echo "${ECHO_T}yes" >&6
20182 cat >>confdefs.h <<\_ACEOF
20183 #define HAVE_FILES_FDTABLE 1
20188 echo "$as_me: failed program was:" >&5
20189 sed 's/^/| /' conftest.$ac_ext >&5
20191 echo "$as_me:$LINENO: result: no" >&5
20192 echo "${ECHO_T}no" >&6
20203 echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5
20204 echo $ECHO_N "checking whether header linux/uaccess.h exists... $ECHO_C" >&6
20207 cat >conftest.c <<_ACEOF
20210 cat confdefs.h >>conftest.$ac_ext
20211 cat >>conftest.$ac_ext <<_ACEOF
20212 /* end confdefs.h. */
20215 #include <linux/uaccess.h>
20230 rm -Rf build && mkdir -p build
20231 echo "obj-m := conftest.o" >build/Makefile
20232 if { ac_try='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20234 (eval $ac_try) 2>&5
20236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20239 (eval $ac_try) 2>&5
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); }; }; then
20245 cat >>confdefs.h <<\_ACEOF
20246 #define HAVE_UACCESS_HEADER 1
20249 echo "$as_me:$LINENO: result: yes" >&5
20250 echo "${ECHO_T}yes" >&6
20254 echo "$as_me: failed program was:" >&5
20255 sed 's/^/| /' conftest.$ac_ext >&5
20257 echo "$as_me:$LINENO: result: no" >&5
20258 echo "${ECHO_T}no" >&6
20271 echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5
20272 echo $ECHO_N "checking whether kmalloc_node() is available... $ECHO_C" >&6
20275 cat >conftest.c <<_ACEOF
20278 cat confdefs.h >>conftest.$ac_ext
20279 cat >>conftest.$ac_ext <<_ACEOF
20280 /* end confdefs.h. */
20283 #include <linux/slab.h>
20289 void *a = kmalloc_node(1, GFP_KERNEL, 0);
20298 rm -Rf build && mkdir -p build
20299 echo "obj-m := conftest.o" >build/Makefile
20300 if { ac_try='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20302 (eval $ac_try) 2>&5
20304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20307 (eval $ac_try) 2>&5
20309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310 (exit $ac_status); }; }; then
20312 echo "$as_me:$LINENO: result: yes" >&5
20313 echo "${ECHO_T}yes" >&6
20315 cat >>confdefs.h <<\_ACEOF
20316 #define HAVE_KMALLOC_NODE 1
20321 echo "$as_me: failed program was:" >&5
20322 sed 's/^/| /' conftest.$ac_ext >&5
20324 echo "$as_me:$LINENO: result: no" >&5
20325 echo "${ECHO_T}no" >&6
20336 echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5
20337 echo $ECHO_N "checking whether symbol monotonic_clock is exported... $ECHO_C" >&6
20338 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' $LINUX_OBJ/Module.symvers 2>/dev/null
20340 if test $rc -ne 0; then
20343 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" "$LINUX_OBJ/$file" 2>/dev/null
20345 if test $rc -eq 0; then
20350 if test $export -eq 0; then
20351 echo "$as_me:$LINENO: result: no" >&5
20352 echo "${ECHO_T}no" >&6
20355 echo "$as_me:$LINENO: result: yes" >&5
20356 echo "${ECHO_T}yes" >&6
20358 cat >>confdefs.h <<\_ACEOF
20359 #define HAVE_MONOTONIC_CLOCK 1
20364 echo "$as_me:$LINENO: result: yes" >&5
20365 echo "${ECHO_T}yes" >&6
20367 cat >>confdefs.h <<\_ACEOF
20368 #define HAVE_MONOTONIC_CLOCK 1
20375 echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5
20376 echo $ECHO_N "checking whether struct inode has i_mutex... $ECHO_C" >&6
20379 cat >conftest.c <<_ACEOF
20382 cat confdefs.h >>conftest.$ac_ext
20383 cat >>conftest.$ac_ext <<_ACEOF
20384 /* end confdefs.h. */
20387 #include <linux/fs.h>
20388 #include <linux/mutex.h>
20395 mutex_init(&i.i_mutex);
20404 rm -Rf build && mkdir -p build
20405 echo "obj-m := conftest.o" >build/Makefile
20406 if { ac_try='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20408 (eval $ac_try) 2>&5
20410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20413 (eval $ac_try) 2>&5
20415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416 (exit $ac_status); }; }; then
20418 echo "$as_me:$LINENO: result: yes" >&5
20419 echo "${ECHO_T}yes" >&6
20421 cat >>confdefs.h <<\_ACEOF
20422 #define HAVE_INODE_I_MUTEX 1
20427 echo "$as_me: failed program was:" >&5
20428 sed 's/^/| /' conftest.$ac_ext >&5
20430 echo "$as_me:$LINENO: result: no" >&5
20431 echo "${ECHO_T}no" >&6
20442 echo "$as_me:$LINENO: checking whether div64_64() is available" >&5
20443 echo $ECHO_N "checking whether div64_64() is available... $ECHO_C" >&6
20446 cat >conftest.c <<_ACEOF
20449 cat confdefs.h >>conftest.$ac_ext
20450 cat >>conftest.$ac_ext <<_ACEOF
20451 /* end confdefs.h. */
20454 #include <asm/div64.h>
20455 #include <linux/types.h>
20461 uint64_t i = div64_64(1ULL, 1ULL);
20470 rm -Rf build && mkdir -p build
20471 echo "obj-m := conftest.o" >build/Makefile
20472 if { ac_try='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20474 (eval $ac_try) 2>&5
20476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20479 (eval $ac_try) 2>&5
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); }; }; then
20484 echo "$as_me:$LINENO: result: yes" >&5
20485 echo "${ECHO_T}yes" >&6
20487 cat >>confdefs.h <<\_ACEOF
20488 #define HAVE_DIV64_64 1
20493 echo "$as_me: failed program was:" >&5
20494 sed 's/^/| /' conftest.$ac_ext >&5
20496 echo "$as_me:$LINENO: result: no" >&5
20497 echo "${ECHO_T}no" >&6
20508 echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5
20509 echo $ECHO_N "checking whether on_each_cpu() wants 3 args... $ECHO_C" >&6
20512 cat >conftest.c <<_ACEOF
20515 cat confdefs.h >>conftest.$ac_ext
20516 cat >>conftest.$ac_ext <<_ACEOF
20517 /* end confdefs.h. */
20520 #include <linux/smp.h>
20526 on_each_cpu(NULL, NULL, 0);
20535 rm -Rf build && mkdir -p build
20536 echo "obj-m := conftest.o" >build/Makefile
20537 if { ac_try='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20539 (eval $ac_try) 2>&5
20541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20544 (eval $ac_try) 2>&5
20546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547 (exit $ac_status); }; }; then
20549 echo "$as_me:$LINENO: result: yes" >&5
20550 echo "${ECHO_T}yes" >&6
20552 cat >>confdefs.h <<\_ACEOF
20553 #define HAVE_3ARGS_ON_EACH_CPU 1
20558 echo "$as_me: failed program was:" >&5
20559 sed 's/^/| /' conftest.$ac_ext >&5
20561 echo "$as_me:$LINENO: result: no" >&5
20562 echo "${ECHO_T}no" >&6
20573 echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5
20574 echo $ECHO_N "checking whether symbol kallsyms_lookup_name is exported... $ECHO_C" >&6
20575 grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' $LINUX_OBJ/Module.symvers 2>/dev/null
20577 if test $rc -ne 0; then
20580 grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" "$LINUX_OBJ/$file" 2>/dev/null
20582 if test $rc -eq 0; then
20587 if test $export -eq 0; then
20588 echo "$as_me:$LINENO: result: no" >&5
20589 echo "${ECHO_T}no" >&6
20592 echo "$as_me:$LINENO: result: yes" >&5
20593 echo "${ECHO_T}yes" >&6
20595 cat >>confdefs.h <<\_ACEOF
20596 #define HAVE_KALLSYMS_LOOKUP_NAME 1
20601 echo "$as_me:$LINENO: result: yes" >&5
20602 echo "${ECHO_T}yes" >&6
20604 cat >>confdefs.h <<\_ACEOF
20605 #define HAVE_KALLSYMS_LOOKUP_NAME 1
20612 echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5
20613 echo $ECHO_N "checking whether symbol get_vmalloc_info is exported... $ECHO_C" >&6
20614 grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' $LINUX_OBJ/Module.symvers 2>/dev/null
20616 if test $rc -ne 0; then
20619 grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" "$LINUX_OBJ/$file" 2>/dev/null
20621 if test $rc -eq 0; then
20626 if test $export -eq 0; then
20627 echo "$as_me:$LINENO: result: no" >&5
20628 echo "${ECHO_T}no" >&6
20631 echo "$as_me:$LINENO: result: yes" >&5
20632 echo "${ECHO_T}yes" >&6
20634 cat >>confdefs.h <<\_ACEOF
20635 #define HAVE_GET_VMALLOC_INFO 1
20640 echo "$as_me:$LINENO: result: yes" >&5
20641 echo "${ECHO_T}yes" >&6
20643 cat >>confdefs.h <<\_ACEOF
20644 #define HAVE_GET_VMALLOC_INFO 1
20651 echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5
20652 echo $ECHO_N "checking whether symbol first_online_pgdat is exported... $ECHO_C" >&6
20653 grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' $LINUX_OBJ/Module.symvers 2>/dev/null
20655 if test $rc -ne 0; then
20658 grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" "$LINUX_OBJ/$file" 2>/dev/null
20660 if test $rc -eq 0; then
20665 if test $export -eq 0; then
20666 echo "$as_me:$LINENO: result: no" >&5
20667 echo "${ECHO_T}no" >&6
20670 echo "$as_me:$LINENO: result: yes" >&5
20671 echo "${ECHO_T}yes" >&6
20673 cat >>confdefs.h <<\_ACEOF
20674 #define HAVE_FIRST_ONLINE_PGDAT 1
20679 echo "$as_me:$LINENO: result: yes" >&5
20680 echo "${ECHO_T}yes" >&6
20682 cat >>confdefs.h <<\_ACEOF
20683 #define HAVE_FIRST_ONLINE_PGDAT 1
20690 echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5
20691 echo $ECHO_N "checking whether symbol next_online_pgdat is exported... $ECHO_C" >&6
20692 grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' $LINUX_OBJ/Module.symvers 2>/dev/null
20694 if test $rc -ne 0; then
20697 grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" "$LINUX_OBJ/$file" 2>/dev/null
20699 if test $rc -eq 0; then
20704 if test $export -eq 0; then
20705 echo "$as_me:$LINENO: result: no" >&5
20706 echo "${ECHO_T}no" >&6
20709 echo "$as_me:$LINENO: result: yes" >&5
20710 echo "${ECHO_T}yes" >&6
20712 cat >>confdefs.h <<\_ACEOF
20713 #define HAVE_NEXT_ONLINE_PGDAT 1
20718 echo "$as_me:$LINENO: result: yes" >&5
20719 echo "${ECHO_T}yes" >&6
20721 cat >>confdefs.h <<\_ACEOF
20722 #define HAVE_NEXT_ONLINE_PGDAT 1
20729 echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5
20730 echo $ECHO_N "checking whether symbol next_zone is exported... $ECHO_C" >&6
20731 grep -q -E '[[:space:]]next_zone[[:space:]]' $LINUX_OBJ/Module.symvers 2>/dev/null
20733 if test $rc -ne 0; then
20736 grep -q -E "EXPORT_SYMBOL.*(next_zone)" "$LINUX_OBJ/$file" 2>/dev/null
20738 if test $rc -eq 0; then
20743 if test $export -eq 0; then
20744 echo "$as_me:$LINENO: result: no" >&5
20745 echo "${ECHO_T}no" >&6
20748 echo "$as_me:$LINENO: result: yes" >&5
20749 echo "${ECHO_T}yes" >&6
20751 cat >>confdefs.h <<\_ACEOF
20752 #define HAVE_NEXT_ZONE 1
20757 echo "$as_me:$LINENO: result: yes" >&5
20758 echo "${ECHO_T}yes" >&6
20760 cat >>confdefs.h <<\_ACEOF
20761 #define HAVE_NEXT_ZONE 1
20768 echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5
20769 echo $ECHO_N "checking whether symbol get_zone_counts is exported... $ECHO_C" >&6
20770 grep -q -E '[[:space:]]get_zone_counts[[:space:]]' $LINUX_OBJ/Module.symvers 2>/dev/null
20772 if test $rc -ne 0; then
20775 grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" "$LINUX_OBJ/$file" 2>/dev/null
20777 if test $rc -eq 0; then
20782 if test $export -eq 0; then
20783 echo "$as_me:$LINENO: result: no" >&5
20784 echo "${ECHO_T}no" >&6
20787 echo "$as_me:$LINENO: result: yes" >&5
20788 echo "${ECHO_T}yes" >&6
20790 cat >>confdefs.h <<\_ACEOF
20791 #define HAVE_GET_ZONE_COUNTS 1
20796 echo "$as_me:$LINENO: result: yes" >&5
20797 echo "${ECHO_T}yes" >&6
20799 cat >>confdefs.h <<\_ACEOF
20800 #define HAVE_GET_ZONE_COUNTS 1
20807 ac_config_files="$ac_config_files Makefile lib/Makefile cmd/Makefile module/Makefile module/spl/Makefile module/splat/Makefile include/Makefile scripts/Makefile spl.spec"
20810 cat >confcache <<\_ACEOF
20811 # This file is a shell script that caches the results of configure
20812 # tests run on this system so they can be shared between configure
20813 # scripts and configure runs, see configure's option --config-cache.
20814 # It is not useful on other systems. If it contains results you don't
20815 # want to keep, you may remove or edit it.
20817 # config.status only pays attention to the cache file if you give it
20818 # the --recheck option to rerun configure.
20820 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20821 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20822 # following values.
20826 # The following way of writing the cache mishandles newlines in values,
20827 # but we know of no workaround that is simple, portable, and efficient.
20828 # So, don't put newlines in cache variables' values.
20829 # Ultrix sh set writes to stderr and can't be redirected directly,
20830 # and sets the high bit in the cache file unless we assign to the vars.
20833 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20835 # `set' does not quote correctly, so add quotes (double-quote
20836 # substitution turns \\\\ into \\, and sed turns \\ into \).
20839 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20842 # `set' quotes correctly as required by POSIX, so do not add quotes.
20844 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20851 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20853 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20855 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20856 if test -w $cache_file; then
20857 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20858 cat confcache >$cache_file
20860 echo "not updating unwritable cache $cache_file"
20865 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20866 # Let make expand exec_prefix.
20867 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20869 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20870 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20871 # trailing colons and then remove the whole line if VPATH becomes empty
20872 # (actually we leave an empty line to preserve line numbers).
20873 if test "x$srcdir" = x.; then
20874 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20875 s/:*\$(srcdir):*/:/;
20876 s/:*\${srcdir}:*/:/;
20878 s/^\([^=]*=[ ]*\):*/\1/;
20884 DEFS=-DHAVE_CONFIG_H
20888 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20889 # 1. Remove the extension, and $U if already installed.
20890 ac_i=`echo "$ac_i" |
20891 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20893 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20894 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20896 LIBOBJS=$ac_libobjs
20898 LTLIBOBJS=$ac_ltlibobjs
20901 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20902 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20903 Usually this means the macro was only invoked conditionally." >&5
20904 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20905 Usually this means the macro was only invoked conditionally." >&2;}
20906 { (exit 1); exit 1; }; }
20908 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20909 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20910 Usually this means the macro was only invoked conditionally." >&5
20911 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20912 Usually this means the macro was only invoked conditionally." >&2;}
20913 { (exit 1); exit 1; }; }
20915 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20916 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20917 Usually this means the macro was only invoked conditionally." >&5
20918 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20919 Usually this means the macro was only invoked conditionally." >&2;}
20920 { (exit 1); exit 1; }; }
20922 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20923 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20924 Usually this means the macro was only invoked conditionally." >&5
20925 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20926 Usually this means the macro was only invoked conditionally." >&2;}
20927 { (exit 1); exit 1; }; }
20930 : ${CONFIG_STATUS=./config.status}
20931 ac_clean_files_save=$ac_clean_files
20932 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20933 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20934 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20935 cat >$CONFIG_STATUS <<_ACEOF
20937 # Generated by $as_me.
20938 # Run this file to recreate the current configuration.
20939 # Compiler output produced by configure, useful for debugging
20940 # configure, is in config.log if it exists.
20943 ac_cs_recheck=false
20945 SHELL=\${CONFIG_SHELL-$SHELL}
20948 cat >>$CONFIG_STATUS <<\_ACEOF
20949 ## --------------------- ##
20950 ## M4sh Initialization. ##
20951 ## --------------------- ##
20953 # Be Bourne compatible
20954 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20957 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20958 # is contrary to our usage. Disable this feature.
20959 alias -g '${1+"$@"}'='"$@"'
20960 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20963 DUALCASE=1; export DUALCASE # for MKS sh
20965 # Support unset when possible.
20966 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20973 # Work around bugs in pre-3.0 UWIN ksh.
20974 $as_unset ENV MAIL MAILPATH
20981 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20982 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20983 LC_TELEPHONE LC_TIME
20985 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20986 eval $as_var=C; export $as_var
20992 # Required to use basename.
20993 if expr a : '\(a\)' >/dev/null 2>&1; then
20999 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21000 as_basename=basename
21006 # Name of the executable.
21007 as_me=`$as_basename "$0" ||
21008 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21009 X"$0" : 'X\(//\)$' \| \
21010 X"$0" : 'X\(/\)$' \| \
21011 . : '\(.\)' 2>/dev/null ||
21013 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21014 /^X\/\(\/\/\)$/{ s//\1/; q; }
21015 /^X\/\(\/\).*/{ s//\1/; q; }
21019 # PATH needs CR, and LINENO needs CR and PATH.
21020 # Avoid depending upon Character Ranges.
21021 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21022 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21023 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21024 as_cr_digits='0123456789'
21025 as_cr_alnum=$as_cr_Letters$as_cr_digits
21027 # The user is always right.
21028 if test "${PATH_SEPARATOR+set}" != set; then
21029 echo "#! /bin/sh" >conf$$.sh
21030 echo "exit 0" >>conf$$.sh
21032 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21041 as_lineno_1=$LINENO
21042 as_lineno_2=$LINENO
21043 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21044 test "x$as_lineno_1" != "x$as_lineno_2" &&
21045 test "x$as_lineno_3" = "x$as_lineno_2" || {
21046 # Find who we are. Look in the path if we contain no path at all
21049 *[\\/]* ) as_myself=$0 ;;
21050 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21051 for as_dir in $PATH
21054 test -z "$as_dir" && as_dir=.
21055 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21060 # We did not find ourselves, most probably we were run as `sh COMMAND'
21061 # in which case we are not to be found in the path.
21062 if test "x$as_myself" = x; then
21065 if test ! -f "$as_myself"; then
21066 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21067 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21068 { (exit 1); exit 1; }; }
21070 case $CONFIG_SHELL in
21072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21073 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21076 test -z "$as_dir" && as_dir=.
21077 for as_base in sh bash ksh sh5; do
21080 if ("$as_dir/$as_base" -c '
21081 as_lineno_1=$LINENO
21082 as_lineno_2=$LINENO
21083 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21084 test "x$as_lineno_1" != "x$as_lineno_2" &&
21085 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21086 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21087 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21088 CONFIG_SHELL=$as_dir/$as_base
21089 export CONFIG_SHELL
21090 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21098 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21099 # uniformly replaced by the line number. The first 'sed' inserts a
21100 # line-number line before each line; the second 'sed' does the real
21101 # work. The second script uses 'N' to pair each line-number line
21102 # with the numbered line, and appends trailing '-' during
21103 # substitution so that $LINENO is not a special case at line end.
21104 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21105 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21106 sed '=' <$as_myself |
21111 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21114 s,^['$as_cr_digits']*\n,,
21115 ' >$as_me.lineno &&
21116 chmod +x $as_me.lineno ||
21117 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21118 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21119 { (exit 1); exit 1; }; }
21121 # Don't try to exec as it changes $[0], causing all sort of problems
21122 # (the dirname of $[0] is not the place where we might find the
21123 # original and so on. Autoconf is especially sensible to this).
21125 # Exit status is that of the last command.
21130 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21131 *c*,-n*) ECHO_N= ECHO_C='
21133 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21134 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21137 if expr a : '\(a\)' >/dev/null 2>&1; then
21143 rm -f conf$$ conf$$.exe conf$$.file
21145 if ln -s conf$$.file conf$$ 2>/dev/null; then
21146 # We could just check for DJGPP; but this test a) works b) is more generic
21147 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21148 if test -f conf$$.exe; then
21149 # Don't use ln at all; we don't have any links
21154 elif ln conf$$.file conf$$ 2>/dev/null; then
21159 rm -f conf$$ conf$$.exe conf$$.file
21161 if mkdir -p . 2>/dev/null; then
21164 test -d ./-p && rmdir ./-p
21168 as_executable_p="test -f"
21170 # Sed expression to map a string onto a valid CPP name.
21171 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21173 # Sed expression to map a string onto a valid variable name.
21174 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21178 # We need space, tab and new line, in precisely that order.
21188 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21189 # report actual input values of CONFIG_FILES etc. instead of their
21190 # values after options handling. Logging --version etc. is OK.
21194 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21195 ## Running $as_me. ##
21200 This file was extended by $as_me, which was
21201 generated by GNU Autoconf 2.59. Invocation command line was
21203 CONFIG_FILES = $CONFIG_FILES
21204 CONFIG_HEADERS = $CONFIG_HEADERS
21205 CONFIG_LINKS = $CONFIG_LINKS
21206 CONFIG_COMMANDS = $CONFIG_COMMANDS
21210 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21214 # Files that config.status was made for.
21215 if test -n "$ac_config_files"; then
21216 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21219 if test -n "$ac_config_headers"; then
21220 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21223 if test -n "$ac_config_links"; then
21224 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21227 if test -n "$ac_config_commands"; then
21228 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21231 cat >>$CONFIG_STATUS <<\_ACEOF
21234 \`$as_me' instantiates files from templates according to the
21235 current configuration.
21237 Usage: $0 [OPTIONS] [FILE]...
21239 -h, --help print this help, then exit
21240 -V, --version print version number, then exit
21241 -q, --quiet do not print progress messages
21242 -d, --debug don't remove temporary files
21243 --recheck update $as_me by reconfiguring in the same conditions
21244 --file=FILE[:TEMPLATE]
21245 instantiate the configuration file FILE
21246 --header=FILE[:TEMPLATE]
21247 instantiate the configuration header FILE
21249 Configuration files:
21252 Configuration headers:
21255 Configuration commands:
21258 Report bugs to <bug-autoconf@gnu.org>."
21261 cat >>$CONFIG_STATUS <<_ACEOF
21264 configured by $0, generated by GNU Autoconf 2.59,
21265 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21267 Copyright (C) 2003 Free Software Foundation, Inc.
21268 This config.status script is free software; the Free Software Foundation
21269 gives unlimited permission to copy, distribute and modify it."
21274 cat >>$CONFIG_STATUS <<\_ACEOF
21275 # If no file are specified by the user, then we need to provide default
21276 # value. By we need to know if files were specified by the user.
21282 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21283 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21291 *) # This is not an option, so the user has probably given explicit
21294 ac_need_defaults=false;;
21298 # Handling of the options.
21300 cat >>$CONFIG_STATUS <<\_ACEOF
21301 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21303 --version | --vers* | -V )
21304 echo "$ac_cs_version"; exit 0 ;;
21306 # Conflict between --help and --header
21307 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21308 Try \`$0 --help' for more information." >&5
21309 echo "$as_me: error: ambiguous option: $1
21310 Try \`$0 --help' for more information." >&2;}
21311 { (exit 1); exit 1; }; };;
21312 --help | --hel | -h )
21313 echo "$ac_cs_usage"; exit 0 ;;
21314 --debug | --d* | -d )
21316 --file | --fil | --fi | --f )
21318 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21319 ac_need_defaults=false;;
21320 --header | --heade | --head | --hea )
21322 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21323 ac_need_defaults=false;;
21324 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21325 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21328 # This is an error.
21329 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21330 Try \`$0 --help' for more information." >&5
21331 echo "$as_me: error: unrecognized option: $1
21332 Try \`$0 --help' for more information." >&2;}
21333 { (exit 1); exit 1; }; } ;;
21335 *) ac_config_targets="$ac_config_targets $1" ;;
21341 ac_configure_extra_args=
21343 if $ac_cs_silent; then
21345 ac_configure_extra_args="$ac_configure_extra_args --silent"
21349 cat >>$CONFIG_STATUS <<_ACEOF
21350 if \$ac_cs_recheck; then
21351 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21352 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21357 cat >>$CONFIG_STATUS <<_ACEOF
21359 # INIT-COMMANDS section.
21362 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21368 cat >>$CONFIG_STATUS <<\_ACEOF
21369 for ac_config_target in $ac_config_targets
21371 case "$ac_config_target" in
21372 # Handling of arguments.
21373 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21374 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
21375 "cmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
21376 "module/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
21377 "module/spl/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/spl/Makefile" ;;
21378 "module/splat/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/splat/Makefile" ;;
21379 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21380 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
21381 "spl.spec" ) CONFIG_FILES="$CONFIG_FILES spl.spec" ;;
21382 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21383 "spl_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS spl_config.h" ;;
21384 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21385 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21386 { (exit 1); exit 1; }; };;
21390 # If the user did not use the arguments to specify the items to instantiate,
21391 # then the envvar interface is used. Set only those that are not.
21392 # We use the long form for the default assignment because of an extremely
21393 # bizarre bug on SunOS 4.1.3.
21394 if $ac_need_defaults; then
21395 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21396 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21397 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21400 # Have a temporary directory for convenience. Make it in the build tree
21401 # simply because there is no reason to put it here, and in addition,
21402 # creating and moving files from /tmp can sometimes cause problems.
21403 # Create a temporary directory, and hook for its removal unless debugging.
21406 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21407 trap '{ (exit 1); exit 1; }' 1 2 13 15
21410 # Create a (secure) tmp directory for tmp files.
21413 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21414 test -n "$tmp" && test -d "$tmp"
21417 tmp=./confstat$$-$RANDOM
21418 (umask 077 && mkdir $tmp)
21421 echo "$me: cannot create a temporary directory in ." >&2
21422 { (exit 1); exit 1; }
21427 cat >>$CONFIG_STATUS <<_ACEOF
21430 # CONFIG_FILES section.
21433 # No need to generate the scripts if there are no CONFIG_FILES.
21434 # This happens for instance when ./config.status config.h
21435 if test -n "\$CONFIG_FILES"; then
21436 # Protect against being on the right side of a sed subst in config.status.
21437 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21438 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21439 s,@SHELL@,$SHELL,;t t
21440 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21441 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21442 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21443 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21444 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21445 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21446 s,@exec_prefix@,$exec_prefix,;t t
21447 s,@prefix@,$prefix,;t t
21448 s,@program_transform_name@,$program_transform_name,;t t
21449 s,@bindir@,$bindir,;t t
21450 s,@sbindir@,$sbindir,;t t
21451 s,@libexecdir@,$libexecdir,;t t
21452 s,@datadir@,$datadir,;t t
21453 s,@sysconfdir@,$sysconfdir,;t t
21454 s,@sharedstatedir@,$sharedstatedir,;t t
21455 s,@localstatedir@,$localstatedir,;t t
21456 s,@libdir@,$libdir,;t t
21457 s,@includedir@,$includedir,;t t
21458 s,@oldincludedir@,$oldincludedir,;t t
21459 s,@infodir@,$infodir,;t t
21460 s,@mandir@,$mandir,;t t
21461 s,@build_alias@,$build_alias,;t t
21462 s,@host_alias@,$host_alias,;t t
21463 s,@target_alias@,$target_alias,;t t
21464 s,@DEFS@,$DEFS,;t t
21465 s,@ECHO_C@,$ECHO_C,;t t
21466 s,@ECHO_N@,$ECHO_N,;t t
21467 s,@ECHO_T@,$ECHO_T,;t t
21468 s,@LIBS@,$LIBS,;t t
21469 s,@SPL_META_NAME@,$SPL_META_NAME,;t t
21470 s,@SPL_META_VERSION@,$SPL_META_VERSION,;t t
21471 s,@SPL_META_RELEASE@,$SPL_META_RELEASE,;t t
21472 s,@SPL_META_ALIAS@,$SPL_META_ALIAS,;t t
21473 s,@SPL_META_DATA@,$SPL_META_DATA,;t t
21474 s,@SPL_META_AUTHOR@,$SPL_META_AUTHOR,;t t
21475 s,@SPL_META_LT_CURRENT@,$SPL_META_LT_CURRENT,;t t
21476 s,@SPL_META_LT_REVISION@,$SPL_META_LT_REVISION,;t t
21477 s,@SPL_META_LT_AGE@,$SPL_META_LT_AGE,;t t
21478 s,@build@,$build,;t t
21479 s,@build_cpu@,$build_cpu,;t t
21480 s,@build_vendor@,$build_vendor,;t t
21481 s,@build_os@,$build_os,;t t
21482 s,@host@,$host,;t t
21483 s,@host_cpu@,$host_cpu,;t t
21484 s,@host_vendor@,$host_vendor,;t t
21485 s,@host_os@,$host_os,;t t
21486 s,@target@,$target,;t t
21487 s,@target_cpu@,$target_cpu,;t t
21488 s,@target_vendor@,$target_vendor,;t t
21489 s,@target_os@,$target_os,;t t
21490 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21491 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21492 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21493 s,@CYGPATH_W@,$CYGPATH_W,;t t
21494 s,@PACKAGE@,$PACKAGE,;t t
21495 s,@VERSION@,$VERSION,;t t
21496 s,@ACLOCAL@,$ACLOCAL,;t t
21497 s,@AUTOCONF@,$AUTOCONF,;t t
21498 s,@AUTOMAKE@,$AUTOMAKE,;t t
21499 s,@AUTOHEADER@,$AUTOHEADER,;t t
21500 s,@MAKEINFO@,$MAKEINFO,;t t
21501 s,@install_sh@,$install_sh,;t t
21502 s,@STRIP@,$STRIP,;t t
21503 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21504 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21505 s,@mkdir_p@,$mkdir_p,;t t
21507 s,@SET_MAKE@,$SET_MAKE,;t t
21508 s,@am__leading_dot@,$am__leading_dot,;t t
21509 s,@AMTAR@,$AMTAR,;t t
21510 s,@am__tar@,$am__tar,;t t
21511 s,@am__untar@,$am__untar,;t t
21512 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21513 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21514 s,@MAINT@,$MAINT,;t t
21516 s,@CFLAGS@,$CFLAGS,;t t
21517 s,@LDFLAGS@,$LDFLAGS,;t t
21518 s,@CPPFLAGS@,$CPPFLAGS,;t t
21519 s,@ac_ct_CC@,$ac_ct_CC,;t t
21520 s,@EXEEXT@,$EXEEXT,;t t
21521 s,@OBJEXT@,$OBJEXT,;t t
21522 s,@DEPDIR@,$DEPDIR,;t t
21523 s,@am__include@,$am__include,;t t
21524 s,@am__quote@,$am__quote,;t t
21525 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21526 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21527 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21528 s,@CCDEPMODE@,$CCDEPMODE,;t t
21529 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21530 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21532 s,@EGREP@,$EGREP,;t t
21533 s,@LN_S@,$LN_S,;t t
21534 s,@ECHO@,$ECHO,;t t
21536 s,@ac_ct_AR@,$ac_ct_AR,;t t
21537 s,@RANLIB@,$RANLIB,;t t
21538 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21541 s,@CXXFLAGS@,$CXXFLAGS,;t t
21542 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21543 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21544 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21545 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21546 s,@CXXCPP@,$CXXCPP,;t t
21548 s,@FFLAGS@,$FFLAGS,;t t
21549 s,@ac_ct_F77@,$ac_ct_F77,;t t
21550 s,@LIBTOOL@,$LIBTOOL,;t t
21551 s,@LINUX@,$LINUX,;t t
21552 s,@LINUX_OBJ@,$LINUX_OBJ,;t t
21553 s,@LINUX_VERSION@,$LINUX_VERSION,;t t
21554 s,@KERNELMAKE_PARAMS@,$KERNELMAKE_PARAMS,;t t
21555 s,@KERNELCPPFLAGS@,$KERNELCPPFLAGS,;t t
21556 s,@KERNELCFLAGS@,$KERNELCFLAGS,;t t
21557 s,@LIBOBJS@,$LIBOBJS,;t t
21558 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21563 cat >>$CONFIG_STATUS <<\_ACEOF
21564 # Split the substitutions into bite-sized pieces for seds with
21565 # small command number limits, like on Digital OSF/1 and HP-UX.
21566 ac_max_sed_lines=48
21567 ac_sed_frag=1 # Number of current file.
21568 ac_beg=1 # First line for current file.
21569 ac_end=$ac_max_sed_lines # Line after last line for current file.
21572 while $ac_more_lines; do
21573 if test $ac_beg -gt 1; then
21574 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21576 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21578 if test ! -s $tmp/subs.frag; then
21579 ac_more_lines=false
21581 # The purpose of the label and of the branching condition is to
21582 # speed up the sed processing (if there are no `@' at all, there
21583 # is no need to browse any of the substitutions).
21584 # These are the two extra sed commands mentioned above.
21586 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21587 if test -z "$ac_sed_cmds"; then
21588 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21590 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21592 ac_sed_frag=`expr $ac_sed_frag + 1`
21594 ac_end=`expr $ac_end + $ac_max_sed_lines`
21597 if test -z "$ac_sed_cmds"; then
21600 fi # test -n "$CONFIG_FILES"
21603 cat >>$CONFIG_STATUS <<\_ACEOF
21604 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21605 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21607 - | *:- | *:-:* ) # input from stdin
21609 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21610 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21611 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21612 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21613 * ) ac_file_in=$ac_file.in ;;
21616 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21617 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21618 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21619 X"$ac_file" : 'X\(//\)[^/]' \| \
21620 X"$ac_file" : 'X\(//\)$' \| \
21621 X"$ac_file" : 'X\(/\)' \| \
21622 . : '\(.\)' 2>/dev/null ||
21624 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21625 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21626 /^X\(\/\/\)$/{ s//\1/; q; }
21627 /^X\(\/\).*/{ s//\1/; q; }
21629 { if $as_mkdir_p; then
21634 while test ! -d "$as_dir"; do
21635 as_dirs="$as_dir $as_dirs"
21636 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21637 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21638 X"$as_dir" : 'X\(//\)[^/]' \| \
21639 X"$as_dir" : 'X\(//\)$' \| \
21640 X"$as_dir" : 'X\(/\)' \| \
21641 . : '\(.\)' 2>/dev/null ||
21643 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21644 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21645 /^X\(\/\/\)$/{ s//\1/; q; }
21646 /^X\(\/\).*/{ s//\1/; q; }
21649 test ! -n "$as_dirs" || mkdir $as_dirs
21650 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21651 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21652 { (exit 1); exit 1; }; }; }
21656 if test "$ac_dir" != .; then
21657 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21658 # A "../" for each directory in $ac_dir_suffix.
21659 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21661 ac_dir_suffix= ac_top_builddir=
21665 .) # No --srcdir option. We are building in place.
21667 if test -z "$ac_top_builddir"; then
21670 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21672 [\\/]* | ?:[\\/]* ) # Absolute path.
21673 ac_srcdir=$srcdir$ac_dir_suffix;
21674 ac_top_srcdir=$srcdir ;;
21675 *) # Relative path.
21676 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21677 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21680 # Do not use `cd foo && pwd` to compute absolute paths, because
21681 # the directories may not exist.
21683 .) ac_abs_builddir="$ac_dir";;
21686 .) ac_abs_builddir=`pwd`;;
21687 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21688 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21691 case $ac_abs_builddir in
21692 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21694 case ${ac_top_builddir}. in
21695 .) ac_abs_top_builddir=$ac_abs_builddir;;
21696 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21697 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21700 case $ac_abs_builddir in
21701 .) ac_abs_srcdir=$ac_srcdir;;
21704 .) ac_abs_srcdir=$ac_abs_builddir;;
21705 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21706 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21709 case $ac_abs_builddir in
21710 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21712 case $ac_top_srcdir in
21713 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21714 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21715 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21721 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21722 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21725 if test x"$ac_file" != x-; then
21726 { echo "$as_me:$LINENO: creating $ac_file" >&5
21727 echo "$as_me: creating $ac_file" >&6;}
21730 # Let's still pretend it is `configure' which instantiates (i.e., don't
21731 # use $as_me), people would be surprised to read:
21732 # /* config.h. Generated by config.status. */
21733 if test x"$ac_file" = x-; then
21736 configure_input="$ac_file. "
21738 configure_input=$configure_input"Generated from `echo $ac_file_in |
21739 sed 's,.*/,,'` by configure."
21741 # First look for the input files in the build tree, otherwise in the
21743 ac_file_inputs=`IFS=:
21744 for f in $ac_file_in; do
21746 -) echo $tmp/stdin ;;
21748 # Absolute (can't be DOS-style, as IFS=:)
21749 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21750 echo "$as_me: error: cannot find input file: $f" >&2;}
21751 { (exit 1); exit 1; }; }
21754 if test -f "$f"; then
21757 elif test -f "$srcdir/$f"; then
21762 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21763 echo "$as_me: error: cannot find input file: $f" >&2;}
21764 { (exit 1); exit 1; }; }
21767 done` || { (exit 1); exit 1; }
21769 cat >>$CONFIG_STATUS <<_ACEOF
21773 cat >>$CONFIG_STATUS <<\_ACEOF
21775 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21776 s,@configure_input@,$configure_input,;t t
21777 s,@srcdir@,$ac_srcdir,;t t
21778 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21779 s,@top_srcdir@,$ac_top_srcdir,;t t
21780 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21781 s,@builddir@,$ac_builddir,;t t
21782 s,@abs_builddir@,$ac_abs_builddir,;t t
21783 s,@top_builddir@,$ac_top_builddir,;t t
21784 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21785 s,@INSTALL@,$ac_INSTALL,;t t
21786 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21788 if test x"$ac_file" != x-; then
21789 mv $tmp/out $ac_file
21797 cat >>$CONFIG_STATUS <<\_ACEOF
21800 # CONFIG_HEADER section.
21803 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21804 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21806 # ac_d sets the value in "#define NAME VALUE" lines.
21807 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21808 ac_dB='[ ].*$,\1#\2'
21811 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21812 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21813 ac_uB='$,\1#\2define\3'
21817 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21818 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21820 - | *:- | *:-:* ) # input from stdin
21822 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21823 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21824 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21825 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21826 * ) ac_file_in=$ac_file.in ;;
21829 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21830 echo "$as_me: creating $ac_file" >&6;}
21832 # First look for the input files in the build tree, otherwise in the
21834 ac_file_inputs=`IFS=:
21835 for f in $ac_file_in; do
21837 -) echo $tmp/stdin ;;
21839 # Absolute (can't be DOS-style, as IFS=:)
21840 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21841 echo "$as_me: error: cannot find input file: $f" >&2;}
21842 { (exit 1); exit 1; }; }
21843 # Do quote $f, to prevent DOS paths from being IFS'd.
21846 if test -f "$f"; then
21849 elif test -f "$srcdir/$f"; then
21854 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21855 echo "$as_me: error: cannot find input file: $f" >&2;}
21856 { (exit 1); exit 1; }; }
21859 done` || { (exit 1); exit 1; }
21860 # Remove the trailing spaces.
21861 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21865 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21866 # `conftest.undefs', that substitutes the proper values into
21867 # config.h.in to produce config.h. The first handles `#define'
21868 # templates, and the second `#undef' templates.
21869 # And first: Protect against being on the right side of a sed subst in
21870 # config.status. Protect against being in an unquoted here document
21871 # in config.status.
21872 rm -f conftest.defines conftest.undefs
21873 # Using a here document instead of a string reduces the quoting nightmare.
21874 # Putting comments in sed scripts is not portable.
21876 # `end' is used to avoid that the second main sed command (meant for
21877 # 0-ary CPP macros) applies to n-ary macro definitions.
21878 # See the Autoconf documentation for `clear'.
21879 cat >confdef2sed.sed <<\_ACEOF
21884 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21886 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21889 # If some macros were called several times there might be several times
21890 # the same #defines, which is useless. Nevertheless, we may not want to
21891 # sort them, since we want the *last* AC-DEFINE to be honored.
21892 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21893 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21894 rm -f confdef2sed.sed
21896 # This sed command replaces #undef with comments. This is necessary, for
21897 # example, in the case of _POSIX_SOURCE, which is predefined and required
21898 # on some systems where configure will not decide to define it.
21899 cat >>conftest.undefs <<\_ACEOF
21900 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21903 # Break up conftest.defines because some shells have a limit on the size
21904 # of here documents, and old seds have small limits too (100 cmds).
21905 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21906 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21907 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21908 echo ' :' >>$CONFIG_STATUS
21909 rm -f conftest.tail
21910 while grep . conftest.defines >/dev/null
21912 # Write a limited-size here document to $tmp/defines.sed.
21913 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21914 # Speed up: don't consider the non `#define' lines.
21915 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21916 # Work around the forget-to-reset-the-flag bug.
21917 echo 't clr' >>$CONFIG_STATUS
21918 echo ': clr' >>$CONFIG_STATUS
21919 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21921 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21923 mv $tmp/out $tmp/in
21925 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21926 rm -f conftest.defines
21927 mv conftest.tail conftest.defines
21929 rm -f conftest.defines
21930 echo ' fi # grep' >>$CONFIG_STATUS
21931 echo >>$CONFIG_STATUS
21933 # Break up conftest.undefs because some shells have a limit on the size
21934 # of here documents, and old seds have small limits too (100 cmds).
21935 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21936 rm -f conftest.tail
21937 while grep . conftest.undefs >/dev/null
21939 # Write a limited-size here document to $tmp/undefs.sed.
21940 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21941 # Speed up: don't consider the non `#undef'
21942 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21943 # Work around the forget-to-reset-the-flag bug.
21944 echo 't clr' >>$CONFIG_STATUS
21945 echo ': clr' >>$CONFIG_STATUS
21946 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21948 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21950 mv $tmp/out $tmp/in
21952 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21953 rm -f conftest.undefs
21954 mv conftest.tail conftest.undefs
21956 rm -f conftest.undefs
21958 cat >>$CONFIG_STATUS <<\_ACEOF
21959 # Let's still pretend it is `configure' which instantiates (i.e., don't
21960 # use $as_me), people would be surprised to read:
21961 # /* config.h. Generated by config.status. */
21962 if test x"$ac_file" = x-; then
21963 echo "/* Generated by configure. */" >$tmp/config.h
21965 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21967 cat $tmp/in >>$tmp/config.h
21969 if test x"$ac_file" != x-; then
21970 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21971 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21972 echo "$as_me: $ac_file is unchanged" >&6;}
21974 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21975 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21976 X"$ac_file" : 'X\(//\)[^/]' \| \
21977 X"$ac_file" : 'X\(//\)$' \| \
21978 X"$ac_file" : 'X\(/\)' \| \
21979 . : '\(.\)' 2>/dev/null ||
21981 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21982 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21983 /^X\(\/\/\)$/{ s//\1/; q; }
21984 /^X\(\/\).*/{ s//\1/; q; }
21986 { if $as_mkdir_p; then
21991 while test ! -d "$as_dir"; do
21992 as_dirs="$as_dir $as_dirs"
21993 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21994 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21995 X"$as_dir" : 'X\(//\)[^/]' \| \
21996 X"$as_dir" : 'X\(//\)$' \| \
21997 X"$as_dir" : 'X\(/\)' \| \
21998 . : '\(.\)' 2>/dev/null ||
22000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22001 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22002 /^X\(\/\/\)$/{ s//\1/; q; }
22003 /^X\(\/\).*/{ s//\1/; q; }
22006 test ! -n "$as_dirs" || mkdir $as_dirs
22007 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22008 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22009 { (exit 1); exit 1; }; }; }
22012 mv $tmp/config.h $ac_file
22016 rm -f $tmp/config.h
22018 # Compute $ac_file's index in $config_headers.
22020 for _am_header in $config_headers :; do
22021 case $_am_header in
22022 $ac_file | $ac_file:* )
22025 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22028 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22029 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22030 X$ac_file : 'X\(//\)[^/]' \| \
22031 X$ac_file : 'X\(//\)$' \| \
22032 X$ac_file : 'X\(/\)' \| \
22033 . : '\(.\)' 2>/dev/null ||
22035 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22036 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22037 /^X\(\/\/\)$/{ s//\1/; q; }
22038 /^X\(\/\).*/{ s//\1/; q; }
22039 s/.*/./; q'`/stamp-h$_am_stamp_count
22042 cat >>$CONFIG_STATUS <<\_ACEOF
22045 # CONFIG_COMMANDS section.
22047 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22048 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22049 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22050 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22051 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22052 X"$ac_dest" : 'X\(//\)[^/]' \| \
22053 X"$ac_dest" : 'X\(//\)$' \| \
22054 X"$ac_dest" : 'X\(/\)' \| \
22055 . : '\(.\)' 2>/dev/null ||
22057 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22058 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22059 /^X\(\/\/\)$/{ s//\1/; q; }
22060 /^X\(\/\).*/{ s//\1/; q; }
22062 { if $as_mkdir_p; then
22067 while test ! -d "$as_dir"; do
22068 as_dirs="$as_dir $as_dirs"
22069 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22070 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22071 X"$as_dir" : 'X\(//\)[^/]' \| \
22072 X"$as_dir" : 'X\(//\)$' \| \
22073 X"$as_dir" : 'X\(/\)' \| \
22074 . : '\(.\)' 2>/dev/null ||
22076 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22077 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22078 /^X\(\/\/\)$/{ s//\1/; q; }
22079 /^X\(\/\).*/{ s//\1/; q; }
22082 test ! -n "$as_dirs" || mkdir $as_dirs
22083 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22084 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22085 { (exit 1); exit 1; }; }; }
22089 if test "$ac_dir" != .; then
22090 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22091 # A "../" for each directory in $ac_dir_suffix.
22092 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22094 ac_dir_suffix= ac_top_builddir=
22098 .) # No --srcdir option. We are building in place.
22100 if test -z "$ac_top_builddir"; then
22103 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22105 [\\/]* | ?:[\\/]* ) # Absolute path.
22106 ac_srcdir=$srcdir$ac_dir_suffix;
22107 ac_top_srcdir=$srcdir ;;
22108 *) # Relative path.
22109 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22110 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22113 # Do not use `cd foo && pwd` to compute absolute paths, because
22114 # the directories may not exist.
22116 .) ac_abs_builddir="$ac_dir";;
22119 .) ac_abs_builddir=`pwd`;;
22120 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22121 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22124 case $ac_abs_builddir in
22125 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22127 case ${ac_top_builddir}. in
22128 .) ac_abs_top_builddir=$ac_abs_builddir;;
22129 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22130 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22133 case $ac_abs_builddir in
22134 .) ac_abs_srcdir=$ac_srcdir;;
22137 .) ac_abs_srcdir=$ac_abs_builddir;;
22138 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22139 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22142 case $ac_abs_builddir in
22143 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22145 case $ac_top_srcdir in
22146 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22147 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22148 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22153 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22154 echo "$as_me: executing $ac_dest commands" >&6;}
22156 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22157 # Strip MF so we end up with the name of the file.
22158 mf=`echo "$mf" | sed -e 's/:.*$//'`
22159 # Check whether this is an Automake generated Makefile or not.
22160 # We used to match only the files named `Makefile.in', but
22161 # some people rename them; so instead we look at the file content.
22162 # Grep'ing the first line is not enough: some people post-process
22163 # each Makefile.in and add a new line on top of each file to say so.
22164 # So let's grep whole file.
22165 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22166 dirpart=`(dirname "$mf") 2>/dev/null ||
22167 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22168 X"$mf" : 'X\(//\)[^/]' \| \
22169 X"$mf" : 'X\(//\)$' \| \
22170 X"$mf" : 'X\(/\)' \| \
22171 . : '\(.\)' 2>/dev/null ||
22173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22174 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22175 /^X\(\/\/\)$/{ s//\1/; q; }
22176 /^X\(\/\).*/{ s//\1/; q; }
22181 # Extract the definition of DEPDIR, am__include, and am__quote
22182 # from the Makefile without running `make'.
22183 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22184 test -z "$DEPDIR" && continue
22185 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22186 test -z "am__include" && continue
22187 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22188 # When using ansi2knr, U may be empty or an underscore; expand it
22189 U=`sed -n 's/^U = //p' < "$mf"`
22190 # Find all dependency output files, they are included files with
22191 # $(DEPDIR) in their names. We invoke sed twice because it is the
22192 # simplest approach to changing $(DEPDIR) to its actual value in the
22194 for file in `sed -n "
22195 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22196 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22197 # Make sure the directory exists.
22198 test -f "$dirpart/$file" && continue
22199 fdir=`(dirname "$file") 2>/dev/null ||
22200 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22201 X"$file" : 'X\(//\)[^/]' \| \
22202 X"$file" : 'X\(//\)$' \| \
22203 X"$file" : 'X\(/\)' \| \
22204 . : '\(.\)' 2>/dev/null ||
22206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22207 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22208 /^X\(\/\/\)$/{ s//\1/; q; }
22209 /^X\(\/\).*/{ s//\1/; q; }
22211 { if $as_mkdir_p; then
22212 mkdir -p $dirpart/$fdir
22214 as_dir=$dirpart/$fdir
22216 while test ! -d "$as_dir"; do
22217 as_dirs="$as_dir $as_dirs"
22218 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22219 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22220 X"$as_dir" : 'X\(//\)[^/]' \| \
22221 X"$as_dir" : 'X\(//\)$' \| \
22222 X"$as_dir" : 'X\(/\)' \| \
22223 . : '\(.\)' 2>/dev/null ||
22225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22226 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22227 /^X\(\/\/\)$/{ s//\1/; q; }
22228 /^X\(\/\).*/{ s//\1/; q; }
22231 test ! -n "$as_dirs" || mkdir $as_dirs
22232 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22233 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22234 { (exit 1); exit 1; }; }; }
22236 # echo "creating $dirpart/$file"
22237 echo '# dummy' > "$dirpart/$file"
22245 cat >>$CONFIG_STATUS <<\_ACEOF
22247 { (exit 0); exit 0; }
22249 chmod +x $CONFIG_STATUS
22250 ac_clean_files=$ac_clean_files_save
22253 # configure is writing to config.log, and then calls config.status.
22254 # config.status does its own redirection, appending to config.log.
22255 # Unfortunately, on DOS this fails, as config.log is still kept open
22256 # by configure, so config.status won't be able to write to it; its
22257 # output is simply discarded. So we exec the FD to /dev/null,
22258 # effectively closing config.log, so it can be properly (re)opened and
22259 # appended to by config.status. When coming back to configure, we
22260 # need to make the FD available again.
22261 if test "$no_create" != yes; then
22263 ac_config_status_args=
22264 test "$silent" = yes &&
22265 ac_config_status_args="$ac_config_status_args --quiet"
22267 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22269 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22270 # would make configure fail if this is the last instruction.
22271 $ac_cs_success || { (exit 1); exit 1; }